test-quality-validator
Validate generated or hand-written tests for coverage completeness, correctness, and false-green risks using the canonical QA runtime, regression artifacts, and optional delivery-profile rules.
- License 许可
- AGPL-3.0
- 最近更新
- 2026-08-15
- Stars
- ★ 30
- Forks
- 7
01 前言 Front Matter
- name
- test-quality-validator
- description
- Validate generated or hand-written tests for coverage completeness, correctness, and false-green risks using the canonical QA runtime, regression artifacts, and optional delivery-profile rules.
- allowed-tools
- Read, Grep, Glob, Bash, Write
- argument-hint
- [--epic <epic_name>] [--suite <X>] [--api-only] [--browser-only] [--profile .jarvis/context/profiles/qa.json]
- disable-model-invocation
- false
02 资源文件 4
- 参考文档commands/test-quality-validator.md2.6 KB
- 参考文档manifest.yaml801 B
- 脚本scripts/validate-correctness.ts11.1 KB
- 脚本scripts/validate-coverage.ts6.3 KB
03 SKILL.md 正文
Test Quality Validator
Purpose
Validate that generated or maintained tests are complete, trustworthy, and aligned with approved specs and regression artifacts.
Required contract
-
canonical QA profile, typically
.jarvis/context/profiles/qa.json -
optional regression adapter paths, role inventory, validator rules, and mock policy from the active profile
-
Template paths are resolved from
${AGENTS_SKILLS_ROOT}/test-quality-validator/.
Checks
- Coverage completeness against acceptance criteria and regression scenarios.
- False-green risk detection in generated or hand-written suites.
- Pattern adherence against delivery-profile-configured validator rules.
- Role and authorization coverage.
- Canonical QA contract compliance:
@qa-spec/@qa-suiteheaders, canonical ID format, andStatus: implementedscenarios must align with tests. - Persistence-sensitive browser scenarios preserve
DB Assert:coverage or document why DB validation is unavailable in the target environment. - Mock-heavy tests and internal DB/client/auth/service mocks are warning-level false-green risks unless the QA profile documents an allowed external boundary or exception.
Steps
- Run the canonical drift preflight first:
qa drift --profile <qa-profile> --json
- Treat any of these as quality defects:
- missing
@qa-spec/@qa-suiteheaders - non-canonical ID prefixes
Status: implementedscenarios without matching tests- tests referencing nonexistent spec scenarios
- missing
- Parse criteria with
${AGENTS_SKILLS_ROOT}/spec-to-regression/scripts/extract-criteria.tswhen acceptance-criteria coverage is in scope. - Parse API regression scenarios with
${AGENTS_SKILLS_ROOT}/api-integration-codegen/scripts/parse-api-regression.ts. - Run
${AGENTS_SKILLS_ROOT}/test-quality-validator/scripts/validate-coverage.tswith the optional delivery profile. - Run
${AGENTS_SKILLS_ROOT}/test-quality-validator/scripts/validate-correctness.tsagainst the project's browser/API suites with the optional profile. - Synthesize the drift defects and validator output into a single quality report.
- Flag browser suites that appear to have been generated only from source assumptions when no walkthrough artifacts, accessible selectors, or stable selector rationale are present.
Decision Trace Protocol
This skill participates in the skill evolution system by capturing decision traces at gate resolutions and consulting accumulated feedback.
Trace Consultation (short loop)
Before executing any step with a quality or human gate, query accumulated decision traces:
python3 "${AGENTS_SKILLS_ROOT}/_shared/trace_query.py" recent \
--skill "test-quality-validator" --gate "<gate_name>" --limit 5 --min-loops 1
If patterns or recent feedback exist, incorporate them as additional constraints. Do not cite traces to the user unless asked.
Trace Capture (after gate resolution)
After every gate resolves, capture a decision trace:
python3 "${AGENTS_SKILLS_ROOT}/_shared/trace_capture.py" capture \
--skill "test-quality-validator" \
--gate "<gate_name>" --gate-type "<human|quality>" \
--outcome "<approved|rejected|passed|failed>" \
--refinement-loops <N> \
[--feedback "<user's feedback text>"] \
[--category <CATEGORY>]
Post-Run Retrospective
After completion, ask: "Any feedback on this test-quality-validator run? (skip to finish)" If provided, capture via trace_capture.py with gate "run_retrospective" and gate-type "retrospective".
Output
- quality report with drift defects, coverage %, false-green risks, pattern violations, and role coverage gaps
- explicit failures and warnings suitable for PR review or CI gating
04 同仓库更多 Skills
wiki-research
Autonomous research orchestrator for Jarvis Wiki domains. Spawns a Claude agent with web tools to find new sources, drops them into raw/, runs the compile pipeline, and emits autoresearch traces for the autoflow ratchet.
tmux-agent-launcher
Launch Claude, OpenCode, or Codex in a named tmux session from the command line or agent workflows.
tech-spec
Generate production-ready technical specifications from product specs.
tech-spec-review
Seven-lens engineering review for technical_spec.md files, including an explicit simplicity and architectural fitness gate.
spec-to-regression
Generate browser and API regression scenarios from approved product and technical specs using the Harnessy delivery profile and regression artifact contract.
skill-validate
Validate a skill's manifest, catalog entry, and blast-radius gates. Use before publishing any skill.