Skip to content

Commit explicit addressed replies immediately - #2085

Merged
max-sixty merged 2 commits into
mainfrom
codex/prose-review
Oct 8, 2026
Merged

max-sixty merged 2 commits into
mainfrom
codex/prose-review

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

An explicit rich reply could succeed as state: prepared, then be discarded when the provider's later final encountered invalid page edits. The refusal arrived after the agent's turn had finished. Explicit addressed replies now validate and commit immediately; the provider final yields to the successful answer already recorded for that exact input.

Remove deferred author content and its persisted sub-schema, duplicate title validation, and the separate reply lifecycle wrapper. App Server owns its streaming lifecycle; thread admission remains the shared durable writer. Reuse response readings during capture and share exact-target completion checks during recovery. Ownership checks, author retry identity, rich content, anchors, and failure reservations retain their existing guarantees. Python source shrinks by about 210 lines, including comments.

Validation covers focused rich reply, refusal-and-repair, ownership, retry, stream, interruption, reconnect, history recovery, and website lifecycle cases; reviewed delivery-instruction snapshots; pinned pre-commit hooks; both real Codex transports; and base/candidate instruction probes. The probes preserve the intended behavior in both arms and do not establish a reliability improvement.

This was written by Codex on behalf of max-sixty

Validate and publish complete authored replies in their command transaction. Provider finals yield to successful exact-input answers, so later edits or interruption cannot discard a reply already accepted. Remove deferred author content and its persisted schema, consolidate App Server stream ownership, and share capture and recovery readings. Keep provider reservations for competing finals and failure receipts.
leaf-agent
leaf-agent previously approved these changes Oct 8, 2026

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test check is red on two deterministic expectations this change leaves behind. test_agent_interaction_command_help still records the removed deferred reply behavior; its snapshot needs the new immediate commit help text. In test_a_write_prints_the_records_it_appended, the invalid --title on thread reply is now refused by the reply event's admission gate, so the assertion that the error names thread_title fails. The command still refuses the event without appending it; update that assertion to match the owning validation boundary. Both failures reproduce locally with the two test node IDs.

@leaf-agent
leaf-agent dismissed their stale review October 8, 2026 17:23

CI failed: the reply help snapshot and title-refusal assertion still expect the old behavior.

@max-sixty
max-sixty merged commit d2020d0 into main Oct 8, 2026
6 checks passed
@max-sixty
max-sixty deleted the codex/prose-review branch October 8, 2026 18:01
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