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 (4 earlier review cycles)
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
🦞👀 Re-review progress:
|
|
Related: #194963. I reproduced a separate Muse gap-recovery concern on current main Exact replay inputs, current-main receipts and hashes. The second unchanged run has three positive passes/two target failures; the initial additional15s timeout is retained and unexplained. The minimum proposal is to observe settled Your inspected head |
|
Sharing a bounded recorded Muse usage-handoff finding for the finalization path owned by this PR. At OpenClaw Programs, complete original receipts/log, source hashes and qualification. The recorded run was 2 intended failures / 1 pass. Both failures stop at the coarse observation check on line 236; the output-30 assertion on line 237 did not run, input 300 is not asserted outward, and the zero/unknown controls need sharper report-state assertions before serving as a repair gate. This is intercepted writer input, not durable storage, full runner/UI, provider, quota or billing proof. Current main Your captured head |
Closes #183672
Related: #183282 (independent compaction fallback repair).
What Problem This Solves
Muse requests can time out behind retained native work, replay an earlier answer into a new reply, or fail with
missing scope: operator.approvalsafter reusing a process created by a narrower caller.User Impact
Status requests can join native work and receive its current answer. Approval requests use the current admitted caller while preserving genuine System scope limits and revoked-owner checks. Stopping an observation of earlier work detaches that observation; turns started by the current request retain normal cancellation.
Why This Change Was Made
Use
ifBusy: "steer"and the SDK's authoritative started/joined identity. Observe real native tool progress, keep historical items out of the current reply, and fence publication after asynchronous transcript append.Install approvals before resume traffic and bind each new handler to its prepared attempt context. Pooled stdio callbacks otherwise inherit the process creator's async context. Keep authority checks before host approval and native decisions, cancel pending approval UI when observation ends, and retire a failed SDK projection so a fresh owner can recover the same native session and approval stage.
This keeps approval handling in the harness and transcript/result projection in its existing event owner. No provider, dependency, configuration, permission-policy, or transcript-schema changes.
Evidence
Validation ran on an isolated macOS arm64 host with Node 24.22.1, task-owned state, and the package-pinned SDK. Tested and committed source files were verified byte for byte.
Current head
da67db5d0bfc054fddaf142d884afd2af5209c13integrates maind4ae3a73118767a3f9bf80625a91733d19055393. Its only conflict was the controlled MSP test helper; the resolution preserves both the native approval-effect controls and upstream helper simplifications. The Muse production harness, event owner, and process pool remain byte-identical to the native-tested parent15457a3a. All 60,327 tracked candidate blobs matched the isolated Gronk checkout. The 73 controlled tests, focused source and package-boundary typechecks, typed lint, formatting, and independent conflict-resolution review passed again against the integrated source and frozen current-main lockfile. The maintained lint owner prepared the SDK boundary declarations; no core/app build or additional real-model run was performed.Parent and integrated-head evidence:
Captured controlled-fixture results:
A matching operator compatibility port also passed a real isolated public Gateway approval-manager flow using SDK 1.4.2 and a controlled MSP peer: narrow warmup → full approval produced a final reply through the same physical host; full warmup → narrow caller remained denied. Its 28 regression controls passed. This is compatibility-port acceptance, not canonical SDK 1.4.10 native-provider/busy-turn qualification.
Real native-provider authority evidence was also captured on exact head
15457a3aebf4124de78ade51d6d478e31ee3e95c: SDK 1.4.10, official Muse 1.4.13-R6996.1, Meta provider, Node 24.22.1/macOS arm64, and the published declared-compatible OpenClaw 2026.10.10-beta.3 host. The selected Muse target was built without changing minHost/compatibility metadata; this was not an all-main Gateway build. Native permissions used task-only:ask-me, with exact prehashed effects confined to the owned sandbox workspace.operator.readandoperator.write. Its real native approval request failed closed: one offered abort decision, zero allow decisions, zero plugin approval events, and no effect after all owned processes ended. The missing-scope Gateway diagnostic was fenced to that admitted run.agent.waitreturnederror: "agent run failed"without the detailed scope string its assertion required. Independent scoped adjudication accepted the authority behavior from the matched wire, run, diagnostic, and filesystem evidence; the runner was not relabeled green.Captured redacted native result:
{ "head": "15457a3a", "sdk": "1.4.10", "samePhysicalPooledHost": true, "fullOwnerApprovedEffect": true, "narrowOwner": { "nativeAbort": 1, "nativeAllow": 0, "pluginApprovalEvents": 0, "effectAbsent": true }, "originalInverseRunnerPassed": false, "scopedAuthorityAdjudication": "accepted" }The real-SDK controlled subprocess tests remain the evidence for busy-turn, cancellation, detached/revoked-owner, and same-stage recovery behavior. Real-native busy-resume, joined Stop, detached/revoked-owner, and same-stage recovery qualification remains outstanding. Maintainer direction on joined-work Stop, timeout, and reset semantics also remains outstanding; the native authority evidence does not resolve those lifecycle or merge-readiness gaps.