Repository navigation
Test and document page state's report of a page this Leaf can't serve - #2734
Merged
Merged
Conversation
`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
enabled auto-merge (squash)
October 13, 2026 04:30
leaf-agent
approved these changes
Oct 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#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 asx-question-context), sopage statereportssource.live: falsewith the refusal, namingleaf page init, insource.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_servecovers both kinds and runspage statein a fresh process, since in-process a cached revision hides the retired-key case.authoring-revisions.md: wheresource.errornamesleaf page init, run it and read the state again before trusting the rest of the reading.serving-pages.md,page-storage.mdand theincompatible_layerandagent_statedocstrings list the state reading among the places that report the refusal.