Skip to content

fix(runtime): recover terminal command results after restart - #393

Merged
lg2m merged 1 commit into
feat/agent-command-workerfrom
feat/native-result-reconciliation
Oct 21, 2026
Merged

lg2m merged 1 commit into
feat/agent-command-workerfrom
feat/native-result-reconciliation

Conversation

@lg2m

@lg2m lg2m commented Oct 21, 2026

Copy link
Copy Markdown
Collaborator

A coordinator crash could replace an already completed worker command with a generic interrupted result. Session startup now checks the originally bound journal for terminal observations before recovering interrupted model runs, retaining the actual result, process receipt and spill handle. Lost commands retain uncertainty and can be reclaimed after that evidence is saved; reconciliation never submits or replays a command.

Verified: 16 focused core recovery/execution/admission tests, nine private-worker/CLI tests, formatting, lint and core/binary Clippy. The Linux CLI regression kills the coordinator, lets its independent worker finish, reopens the original session and verifies the next model request receives the result with exactly one command execution. Disabling reconciliation makes that regression fail. Full checks run in CI.

Stacked on #389. The startup observation window is two seconds with bounded concurrency. Running or unavailable observations remain unacknowledged; active command reattachment and automatic task continuation are subsequent slices.

@lg2m lg2m added the ci:full label Oct 21, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 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-10-21T11:11:14.093165Z 62fbb8d PR opened
ℹ️ 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.

@lg2m
lg2m added this pull request to stack #392 October 21, 2026 11:10
@lg2m
lg2m merged commit 875e544 into main Oct 21, 2026
14 of 15 checks passed
@lg2m
lg2m deleted the feat/native-result-reconciliation branch October 21, 2026 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant