Skip to content

Refuse a snapshot of a revision saved before a protocol bump - #3870

Merged
max-sixty merged 1 commit into
mainfrom
fix/2415-snapshot-foreign-revision
Oct 25, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/2415-snapshot-foreign-revision

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

leaf page picture on a drawing made on a revision saved before a protocol bump now refuses with that revision's own foreign-revision words ("Revision 1 was saved at page protocol 22, and this Leaf speaks protocol 23…"), the words its address gets from a page server. So does leaf page export of a version stamped on such a revision, which before wrote the file without complaint.

The triage expected page picture to time out on the server's 409. Reproducing it showed something else: the preview server refused before it bound, with the page's foreign-layer words, "Update the page's Leaf runtime with leaf page init". The page had already been re-vendored, so an agent following that advice would re-vendor again and get the same refusal. The cause is in http.page_endpoint, which judged a snapshot by asking incompatible_layer of the frozen revision's registry, as if that registry were the page's layer. Export never asked at all.

Every snapshot reader (the render gate's preview server behind page picture and page check --render, export, and the website's captures) runs this Leaf's runtime against the revision the snapshot froze. So capture_page_snapshot now asks incompatible_revision of the revision it selects and raises the refusal, and page_endpoint no longer checks a snapshot, since its capture already did. That fixes picture and export in one place rather than in preview_server alone, as the triage proposed.

Behavior change: test_a_revision_saved_before_a_re_vendor_neither_opens_nor_takes_input now also asserts that page picture and page export on the older revision fail with the foreign-revision words and write nothing. Before the fix, picture gave the foreign-layer advice and export exited 0.

Refs #2415

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

capture_page_snapshot now refuses a selected revision this Leaf cannot
serve (incompatible_revision), so page picture and page export on such a
revision say "Revision N was saved at page protocol X". Before, picture's
preview server refused with the page's foreign-layer advice to re-vendor,
which the page had already had, and export wrote the file anyway.
page_endpoint no longer judges a snapshot, since its capture did.

Behavior change: the re-vendor revision test also asserts picture and
export refuse on the older revision.

Refs #2415

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit 5cc6166 into main Oct 25, 2026
3 checks passed
@max-sixty
max-sixty deleted the fix/2415-snapshot-foreign-revision branch October 25, 2026 04:03
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