From the 2026-11-09 architecture review (content line, step 2 of 2).
One frontmatter module owns the lenient read and every write posture. Today three near-twin writers (fresh stamp, import merge, in-place key update) each walk the block with their own key list, and eligibility is re-decided per site. After this ticket:
One engine behind three postures — fresh / merge-import / update-keys — with one known-key table and one insertion-order rule.
Foreign frontmatter keys are preserved by construction through every posture (the write path has lost foreign keys once before; the round-trip pins make that class un-reintroducible).
The Unaided First Draft eligibility pair is named once: the immutable pair (writer origin, post type) and capture eligibility (pair ∧ Pass State First Draft), consumed by both the capture gate and the scan's read-back gate.
Existing pieces stay byte-identical on disk — write with the old code, read/edit/advance with the new.
Learnings and Fix Card frontmatter stay out of scope (different document shapes, no current friction).
Acceptance criteria
One codec module owns parse + all three write postures; the near-twin line-walkers are deleted
Round-trip pins: foreign keys preserved verbatim through every posture; unknown type still reads leniently as post
Both eligibility predicates named and consumed by capture gate + scan read-back
Existing pieces byte-identical through the migration
Full suite green
Blocked by
None (can start immediately).
[Generated by AI]
## What to build
From the 2026-11-09 architecture review (content line, step 2 of 2).
One **frontmatter module** owns the lenient read and every write posture. Today three near-twin writers (fresh stamp, import merge, in-place key update) each walk the block with their own key list, and eligibility is re-decided per site. After this ticket:
- One engine behind three postures — fresh / merge-import / update-keys — with one known-key table and one insertion-order rule.
- Foreign frontmatter keys are preserved by construction through every posture (the write path has lost foreign keys once before; the round-trip pins make that class un-reintroducible).
- The Unaided First Draft eligibility pair is **named once**: the immutable pair (writer origin, post type) and capture eligibility (pair ∧ Pass State First Draft), consumed by both the capture gate and the scan's read-back gate.
- Existing pieces stay byte-identical on disk — write with the old code, read/edit/advance with the new.
Learnings and Fix Card frontmatter stay **out** of scope (different document shapes, no current friction).
## Acceptance criteria
- [ ] One codec module owns parse + all three write postures; the near-twin line-walkers are deleted
- [ ] Round-trip pins: foreign keys preserved verbatim through every posture; unknown type still reads leniently as post
- [ ] Both eligibility predicates named and consumed by capture gate + scan read-back
- [ ] Existing pieces byte-identical through the migration
- [ ] Full suite green
## Blocked by
None (can start immediately).
[Generated by AI]
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
What to build
From the 2026-11-09 architecture review (content line, step 2 of 2).
One frontmatter module owns the lenient read and every write posture. Today three near-twin writers (fresh stamp, import merge, in-place key update) each walk the block with their own key list, and eligibility is re-decided per site. After this ticket:
Learnings and Fix Card frontmatter stay out of scope (different document shapes, no current friction).
Acceptance criteria
Blocked by
None (can start immediately).
[Generated by AI]