Skip to content

fix(protocol): preserve replay blocks and terminal overflow errors - #3832

Merged
lidge-jun merged 6 commits into
devfrom
codex/axis3-protocol-combined
Sep 6, 2026
Merged

fix(protocol): preserve replay blocks and terminal overflow errors#3832
lidge-jun merged 6 commits into
devfrom
codex/axis3-protocol-combined

Conversation

@lidge-jun

@lidge-jun lidge-jun commented Sep 6, 2026

Copy link
Copy Markdown
Owner

Summary

Verification

  • Final combined Cross-platform CI: 25 jobs succeeded at 9b5b670db3e24ae5522c5d61e74c071c71257a26, including Linux, macOS and Windows.
  • Same-head remote Linux Bun 1.4.0 full suite: 20,897 pass / 18 skip / 0 fail with bun run test -- --parallel=1; typecheck, privacy scan and documentation build passed. Focused regressions: 405 pass / 1 skip / 0 fail.
  • After dev advanced to b65b9d8f2, integration candidate cc6afe2c97fb423363e99682b906bcb529478688 passed remote typecheck and 633 tests / 1 skip / 0 failures across 15 relevant files. Expected landing tree: ccaf0a0383cb3e8808e24576271c861625b506fb. This is renewed integration evidence, not a claim of full CI at that integration SHA.
  • Independent Astra high source/security and integration reviews passed. Earlier test-oracle mistakes were corrected; the earlier remote parallel catalog timeouts were absent in the final sequential run and GitHub coverage, with no claimed root-cause fix.
  • The maintainer explicitly directed no local suites, --no-verify pushes, combined-first validation and admin merge. Lower-layer automatic CI was cancelled rather than misreported as passing; the final combined results above are the shared evidence.

Checklist

  • Scope stays focused and avoids unrelated cleanup.
  • Docs or release notes were updated when needed.
  • Security-sensitive changes were reviewed for secrets, auth, and unsafe defaults.

lidge-jun and others added 4 commits September 7, 2026 07:39
Add one synthetic complete send_message_to_thread envelope after a real tool pair. Cover ordinary responses, stored-ID continuation, v2 compaction_trigger and v1 compact; assert upstream content, order and pairing plus compact output contracts.

Coverage motivated by issue #3807 reports from @DaveW001 and @stephen-drew, using the narrowed envelope contract documented in #3735. These are synthetic fixtures, not captured reporter requests; no original source patch is copied.

Validation: git diff --check passed. Tests, typecheck and build NOT RUN by explicit instruction. Production code and missing-call-id guards are unchanged.
Preserve empty signed and redacted-only replay items, keep signature updates within their source thinking block, and emit opaque blocks in order. Retain hidden-summary policy and document deferred Claude hidden-text replay and live/cache claims. Add exact-array synthetic round-trip coverage; local tests and typecheck intentionally not run, pending parent combined remote CI.

Co-authored-by: SB Yoon <44089734+yansigit@users.noreply.github.com>
Co-authored-by: Yumi <automation@sbyoon.com>
Distinguish termination entry from terminal delivery so closure-time overflow can release thinking and emit the bounded error without retrying closure. Prioritize collected errors over unfinished block serialization. Add eight real-budget closure-only overflow cases for EOF, failure, completion and incomplete terminals, including shared-budget collection. Tests and typecheck intentionally not run; parent owns final combined remote CI.

Co-authored-by: SB Yoon <44089734+yansigit@users.noreply.github.com>
Co-authored-by: Yumi <automation@sbyoon.com>
@coderabbitai

coderabbitai Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

lidge-jun and others added 2 commits September 7, 2026 08:00
Combined Linux CI at c721b94 reported six messages where the seed fixtures expected five. Non-OpenAI chat translation prepends system tool-catalog guidance while compaction removes context.tools first. Explicitly require one system prefix advertising read_value on ordinary and stored-ID turns, and none on compact turns. Keep exact total length, ordered history content, original tool pairing and compact output assertions.

Follow-up to synthetic #3807 coverage motivated by @DaveW001 and @stephen-drew; no original source patch copied. Source-only review and git diff --check passed. Local tests, typecheck and build NOT RUN by instruction.
Match the canonical user string observed at parent combined head c721b94 while preserving exact assistant block arrays. Capture closure-overflow output before collecting under the same unreset budget, separating concurrent ingestion pressure from closure-only failure. Assert all text, one bounded error, no success terminal, exact 32768-byte overflow boundary and no second overflow. No local tests or typecheck run.

Co-authored-by: SB Yoon <44089734+yansigit@users.noreply.github.com>
Co-authored-by: Yumi <automation@sbyoon.com>
@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Deterministic PR hygiene checks passed.

@github-actions github-actions Bot added the bug Something isn't working label Sep 6, 2026
Base automatically changed from codex/axis3-grok-control-frames to dev September 6, 2026 23:48
@lidge-jun
lidge-jun marked this pull request as ready for review September 6, 2026 23:48
@lidge-jun
lidge-jun requested a review from Ingwannu as a code owner September 6, 2026 23:48
@lidge-jun
lidge-jun merged commit 4349cf3 into dev Sep 6, 2026
34 of 48 checks passed
@lidge-jun
lidge-jun deleted the codex/axis3-protocol-combined branch September 6, 2026 23:49
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 6, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-06T23:50:29.093733Z 9b5b670 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant