Skip to content

T-P3HA-validator-golden-path-drift

Status: closed/done · Impact: medium · Complexity: small

The identifier-shape migration (commit 1a13c228) renamed all 217 task files from T0001.md / 2026-MM-DD-<slug>.md paths to T-NNNN.md / T-XXXX-<slug>.md shapes. The validator parity golden fixtures still bake in the old paths, so every task-fixture replay fails with ENOENT. This task updates the 217 affected fixture files so the golden suite is green again.

LocationRole today
tests/parity/validators/Holds 260 corpus fixture JSONs + 3 synthetic; 217 reference stale task paths
tests/parity/validators.golden.test.tsReplays each fixture against validate_frontmatter.ts; 260 failures on clean main

All 217 stale fixtures are updated (fixture file renamed + argv path updated) to reference the current id-based filenames. bun test tests/parity passes 260/260.

  1. Build old->new mapping from git show 1a13c228 --diff-filter=R --name-status.
  2. For each stale fixture: rename the .fixture.json file and update the argv entry inside.
  3. Re-run each fixture against the live validator to capture any content drift in stdout/stderr/exit_code.
  4. Audit the diff: only path-rename and corpus-content changes are acceptable.
  5. Commit: test(parity): regenerate validator goldens for id-based corpus filenames.
LocationKindChange
tests/parity/validators/docs__planning__tasks__2026*.fixture.jsondelete202 stale date-based fixtures removed
tests/parity/validators/docs__planning__tasks__T0*.fixture.jsondelete15 stale T00xx fixtures removed
tests/parity/validators/docs__planning__tasks__T-*.fixture.jsonnew217 updated fixtures with id-based paths
  • AC-1: bun test tests/parity reports 0 failures (260 pass, 3 skip).
  • AC-2: No validator production code, schemas, or corpus files are modified.
  • AC-3: Fixture diff contains only path renames and corpus-content changes only.
  • Updating fixtures for non-task entity types (decisions, milestones, etc.) — those are unaffected.
  • Adding new fixtures for task files added after the golden capture.
  • none

← Back to Tasks