Skip to content

test: keep child-result test scripts in step with the completion check - #208469

Merged
obviyus merged 8 commits into
mainfrom
fix/hourly-46283967087
Nov 29, 2026
Merged

obviyus merged 8 commits into
mainfrom
fix/hourly-46283967087

Conversation

@obviyus

@obviyus obviyus commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator

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.

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).

… 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
@clawsweeper

clawsweeper Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: XS labels Nov 29, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 29, 2026
@clawsweeper

clawsweeper Bot commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

This 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.

  • Before: The script treats the check as another delivery and counts two completion calls.
  • After: The script answers NO_REPLY and retains one counted child-result delivery.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused and useful fixture repair supported by source inspection, main failure annotations, and reported harness results; broad exact-head CI is not green.
Proof confidence 🦐 gold shrimp (3/6) No user-visible production behavior changes; the body reports the affected Gateway tests passing with real HTTP transport and scripted model responses, without independent execution in this review.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Scheduled main CI fails because scripted models mistake hidden completion checks for new scenario steps.
Reason: The maintainer-authored repair restores useful regression coverage for intended production behavior without changing the product.

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: 79795787c0f69c5f26b78ae14d3d427bba9f98a4

Before merge

None.

Findings

None.

Agent review details

How this fits together

Gateway 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]
Loading

Technical review

Best 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

  • Goal child-handoff script keeps the original intent (d79b0a4: Prove that admitted Goals resume after child settlement while retaining scoped authority and the original reply recipient.)
  • Live-requester expiry script keeps the original intent (9f35510: Prove that completed child results remain behind their live requester and deliver once after it ends or yields.)
  • Stop and follow-up scripts keeps the original intent (36e277d: Exercise session-controller ownership of Stop, queued work, and child-result settlement through Gateway tools.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 9f35510 adds src/gateway/server.subagent-live-requester-expiry.product.test.ts:33 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 9f35510e10ec; files: src/gateway/server.subagent-live-requester-expiry.product.test.ts)
  • RoboClaw: Raw commit d79b0a4 adds src/gateway/server.goal-child-authority.product.test.ts:147 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: d79b0a4df0b2; files: src/gateway/server.goal-child-authority.product.test.ts)

PR surface

Tests +34. Total +34 across 4 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 4 37 3 +34
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 37 3 +34

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 29, 2026, 1:16 PM ET / 18:16 UTC.

@obviyus obviyus changed the title test: keep subagent product tests in step with the completion check after child results test: keep child-result test scripts in step with the completion check Nov 29, 2026
@obviyus

obviyus commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator Author

Maintainer override: checks-node-changed-5 and openclaw/ci-gate at head bfd6112.

The only failing test is src/gateway/server-templates-add-authority.e2e.test.ts ("expected 'gpt-6-luna' to be 'gpt-4.1'"). It also fails on main without this PR (main d692ddc: 2 of 3 cases fail locally). It started with #208493 and is tracked separately. This PR changes no Templates or automation code. The failing file only imports the shared test helper, which this PR extends with one new export.

@obviyus
obviyus merged commit f0ec484 into main Nov 29, 2026
132 of 136 checks passed
@obviyus
obviyus deleted the fix/hourly-46283967087 branch November 29, 2026 21:13
@obviyus

obviyus commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator Author

Landed in f0ec484.

  • Bug: fix: check the original assignment after child runs settle #208391 adds one hidden completion check after a parent's final reply to a child result. Six child-result test scripts counted that check as a new delivery or script step, so main CI went red (scheduled run 46283967087 and PR runs that select these tests).
  • Fix: a shared test helper recognizes the check request, and each script answers it silently (NO_REPLY), the way a model with nothing left to advance would. No product code changed. goal-child-authority keeps main's fix: exercise the parent’s final check in child-handoff tests #208478 version.
  • Proof: bisect red at b1f5380 and green at its parent; all 6 changed files pass locally; local review clean. The one remaining red, server-templates-add-authority.e2e, also fails on main without this PR and is tracked separately.

tideclaw-bot pushed a commit that referenced this pull request Nov 29, 2026
#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]>
tideclaw-bot pushed a commit that referenced this pull request Nov 30, 2026
#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]>
tideclaw-bot pushed a commit that referenced this pull request Nov 30, 2026
(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]>
tideclaw-bot pushed a commit that referenced this pull request Nov 30, 2026
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]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 30, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant