Grilling: first-save frontmatter contract #59

Closed
opened 2026-10-02 15:46:36 +02:00 by AlexKucera · 1 comment
Owner

Part of #18

Question

What exactly does first save stamp into post.md? #17's log leaves the write-side key format to #18; #22 (Import) and S5.1 (stats capture) build on it. Does saving a bare post (corpus import) normalize it by adding the block, and what shape does the block take — flat pass_state/origin keys (what the #17 reader already parses) with a nested museion: block reserved for M4 stats?

[Generated by AI]

Part of #18 ## Question What exactly does first save stamp into `post.md`? #17's log leaves the write-side key format to #18; #22 (Import) and S5.1 (stats capture) build on it. Does saving a bare post (corpus import) normalize it by adding the block, and what shape does the block take — flat `pass_state`/`origin` keys (what the #17 reader already parses) with a nested `museion:` block reserved for M4 stats? [Generated by AI]
AlexKucera added the wayfinder:grilling label 2026-10-02 15:46:36 +02:00
AlexKucera self-assigned this 2026-10-02 15:46:36 +02:00
Author
Owner

Resolution

One canonical write path. First save always stamps a frontmatter block with the flat keys the #17 reader already parses — no new format:

---
pass_state: First Draft
origin: writer
---
  • Saving a bare post (corpus import) normalizes: the block is added on save. One write path, no bare-post special case.
  • origin is writer by default and immutable after stamping — Import (#22) is the only flow that asks; nothing in #18 ever rewrites it.
  • pass_state: First Draft is the only value #18 writes; advancement belongs to M2 (#24, on pass completion, never card resolution).
  • A nested museion: block is reserved for M4 stats (S5.1) — not written until #31. The block shape above is the v1 contract.

Downstream consumers: #22 Import stamps origin (asked once) through this same path; #31 appends into museion:; the #17 reader already tolerates all of it.

[Generated by AI]

## Resolution One canonical write path. First save always stamps a frontmatter block with the **flat keys the #17 reader already parses** — no new format: ``` --- pass_state: First Draft origin: writer --- ``` - Saving a bare post (corpus import) **normalizes**: the block is added on save. One write path, no bare-post special case. - `origin` is writer by default and **immutable after stamping** — Import (#22) is the only flow that asks; nothing in #18 ever rewrites it. - `pass_state: First Draft` is the only value #18 writes; advancement belongs to M2 (#24, on pass completion, never card resolution). - A nested `museion:` block is **reserved for M4 stats** (S5.1) — not written until #31. The block shape above is the v1 contract. Downstream consumers: #22 Import stamps `origin` (asked once) through this same path; #31 appends into `museion:`; the #17 reader already tolerates all of it. [Generated by AI]
Sign in to join this conversation.