Repository navigation
fix: check the original assignment after child runs settle - #208391
Conversation
Co-authored-by: VACInc <[email protected]>
Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: 0383c719-8848-84a9-948c-964f8def2c57
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Co-authored-by: VACInc <[email protected]>
Worked on by: - @VACInc Co-authored-by: VACInc <[email protected]> OpenClaw-Publication: cf1e1730-2ec0-8685-b378-ed27a8d3b829
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Codex review: passed. What this changesExtend the bounded completion check to optional child-settlement turns and shorten the continuation instructions. Example: Child reviews find a deployment requiring approval and an independent repair that can proceed.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it addresses a current completion-check gap through the existing owner, and no actionable introduced defect was found. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherChild-settlement messages enter the embedded runner, whose terminal-delivery owner either publishes the answer or queues one follow-up using the current transcript and results. flowchart TD
A[Child results] --> B[Requester settlement message]
B --> C[Embedded session loop]
C --> D[Terminal completion check]
D --> E[Same-turn follow-up]
E --> C
D --> F[Reply delivery]
Technical reviewBest possible solution: Keep the one-shot settlement check in the existing terminal owner while preserving delivery, cancellation, and handoff guards. Do we have a high-confidence way to reproduce the issue? Current main excludes optional settlement turns from completion checking, and the added session-loop case directly exercises that path; real-model premature stopping was not independently reproduced. Is this the best way to solve the issue? The eligibility change is a focused extension of the existing mechanism without replay or new state; model compliance with the shortened reminder remains less certain than the runner control flow. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e36ee79bf2df. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +4, Tests +33. Total +37 across 5 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed November 29, 2026, 11:02 AM ET / 16:02 UTC (Revision 2). |
Co-authored-by: VACInc <[email protected]>
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
#208469) ## What Problem This Solves Since b1f5380 (#208391, "check the original assignment after child runs settle"), scheduled CI on main has been red in `checks-node-compact-large` and `checks-node-compact-small`. The same change also breaks child-result e2e scripts that the scheduled lanes do not run. After a parent's final reply to a child result, the run publishes that reply. It then sends the model one hidden completion check: "Continue unfinished work from the current results. If nothing can advance, don't repeat the status." The scripted model servers in these tests count every request as a new delivery or script step, so each now sees one extra request: | test | failure on main | |---|---| | `server.subagent-stop-followup.product` | delivered 2 instead of 1; continuations 2 instead of 1 (7 cases) | | `server.subagent-live-requester-expiry.product` | completion calls 2 instead of 1; wait timeout (2 cases) | | `chat-goal-created-authority.e2e` | Goal script off by one call | | `subagent-requester-owner.e2e` | completion responses 2 instead of 1 (2 cases) | | `chat-goal-created-yield.e2e` | Goal script off by one call | `server.goal-child-authority.product` had the same cause. It is already fixed on main by #208478, so this PR keeps main's version. ## User Impact No product change. These tests turn green again on main and keep proving: - exactly one delivery for a retired source; - one continuation per resolved cohort; - a child kept behind a live requester; - Goal authority across role loss; - one completion per requester. ## Why This Change Was Made The completion check is intended behavior of #208391; the test scripts were stale. - A shared helper, `isCompletionCheckRequest`, recognizes a request whose newest input is the check. - Each script answers that request with `NO_REPLY`, the way a model with nothing left to advance would. #208478 uses the same model answer. Echoing the previous final was tried first. The Goal product test then recorded the requester's final twice, because the run publishes the first final before the check. ## Evidence - Bisect for the scheduled red (run 46283967087): the product files pass at b1f5380~1 (15/15) and fail at b1f5380 (10 failed). Main at a2bb4a6 fails the same 10. - PR CI found the two e2e scripts through the helper's importers; each failed the same way. - With this branch on current main: all 6 files pass locally (20/20 tests, including main's goal-child version). Co-authored-by: Ayaan Zaidi <[email protected]>
#208469) Since b1f5380 (#208391, "check the original assignment after child runs settle"), scheduled CI on main has been red in `checks-node-compact-large` and `checks-node-compact-small`. The same change also breaks child-result e2e scripts that the scheduled lanes do not run. After a parent's final reply to a child result, the run publishes that reply. It then sends the model one hidden completion check: "Continue unfinished work from the current results. If nothing can advance, don't repeat the status." The scripted model servers in these tests count every request as a new delivery or script step, so each now sees one extra request: | test | failure on main | |---|---| | `server.subagent-stop-followup.product` | delivered 2 instead of 1; continuations 2 instead of 1 (7 cases) | | `server.subagent-live-requester-expiry.product` | completion calls 2 instead of 1; wait timeout (2 cases) | | `chat-goal-created-authority.e2e` | Goal script off by one call | | `subagent-requester-owner.e2e` | completion responses 2 instead of 1 (2 cases) | | `chat-goal-created-yield.e2e` | Goal script off by one call | `server.goal-child-authority.product` had the same cause. It is already fixed on main by #208478, so this PR keeps main's version. No product change. These tests turn green again on main and keep proving: - exactly one delivery for a retired source; - one continuation per resolved cohort; - a child kept behind a live requester; - Goal authority across role loss; - one completion per requester. The completion check is intended behavior of #208391; the test scripts were stale. - A shared helper, `isCompletionCheckRequest`, recognizes a request whose newest input is the check. - Each script answers that request with `NO_REPLY`, the way a model with nothing left to advance would. #208478 uses the same model answer. Echoing the previous final was tried first. The Goal product test then recorded the requester's final twice, because the run publishes the first final before the check. - Bisect for the scheduled red (run 46283967087): the product files pass at b1f5380~1 (15/15) and fail at b1f5380 (10 failed). Main at a2bb4a6 fails the same 10. - PR CI found the two e2e scripts through the helper's importers; each failed the same way. - With this branch on current main: all 6 files pass locally (20/20 tests, including main's goal-child version). Co-authored-by: Ayaan Zaidi <[email protected]> (cherry picked from commit f0ec484) Co-authored-by: RomneyDa <[email protected]>
#208469) Since b1f5380 (#208391, "check the original assignment after child runs settle"), scheduled CI on main has been red in `checks-node-compact-large` and `checks-node-compact-small`. The same change also breaks child-result e2e scripts that the scheduled lanes do not run. After a parent's final reply to a child result, the run publishes that reply. It then sends the model one hidden completion check: "Continue unfinished work from the current results. If nothing can advance, don't repeat the status." The scripted model servers in these tests count every request as a new delivery or script step, so each now sees one extra request: | test | failure on main | |---|---| | `server.subagent-stop-followup.product` | delivered 2 instead of 1; continuations 2 instead of 1 (7 cases) | | `server.subagent-live-requester-expiry.product` | completion calls 2 instead of 1; wait timeout (2 cases) | | `chat-goal-created-authority.e2e` | Goal script off by one call | | `subagent-requester-owner.e2e` | completion responses 2 instead of 1 (2 cases) | | `chat-goal-created-yield.e2e` | Goal script off by one call | `server.goal-child-authority.product` had the same cause. It is already fixed on main by #208478, so this PR keeps main's version. No product change. These tests turn green again on main and keep proving: - exactly one delivery for a retired source; - one continuation per resolved cohort; - a child kept behind a live requester; - Goal authority across role loss; - one completion per requester. The completion check is intended behavior of #208391; the test scripts were stale. - A shared helper, `isCompletionCheckRequest`, recognizes a request whose newest input is the check. - Each script answers that request with `NO_REPLY`, the way a model with nothing left to advance would. #208478 uses the same model answer. Echoing the previous final was tried first. The Goal product test then recorded the requester's final twice, because the run publishes the first final before the check. - Bisect for the scheduled red (run 46283967087): the product files pass at b1f5380~1 (15/15) and fail at b1f5380 (10 failed). Main at a2bb4a6 fails the same 10. - PR CI found the two e2e scripts through the helper's importers; each failed the same way. - With this branch on current main: all 6 files pass locally (20/20 tests, including main's goal-child version). Co-authored-by: Ayaan Zaidi <[email protected]> (cherry picked from commit f0ec484) Follow-up audit: No later same-path, PR-number or SHA references through be407a4. Release adaptation: Keep the stable authority fixture helpers and skip the upstream-only live-requester-expiry product test; tolerate an empty model input in the shared predicate. Co-authored-by: RomneyDa <[email protected]>
openclaw#208469) ## What Problem This Solves Since 5c70bf5 (openclaw#208391, "check the original assignment after child runs settle"), scheduled CI on main has been red in `checks-node-compact-large` and `checks-node-compact-small`. The same change also breaks child-result e2e scripts that the scheduled lanes do not run. After a parent's final reply to a child result, the run publishes that reply. It then sends the model one hidden completion check: "Continue unfinished work from the current results. If nothing can advance, don't repeat the status." The scripted model servers in these tests count every request as a new delivery or script step, so each now sees one extra request: | test | failure on main | |---|---| | `server.subagent-stop-followup.product` | delivered 2 instead of 1; continuations 2 instead of 1 (7 cases) | | `server.subagent-live-requester-expiry.product` | completion calls 2 instead of 1; wait timeout (2 cases) | | `chat-goal-created-authority.e2e` | Goal script off by one call | | `subagent-requester-owner.e2e` | completion responses 2 instead of 1 (2 cases) | | `chat-goal-created-yield.e2e` | Goal script off by one call | `server.goal-child-authority.product` had the same cause. It is already fixed on main by openclaw#208478, so this PR keeps main's version. ## User Impact No product change. These tests turn green again on main and keep proving: - exactly one delivery for a retired source; - one continuation per resolved cohort; - a child kept behind a live requester; - Goal authority across role loss; - one completion per requester. ## Why This Change Was Made The completion check is intended behavior of openclaw#208391; the test scripts were stale. - A shared helper, `isCompletionCheckRequest`, recognizes a request whose newest input is the check. - Each script answers that request with `NO_REPLY`, the way a model with nothing left to advance would. openclaw#208478 uses the same model answer. Echoing the previous final was tried first. The Goal product test then recorded the requester's final twice, because the run publishes the first final before the check. ## Evidence - Bisect for the scheduled red (run 46283967087): the product files pass at 5c70bf5~1 (15/15) and fail at 5c70bf5 (10 failed). Main at d6ba225 fails the same 10. - PR CI found the two e2e scripts through the helper's importers; each failed the same way. - With this branch on current main: all 6 files pass locally (20/20 tests, including main's goal-child version). Co-authored-by: Ayaan Zaidi <[email protected]>
What Problem This Solves
A parent can receive all child reviews and report them finished even when the assignment still calls for a repair. Optional reply delivery bypassed the built-in completion check on settlement turns.
User Impact
A parent producing a visible settlement report gets one opportunity to act on remaining work without another user message. Optional silence and already delivered replies remain unchanged.
Why This Change Was Made
Reuse the existing same-turn check on child batch settlement, independent of whether a reply is required. Shorten the settlement instruction and reminder. No new Goal or permission is required.
Evidence
All 17 terminal-loop tests passed locally. The scripted settlement case performs a remaining repair despite optional reply delivery and no saved plan. This is a runner-level test, not a live model evaluation.
CI caught a steering test fixture that returned “Correction applied” on every second model call, even when the model never received a correction. The fixture now answers from the actual model input. Both gateway cases passed locally (64 seconds): a browser correction reaches the browser-owned command, but not the system-owned command. Targeted lint, type checking and formatting passed.
Contributor: @VACInc
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by