Repository navigation
Remove duplicate reply evidence and redundant readers - #3364
Merged
Merged
Conversation
Keep provisional settlement evidence only on its workflow and derive successful-answer checks from successful_replies. Remove unused identity fields, the duplicate has_text check, and missing-field fallbacks on complete status records. Bump the served protocol to 15 for the smaller response shape.
leaf-agent
approved these changes
Oct 20, 2026
max-sixty
added a commit
that referenced
this pull request
Oct 21, 2026
…readers (#3397) The protocol check refused every served-state change that loosened its schema, such as a dropped field, a field made nullable or a raised maximum, whether or not any vendored runtime reads the field. Bump 15 (#3364) removed `Activity.reply` and `ReplyEvidence` fields that no runtime reads, and broke no page. Making the approval obligation's `prompt.target` nullable would force another bump, though `obligationPlace` (`runtime/obligations/place.js`) reads the target only for a widget's obligation. `protocolBreaks` now returns `refused` and `served`: - **Refused**, as before: what a page sends, the event records every Leaf at the number writes into a log and reads back (compared both ways), `$events.ownership`, and every `state.Record` and the draft. The browser's append door or a reading Leaf fails on each such change, so the build throws until the change keeps what it took or `$events.protocol` moves. - **Served**: a change to the served state, its `$defs` or the x-state verb, which only the page's runtime reads. The build names it and throws until the author either bumps (a runtime vendored at the number reads the field and would mishandle it) or runs `pnpm run build:browser --accept-served`. `layer-registry.md`, "Page protocol", states the criterion and how to check readers: in the runtime and packages, now and at every commit since the number was set (`git log -S`), naming the readers in the commit. Of the 14 bumps since 2026-10-11, 11 renamed or removed a served field an older runtime read, so they stay bumps under this rule. The rate of bumps comes from churn in the served shape rather than from loose criteria. Deriving the read set from TypeScript was tried and rejected: only 7 of 244 runtime files are `@ts-check` strict, and renaming obligation fields in `contract.d.ts` and running tsc flagged `place.js:35` but missed `place.js:30` and `view.js:573`. Behavior change: a served-state loosening no longer fails the build once the author accepts it. `build/browser/protocol.test.mjs` asserts each case lands in `refused` or `served`. > _This was written by Claude Code on behalf of max-sixty_ Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
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.
Reply settlement evidence was duplicated in page activity and individual workflows, with unused identity fields and a second text-completeness check. Keep the evidence on its workflow, remove the unused fields, and use the stream producer's existing complete, nonempty final-answer guarantee.
Use
successful_repliesdirectly instead of its boolean wrapper, remove repeated response-address validation, and read required status-reply fields directly. The smaller served shape bumps the protocol to 15. Net change: 40 fewer lines.Validation: 138 focused model tests, a final 50-test pass over the affected workflow/Stop/failure paths, three focused browser cases, 499 runtime tests,
pnpm run check, pre-commit, and both native Codex journeys (codex-app-serverandcodex-queue) passed.