Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: stale review; fresh review needed. Summary Next step Review history (1 earlier review cycle)
|
|
Additional installed-release qualification for this repair, collected on 2026-11-08. This is not an exact-head runtime claim for this PR. We investigated OpenClaw Observed incident and RCA The child had completed with a nonempty final report. The completion wake ran on a replacement native root, whose agent list no longer exposed that child. The subsequent follow-up was blocked with the generic Thus the Gateway was reached; this incident does not establish a stale relay registration. Native metadata establishes parent-thread replacement and differing declarations. The code-supported mechanism is the lifetime gap this PR addresses: the final child releases the execution pin before result delivery finishes, while native catalog recovery still requires live execution protection. There is also an independent completion-content boundary, tracked in #167276: the receiving turn can have only Locally installed scope We selectively backported this PR's completion-catalog portion from Catalog lookup remains bound to the exact physical client, parent, requester, child source and announcement, with current in-flight completion custody checked again after the awaited metadata read. No execution pin is retained, and declarations do not grant executor authority. PreToolUse remains enabled. Live proof against the built release backport A child-only script generated an unpredictable marker, then waited at a barrier. The parent spawned exactly one child and successfully yielded before the barrier was released. On automatic completion, the parent followed up with that same child without supplying the marker; the child returned its remembered marker. Native history and lifecycle events established:
The test checks native V2 Other evidence and limits
No private conversation IDs, child reports, credentials, configuration, or raw production logs are included. This is additional evidence for the existing PR, rather than a duplicate fix PR. |
What Problem This Solves
A native child releases the parent's execution pin when its final turn settles, before its result has finished delivery. The detached completion then rebuilds the parent's dynamic tool catalog. Without a live pin it loses the original declarations, which can rotate the native thread or prevent the completion from being delivered.
User Impact
Completed native subagents can deliver their result on the original parent thread after the execution pin has been released.
Why This Change Was Made
Keep the original catalog available only to the exact in-flight completion owner. The existing monitor verifies the physical parent/client, requester, child source, announcement, active delivery attempt, and current completion custody. Recheck that custody after the awaited metadata read and under the existing binding authority before consuming the fingerprinted catalog. Do not keep the execution pin or change the current executor/permission checks. The existing settled-child retention loop moves to its parent owner so the monitor can delegate without growing its oversized module.
This ports the completion-catalog portion of #188698 to current main. It depends on #194748 (the native completion receipt custody change); it does not include the broader stable-release continuation/schema compatibility patch.
Evidence
undefined. With the fix, the original catalog is restored; a revoked read, changed runtime, ordinary turn, and missing custody remain rejected or unavailable.The native protocol is represented by the repository's app-server fixture in these checks. This exact source head has not been exercised against a live model; previous installed-release incidents and proof are background, not an exact-head production claim.
Recovered-catalog authority evidence
At
3aa8f3d4b, the composed synthetic test exercises recovered catalog capture and a controlled allowedsupervisor.spawneffect, then rejects session replacement and execution-policy revocation at the barrier immediately before tool execution. A mismatched requester does not receive the recovered catalog. Ten focused cases, targeted lint, test-line ratchet and commit checks passed; scoped review found no P0-P2 issues. The wrong-requester case is a capture-stage check, not a full downstream-dispatch denial proof. The supervisor effect is controlled, not an OS process; live Gateway/model and real end-effect validation remain outstanding.CI allocation follow-up
7e8f5eb6fseparately allocates 18 previously unallocated lines of existing custody, SQLite receipt-retirement and revoked-metadata regressions. Against the exact failing CI merge/base, the ratchet reproduced 6,583,543 / 6,583,525 and passed after this change at 6,583,543 / 6,583,543. Tests and the shared baseline remain unchanged; the new exact-head CI is pending.