Skip to content

Say once what a page protocol bump is for, and drop the parser bump notices - #6215

Merged
max-sixty merged 3 commits into
mainfrom
protocol-guidance
Nov 17, 2026
Merged

max-sixty merged 3 commits into
mainfrom
protocol-guidance

Conversation

@max-sixty

@max-sixty max-sixty commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

The page protocol marks which Leafs can serve and write a page, so it moves only when a Leaf at the current number would misread an event or record another Leaf at that number wrote. Root AGENTS.md, "Pages across Leaf updates", now states that once, with what keeps the number: anything the serving Leaf supplies, including how it parses and draws what the page keeps, even where a logged message or a comment's quote then draws or resolves differently. layer-registry.md, "Page protocol", keeps only how the number is enforced and how records carry it (834 → 393 words).

Gone: #6208's notice that a message Markdown dialect change bumps the protocol, the same notices on the kernel registry's $passages (including the closing/opening lists #6216 just added) and $names (the latter about vendored registries pages no longer keep), $events.description's claim that the protocol covers the served state, and the layer-registry paragraphs that copied session_runtime.py's header or described superseded behavior.

To weigh: the policy accepts that a passage-reading change can move an old comment onto another occurrence of its quote, and a dialect change can drop a logged widget's action from its thread's history. Codex found both cases; a bump prevents neither, since renewing a page keeps its log for the new Leaf to read by its own rules.

Max asked for this after #6208. Reviewed by Codex, whose two findings are fixed. On eight bump questions, six Sonnet runs of the new text answered all 48 as intended, keeping bumps for a renamed field, a non-skippable kind and a changed token meaning. #6023 (draft) rewrites the same AGENTS.md section, so whichever lands second resolves a conflict. pre-commit, the registry and protocol build tests, and the AGENTS.md tests pass.

This was written by Claude Code on behalf of max-sixty

…otices

The page protocol marks which Leafs can serve and write a page, so it moves
only when a Leaf at the current number would misread an event or record
another Leaf at that number wrote. Root AGENTS.md, "Pages across Leaf
updates", now owns that criterion and what keeps the number: anything the
serving Leaf supplies, including how it parses and draws what the page
keeps, even where a logged message or a comment's quote then draws or
resolves differently. layer-registry.md, "Page protocol", keeps how the
number is enforced and how records carry it, and drops its second copy of
the criterion.

Removed as notices of the kind Max asked to strip:

- #6208's sentence making a change to the message Markdown dialect bump
  the protocol. The log keeps the agent's text, and the serving Leaf's
  parsers draw it, as they draw every Markdown body (events.md).
- The kernel registry's bump clauses on `$passages` (collapse, blocks,
  phrasing) and `$names`. `$names` described a page's vendored registry,
  which pages stopped keeping in #4551.
- `$events.description`'s protocol passage, which said the protocol covers
  the served state, contradicting protocol.mjs and AGENTS.md. It now points
  at layer-registry.md.
- In layer-registry.md: the paragraph on one session running two Leafs
  (session_runtime.py's header owns it), the one-way admission promise the
  build check's both-way comparison has superseded, a lease compatibility
  note, and the served-state schema aside.

page-storage.md's copy of the record-format rule, which omitted the layer
record's exception, becomes a pointer, and session_runtime.py and
vendoring.py stop citing the cut paragraph.

What the policy accepts: a change to the passage reading can move an old
comment onto another occurrence of its quote, and a dialect change can
turn a logged widget into text and drop its action from the thread's
history. Codex found both while reviewing; a bump would prevent neither,
since renewing a page keeps its log, which the new Leaf reads by its own
rules either way. What a bump would prevent, an older Leaf drawing a newer
message by its older rules, is the display difference Max ruled out.

Scored old against new guidance on eight bump questions, three Sonnet runs
each: the new text answers all 24 as intended, keeping the bump for a
renamed field, a non-skippable new kind and a changed token meaning; the
old text bumps for the parser and passage changes, and two of its three
runs first misstated when a record's `since` move needs a bump. Three more
runs of the final text also answered all 24. A variant that added the
renewal reason above to AGENTS.md lost the changed-meaning bump in one of
three runs, so the reason stays here.
leaf-agent
leaf-agent previously approved these changes Nov 16, 2026
# Conflicts:
#	browser/runtime/kernel-registry.json
@max-sixty
max-sixty merged commit c8b42f1 into main Nov 17, 2026
5 checks passed
@max-sixty
max-sixty deleted the protocol-guidance branch November 17, 2026 02:26
max-sixty added a commit that referenced this pull request Nov 17, 2026
…hat each side accepts (#6238)

The build's protocol check now refuses any schema change at one page
protocol, apart from annotations and new `skippable` kinds, instead of
comparing field by field whether every Leaf at the number would still
accept the other's values. `build/browser/protocol.mjs` drops from 338
to 93 lines and its test from 299 to 137 (−402 net across the change).

**To weigh:** an added optional event field now needs a bump, and an
added record field moves the record's `since`, which makes records the
other Leaf version wrote read as absent until both run the same Leaf.
Over the comparator's history (20 Oct–16 Nov) that would have been one
more bump (`comment` gaining a field) and nine more `since` moves, seven
of them `delivery`. The number stays a hand-moved integer, not a schema
digest, since Leaf orders protocols: it refuses a newer Leaf's page and
renews an older one.

`AGENTS.md` and `layer-registry.md` now say the build forces a bump for
any event schema change and that a hand bump is for a logged value given
a new meaning. Max took this up as a follow-on to #6215.
`protocol.test.mjs`, `pnpm run check:tools`, `pnpm run check:browser`
and `pre-commit` pass; three Sonnet runs of the reworded rule on nine
bump questions answered as intended.

> _This was written by Claude Code on behalf of max-sixty_
max-sixty added a commit that referenced this pull request Nov 18, 2026
Each conflict keeps main's text and carries this branch's changes onto it.

- AGENTS.md: "The maintainer decides", the opening paragraph, the benchmark
  clause, the control-look line, the "Where instructions live" additions and
  the looks-over-bytes sentence sit on main's restructured sections. The
  removal bullet points to "Regular maintenance", which main gave the
  propose-with-losses sentence. "Pages across Leaf updates" stays as main's
  #6215 wrote it, since that change already gave the bump rules one home.
- src/leaf/layer-registry.md: main's text; #6215 moved the sentences this
  branch added there into the root file, which the section now points to.
- running-tend: "The maintainer decides" joins main's list of the sections
  the review applies.
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.

2 participants