Repository navigation
fix(actions): agents can recover interrupted continuations - #779
Conversation
4184e0a to
ae186c0
Compare
Inspect delivery in memory before releasing the Action mutex so an extra retained-state read cannot prevent rollback. Cover unavailable reads during a busy resume in the existing recovery table. Carry-Group: incubator Carry-Fix: #779
Codex Review Summary: ✅ CompletedThis 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. |
|
@codex review |
|
Codex Review: Didn't find any major issues. Hooray! 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". |
c356191 to
7941d62
Compare
Inspect delivery in memory before releasing the Action mutex so an extra retained-state read cannot prevent rollback. Cover unavailable reads during a busy resume in the existing recovery table. Carry-Group: incubator Carry-Fix: #779
|
@codex review |
|
Codex Review: Didn't find any major issues. Hooray! 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". |
7941d62 to
ac93d32
Compare
Inspect delivery in memory before releasing the Action mutex so an extra retained-state read cannot prevent rollback. Cover unavailable reads during a busy resume in the existing recovery table. Carry-Group: incubator Carry-Fix: #779
|
@codex review |
|
Codex Review: Didn't find any major issues. 👍 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". |
ac93d32 to
37b4a6f
Compare
Inspect delivery in memory before releasing the Action mutex so an extra retained-state read cannot prevent rollback. Cover unavailable reads during a busy resume in the existing recovery table. Carry-Group: incubator Carry-Fix: #779
|
@codex review |
|
Codex Review: Didn't find any major issues. 🎉 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". |
Inspect delivery in memory before releasing the Action mutex so an extra retained-state read cannot prevent rollback. Cover unavailable reads during a busy resume in the existing recovery table. Carry-Group: incubator Carry-Fix: #779
37b4a6f to
157ebb9
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. Delightful! 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". |
3d386d7 to
79923ec
Compare
Expose caller-scoped resume and discard tools over the existing Action service, explain recovery in blocked-launch messages, and refuse resume when ownership disposal prevents delivery. Carry-Group: incubator Carry-Fix: #681 Carry-Observation: Recovery depends on the current child Action ownership lifecycle and model-eval fixtures added by Incubator. Keep this coupled behavior and its proof in Incubator so replay follows those implementations.
Inspect delivery in memory before releasing the Action mutex so an extra retained-state read cannot prevent rollback. Cover unavailable reads during a busy resume in the existing recovery table. Carry-Group: incubator Carry-Fix: #779
157ebb9 to
23ecb66
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. 🎉 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". |
|
Full MCP model-eval coverage is complete for
Same-model, same-effort baseline comparison on
The two failing controls fail by majority on both revisions, with the same failed checks. The full run's other failures concern pre-existing preview, native-agent, file-link, snippet, secret and thread-routing expectations. Their relevant source and fixtures are outside this PR's changes. They do not block the recovery fix. The focused xhigh before/after proof remains recovery 0/6 → 6/6, ordinary-work control 3/3 → 3/3. Backend and authorization proof is separate: all 65 ActionResume tests and the 75-test scoped pre-push gate passed. The full eval uses authored fake threads and simulated tool replies; it does not establish installed-app or device acceptance. No local Full CI, simulator QA or real-data validation was run. Refs #681; automatic lost-process notification remains open. |
|
Local-review follow-ups filed: F2 → #801, F3 → #802, F4 → #803, F5 → #804, F6 → #805. Not filed: F1 (keep the conservative |
Problem
When an Action's process is lost (for example, an environment restart), its retained follow-up stays open and every saved Action in that thread is blocked. The composer has Resume agent and Discard buttons for this, but agents had no tool for it. An agent in that state could only report that it was stuck. Refs #681.
What changed
resume_interrupted_actionanddiscard_interrupted_action. Both take no arguments and call the existingActionResumeservice methods (resumeInterrupted,discardInterrupted).list_project_actionsreason and theaction_already_runninglaunch refusal now name the composer Resume agent / Discard and both tools. Thelist_project_actionstool description mentions both tools too.docs/internals/resumable-project-actions-setup.md, "An interrupted Action blocks new launches", linked from the existing disabled-listing troubleshooting entry.evals/mcp-tool-use/cases/action-resume.ndjson: resume, discard then start a different Action, and an ordinary-work control.What stays the same
inspect_action_runstill shows the retained output and the lost outcome (process_lost).Not covered
Context budget
The two recovery tools previously measured a 1505-byte catalog increase. CI now measures the proposed merge against its exact base; the
agent-context-increaselabel is on the PR. This PR leaves the tracked budget snapshot unchanged for checkpoint regeneration.Validation
Regression tests: the missing-tool regressions failed on base.
ActionResumesuite: 65 passed on the fix, including an owner-ended recovery case that failed before the review fix.vp run check:changed origin/lastcode/main: passed format, lint, knip, GraphQL and typecheck of 3 packages, plus 75 tests in 3 files.Focused model evals (3 cases × 3 samples, gpt-6.1-sol at xhigh; tool replies are simulated):
Full MCP model eval: completed on
23ecb669431114b7001ff40d10db8f0223727280with GPT-6.1 Sol at high effort and GPT-6.1 Terra as shell simulator. All 328 cases ran in 82 shards: 669 samples, 616 passed, 53 failed, 0 errored; 306 cases passed and 22 failed by majority. The three added recovery/control cases passed 6/6, and no other case called either recovery tool. The failures concern existing workflow, preview, native-agent and routing expectations. The closest Action ownership and background-wait failures also fail by majority on base with the same checks; the ordinary Action-launch control passes 2/2 on both. No full-suite pass is claimed.Local review: finished with no blocker or should-level findings in the final round. Opus approved; Terra's two pre-existing persistence nits were moved to follow-ups.
Checkpoint replay: exact same-base compiled tree passed at
25120a5c9afdb03061fc62768188e3085ce6155a..c35619135a6763d5630a84c3e66fcd3342ad6bf5. The source commit stays in Incubator because its child-ownership lifecycle and eval fixtures arrive there.Local Quick CI: two optional attempts were blocked by base advancement; no local Quick CI pass is claimed. Exact-head GitHub CI and Codex review remain required.
Local review: 3 rounds with GPT-6.1 Terra (xhigh) and Claude Opus 5.5 (high), approved.
The six reviewed source, test, doc and eval files are byte-for-byte unchanged after replaying only this PR's two commits onto checkpoint base
79923ec1bac55be01b61588a09424021b093771e. The budget snapshot matches the base, following #784. The scoped pre-push check passed on this head with 75 tests.Nonblocking follow-ups from local review:
Implemented with GPT-6.1 Sol (xhigh) through the Codex harness; recovery wording by Claude Opus 5.5.