Skip to content

Test and document page state's report of a page this Leaf can't serve - #2734

Merged
max-sixty merged 1 commit into
mainfrom
page-state-names-the-reinit
Oct 13, 2026
Merged

max-sixty merged 1 commit into
mainfrom
page-state-names-the-reinit

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

#2336 made the source check refuse a page this Leaf can't serve as vendored (a foreign protocol, or a layer that declares a retired x- key such as x-question-context), so page state reports source.live: false with the refusal, naming leaf page init, in source.error, and writes no revision. Nothing tested that reading or told an agent what to do with it.

  • test_page_state_reports_a_layer_this_leaf_cannot_serve covers both kinds and runs page state in a fresh process, since in-process a cached revision hides the retired-key case.
  • authoring-revisions.md: where source.error names leaf page init, run it and read the state again before trusting the rest of the reading.
  • serving-pages.md, page-storage.md and the incompatible_layer and agent_state docstrings list the state reading among the places that report the refusal.

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

`leaf page state` on a page vendored at another protocol, or whose layer
declares an x- key this Leaf no longer admits, used to exit 0 with
`source.live: true` and no error, and on a foreign-protocol page each read
activated the source into a revision under that layer. #2336 put
`layer.incompatible_layer` in `validation.source.check_source`, so the state
read now prints its reading with `source.live: false` and the refusal,
naming `leaf page init`, as `source.error`, and writes no revision.

This adds the test that holds that for both kinds, in a fresh process as an
agent's is (in-process, a revision captured before the change masks the
retired-key case), and tells the agent what the error means:
authoring-revisions.md says to run the init and read again, serving-pages.md
that `page state` reports the refusal and that a retired key triggers it too,
and page-storage.md, `layer.incompatible_layer` and `agent_state` name the
state reading among the refusal's readers.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty enabled auto-merge (squash) October 13, 2026 04:30
@max-sixty
max-sixty merged commit 252408a into main Oct 13, 2026
3 checks passed
@max-sixty
max-sixty deleted the page-state-names-the-reinit branch October 13, 2026 04:48
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