Repository navigation
fix(core): bound delivery history and recover expired cursors - #452
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e0f4aa8f5c
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review Fixed both findings in 421ba80. Interrupted recovery retains its forced status (regression returned 6 before the fix; now 130). Goal-owned ToolApprovalEscalated events now supply the unattended deny after reviewer handoff/timeout; ownership remains checked by the core. Regression previously waited past its liveness deadline. All 32 related tests, strict Clippy, and 11 real-binary smokes pass. Also corrected the CI race: a replacement goal may admit its own run after the old family settles; assertions now verify that identity rather than forbidding replacement work. |
|
Codex Review: Didn't find any major issues. You're on a roll. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review Please review final head f2a7250. CI exposed a real clear/replacement cleanup race: the live goal identity disappears before cancelled paid work has settled. The adapter now drains the exact historical goal’s already-cancelled family through a read-only core query before reporting the identity change, and does not cancel replacement work. This failed in CI and one of ten local repetitions before the fix; ten repetitions, all 32 related tests, strict Clippy, lint (69/69), and 11 real-binary smokes pass after it. Earlier interrupt and delegated-approval fixes are retained. |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Delivery replay now retains at most 65,536 events and 64 MiB of encoded event payloads globally. Expired cursors request a fresh snapshot; pending questions, original approval previews and completed results survive reconnects. Headless runs and goals recover without resubmitting work, preserve interrupted exit 130, and supply the unattended answer when a reviewer escalates. Clearing or replacing a goal drains only its already-cancelled historical family before the old invocation returns. JSONL outcomes expose recovered replies to Harbor without inventing another model call. Protocol 39 / schema 63.
Fourth PR in the stack, based on #449. Freed SQLite pages are reused; retained conversations and artifacts still consume storage. Reply reconstruction is bounded to 64 MiB / 4,096 text messages and fails closed on ambiguous historical channel ordering.
Verified: current-head CI and website checks pass; Codex review is clean. Regression tests cover retention/migration, transactional rollback, canonical-state preservation, approval scope, SSE resets, reply ordering and recovery with exactly one provider request. The goal-clear race failed before the fix; ten repetitions and all 32 related CLI tests pass after it. Strict Clippy, lint (69/69 existing sleeps), 70 protocol tests, 21 pinned Harbor tests and all 11 binary smoke scenarios pass. Evidence: target/qq-verify/journal-window/evidence/.