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. |
48f5ee0 to
aa1108a
Compare
|
@clawsweeper re-review Addressed the accepted P2 finding: supervisor guidance now clears as soon as the connected Gateway source changes. The regression fails before the fix and passes afterward; it covers same-client reconnection, a late retired response, and a failed current status read. All 28 owner tests pass with one worker (2.31 seconds wall). Also fixed the parser's duplicate record helper, PR-wrapper dependency inventory, fixture type errors, and test lint. Rebased onto main's fix for the previous Maintainer scope is explicit: this PR implements the requested plugin SDK approach, including its config selector and display plumbing. RFC #75 is design context, not a second guidance producer. The existing external-supervisor environment mode retains lifecycle authority; no update execution or migration semantics change. No merge is requested. |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review Published the final CI correction in The preceding exact-head review was platinum hermit with no findings. Please review the new head; this request does not authorize merging. |
|
🦞👀 Re-review progress:
|
|
Codex review: stale review; fresh review needed. Summary Next step Review history (34 earlier review cycles; latest 8 shown)
|
|
Ready for maintainer review; not merged and auto-merge is disabled.
Holding on the unrelated main/CI issues as requested. No merge requested or performed. |
|
The unrelated main lint failures are now addressed separately in #157749, as requested. That test-only PR preserves all existing cases and assertions; all 137 affected tests and focused lint pass. This PR's current failed CI gate is the repository-wide Full Release Validation priority deferral (run 36073359097), not a new supervisor-guidance failure. Leaving both PRs unmerged. |
974332e to
ac4f1cd
Compare
|
@clawsweeper re-review Rebased onto main The previous Shared OpenClawKit scan reported No merge requested. |
|
🦞👀 Re-review progress:
|
|
🦞👀 Re-review progress:
|
|
Maintainer refresh at exact head
Proof:
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Second maintainer refresh at exact head
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
What Problem This Solves
Externally supervised installations correctly refuse native service management and self-update, but their recovery copy cannot identify the deployment's actual supervisor or command. Deployment packages need static guidance without a new operator setting or runtime registration callback. Closes #157668; static-plugin alternative to openclaw/rfcs#75.
User Impact
People running OpenClaw under an external deployment manager see that package’s literal update or recovery command and can copy it from the dashboard. The package opts in through static plugin metadata; existing supervision refusals and manual control remain unchanged. No new operator setting or automatic command execution is introduced.
Why This Change Was Made
supervisorGuidancemetadata toopenclaw.plugin.json, with a parser and types on the existingplugin-entrySDK surface.OPENCLAW_SUPERVISOR_MODE=externaland every existing refusal/control decision authoritative. Commands are display-only: never executed, stored in update history, or stamped into prompts.update.runpre-admission refusal, which has no durable run. Preserve the immutable release updater and retained legacy bridge.includeSupervisorGuidance: truerequest on both RPCs; default responses retain their existing shape for released closed validators.runId: null,ok: false, skipped result); admitted runs still require a valid durable/OCM identity. This changes no emitted receipt or admission authority.Current repair
Integrated main
1bc412fb747895bb7420bb8b02004103a2c607f8for real conflicts. Removed obsolete setup recovery/type extraction and old UI restoration. Centralized repeated lookup in existing CLI/Doctor presentation owners; no new coordination, persistence or service authority. Generated Gateway predicates are mechanical output, separate from the authored port. Net test growth +698 includes independent parser, activation/discovery, current routed refusal and actual-bundle browser boundaries; allocation records the 298 lines above the default 400-line allowance.The first local review identified unsolicited response extensions, observed config-read effects, a missing selected workspace, stale Retry copy, and an empty fallback row. All five were repaired together. New regressions reproduced four backend failures and the stale-command UI failure before the fixes; all now pass. Lookup uses isolated, unobserved config I/O, deferred shell fallback and the existing control-plane workspace selector. A fresh follow-up review found two additional issues: guidance now consumes the existing root-matched plugin quarantine decision before counting providers, and the unreachable legacy-handler guidance/test were removed. The real metadata-boundary quarantine regression was red before the fix and green afterward; a quarantined provider cannot suppress a healthy deployment package.
Evidence
update.runboundary: regression red on unmodified main, green with the port; current routed Gateway checks passed. No prepare/restart/broadcast or durable run is created by the current external refusal.pnpm openclaw gateway start --json: structured refusal includes the package-owned command, with throwing plugin runtime unexecuted. On the port heade1900bdf, a separate foreground Gateway and shipped CLI exercised actual WebSocketupdate.statusandupdate.run: defaults omit guidance; explicit requests receive the exact static command. The Gateway was stopped and its isolated port verified closed afterward.v2026.11.10accepts the real defaultupdate.statusreceipt; the explicitly opted-in extension is rejected by that old closed validator as expected. The old release still rejects its inherited no-runupdate.runshape; the candidate validator is now corrected and separately proven below.update.runhandler → generated result validator: the guidance refusal was red on the inherited string-only schema; all 13 owning handler cases pass after the correction, including accepted-ID and invalid-null-result guards. Current core and Gateway-method test types, type-aware lint, generated predicates, and native protocol contract/determinism checks pass.e1900bdf: core/UI and Gateway/services/Doctor/commands/update test type graphs all passed. The subsequent result-contract correction passes its current core and Gateway-method graphs.e1900bdf, targeted type-aware lint, format, generation and i18n verification: passed (including all 165 public SDK subpaths, shipped-API surface check and four touched MDX pages).e1900bdfcleared its seven repaired findings; subsequent committed correction reviews found the inherited result-contract mismatch and two Swift compatibility issues. All were repaired. The final8249f0c9..c3a519eereview reports no correctness or security findings.Inherited / unrun
Three lifecycle stale-cleanup test cases fail identically on unmodified pinned main: the fixture expects raw
process.env, while the unchanged restart owner passes its service environment projection (OPENCLAW_PROFILEis undefined, not inheriteddefault). These are recorded failures, not passing caller-suite evidence. The port's async policy callback assertion was separately corrected; its native policy regression passes. Initial affected-caller sweep: 195 passed/4 failed; after that correction, remaining failures are exactly those three inherited cases.Pinned main independently returns
runId: nullfor pre-admission update refusals while its result schema requires a string. The actual released validator rejects both default and opted-in no-run receipts on this inherited field mismatch. The candidate now fixes this mismatch with separate admitted/no-run result states; the earlier released validator is unchanged, and its rejection is not counted as passing upgrade proof.Browser data is synthetic and supplied through the Gateway fixture; the screenshots are the actual production UI, not a recreated screen. Separately, the port-head production Control UI was connected to a real isolated foreground Gateway with an installed synthetic deployment plugin: clicking Update Gateway → Update and restart showed the exact package command, and the real clipboard matched its bytes. No existing live deployment/model or stable-upgrade acceptance is claimed. The old body's prior-head CI/upgrade claims and unavailable media have been replaced rather than treated as current evidence. No merge, closure, release or live deployment mutation.
Visual proof
Same synthetic no-run external refusal, en-US, Chromium 1440×1100. Before: current main
1bc412fb; after: repaired heade1900bdf54929a5e97a9bb1a5d6d33a21738dc94(UI unchanged from the captured8a0a58bbundle). Clean frames first, measured annotated copies second; wide captures are stacked for readability.Clean before
Clean after
Annotated before
Annotated after
Retained Settings guidance
Real isolated Gateway + production UI
Supplemental port-head capture (UI unchanged by later validator/native-generation-only corrections): actual production Control UI connected over WebSocket to a real isolated Gateway with an installed synthetic deployment plugin (not a Gateway browser fixture). Update refusal and copy action exercised end to end; no existing live deployment or model proof. Isolated Gateway stopped afterward.
Current CI
Published candidate
8b06d8692e2fd83291ecb4644e0691c61accdabf; exact-head CI is pending. Earlier-head checks are not current-head proof.The first current-head CI found an unchecked generated-artifact lookup in the new test. It now uses the existing named assertion helper; the actual owning
root.scriptstype graph and both native artifact cases pass. The earlierroot.toolinggraph did not cover this test and is not substituted for that proof. No production behavior changed in this correction.CI follow-through: refreshed the exact UI request assertions for explicit supervisor-guidance opt-in without weakening session-key, authorization, refresh or timeout checks (four cases red before, all 66 cases across both files green after; 2.20 seconds locally). The status-schedule fixture now preserves real exports; its 22 owning cases, proper Gateway/UI test type graphs, typed lint and format pass. The mock-export ratchet was red and passes after removing two obsolete exact allowances (including the already-preserved daemon supervision mock). Five additional net test lines keep complete mock exports and exact wire assertions; allocation is 298 for net +698. No production or visual behavior changed.
Prior-head CI also timed out during plugin-SDK boundary artifact preparation after 420 seconds, after emitting the SDK and Discord declarations. No compiler diagnostic was reported at that boundary; this is not qualified as inherited or passing, and remains pending fresh-head CI.