Skip to content

fix(subagents): wake requesters when children pause for continuation - #161114

Merged
steipete merged 9 commits into
mainfrom
steipete/yield-pause-wakes-requester
Sep 30, 2026
Merged

steipete merged 9 commits into
mainfrom
steipete/yield-pause-wakes-requester

Conversation

@steipete

@steipete steipete commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes a waiting requester remaining idle when its unfinished child calls sessions_yield with waitFor: "message" and needs a continuation.

User Impact

The requester receives one clearly identified pause notice containing the child session key, run ID, label and acknowledgment. It can continue that child with sessions_send; the later real completion still arrives normally. A later requester yield does not replay a consumed pause notice.

Acknowledgments are trimmed and bounded to 12,000 UTF-16 code units, matching announce completion delivery's retained-text limit. Missing text becomes Paused awaiting continuation. The existing prompt-data escaping treats acknowledgments as data. Cron, collector, A2A and the child's waitFor semantics remain unchanged.

Why This Change Was Made

An optional pauseNotice in the existing requester-wake JSON records the pending obligation. Existing requester-settle delivery owns queueing, retries, idempotency and authority checks. Notice consumption preserves the paused child and its completion cohort; continuation fences the old notice. The pause turn retains its authority independently of the later completion grant.

Final-effect proof exposed another defect: a captured requester dispatch could target a foreign session, lose its optional Cron admission, and still start a Gateway turn with the original operator authority. The existing requester authority owner now binds the actual run, session and source before input admission. Its captured live assertion also runs at the pending-input commit boundary. Successful operator-only admission consumes the transient dispatch without granting Cron management.

Upgrade/rollback: the additive optional durable field is explicitly approved. There is no DDL, new table, schema-version bump or migration. The published v2026.9.6 codec and normalizer loaded and round-tripped synthetic public and parent-only rows containing the field unchanged. Existing paused rows are not backfilled. A rolled-back runtime can ignore or consume the optional notice through its existing wake lifecycle; it does not provide the new pause-notification guarantee. Task and completion fields remain compatible.

Evidence

Final head: f467702291f8ca43512bfb362b99e326f9fee1e5. All 84 final focused cases and the live pause → requester wake → sessions.send continuation → one completion pass after the latest merge. Fresh independent P1 autoreview is scoped-clean (394.87 s wall), with no actionable P0/P1 findings. ClawSweeper revision 8 reviewed 2adbe8c136d69 as ready for maintainer review, with sufficient real-behavior proof and no code, security or before-merge findings. The final commit changes only the two CI test fixtures described below; production code, docs and snapshots are byte-identical to that reviewed head. Exact-head review and CI for the final test-fix commit are tracked separately; earlier passing live/production proof remains applicable to its identical production source. No merge or auto-merge is requested.

Final validation after merging main 9bb19442cebb Result Measured time
Gateway authority + requester authority + pause + persisted wake suites 4 + 33 + 5 + 42 cases passed 846.43 s wall combined
Live marker released after parent yield; pause/wake/continuation/completion 1 passed; 212.317 s test time 364.78 s wall
pnpm tsgo:core passed 30.39 s wall
Changed test graphs agents-root / agents-other / gateway-server passed 20.7 / 11.1 / 15.8 s per lane; command wall not separately recorded
Core-lane oxlint, all 33 touched TS files passed 69.69 s wall
pnpm prompt:snapshots:gen regenerated all 7 outputs 79.89 s wall
pnpm prompt:snapshots:check all 7 current 118.10 s wall
oxfmt and working/staged git diff --check passed formatter reported 0.849 s for auto-merged source/docs
node scripts/run-vitest.mjs src/gateway/server.requester-pause-authority.test.ts src/agents/subagents/requester-cron-authority.test.ts src/agents/subagents/announce/subagent-announce.requester-settle-pause.test.ts src/agents/subagents/completion/subagent-completion-admission.requester-wake.test.ts --maxWorkers=1
node scripts/run-tsgo-core-test-shards.mjs --changed-paths-json '<changed test paths>'
node scripts/run-oxlint.mjs --tsconfig config/tsconfig/oxlint.core.json <touched .ts files>

Gateway runner duration was 212.47 s and the other three suites together took 509.20 s; combined wall includes compiler preparation and cleanup. Broad check-changed was not run. No test was skipped, weakened or given a longer timeout for this change.

The second merge incorporated 9bb19442cebb121c1b066968f106a1e6886f6ad4 after main advanced during review. Only the three generated prompt snapshots conflicted; all seven were regenerated through their owner. The admission source auto-merge preserves both main's consolidated cleanup and the new target/input assertions. Main's terminal-cleanup persistence changes were retained and covered by the repeated completion and live proof. The lockfile was unchanged, so no reinstall was needed for this merge.

Integrated main 55bb2ccf0a08dd889fddafb7c5566155f19c45b3 with a merge commit; no rebase or force-push. The changed lockfile was installed with pnpm install --frozen-lockfile (16.3 s reported by pnpm).

Conflict resolutions preserve both behaviors:

  • subagent-announce.requester-settle-wake.ts: keep main's asynchronous descendant/source validation while allowing pause notices before sibling completion.
  • subagent-completion-mutation.kernel.ts: consume only the paused member's notice while preserving full-cohort completion checks and main's CAS/reconciliation.
  • subagent-registry-lifecycle-wake.ts: retain the asynchronous mutation/commit owner and pause-identity fencing.
  • subagent-registry-public-api.ts: await hydration and preserve caller/source fences around asynchronous pause publication.
  • subagent-registry-requester-yield.ts: retain main's initial-transfer stages, preserve the notice, and schedule only after release.
  • subagent-announce.requester-settle-dispatch.test.ts: retain both sets of imports and await main's asynchronous settle operations.
  • subagent-announce.requester-settle-fixture.test-support.ts: retain both fixture contracts and await the merged yield/settle owners.
  • subagent-registry.test.ts: preserve both recovery histories and await the asynchronous pause/restore operations.
  • requester-cron-authority.test.ts: preserve main's async handoff assertions and the pause-then-completion authority regression.
  • Three conflicting generated prompt snapshots were regenerated with the owning generator, together with the other four affected snapshots.

The original pause-wake regression failed against the original main baseline with the production change stashed (141.12 s wall):

node scripts/run-vitest.mjs src/agents/subagents/announce/subagent-announce.requester-settle-pause.test.ts --maxWorkers=1 -t 'wakes once for a paused child'
AssertionError: expected false to be true // Object.is equality
Expected: true
Received: false

The stronger foreign-requester regression failed against the integrated code before the final authority repair (133.19 s wall):

node scripts/run-vitest.mjs src/gateway/server.requester-pause-authority.test.ts --maxWorkers=1 -t 'foreign requester'
AssertionError: expected "startAgentRunExecution" to not be called at all, but actually been called 1 times

This test keeps the outer captured parent identity unchanged and changes the actual registered agent RPC target. The negative cases use the real Gateway handler, canonical caller admission and real SQLite stores; only provider execution is simulated. They observe no execution start, provider call, transcript change, pending input or accepted dedupe entry for a foreign target or requester reset during pending-input staging. The positive cases cover both an admin with Cron-management entitlement and an operator without that entitlement, after consuming the pause notice.

The allowed end-to-end flow is separately proven with a real isolated Gateway and live provider. The marker is released only to the child after the parent yields; the same child session then resumes through sessions.send and delivers exactly one completion. The supplied credential file is sourced only in that shell, and state starts in a fresh task-owned directory.

OPENCLAW_LIVE_SUBAGENT_STRESS=1 node --import ./scripts/tsx.mjs scripts/test-live.mts -- src/agents/subagents/announce/subagent-yield-pause.live.test.ts
phase: parent-accepted
phase: pause-woke-requester
phase: resumed-child-completed
Test Files  1 passed (1)
Tests       1 passed (1)

The first integrated live run passed in 371.912 s test time / 649.45 s wall. Final validation results are reported above.

Production LOC: +265 at the earlier review → +315 against integrated main (426 added / 111 removed, excluding tests and test helpers). The maintainer explicitly accepted the LOC exception; neutrality is no longer a gate. The added production code is limited to durable pause obligations, the existing delivery/authority owners, and the Gateway admission binding.

The integrated focused group ran the requester pause/wake/dispatch, authority, requester-wake/expired-receipt store, initial-transfer and yield-tool-owner suites: 61 infra cases passed; the agents group initially had 139 passes and eight fixture failures from a removed store-reader import (1021.93 s wall). Restoring that required import fixed the observer and replay assertions; the affected requester-wake suite then passed all 42 cases (487.35 s wall). No assertions were loosened. The sessions-yield-tool.test.ts suite passed 14 cases (26.65 s wall). These commands used node scripts/run-vitest.mjs <files> --maxWorkers=1.

The suite-level Gateway proof is necessary because scope predicates alone cannot establish denial before actual input persistence and execution. Compilation/import time dominates these runs on the shared host. No per-case Gateway boot, added timer, polling loop or timeout increase was introduced.

All test/tool runs used /private/tmp/oc-yp; autoreview used macOS-private temporary storage as required. The pnpm 12.6.0 host binary waited on a foreign-owned global store lock before live-test startup (448.33 s, stopped without touching the lock). The already-installed package.json-pinned pnpm 12.5.1 was then selected through the live wrapper's supported npm_execpath mechanism. No dependency, lock, guard, baseline or budget override was made.

Earlier attempts hit host compilation contention and a remote source-freeze stall; neither supplied passing proof, and their retained ownership state was left intact. Broad check-changed was omitted within the work-order budget. No CI workflow was dispatched or rerun for proof.

A final Gateway proof iteration passed allowed, operator-only and reset cases, and correctly rejected the foreign request, but its test join surfaced the expected tracked rejection before the no-effect assertions (692.46 s wall). The fixture now joins all tracked tasks with allSettled, verifies each rejected task contains the expected authority-denial error, and preserves every no-effect assertion. The optional-true fixture field was corrected at the same time. The interrupted broader user-turn attempt (793.67 s) reached no assertions and is not counted as passing proof.

CI on the preceding reviewed head b44100c4f2b10 failed; this is prior-head evidence, not a current-head CI result. Run 36657879815, job 109706343948 failed test/scripts/ci-changed-node-test-plan.source-owners.test.ts in the operator-authority helper owner case: expected [], received ["src/gateway/server.mcp-session-owner.test.ts"] (175 other tests passed). Fail-fast cancelled sibling coverage. The job checked out merge 58a0f36f onto main 750a5a8e7ffad3e8ff7f82a64da4fdc0c59d99ec. Main commit 53c39cdb7b071 (#154239) introduced that MCP test and its direct import of the operator-authority helper; the main proof inventory does not list it, and the owner expectation excludes it. The MCP test is absent from this PR head's own tree, and this PR changes none of the planner, expectation, inventory or helper inputs. This is source-based attribution to newer main; no main-only test rerun is claimed. No guard/test expectation was changed and no workflow was rerun. Dependency and security review both pass. ClawSweeper revision 6 subsequently accepted the proof with no code/security findings; a new review must bind the final merged head.

CI fixture repairs on the final commit: run 36660554500 on 2adbe8c136d69 failed two affected fixtures (jobs 109714486131 and 109714486238). These were not attributed to main. The registry restore override omitted the existing bindWakeMutation fixture binding, causing its synthetic memory-only row to reach real SQLite and correctly fail settlement; adding the binding preserves the original revoked-wake, paused-row and no-outcome assertions. The sessions.send fixture directly creates a legacy paused row without a notice: the cohort now stays pending without a completion retry until continuation, and actual completion dispatches immediately. The test requires that parked state and one immediate combined completion, retaining both result texts and full wake retirement. Obsolete timer/deadline machinery was removed; no production changes, broader mocks, timeout increases or guard/baseline edits were made.

The final two-file replay passed all 124 cases (8 sessions.send + 116 registry), including both CI failures, in 293.93 s wall:

node scripts/run-vitest.mjs src/gateway/server-methods/sessions.send-yield-resume.test.ts src/agents/subagents/registry/subagent-registry.test.ts --maxWorkers=1

Their changed type graphs passed in 124.87 s wall (lane times 4.0/5.7 s), core-lane lint passed in 90.80 s, oxfmt and working/staged diff checks passed, and fresh P1 review of the final test-only correction was scoped-clean (311.07 s). The first fixture replay exposed the remaining obsolete post-completion deadline expectation (412.39 s); the final replay requires delivery without advancing time or scheduling a synthetic sweep. New-head CI remains a separate gate; no passing CI result is claimed until it completes.

Final-head CI blocker: run 36662936238, preflight job 109721402966 failed before tests in Build CI manifest:

Error: Cannot find module '/home/runner/_work/openclaw/openclaw/.ci-harness/scripts/ci-build-manifest.mjs'
code: 'MODULE_NOT_FOUND'

The job used workflow/merge 606b22cd73cabc1906ef86d2e640b7b94fb47742 (merging this head into main 12253cc5192dd0f0219e61ba410f8206ecee6378). Main's 9d75a8fe87af5 (#161534) introduced the script invocation; the script exists in that main commit, but preflight's trusted-harness export list copies the actions, node setup and release-context/version helpers without the manifest script. This PR changes no workflow or script files. The work order forbids .github/guard changes, so this inherited harness defect is left to its owner; no bypass or workflow rerun was attempted. Current-head CI is blocked and its test jobs did not run. Final local pnpm tsgo:core also passed again (8.10 s wall).

Deliver one pending pause notice through the requester-settle owner while
preserving the child's completion cohort and the requester's authority.
Keep admitted pause turns authorized until their own scope closes, and
fence obsolete notices on continuation, reset, and cancellation.

Retain compatibility through an optional registry JSON field, update the
tool contract, and cover delivery, persistence, authority, and live resume.
@clawsweeper

clawsweeper Bot commented Sep 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. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation agents Agent runtime and tooling size: XL labels Sep 29, 2026
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 29, 2026
@clawsweeper

clawsweeper Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 30, 2026, 1:11 AM ET / 05:11 UTC (Revision 11).

ClawSweeper review

What this changes

The branch records a child’s pause notice, wakes its requesting agent with continuation details, binds the resulting Gateway turn to that requester, and updates documentation and tests.

Merge readiness

✅ Ready for maintainer review

Current main still leaves a requester waiting when a child pauses for a message. This PR addresses that distinct behavior, and the reviewed head has no supported blocking finding.

Priority: P1
Reviewed head: 9f18654196c13093f15c1d3325c0e6e16f2ec46c

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch has strong live and final-effect proof for a complex lifecycle change, with no supported blocking finding.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): The recorded isolated live Gateway/provider run exercises the changed registry wake through a child pause, requester notice, sessions.send continuation and one final completion; the source test asserts those results. A Gateway/SQLite harness with simulated provider execution checks denial before effects for foreign and reset requesters. The final head leaves the reviewed production paths unchanged. The optional JSON field uses an unchanged codec, and the reported v2026.9.6 round trip plus the published codec support existing-state compatibility.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The recorded isolated live Gateway/provider run exercises the changed registry wake through a child pause, requester notice, sessions.send continuation and one final completion; the source test asserts those results. A Gateway/SQLite harness with simulated provider execution checks denial before effects for foreign and reset requesters. The final head leaves the reviewed production paths unchanged. The optional JSON field uses an unchanged codec, and the reported v2026.9.6 round trip plus the published codec support existing-state compatibility.
Evidence reviewed 8 items Current main lacks the pause wake: The current-main requester wake still treats unsettled descendants as a reason to wait and has no pause-notice branch.
Pause intent and delivery owner: The branch records a bounded notice on the child’s existing durable wake state, selects that child for a pause wake, and keeps its completion cohort armed.
Final-effect authority binding: Requester admission matches the run, target session and source; Gateway preparation and its input-owner guard invoke the captured live assertion.
Findings None None.
Security None None.

How this fits together

Subagents report their state to a registry, which schedules messages back to the agent that requested their work. A paused child can then receive a continuation through sessions.send and later deliver its final result.

flowchart LR
A[Child waits for message] --> B[Registry records pause]
B --> C[Requester wake queue]
C --> D[Gateway checks requester authority]
D --> E[Requester receives notice]
E --> F[Continuation sent to child]
F --> G[Final completion delivered]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +315, Tests +1032, Docs +11. Total +1358 across 40 files.

View PR surface stats
Area Files Added Removed Net
Source 19 426 111 +315
Tests 20 1122 90 +1032
Docs 1 17 6 +11
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 40 1565 207 +1358

Review metrics

Metric Value Why it matters
Code and test growth production +315, tests and test support +1032 lines The PR body records maintainer acceptance of production growth for durable delivery and Gateway authority proof.

Technical review

Best possible solution:

Keep one durable pause notice per paused child, preserve its later completion, and enforce requester authority at Gateway input admission.

Do we have a high-confidence way to reproduce the issue?

Yes. The current-main wake path waits on the paused child, and the PR records the original pause-wake regression failing before the fix; I did not execute it in this read-only review.

Is this the best way to solve the issue?

Yes. The branch uses the existing registry, requester-settle delivery and Gateway admission owners, with focused compatibility and final-effect evidence.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against bcd3cace1911.

Labels

Label changes:

  • remove proof: telegram-e2e: Current Telegram visible-proof status is not_needed.

Label justifications:

  • P1: A paused child can leave its requesting agent idle during an active workflow.
  • merge-risk: 🚨 compatibility: The optional persisted notice crosses an upgrade boundary; the reported published-reader round trip and released codec support the accepted rollback behavior.
  • merge-risk: 🚨 message-delivery: The change schedules an additional requester message while preserving later completion, a path covered by the recorded live flow.
  • merge-risk: 🚨 security-boundary: The change carries requester authority into a Gateway turn; final-effect tests cover foreign targets and requester reset.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The recorded isolated live Gateway/provider run exercises the changed registry wake through a child pause, requester notice, sessions.send continuation and one final completion; the source test asserts those results. A Gateway/SQLite harness with simulated provider execution checks denial before effects for foreign and reset requesters. The final head leaves the reviewed production paths unchanged. The optional JSON field uses an unchanged codec, and the reported v2026.9.6 round trip plus the published codec support existing-state compatibility.
  • proof: sufficient: Contributor real behavior proof is sufficient. The recorded isolated live Gateway/provider run exercises the changed registry wake through a child pause, requester notice, sessions.send continuation and one final completion; the source test asserts those results. A Gateway/SQLite harness with simulated provider execution checks denial before effects for foreign and reset requesters. The final head leaves the reviewed production paths unchanged. The optional JSON field uses an unchanged codec, and the reported v2026.9.6 round trip plus the published codec support existing-state compatibility.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vito Cappello: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • RoboClaw: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (10 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-29T10:38:40.662Z sha 2181319 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-29T20:34:41.895Z sha 2181319 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-30T01:49:50.039Z sha 2181319 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-30T02:10:30.084Z sha b44100c :: blocked before merge. :: none
  • reviewed 2026-09-30T02:18:35.244Z sha b44100c :: blocked before merge. :: none
  • reviewed 2026-09-30T02:43:03.584Z sha 2adbe8c :: needs maintainer review before merge. :: none
  • reviewed 2026-09-30T03:21:38.167Z sha f467702 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-30T04:12:27.891Z sha 2058563 :: needs maintainer review before merge. :: none

The requester's wake message already explains how to continue a paused child, so the always-visible yield tool only needs to say the requester is notified. Refresh prompt snapshots.
@steipete
steipete marked this pull request as ready for review September 29, 2026 09:30
@github-actions

github-actions Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components. This comment is informational because the PR author has repository Maintain or Admin access.

  • Current SHA: 9f18654196c13093f15c1d3325c0e6e16f2ec46c
  • Maintainer: @steipete
  • Repository role: admin

These security sensitive changes were made:

  • src/agents/subagents/requester-cron-authority.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.

Carefully review these changes before merging.

@clawsweeper clawsweeper Bot added the proof: telegram-e2e This PR needs Telegram Test Server proof with the repository E2E skill. label Sep 29, 2026
@openclaw-barnacle openclaw-barnacle Bot added the gateway Gateway runtime label Sep 30, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 30, 2026
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. label Sep 30, 2026
@steipete

steipete commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor Author

Completed the approved third normal merge-main refresh. Current head is 9f18654196c13093f15c1d3325c0e6e16f2ec46c, incorporating main a79c90c6e50fe94ca9c9464ed49b33e985c90e75. The merge was conflict-free, with no rebase or force-push. All 40 PR files remain byte-identical to reviewed head f467702291f8ca43512bfb362b99e326f9fee1e5, preserving the recorded production review and live proof.

This incorporates main repair 52e60fb42bc3ef1b8b626b7c2d3da699b3593c7e for the inherited settlement timeout in CI run 36667294476. The fixture now gives a rotated successor thread a fresh ID and waits for actual acceptance. The former failure no longer reproduces on main, so the previous inherited-failure exception is superseded.

Merged-tree validation:

  • node scripts/run-vitest.mjs extensions/codex/src/app-server/run-attempt.settlement.test.ts --maxWorkers=1: all 7 passed; the former timeout case passed in 688 ms (187.30 s Vitest; 192.78 s wrapper).
  • pnpm tsgo:core: passed.
  • Working/staged git diff --check: passed.

The earlier two refreshes incorporated main's trusted manifest export and lint repairs, addressing CI runs 36662936238 and 36666705759. No CI rerun, test weakening, or timeout increase was made.

ClawSweeper revision 10 was clean on the previous head 20585636b1cb8. Exact-head CI and a completed ClawSweeper review of 9f18654196c13 remain the landing gates; prior-head evidence is not represented as current-head CI.

@clawsweeper clawsweeper Bot removed the proof: telegram-e2e This PR needs Telegram Test Server proof with the repository E2E skill. label Sep 30, 2026
@steipete
steipete merged commit d023e9f into main Sep 30, 2026
202 checks passed
@steipete
steipete deleted the steipete/yield-pause-wakes-requester branch September 30, 2026 05:29
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 1, 2026
…penclaw#161114)

A child yielding with sessions_yield waitFor:message now wakes its waiting requester once with the child identity and continuation details. The existing requester-settle owner persists and consumes the pause obligation, preserves the paused child and later completion, and fences stale notices after continuation.

Gateway admission binds captured requester dispatch to the actual run, session and source before input effects, denying foreign or reset requester targets without granting Cron authority. The optional durable JSON field preserves the released codec contract without a SQL migration; the maintainer approved the production-LOC exception.

Recorded validation covers a live pause → requester wake → sessions.send continuation → one completion flow, real Gateway/SQLite negative authority proof, fixture regressions, core types, lint and prompt snapshots. The three approved merge-main refreshes preserve all 40 original PR file blobs and incorporate main's CI harness and settlement-fixture repairs. The final merged-tree settlement file passes all seven cases, with core types and diff checks passing. Detailed proof and release-note context remain in openclaw#161114.

Co-authored-by: Peter Steinberger <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling docs Improvements or additions to documentation gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P1 High-priority user-facing bug, regression, or broken workflow. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. security-sensitive-changed size: XL 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