Repository navigation
test: keep child-result test scripts in step with the completion check - #208469
Conversation
… scripts - b1f5380 adds a completion check after a child-settle reply; scripted models counted it as a new delivery or script step - the scripts now answer that check silently, as a model with nothing left to advance
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. |
|
Codex review: passed. What this changesThis PR teaches three Gateway product-test model scripts to answer hidden completion checks with NO_REPLY. Example: A requester receives the child result “archive A contains invoice 42” and then gets a hidden completion check.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it repairs confirmed stale model fixtures while preserving their delivery and authority assertions, with no introduced defect found; required CI remains red. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherGateway product tests drive real agent and delivery owners through scripted Responses HTTP servers; these fixtures translate model requests into deterministic tool calls and replies. flowchart TD
A[Gateway product test] --> B[Agent and child execution]
B --> C[Responses HTTP request]
C --> D[Scripted model server]
D --> E[Newest input classifier]
E --> F[Normal scenario response]
E --> G[Silent completion response]
Technical reviewBest possible solution: Keep the shared newest-input classifier and silent fixture responses while retaining the existing production owners and behavioral assertions. Do we have a high-confidence way to reproduce the issue? Main CI annotations corroborate the stale-script failures, and current source shows the extra completion request; no target code was executed during this read-only review. Is this the best way to solve the issue? The focused fixture repair distinguishes the newest completion reminder from a genuine later delivery without weakening the existing assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against fe6f92169f52. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +34. Total +34 across 4 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:
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 Reviewed November 29, 2026, 1:16 PM ET / 18:16 UTC. |
|
Maintainer override: The only failing test is |
|
Landed in f0ec484.
|
#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]>
(cherry picked from commit 9f35510) Companion audit: #203222 fixes yield settlement after cleanup, #203176 wake scheduling, #203839 restart fixtures, #208469 newer perf harness; remaining same-path commits change orchestration or history delivery and are not inputs to stable expiry ownership. Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: VACInc <[email protected]> (cherry picked from commit e7c6ead) Companion audit: b1f5380 is already present as c560855. Its #208469 fixture follow-up f0ec484 is already present as 317703a. #208478 (75c3d05) covers separate pre-existing child-handoff scripts, not direct-user tool completion. #208098 (871c188) extracts the unchanged user-tool condition for Knowledge scribe work; that refactor is not needed here. Release adaptation: Keep the existing steering-admission checks in a compact equivalent form to stay within stable’s 700-line lint budget. 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
Since b1f5380 (#208391, "check the original assignment after child runs settle"), scheduled CI on main has been red in
checks-node-compact-largeandchecks-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:
server.subagent-stop-followup.productserver.subagent-live-requester-expiry.productchat-goal-created-authority.e2esubagent-requester-owner.e2echat-goal-created-yield.e2eserver.goal-child-authority.producthad 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:
Why This Change Was Made
The completion check is intended behavior of #208391; the test scripts were stale.
isCompletionCheckRequest, recognizes a request whose newest input is the check.NO_REPLY, the way a model with nothing left to advance would. fix: exercise the parent’s final check in child-handoff tests #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