Skip to content

RFC 0027: OpenClaw as the Open Enterprise Agent Platform - #35

Merged
kevinslin merged 9 commits into
mainfrom
dev/claw-enterprise
Aug 1, 2026
Merged

kevinslin merged 9 commits into
mainfrom
dev/claw-enterprise

Conversation

@kevinlin-openai

@kevinlin-openai kevinlin-openai commented Jul 13, 2026 •

Copy link
Copy Markdown
Contributor

Initial RFC for OpenClaw Enterprise.

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. labels Jul 13, 2026
@clawsweeper

clawsweeper Bot commented Jul 13, 2026 •

Copy link
Copy Markdown

Codex review: needs real behavior proof before merge. Reviewed August 1, 2026, 2:13 AM ET / 06:13 UTC.

ClawSweeper review

What this changes

This PR adds a draft RFC for a Kubernetes-based, multi-tenant OpenClaw Enterprise control plane that manages isolated gateways, agent workloads, authorization, integrations, secrets, and audit boundaries.

Merge readiness

⚠️ Ready for maintainer review - 7 items remain

This is still a live draft RFC, not an implemented or superseded change. It should remain open for a maintainer product-direction decision; the proposal needs explicit rationale and unresolved-question sections before it is acceptance-ready.

Priority: P3
Reviewed head: 58404ea286162dfa9d4e008cb084ea003a4af562
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The PR is a substantive, actively revised design draft, but it needs the expected decision sections and a maintainer direction choice before it is acceptance-ready.
Proof confidence 🌊 off-meta tidepool Not applicable: This PR changes only an RFC document, so runtime proof is not applicable; the relevant acceptance evidence is maintainer design discussion and sponsorship.
Patch quality 🦐 gold shrimp (3/6) 3 actionable review findings remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This PR changes only an RFC document, so runtime proof is not applicable; the relevant acceptance evidence is maintainer design discussion and sponsorship.
Evidence reviewed 6 items RFC lifecycle policy: The repository requires a new RFC to remain a draft PR until acceptance, with a maintainer-discussion thread and implementation issue before merge.
Draft proposal metadata: The proposed RFC declares status: draft, leaves its implementation issue blank, and links this PR through rfc_pr, so it is not presented as accepted work.
Current-main check: Current main has no RFC 0027, Enterprise control-plane document, or reference to this PR, so the central proposal is neither implemented nor superseded there.
Findings 3 actionable findings [P2] Add the required RFC decision sections
[P3] Remove the trailing whitespace in the proposal
[P3] Remove the trailing whitespace in the future-work list
Security None None.

How this fits together

The proposed Enterprise layer sits above the existing OpenClaw gateway. It would admit tenant-scoped requests, reconcile isolated namespace gateways and agent workloads, and coordinate policy, identity, secret, integration, and audit boundaries with Kubernetes and external systems.

flowchart TD
  A[Enterprise administrator] --> B[OpenClaw Controller]
  C[Authenticated tenant request] --> D[Access gateway]
  D --> B
  B --> E[Authorization and policy]
  B --> F[Namespace OpenClaw gateway]
  F --> G[Agent workload]
  B --> H[Kubernetes and external integrations]
  E --> I[Audit evidence]
Loading

Decision needed

Question Recommendation
Should OpenClaw pursue this Kubernetes-based multi-tenant Enterprise control plane as a core RFC direction? Sponsor a narrowed RFC: Keep the draft open and require explicit Kubernetes-native boundaries, rationale for custom resources, and concrete unresolved questions before acceptance.

Why: The proposal adds a large product and ownership surface whose split between Kubernetes-native infrastructure, OpenClaw core, and later RFCs cannot be resolved by a mechanical document review.

Before merge

  • Add real behavior proof - Not applicable: This PR changes only an RFC document, so runtime proof is not applicable; the relevant acceptance evidence is maintainer design discussion and sponsorship.
  • Add the required RFC decision sections (P2) - This requirement was visible at the prior reviewed head but was not raised then: the repository template expects Rationale and Unresolved questions, while this draft ends with Near Term Future work. Add those sections to explain the Kubernetes-native alternative and expose the remaining design decisions.
  • Remove the trailing whitespace in the proposal (P3) - git diff --check flags trailing whitespace on this added line. Remove it as part of the RFC cleanup.
  • Remove the trailing whitespace in the future-work list (P3) - git diff --check flags trailing whitespace in these added future-work entries. Remove it so the docs-only change passes basic diff validation.
  • Resolve merge risk (P1) - Accepting the RFC without sponsorship could commit OpenClaw to a broad new control-plane and ownership model before maintainers decide whether that belongs in core.
  • Resolve merge risk (P1) - The document does not yet explain the tradeoff between custom OCC resources and Kubernetes-native ConfigMaps, ServiceAccounts, policy constraints, and a CRD/operator approach raised in the review discussion.

Findings

  • [P2] Add the required RFC decision sections — rfcs/0027-openclaw-enterprise.md:570-578
  • [P3] Remove the trailing whitespace in the proposal — rfcs/0027-openclaw-enterprise.md:75
  • [P3] Remove the trailing whitespace in the future-work list — rfcs/0027-openclaw-enterprise.md:577-578
Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Proposal scope 1 added RFC, 578 lines The document defines multiple platform, security, and deployment contracts in a single draft, making a maintainer direction decision more important than routine docs review.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Have a maintainer sponsor or defer the Enterprise control-plane direction, then revise the draft to compare Kubernetes-native and custom-resource boundaries and to record the remaining tenancy, authorization, security, and operational questions before acceptance.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Have a maintainer sponsor or defer the Enterprise control-plane direction, then revise the draft to compare Kubernetes-native and custom-resource boundaries and to record the remaining tenancy, authorization, security, and operational questions before acceptance.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this PR proposes a new platform direction rather than reporting an existing behavior failure. The reviewable evidence is the RFC content, lifecycle metadata, and repository policy.

Is this the best way to solve the issue?

No: accepting the current document would skip the key Kubernetes-native versus custom-controller tradeoff and leave material platform questions unstructured; a sponsored, narrowed RFC revision is the safer path.

Full review comments:

  • [P2] Add the required RFC decision sections — rfcs/0027-openclaw-enterprise.md:570-578
    This requirement was visible at the prior reviewed head but was not raised then: the repository template expects Rationale and Unresolved questions, while this draft ends with Near Term Future work. Add those sections to explain the Kubernetes-native alternative and expose the remaining design decisions.
    Confidence: 0.99
    Late finding: first raised on code an earlier review cycle already covered.
  • [P3] Remove the trailing whitespace in the proposal — rfcs/0027-openclaw-enterprise.md:75
    git diff --check flags trailing whitespace on this added line. Remove it as part of the RFC cleanup.
    Confidence: 1
  • [P3] Remove the trailing whitespace in the future-work list — rfcs/0027-openclaw-enterprise.md:577-578
    git diff --check flags trailing whitespace in these added future-work entries. Remove it so the docs-only change passes basic diff validation.
    Confidence: 1

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against cf89a2bd089a.

Labels

Label changes:

  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This PR changes only an RFC document, so runtime proof is not applicable; the relevant acceptance evidence is maintainer design discussion and sponsorship.
  • remove status: 👀 ready for maintainer look: Current PR status label is status: ⏳ waiting on author.

Label justifications:

  • P3: This is a draft feature-direction RFC with no demonstrated current user-facing regression or release incident.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This PR changes only an RFC document, so runtime proof is not applicable; the relevant acceptance evidence is maintainer design discussion and sponsorship.

Evidence

What I checked:

  • RFC lifecycle policy: The repository requires a new RFC to remain a draft PR until acceptance, with a maintainer-discussion thread and implementation issue before merge. (README.md:52, cf89a2bd089a)
  • Draft proposal metadata: The proposed RFC declares status: draft, leaves its implementation issue blank, and links this PR through rfc_pr, so it is not presented as accepted work. (rfcs/0027-openclaw-enterprise.md:1, 58404ea28616)
  • Current-main check: Current main has no RFC 0027, Enterprise control-plane document, or reference to this PR, so the central proposal is neither implemented nor superseded there. (cf89a2bd089a)
  • Proposal history: The branch has eight proposal commits, including simplification and RFC-numbering cleanup, and its current head is not contained in main. (rfcs/0027-openclaw-enterprise.md:1, 58404ea28616)
  • Template mismatch: The RFC template calls for Rationale and Unresolved questions; this draft instead ends with Near Term Future work, leaving the Kubernetes-native tradeoff and open decisions unstructured. (rfcs/0027-openclaw-enterprise.md:570, 58404ea28616)
  • Docs-only validation: The one-file RFC diff has trailing whitespace at proposed lines 75, 577, and 578. (rfcs/0027-openclaw-enterprise.md:75, 58404ea28616)

Likely related people:

  • kevinlin-openai: Current-main history includes the RFC-process update e366ea9, and the same contributor authored the proposal branch’s simplification, renumbering, and current-head commits. (role: RFC-process contributor and proposal author; confidence: high; commits: e366ea9825a4, f56aa375bae2, 58404ea28616; files: README.md, rfcs/0000-template.md, rfcs/0027-openclaw-enterprise.md)
  • pavelanni: Their review identifies the key boundary question: retain Kubernetes-native infrastructure primitives where possible and justify any custom OCC abstractions. (role: design reviewer; confidence: medium; files: rfcs/0027-openclaw-enterprise.md)

Rank-up moves

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

  • Add Rationale and Unresolved questions addressing the Kubernetes-native alternative raised in review.
  • Remove the three trailing-whitespace errors reported by git diff --check.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (9 earlier review cycles; latest 8 shown)
  • reviewed 2026-07-19T15:07:45.465Z sha 39a0b33 :: needs real behavior proof before merge. :: [P2] Split the normative component contracts into RFCs
  • reviewed 2026-07-29T17:21:21.253Z sha 205ac7b :: needs real behavior proof before merge. :: [P2] Split normative component contracts into RFCs
  • reviewed 2026-07-30T07:39:03.872Z sha 205ac7b :: needs real behavior proof before merge. :: [P2] Split the normative platform contracts into RFCs | [P3] Link the RFC back to this pull request
  • reviewed 2026-07-30T08:38:17.573Z sha 205ac7b :: needs real behavior proof before merge. :: [P2] Split the normative platform contracts into focused RFCs | [P3] Link the RFC metadata to this review
  • reviewed 2026-07-30T14:34:48.934Z sha 205ac7b :: needs real behavior proof before merge. :: [P2] Split the normative platform contracts into focused RFCs | [P3] Link the RFC metadata to this review
  • reviewed 2026-08-01T00:21:15.194Z sha 205ac7b :: needs real behavior proof before merge. :: [P2] Split the normative platform contracts into focused RFCs | [P3] Link the RFC metadata to this pull request
  • reviewed 2026-08-01T03:05:10.035Z sha 205ac7b :: needs real behavior proof before merge. :: [P2] Split normative platform contracts into focused RFCs | [P3] Link the RFC metadata to this pull request
  • reviewed 2026-08-01T04:36:19.444Z sha 58404ea :: needs real behavior proof before merge. :: none

@pavelanni

Copy link
Copy Markdown

Thanks for putting this together — the agent lifecycle model (Agent → AgentRevision → AgentInstance → Cell) with immutable revision snapshots is genuinely novel and addresses a real gap that Kubernetes doesn't cover natively. The plugin action authorization with risk classification is also strong, and the fail-closed posture throughout is solid work.

My general instinct with platform work on Kubernetes is to start with native primitives and only introduce custom abstractions when I hit a wall or find myself building complex workarounds. Not because it's always right, but because each custom layer carries ongoing maintenance and security cost that's easy to underestimate early on.

Reading this, I kept asking myself: what would break if Configuration were just a ConfigMap? If WorkloadIdentity were a ServiceAccount with annotations? If Restrictions were Gatekeeper constraints? Some of those might have answers I'm not seeing — genuinely curious which ones you ran into limits on.

One pattern I'd love to see preserved is the idea of an OpenClaw Controller as a CRD + operator. A Claw CRD that captures agent config, credentials, network policy, and persona — reconciled by a standard controller-runtime operator — would give you GitOps deployment via Argo CD, native RBAC, watch/informer infrastructure, and garbage collection for free, while still letting you model the agent-specific lifecycle (revisions, instances, cells) as the genuinely custom part.

Could we scope the custom abstractions to the agent-domain concepts that Kubernetes truly can't express, and lean on native primitives for the infrastructure plumbing?

@clawsweeper clawsweeper Bot added 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. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Jul 19, 2026
@kevinlin-openai

Copy link
Copy Markdown
Contributor Author

Thanks for putting this together — the agent lifecycle model (Agent → AgentRevision → AgentInstance → Cell) with immutable revision snapshots is genuinely novel and addresses a real gap that Kubernetes doesn't cover natively. The plugin action authorization with risk classification is also strong, and the fail-closed posture throughout is solid work.

My general instinct with platform work on Kubernetes is to start with native primitives and only introduce custom abstractions when I hit a wall or find myself building complex workarounds. Not because it's always right, but because each custom layer carries ongoing maintenance and security cost that's easy to underestimate early on.

Reading this, I kept asking myself: what would break if Configuration were just a ConfigMap? If WorkloadIdentity were a ServiceAccount with annotations? If Restrictions were Gatekeeper constraints? Some of those might have answers I'm not seeing — genuinely curious which ones you ran into limits on.

One pattern I'd love to see preserved is the idea of an OpenClaw Controller as a CRD + operator. A Claw CRD that captures agent config, credentials, network policy, and persona — reconciled by a standard controller-runtime operator — would give you GitOps deployment via Argo CD, native RBAC, watch/informer infrastructure, and garbage collection for free, while still letting you model the agent-specific lifecycle (revisions, instances, cells) as the genuinely custom part.

Could we scope the custom abstractions to the agent-domain concepts that Kubernetes truly can't express, and lean on native primitives for the infrastructure plumbing?

@pavelanni thanks for the initial comments - the rfc wasn't ready for review yet. i've removed most of the details and unnecessary abstractions. it's now good to review

in terms of using k8 primitives - i'm completely for it. we would be using configmap for this and service account for workload identities. restrictions encompass also sandbox restrictions and is occ specific so we wouldn't be able to just rely on k8

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed 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. labels Jul 30, 2026
@kevinslin kevinslin changed the title [rfc] OpenClaw Enterprise RFC 0027: OpenClaw as the Open Enterprise Agent Platform Aug 1, 2026
@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 1, 2026
@kevinslin
kevinslin merged commit af708f0 into main Aug 1, 2026
2 checks passed
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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants