Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,9 @@ jobs:
run: pnpm check
- name: Tests
run: pnpm test
- name: Write-parity matrix (generated, checked-in)
run: pnpm check-matrix
- name: Write-parity matrix tests
run: node node_modules/vitest/vitest.mjs run scripts/generate-matrix.test.ts
- name: Coverage audit (100% line/function)
run: pnpm coverage-audit
50 changes: 50 additions & 0 deletions .omp/skills/write-parity/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
name: write-parity
description: Metadata-writing parity lanes for exiftool-ts — matrix-driven specs, serializer/container work, differential gates vs vendored ExifTool 13.64
---

## Source of truth

- `docs/write-parity/README.md` + `matrix.json` (generated) + `specs/*.md` —
the executable contract, derived from `vendor/exiftool/README` +
`src/tags/generated/manifest.json` (pinned 13.64).
- `docs/write-parity/plans/WRITE_PLAN.md` — requirement source + phase map only. Where it disagrees
with the matrix/specs, follow the code and file the divergence note.
- Load `skill://code-philosophy` before any BACKEND code change (repo rule).

## Roles (never same agent plans + verifies)

1. **Planner** (read-only): `get_minimal_context(task=…)` via
code-review-graph, trace to the serializer/container owners with
`query_graph`/`lsp`. Output: spec delta + exact `matrix.json` cells to
flip. No code.
2. **Implementer**: one GitButler lane, one serializer OR one container OR
one op cluster. Differential test first, status promotion second.
3. **Reviewer**: diff + upstream `vendor/exiftool/t/*.t` cases. Verifies
our-write→upstream-read, upstream-write→our-read, and unchanged blocks
byte-identical.

## Gates

- `pnpm generate-tags` → regenerate `src/tags/generated/*`, then
`pnpm generate-matrix` → regenerate `docs/write-parity/matrix.json`. Never
hand-edit generated outputs. Byte-for-byte regenerate-and-diff is the
acceptance gate on any ExifTool bump.
- `pnpm generate-matrix --check` must pass. `implemented` requires a `test`
link in the matrix; `partial`/`unsafe` require a `reason`.
- Safety: opaque/encrypted/proprietary blocks are preserved byte-for-byte or
the write is refused loud. A container's writeability never implies every
family writes into it — promote one `fileType|family|op` cell at a time.
- Version drift: `matrix.json` `exiftoolVersion` must equal
`manifest.json` `exiftoolVersion`, which must equal `vendor/exiftool/exiftool -ver`.
`docs/write-parity/plans/WRITE_PLAN.md` "13.55" text is historical; verify against 13.64.

## Quick commands

```bash
pnpm generate-matrix # write docs/write-parity/matrix.json
pnpm generate-matrix --check # CI gate
pnpm generate-tags # regenerate tag catalog (see gates)
node node_modules/vitest/vitest.mjs run scripts/generate-matrix.test.ts
vendor/exiftool/exiftool -ver # must print 13.64
```
5 changes: 5 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
- **Staleness**: graph updates only on build/update — run `code-review-graph update --brief` after editing, `code-review-graph build` after big merges (~5s; `.code-review-graph/` DB is gitignored)
- **Skills**: `.omp/skills/code-review-graph/` (explore, review changes, debug, refactor)

### Write-parity specs (metadata writing)

- **Spec home**: `docs/write-parity/` — `matrix.json` (generated contract) + `specs/*.md` (per-serializer invariants). `docs/write-parity/plans/WRITE_PLAN.md` is the requirement source, not the contract.
- **Skill**: `skill://write-parity` — planner/implementer/reviewer roles + differential gates vs vendored ExifTool 13.64. Load before any write-parity lane.

**When to use code-review-graph vs native tools:**
| Task | Tool |
|---|---|
Expand Down
91 changes: 0 additions & 91 deletions C2PA_PLAN.md

This file was deleted.

Loading