2.3 KiB
id, title, status, wave, depends_on, plan, requirements, acceptance_criteria, system_design
| id | title | status | wave | depends_on | plan | requirements | acceptance_criteria | system_design | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 01-coverage-validator | Validate documentation coverage | done | 1 | plan.md |
|
|
|
Task 01: Validate documentation coverage
Summary
Implement pure path classification and artifact graph validation with TDD. Cover existing artifacts, new packages, deletions, renames, unknown paths, malformed metadata, ambiguous IDs, and incomplete references.
In scope
.github/scripts/pr-docs.cjs.github/scripts/pr-docs.test.cjs
Out of scope
Application code, unrelated workflow cleanup, live label changes, and live ruleset changes.
Acceptance
- Only explicitly exempt changes pass without a work order; the #3137 runtime-change fixture fails.
- A changed work order and valid referenced package pass without cosmetic edits to existing specifications.
- Missing, empty, deleted, escaping, or mismatched references produce precise failures.
Verification
Run from the repository root:
node --test .github/scripts/pr-docs.test.cjs
git diff --check
Files likely touched
.github/scripts/pr-docs.cjs.github/scripts/pr-docs.test.cjs
Dependencies
None.
Risks
Do not confuse the size-label file filter with this policy; their exclusions differ.
Parallelism
sequential
Inputs
- Requirements
- System design
- Plan
- Decision
.github/AGENTS.mdand existing PR size workflow contract tests.
Results
Implemented .github/scripts/pr-docs.cjs path classification, bounded
frontmatter parsing, and linked artifact validation. The validator handles
renames, deleted references, malformed metadata, multi-requirement acceptance
criteria, ambiguous requirement IDs, bounded requirement search, disjoint
multi-design ownership, document limits, and the representative runtime-change
fixture.
Verification:
node --test .github/scripts/pr-docs.test.cjs: 35 tests passed.git diff --check: passed.