Skip to content

fix(sessions): preserve paused task ownership when a parent resumes work - #149283

Merged
jalehman merged 4 commits into
mainfrom
openclaw-d425/task-preserving-parent-resume
Sep 16, 2026
Merged

jalehman merged 4 commits into
mainfrom
openclaw-d425/task-preserving-parent-resume

Conversation

@jalehman

@jalehman jalehman commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Related: #148295

What Problem This Solves

A parent agent can tell a paused worker to continue, receive a new execution, and still be left waiting on the original delegated task after that execution finishes.

User Impact

Parents can explicitly continue their paused native tasks with sessions_send(mode: "resume") and receive completion through the original task owner. Status questions and ordinary messages keep their existing behavior.

Resume requires an existing task-owned completion obligation. Runs with completion explicitly disabled are rejected, including when eligibility changes before adoption. The tool does not promise a result that has no delivery owner.

This is an opt-in tool mode. It does not change configuration, database schemas, permissions, or the plugin SDK. It does not repair previously stranded production tasks.

Why This Change Was Made

Ordinary inter-session messages do not adopt paused tasks. The new mode validates the admitted caller's controller lineage and the exact paused task and session incarnation, then uses the registry's replacement operation before accepting execution.

The successor retains the stable task identity, original requester, and pending completion batch. Admission returns the execution and task IDs; the registry delivers the eventual result. No competing message-reply watcher is started. Foreign callers, stale targets, and tasks that are no longer eligible are rejected.

The CI repair moves the resume binding's data type into its leaf module to remove a static import cycle, and updates the exact description assertion and generated tool-contract fixtures. The rebase preserves main's requester-yield settlement changes and automation timeout contract. Caller, generation, and successor checks remain intact.

Evidence

Candidate: 88d6291881c8b5847353b5964daaa8ece683ffb1.
Tested base: 174bbf31b588d3483d6773ce420afcf13e9e8936.

Authority and completion proof through final effects

The five cases in src/gateway/server.sessions-send-resume.test.ts passed on this exact candidate. They invoke sessions_send through a real isolated Gateway, admission, registry replacement, and SQLite input custody:

Scenario Observed result
Unrelated visible controller Rejected; original task unchanged; no admitted input, command, child result, or announcement
Parent revoked during awaited input preparation Rejected before adoption; staged input cancelled and unconsumed; no command or child result
Successor cancelled after adoption, before consumption Successor-owner fence rejects execution; input stays unconsumed; no provider command or successful announcement
Completion explicitly disabled Rejected before input or execution; no successor or announcement
Authorized parent The original task completes and its completion owner announces exactly once

Cancellation deliberately leaves the Gateway abort signal untouched, isolating the successor-ownership check. That cleanup interrupts unconsumed input while its receipt remains pending. Helper tests also cover completion eligibility changing after binding.

These are production-path boundary tests, not a live-model delivery demonstration. Paused state is seeded; provider execution and announcement transport are instrumented. No full requester-delivery or restart round trip is claimed. Earlier completion-eligibility RED/GREEN receipts remain historical evidence; they were not relabeled as a fresh before-change run.

Current-candidate validation

374 selected tests passed, using the installed Node 24.19.0 executable directly for the final receipts:

  • 24 Gateway authority/private-completion cases.
  • 25 registry, private-carrier, and reactivation cases.
  • 112 ordinary messaging and in-process carrier cases.
  • 45 upstream settlement and complete-answer cases.
  • 44 description and guidance cases.
  • 13 selected Gateway handler/settlement-race cases; 330 other handler cases were not selected and are not counted as passing.
  • 92 PR-wrapper cases, including all nine alias-delegation and three refusal cases.
  • 18 state-database acquisition cases, including the prior checkpoint-warning failure.
  • One voice-call realtime-routing case that failed in the prior hosted run.

The repository's full check-changed selection passed against the pinned base. This includes core and core-test typechecking, formatting, prompt snapshots, all three dead-export scans, dependency and plugin boundary guards, runtime import-cycle checks, core lint, scripts lint, and the selected storage/auth checks. Core lint checked 23,865 files and scripts lint checked 1,020 files, both with zero warnings/errors. No lint limits or assertions were weakened.

The changed-file gate was invoked through mise exec [email protected]; its inherited PATH can resolve a mise shim, so uniform Node patch-version parity across that gate's subprocesses is not asserted. The final focused test receipts use an absolute Node 24.19.0 path. An initial wrapper attempt failed four empty-stderr checks because mise installed a runtime inside isolated fixture homes. Removing shim interception from the test process PATH, without changing source, produced the complete 92/92 wrapper pass. The failed attempt is retained rather than counted as a pass.

Full independent P0–P2 autoreview returned scoped-clean, with no accepted/actionable findings. All four PR commits remain patch-equivalent through the rebase. The owner-authored prior merge is preserved in a local recovery branch. Dependency manifest, lockfile, and workspace-policy hashes are unchanged from the prior candidate; no dependency installation or versioned dependency edit was needed for this refresh.

Upstream CI repair and remaining hosted gate

Prior head 52f1243d73ce0b2fbec99a91e2710b0b1501216b completed hosted CI with three failing jobs: a checkpoint-warning observation, voice-call realtime routing, and nine PR alias-wrapper fixture cases. The aggregate gate reported those failures; it was not a fourth independent defect. Those historical failures are not cleared by local non-reproduction alone.

The wrapper failures came from inherited dependency-materialization fixture setup. The first two upstream repairs, #149481 and #149488, composed into duplicate setup and an EEXIST failure. Reopened #149477 landed as 476fa7a270e4aeef5d485efaa7b92ae62341cd3c, removing the duplicate call. This tested base contains that commit and exactly one initialization. The complete 92-case wrapper suite now passes on this PR candidate; this PR adds no separate fixture workaround.

The prior checkpoint-warning case passed in main runs 35008423225 and 35022476007, and now passes locally on this candidate. The voice-call case also passes locally. These focused results do not establish a particular flake mechanism or reproduce the prior hosted runtime and full shard selection.

The base retains the earlier #149349 Codex fixture correction, #149423 line-cap repair, complete-answer delivery work, and task-settlement contracts. It also forwards the inherited spawn-model auto-selection field through the in-process creation path. No unrelated production-state repair is included.

Fresh exact-head hosted CI and ClawSweeper review remain required. No full local product build, live Gateway change, or PR merge is claimed.

Reproduction

Use the installed Node 24.19.0 binary first in PATH, without a mise shim ahead of it. Final focused suites were invoked with node scripts/run-vitest.mjs run --config <owning-config> <test-paths>; Gateway handler selection was:

node scripts/run-vitest.mjs run \
  --config test/vitest/vitest.gateway-methods-isolated.config.ts \
  src/gateway/server-methods/agent.test.ts \
  -t 'handles .*followups|disposes resume runtime|registers normally when a follow-up|keeps one task when a completed child wakes its requester'

node scripts/run-vitest.mjs run \
  --config test/vitest/vitest.gateway-server.config.ts \
  src/gateway/server.sessions-send-resume.test.ts \
  src/gateway/server.private-completion.test.ts

node scripts/run-vitest.mjs run \
  --config test/vitest/vitest.tooling.config.ts test/scripts/pr-wrappers.test.ts

node scripts/check-changed.mjs --base 174bbf31b588d3483d6773ce420afcf13e9e8936

@clawsweeper

clawsweeper Bot commented Sep 15, 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 gateway Gateway runtime agents Agent runtime and tooling size: XL maintainer Maintainer-authored PR labels Sep 15, 2026
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. 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 15, 2026
@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 15, 2026, 10:12 PM ET / September 16, 2026, 02:12 UTC (Revision 6).

ClawSweeper review

What this changes

Adds an explicit sessions_send resume mode that continues a paused child while preserving its original task identity, completion recipient, and registry-owned delivery.

Merge readiness

✅ Ready for maintainer review

This PR remains useful: current main lacks explicit parent-owned task resume. The refreshed authority evidence supports the proposed boundary, and no blocking introduced defect was found.

Priority: P1
Reviewed head: 88d6291881c8b5847353b5964daaa8ece683ffb1

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A coherent implementation with sufficient scoped authority proof and no blocking findings; broader live-delivery claims remain appropriately limited.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): The pinned-head receipt and inspected Gateway harness cover sessions_send through real admission, durable input custody, registry replacement, and completion ownership, including foreign callers and authority loss before final effects. Provider execution and announcement transport are instrumented; live-model delivery and a full restart round trip are not claimed.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The pinned-head receipt and inspected Gateway harness cover sessions_send through real admission, durable input custody, registry replacement, and completion ownership, including foreign callers and authority loss before final effects. Provider execution and announcement transport are instrumented; live-model delivery and a full restart round trip are not claimed.
Evidence reviewed 10 items Introduced-change boundary: Reviewed merge-base 174bbf3 through pinned head 88d6291. The host-verified test merge contains the same changed paths; base-only Codex, delivery, update, and tooling changes are not attributed to this PR.
Current main still needs the capability: Current main exposes notify, steer, and followup modes only. Its task-tracking owner leaves ordinary sessions_send provenance untracked, and execution-phase reactivation applies only to CLI tracking.
Live authority and exact task binding: Resume checks current caller authority, controller ownership, completion eligibility, task generation, and child-session incarnation. Final adoption rechecks those facts synchronously and invokes the existing registry replacement owner.
Findings None None.
Security None None.

How this fits together

Session tools let agents coordinate work through the Gateway. This change connects a parent's continuation request to the existing child-task registry before execution, so completion settles the original delegated task.

flowchart TD
  A[Parent continuation request] --> B[Session visibility checks]
  B --> C[Current controller and paused task checks]
  C --> D[Gateway input preparation]
  D --> E[Atomic task ownership transfer]
  E --> F[Successor execution]
  F --> G[Original task completion recipient]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +473, Tests +1133, Docs +9. Total +1615 across 24 files.

View PR surface stats
Area Files Added Removed Net
Source 11 536 63 +473
Tests 12 1176 43 +1133
Docs 1 9 0 +9
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 24 1721 106 +1615

Review metrics

Metric Value Why it matters
Tool contract 1 new opt-in mode; 0 configuration options Explicit resume distinguishes task continuation from ordinary messages without changing their defaults.
Production versus test growth Production +473 net lines; tests and fixtures +1133 net lines Production growth implements private authority transport and admission fencing while reusing the existing durable task owner.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #148295
Summary: This PR implements the explicit resume portion of the paired report; historical reconciliation remains outside its scope.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best possible solution:

Keep explicit parent-authorized resume on the existing registry replacement path, with ordinary messages retaining their separate semantics and historical task recovery tracked separately.

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

Yes, from source: a parent sends to a yielded child through sessions_send, whose ordinary provenance selects no task tracking and cannot adopt the paused task. No failing current-main execution was run in this read-only review.

Is this the best way to solve the issue?

Yes. An explicit mode expresses continuation intent while reusing the existing atomic replacement owner; automatically adopting ordinary messages would violate their established semantics.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 6bde86083706.

Labels

Label justifications:

  • P1: The paired report describes delegated executions finishing while original tasks remain paused and their parents wait for completion.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit 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 pinned-head receipt and inspected Gateway harness cover sessions_send through real admission, durable input custody, registry replacement, and completion ownership, including foreign callers and authority loss before final effects. Provider execution and announcement transport are instrumented; live-model delivery and a full restart round trip are not claimed.
  • proof: sufficient: Contributor real behavior proof is sufficient. The pinned-head receipt and inspected Gateway harness cover sessions_send through real admission, durable input custody, registry replacement, and completion ownership, including foreign callers and authority loss before final effects. Provider execution and announcement transport are instrumented; live-model delivery and a full restart round trip are not claimed.

Evidence

What I checked:

  • Introduced-change boundary: Reviewed merge-base 174bbf3 through pinned head 88d6291. The host-verified test merge contains the same changed paths; base-only Codex, delivery, update, and tooling changes are not attributed to this PR. (88d6291881c8)
  • Current main still needs the capability: Current main exposes notify, steer, and followup modes only. Its task-tracking owner leaves ordinary sessions_send provenance untracked, and execution-phase reactivation applies only to CLI tracking. (src/agents/tools/sessions-send-tool.ts:114, 6bde86083706)
  • Live authority and exact task binding: Resume checks current caller authority, controller ownership, completion eligibility, task generation, and child-session incarnation. Final adoption rechecks those facts synchronously and invokes the existing registry replacement owner. (src/gateway/session-subagent-resume.ts:124, 88d6291881c8)
  • Admission ordering and cancellation: Task adoption follows awaited input preparation and precedes acceptance. Subsequent input consumption checks successor ownership; rejected adoption cancels prepared input and preserves cleanup failures. (src/gateway/agent-turn/agent-run-admission-phase.ts:648, 88d6291881c8)
  • Refreshed production-boundary proof: The captured body and fix(sessions): preserve paused task ownership when a parent resumes work #149283 (comment) report five passing cases on the pinned head: foreign-controller rejection, disabled-completion rejection, parent revocation during preparation, successor cancellation before consumption, and one authorized task-owned completion. Source inspection confirms real Gateway admission, registry replacement, and SQLite custody, with provider commands and announcement transport instrumented. The claimed 374 selected passes were not rerun during this read-only review. (src/gateway/server.sessions-send-resume.test.ts:1, 88d6291881c8)
  • Existing ownership and durable replacement retained: The registry's established replacement operation preserves requester settlement, remaps batch membership, advances generation, and rolls back a failed durable replacement. The PR adds an exact expected-owner check instead of introducing another completion writer. (src/agents/subagents/registry/subagent-registry.ts:590, 88d6291881c8)

Likely related people:

  • gaoanze888: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Peter Steinberger: 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 (5 earlier review cycles)
  • reviewed 2026-09-15T17:03:42.745Z sha 80d5b80 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-15T18:21:13.215Z sha 1cc1b89 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-15T19:56:27.476Z sha b83128bb8b33e6505c068e8e815a23091482e48e :: needs maintainer review before merge. :: none
  • reviewed 2026-09-15T21:24:59.989Z sha 1c79749 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-15T22:58:06.454Z sha 52f1243d73ce0b2fbec99a91e2710b0b1501216b :: needs maintainer review before merge. :: none

@jalehman

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Please review 1cc1b89ad0dbf222bb5fd5c9040efcee267d4c6d. The PR body now includes production-path proof for an unrelated controller, parent revocation during input preparation, and successor cancellation after adoption before input consumption. Each case asserts no unauthorized provider command or child final effect; the allowed case still completes the same task once.

The import cycle, description assertion, and generated prompt fixtures are repaired. Exact-candidate validation passed 214 focused tests, the complete architecture gate, all seven prompt snapshots, typed lint, core types, and all 19 affected test-type graphs. The body retains the instrumentation and restart-proof limits. The separately reproduced native PR-tooling failures have an upstream fix in #149294; new hosted CI is pending.

@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@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. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 15, 2026
@jalehman
jalehman force-pushed the openclaw-d425/task-preserving-parent-resume branch from 1cc1b89 to b83128b Compare September 15, 2026 19:44
@jalehman

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Please review b83128bb8b33e6505c068e8e815a23091482e48e. The conflicts are resolved by rebasing onto fcb4d12acda7db1fd408ca130ca8122af9570a96, preserving upstream requester-yield settlement and automation-timeout contracts. Fresh local review also identified and fixed resume accepting a child with completion explicitly disabled: shared eligibility now rejects that state at binding and before adoption, with three red/green regressions including a real Gateway no-input/no-dispatch case.

The updated PR body records 249 exact-candidate focused tests, typed lint, core and all 19 affected test-type graphs, complete architecture checks, seven current prompt snapshots, and scoped-clean P0-P2 autoreview. All prior authority proof and instrumentation/restart limits remain explicit. Fresh hosted CI is pending.

@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@jalehman
jalehman force-pushed the openclaw-d425/task-preserving-parent-resume branch from b83128b to 1c79749 Compare September 15, 2026 21:02
@jalehman

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Please review 1c79749cc74177b416ee6e8937b7751abbae9e21. This is a patch-equivalent rebase of all four previously reviewed PR commits onto 31172cf54466658927482960b4ca7f52f6819814, incorporating the already-merged upstream lint fix #149349. The failed duplicate-case Codex fixture was unchanged by this PR; no separate fixture repair was added here.

The updated body records 263 focused tests under CI's Node 24.19.0, including current-main complete-answer regressions; supported typed lint covering the formerly failing fixture; core and 19 affected test-type graphs; the full architecture gate; seven current prompt snapshots; and scoped-clean P0-P2 autoreview. Authority/completion proof and its instrumentation/restart limits remain explicit. Fresh exact-head CI is pending.

@clawsweeper

clawsweeper Bot commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@jalehman
jalehman force-pushed the openclaw-d425/task-preserving-parent-resume branch from 1c79749 to c899b56 Compare September 15, 2026 22:13
@jalehman

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Please review c899b56cd9606506f71010c79fa1aa0103acf070. All four PR commits remain patch-equivalent to the previously reviewed candidate. This base refresh incorporates merged upstream #149423, which resolves the shared 700-line handoff-fixture lint blocker; no separate fixture edits or lint-limit changes are added by this PR.

Exact-candidate validation: 263 focused tests, all three stripes from the failed core-lint job (3/5, 4/5, 5/5; 12,139 files), supported typed lint, core plus 19 affected test-type graphs, complete architecture checks, seven current prompt snapshots, and scoped-clean P0-P2 autoreview. The body preserves the production-boundary authority evidence and instrumented-provider/restart limits, and explicitly notes local Node24.19.0 versus the failed CI lane's24.20.0. Fresh hosted CI is pending.

@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@jalehman

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Current-head authority proof after the owner-authored main merge

Tested 52f1243d73ce0b2fbec99a91e2710b0b1501216b without rewriting the GitHub merge. Its parents are c899b56cd9606506f71010c79fa1aa0103acf070 and main 4e2486d7bbab58a876163b082d2c2a456be338fa; the stored tree matches a clean merge of those parents. The resume admission/carrier/registry owners and Gateway proof file are unchanged from the previously validated candidate.

Reran on this exact head with Node 24.19.0:

node scripts/run-vitest.mjs run --config test/vitest/vitest.gateway-server.config.ts src/gateway/server.sessions-send-resume.test.ts
# 1 file passed; 5 tests passed; exit 0

The passing cases cover unrelated controller rejection, completion-disabled rejection, parent revocation during preparation, successor cancellation after adoption before input consumption, and one authorized task-owned completion. These execute real Gateway admission, registry replacement, and SQLite custody. Provider commands and announcement transport remain instrumented; no real-model delivery or full restart round trip is claimed.

The body's broader 263-test/types/architecture/lint-stripe results belong to predecessor c899; they are not relabeled as fresh runs on this merge. The five requested-boundary cases above are fresh on 52f1243d73ce0b2fbec99a91e2710b0b1501216b. Hosted CI run 35031107217 is pending.

@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@jalehman
jalehman enabled auto-merge (squash) September 15, 2026 23:51
@jalehman
jalehman force-pushed the openclaw-d425/task-preserving-parent-resume branch from 52f1243 to 88d6291 Compare September 16, 2026 02:04
@jalehman

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Exact-head authority proof after the upstream fixture repair

Candidate 88d6291881c8b5847353b5964daaa8ece683ffb1, tested base 174bbf31b588d3483d6773ce420afcf13e9e8936. All four PR commits remain patch-equivalent. The base includes the landed single-initialization repair #149477; the owner-authored previous merge is preserved in recovery history.

374 selected tests passed on this candidate, including all five production-path Gateway authority/completion cases, ordinary messaging, task settlement, 92 wrapper tests, the checkpoint-warning case, and voice-call routing. Final focused receipts use the installed Node 24.19.0 binary directly. The full repository changed-file gate and independent P0–P2 autoreview passed. Details and reproduction commands are in the updated PR body.

The five Gateway cases prove foreign-controller rejection, completion-disabled rejection, parent revocation during preparation, successor cancellation after adoption before input consumption, and authorized completion of the original task with exactly one task-owned announcement. Gateway admission, registry replacement, and SQLite input custody are real; provider commands and announcement transport are instrumented. No live-model/requester delivery or full restart round trip is claimed.

An initial local wrapper attempt captured mise installation diagnostics in otherwise-empty stderr. The complete 92-case rerun passed with a direct installed Node path, without source changes or weakened assertions. The previous hosted failures remain historical; fresh exact-head hosted CI is still required.

@clawsweeper

clawsweeper Bot commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@clawsweeper

clawsweeper Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@jalehman
jalehman merged commit 0f28bcd into main Sep 16, 2026
194 checks passed
@jalehman
jalehman deleted the openclaw-d425/task-preserving-parent-resume branch September 16, 2026 02:36
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 16, 2026
…ork (openclaw#149283)

* feat(sessions): resume parent-owned paused tasks (openclaw#148295)

* fix(sessions): verify resume authority and align tool contracts

* test(sessions): align resume fixtures with yielded task lifecycle

* fix(sessions): require task-owned completion before resume
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 maintainer Maintainer-authored PR 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. 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