Skip to content

docs(write-parity): matrix-driven planning and spec setup - #48

Merged
woss merged 4 commits into
mainfrom
docs/write-parity-setup
Nov 21, 2026
Merged

woss merged 4 commits into
mainfrom
docs/write-parity-setup

Conversation

@woss

@woss woss commented Nov 21, 2026

Copy link
Copy Markdown
Owner

What

Turns WRITE_PLAN.md into a spec-as-code + matrix-driven contract so AI agents work one plan cell at a time instead of hallucinating from a 71KB checklist.

  • docs/write-parity/matrix.json — generated contract from vendor/exiftool/README + src/tags/generated/manifest.json (229 file types, 44 families, 27 partial cells, pinned ExifTool 13.64)
  • scripts/generate-matrix.ts — deterministic generator + checkMatrix gates: implemented requires a test link, partial/unsafe require a reason, cell keys validated against upstream dimensions. pnpm generate-matrix / pnpm check-matrix
  • docs/write-parity/specs/ — per-serializer invariants (EXIF/TIFF/GPS, XMP, IPTC/IRB, MakerNotes, other families), container batches, CR2/CR3/RAF, CLI/API ops — mapped from WRITE_PLAN §B–§J
  • docs/write-parity/plans/ — WRITE_PLAN.md + C2PA_PLAN.md archived out of repo root; all references repointed (AGENTS.md, README, skill, specs)
  • .omp/skills/write-parity — planner/implementer/reviewer lane workflow + gates
  • CI — check-matrix + matrix tests; stale 13.55 pin test fixed → 13.64

Workflow this enables

Spawn prompt = one matrix cell (e.g. JPEG|XMP|set partial→implemented), one spec file, one GitButler lane, differential test (our write→13.64 read, reverse, byte preservation) before status promotion. Planner/implementer/reviewer are separate agents.

Notes

  • Stacked on chore/code-review-graph (AGENTS.md section depends on it). Merge that first or merge together.
  • chore/vendor-exiftool-13-64 carries tvvn (same generate-tags.test.ts pin fix as kuo here) — whichever PR lands second will need but pull conflict resolution on that one test file.
  • Verified: tsc clean, 994 tests / 56 files pass, check-matrix ok.

🤖 Generated with omp

woss added 4 commits November 22, 2026 00:10
- WRITE_PLAN.md, C2PA_PLAN.md -> docs/write-parity/plans/ (root cleanup)
- repoint references: AGENTS.md, spec-home README, skill, container-batches spec
- plans/ deleted: goal, phase order, catalog gates, upstream fix watchlist,
  upstream-only CLI records folded into README + specs (serializer/container/
  ops); checkbox history replaced by matrix.json + tests
- repoint AGENTS.md, write-parity skill, specs, docusaurus pages
- matrix reasons now cite specs instead of plan sections
@woss
woss merged commit 2b32b68 into main Nov 21, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant