Skip to content

Remove duplicate reply evidence and redundant readers - #3364

Merged
max-sixty merged 2 commits into
mainfrom
codex/align-reply-addresses
Oct 20, 2026
Merged

max-sixty merged 2 commits into
mainfrom
codex/align-reply-addresses

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

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_replies directly 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-server and codex-queue) passed.

This was written by Codex on behalf of max-sixty

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.
@max-sixty
max-sixty merged commit 009174e into main Oct 20, 2026
3 checks passed
@max-sixty
max-sixty deleted the codex/align-reply-addresses branch October 20, 2026 20:56
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]>
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