Skip to content

docs(rfc): propose external-supervisor operator guidance - #75

Open
paulcam206 wants to merge 9 commits into
openclaw:mainfrom
paulcam206:paulcam206-review-supervisor-rfc
Open

paulcam206 wants to merge 9 commits into
openclaw:mainfrom
paulcam206:paulcam206-review-supervisor-rfc

Conversation

@paulcam206

@paulcam206 paulcam206 commented Sep 22, 2026 •

Copy link
Copy Markdown

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 will
see 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

  • Lifecycle: Draft RFC; leave the implementation issue blank until
    acceptance.
  • RFC document: rfcs/0066-external-supervisor-guidance.md
  • Rendered sidecar: Current behavior proof and illustrative
    mocks
  • Maintainer discussion: Required maintainer-discussion thread is pending.
  • Decision requested: Should OpenClaw adopt the v1 external-supervisor
    operator-guidance contract and its authenticated display-only projection?
  • The proposal is grounded in current external-supervisor ownership, onboarding,
    lifecycle, Doctor, update, and Control UI behavior.
  • It cites existing JSON-in-environment precedents:
    OPENCLAW_CUA_DRIVER_ENDPOINT and
    OPENCLAW_PLUGIN_INSTALL_OVERRIDES.
  • Two review passes covered product/contract completeness, current OpenClaw
    design language, Control UI behavior, compatibility, security, RFC numbering,
    duplicates, and publication requirements.
  • Executed unit proof: node scripts/run-vitest.mjs run src/infra/gateway-supervision.test.ts — 1 test file, 16 tests passed.
  • Executed unit proof: node scripts/run-vitest.mjs run ui/src/app/update-overlay-helpers.test.ts — 1 test file, 24 tests passed.
  • Unrun browser lane: Two local attempts to run the
    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.
  • Root README compliance: RFC-specific supporting material uses the stable
    rfcs/0066/current-behavior-and-mocks.md sidecar path; frontmatter and
    required 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..HEAD
  • git show --check for every RFC commit
  • Committed RFC blobs verified as LF-only with required frontmatter, heading
    order, balanced fences, bounded schemas, and resolvable pinned source links.

@clawsweeper

clawsweeper Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

🦞👀
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.

@clawsweeper clawsweeper Bot added P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 22, 2026
@clawsweeper

clawsweeper Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

Codex review: needs real behavior proof before merge.

What this changes

This 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.

  • Before: OpenClaw says to use the external supervisor without identifying its command.
  • After: The proposed guidance displays: Start (Windows host session): clawctl gateway-service start.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The proposal is coherent and has no actionable patch finding, but product direction is unresolved and the enforced behavior-proof gate is unmet.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Needs a maintainer decision
User problem: External-supervisor operators receive generic refusals without the deployment command or execution location needed to proceed.
Reason: The motivating gap is concrete, but the maintainer discussion has not approved this new environment variable and public display contract.

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
Reviewed head: 4ee4dabc9ee0ba753a31cecab188b4f79f64de77
Owner decision: Required. See Decision needed.

Decision needed

  • Question: Should deployment guidance use this RFC's process-environment payload or package-owned plugin metadata?
  • Recommendation: Evaluate plugin-owned guidance first: Compare the open plugin implementation against the RFC's deployment and fallback requirements, then revise the RFC around the selected shared contract.
  • Why: The maintainer comparison presents alternatives without selecting one, and adopting the RFC introduces a public environment variable and authenticated display contract.

Before merge

  • Add real behavior proof - The sidecar contains baseline unit output and illustrative CLI/UI text, not an after-change run of the proposed guidance resolver or authenticated projection; because the files are outside docs/, the prior explicit proof-override request remains applicable, and any later runtime evidence should redact private addresses, keys, phone numbers, and endpoints. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.

Findings

None.

Tests

  • Missing end-to-end proof: No shipped-entry-point run demonstrates the proposed resolver and authenticated projection; this unimplemented RFC needs an explicit proof override under the applicable review gate.
Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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.

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is a draft design proposal with no immediate runtime change; its motivating workflows are advanced deployment-operator tasks.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Obtain an explicit proof override for this unimplemented RFC.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (7 earlier review cycles)
  • reviewed 2026-09-22T21:02:29.656Z sha 8bd10b8 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-22T21:58:52.526Z sha 4ee4dab :: blocked before merge. :: none
  • reviewed 2026-09-23T00:16:39.729Z sha 4ee4dab :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-06T17:24:41.576Z sha 4ee4dab :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-06T22:26:56.344Z sha 4ee4dab :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-08T09:32:23.066Z sha 4ee4dab :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-09T05:00:58.327Z sha 4ee4dab :: needs real behavior proof before merge. :: none

Reviewed October 13, 2026, 1:30 PM ET / 17:30 UTC (Revision 8).

@paulcam206

Copy link
Copy Markdown
Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 22, 2026

Copy link
Copy Markdown

🦞🧹
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 22, 2026 •

Copy link
Copy Markdown

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient Contributor real behavior proof is sufficient. 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 status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Sep 22, 2026
@paulcam206
paulcam206 marked this pull request as ready for review September 23, 2026 00:13
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed 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. proof: sufficient Contributor real behavior proof is sufficient. labels Sep 23, 2026
@RomneyDa

Copy link
Copy Markdown
Member

Two alternative implementation PRs are available for comparing how this RFC's guidance is supplied. Both are open and unmerged:

  • Plugin-package guidance — openclaw/openclaw#157679: A deployment plugin packages static supervisorGuidance metadata in openclaw.plugin.json: version, name, optional runFrom, and action-specific commands. Operators do not configure the copy; there is no configKey indirection or runtime registration callback. Manifest discovery validates the metadata without executing plugin code. Exactly one enabled, permitted provider supplies guidance; missing, invalid, ambiguous, or unsupported guidance falls back to existing copy. The plugin SDK exposes the guidance types and parser. OPENCLAW_SUPERVISOR_MODE=external remains the lifecycle authority.
  • Built-in core presets — openclaw/openclaw#158470: Core hardcodes Docker Compose and clawctl instructions. The existing variable selects them with OPENCLAW_SUPERVISOR_MODE=docker or clawctl; both values also enable external supervision. external retains generic copy. This approach adds no environment variable, plugin requirement, SDK surface, or OpenClaw configuration key.

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:

  • Older hosts ignore the plugin's unknown manifest metadata and keep generic copy, provided the plugin itself supports that host. No guidance config key needs removal on downgrade.
  • Older hosts recognize only supervisor mode external. With core presets, every Gateway/CLI writer must be upgraded before selecting docker or clawctl, and the deployment must restore external before downgrading.
  • The Docker preset assumes a published image and the openclaw-gateway service. Operators must use their deployment's Compose project directory and existing file set/order; customized/local-build workflows retain external.
  • Current Windows packaging explicitly sets external for child processes. Its generic behavior remains unchanged until the launcher adopts clawctl with a supporting OpenClaw payload; setting the host-shell variable alone does not override it.

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.

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants