Skip to content

fix(core): recover scoped goal checks without replaying commands - #410

Merged
lg2m merged 3 commits into
feat/auto-goal-checkfrom
feat/auto-goal-recovery
Oct 22, 2026
Merged

lg2m merged 3 commits into
feat/auto-goal-checkfrom
feat/auto-goal-recovery

Conversation

@lg2m

@lg2m lg2m commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

Restarting QQ now reconnects to a scoped completion check and settles its original goal from the original worker journal. A running check keeps workspace exclusion and wakes on completion. Recovery preserves the invocation ID, goal revision, consumed consent and budgets without resubmitting commands or loading a provider.

Keep worker results until goal/run settlement commits, including a crash after the tool result was saved locally. Recovery commits the terminal result and goal together before acknowledgement. Cancellation, expiry and edited goals take precedence; replaced/unavailable workers, changed task roots and missing terminal evidence retain the interrupted-check hold.

Verification: crash-window regressions were reproduced before the fix; 47 focused tests passed. Workspace tests: 2,964 passed initially; five TUI tests affected by inherited NO_COLOR=1 all passed on targeted rerun with that variable removed (16 skipped). Workspace and minimal-provider clippy, doctests and all 223 minimal-provider tests passed. cargo xtask check was run once; its lint finding was fixed and the remaining components were run individually. Crash-window regressions fail before the fix. Coverage includes live observation, both saved-result states, cancellation, expired budgets, edited goals and unavailable/replaced authority. A real Linux command changes its task file once across coordinator loss. A reproduced filesystem-capacity stall is now bounded by the existing two-second recovery observation limit; the run releases ownership without acknowledging unverified evidence. All 12 affected recovery/preparation tests passed after this follow-up. Common recovery cases run in macOS/Windows CI.

Ninth layer after #409 in stack 403. Default Auto/task preparation and native macOS/Windows containment remain unfinished. The Linux fixture uses host resource scope; delegated-cgroup qualification remains in its existing native fixture.

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

chatgpt-codex-connector Bot commented Oct 22, 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-22T01:14:51.409539Z 0501457 Manual request
ℹ️ 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@lg2m
lg2m added this pull request to stack #403 October 22, 2026 00:58
@lg2m

lg2m commented Oct 22, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: 0501457b7e

ℹ️ 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".

@lg2m
lg2m merged commit 300b5a7 into main Oct 22, 2026
8 checks passed
@lg2m
lg2m deleted the feat/auto-goal-recovery branch October 22, 2026 01:30
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