Repository navigation
docs(rfc): propose external-supervisor operator guidance - #75
paulcam206 wants to merge 9 commits into
Conversation
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
|
🦞👀 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. |
Co-authored-by: Copilot App <[email protected]>
|
Codex review: needs real behavior proof before merge. What this changesThis PR proposes deployment-specific, display-only supervisor commands across OpenClaw lifecycle and recovery surfaces. Example: An operator runs openclaw gateway start in a clawctl-managed installation.
Review scores
ProductKind: Feature · Worth it: Needs a maintainer decision Merge readiness⛔ Blocked before merge - 2 items remain Keep this PR open: it proposes a distinct, unimplemented contract with maintainer engagement, and guidance ownership still needs a product decision. Priority: P3 Decision needed
Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe proposed shared resolver consumes process-scoped supervisor metadata and supplies validated command text to CLI recovery messages and authenticated Control UI update responses. flowchart TD
A[External supervisor] --> B[Process environment]
B --> C[Shared guidance resolver]
D[Existing lifecycle policy] --> E[Refused operation]
E --> C
C --> F[CLI and recovery messages]
C --> G[Authenticated UI projection]
G --> H[Operator copies command]
Technical reviewBest possible solution: Choose the guidance producer contract in the required maintainer discussion, then accept a consistent RFC before implementation. Do we have a high-confidence way to reproduce the issue? Current supervision source, CLI callers, and tests establish the generic-message limitation without executing target code. Is this the best way to solve the issue? A shared display-only resolver addresses the motivating gap, but the environment transport needs comparison with package-owned plugin metadata before acceptance. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 967d9aac7472. TestingProof path: none. SecurityNone. EvidenceWhat I checked:
LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (7 earlier review cycles)
Reviewed October 13, 2026, 1:30 PM ET / 17:30 UTC (Revision 8). |
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
🦞👀 Re-review progress:
|
|
Two alternative implementation PRs are available for comparing how this RFC's guidance is supplied. Both are open and unmerged:
Both wire display-only guidance through CLI lifecycle refusals, Doctor/setup, and supported Control UI update refusals. Commands are never executed or inserted into model prompts, and authenticated UI response guidance is transient rather than stored in update history. Neither approach carries arbitrary guidance JSON in an environment variable. The main tradeoff is who owns and ships the copy. The plugin approach supports additional deployment owners and package-specific commands without expanding core's preset table; it requires plugin installation/enablement and handles provider ambiguity. Core presets are simpler to opt into for the two supported deployment shapes, but additional supervisors or command changes require core changes. There are also different compatibility constraints:
These PRs are alternatives for the RFC discussion, not stacked dependencies. The design choice is whether deployment packages should own extensible guidance or core should ship the bounded presets. |
What Problem This Solves
Externally supervised OpenClaw installations correctly keep Gateway lifecycle
authority outside OpenClaw, but current onboarding, CLI, Doctor, update, and
Control UI recovery paths can only tell operators to "use that supervisor."
They cannot name the supervisor or show the deployment-specific command that
will actually resolve the blocked action.
Why This Change Was Made
RFC 0066 proposes a bounded, versioned, display-only guidance contract carried
with
OPENCLAW_SUPERVISOR_MODE=external. It keeps lifecycle authority unchanged,uses surface-native OpenClaw wording, and adds only a narrow authenticated
action-specific projection where an out-of-process UI needs to render the same
guidance.
User Impact
This draft has no immediate product impact. If accepted and implemented,
operators using
clawctl, Docker Compose, or another external supervisor willsee the exact start, stop, repair, or update command at the OpenClaw surface
where action is required, without OpenClaw executing or treating that command
as authority.
Evidence
acceptance.
rfcs/0066-external-supervisor-guidance.mdmocks
maintainer-discussionthread is pending.operator-guidance contract and its authenticated display-only projection?
lifecycle, Doctor, update, and Control UI behavior.
OPENCLAW_CUA_DRIVER_ENDPOINTandOPENCLAW_PLUGIN_INSTALL_OVERRIDES.design language, Control UI behavior, compatibility, security, RFC numbering,
duplicates, and publication requirements.
node scripts/run-vitest.mjs run src/infra/gateway-supervision.test.ts— 1 test file, 16 tests passed.node scripts/run-vitest.mjs run ui/src/app/update-overlay-helpers.test.ts— 1 test file, 24 tests passed.external-supervisor Control UI
E2E
each stalled for 300 seconds during Vitest startup/global setup and were
stopped. This lane is not counted as passing.
rfcs/0066/current-behavior-and-mocks.mdsidecar path; frontmatter andrequired top-level headings remain present; Summary remains one paragraph;
Motivation, Goals, Non-Goals, Proposal, Rationale, and Unresolved questions
retain their prescribed responsibilities.
git diff --check origin/main..HEADgit show --checkfor every RFC commitorder, balanced fences, bounded schemas, and resolvable pinned source links.