Repository navigation
feat: add standard hosting profiles - #107765
giodl73-repo wants to merge 35 commits into
Conversation
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
70bcdc6 to
a416b9b
Compare
|
Restacked exact head:
HOSTING_PROFILES_EXACT_HEAD_PROOF=passed @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed July 16, 2026, 7:50 PM ET / 23:50 UTC. Summary Reproducibility: not applicable. This PR proposes a new named hosting and readiness capability rather than fixing broken behavior with an existing contract. Its real scenarios are nevertheless reproducibly exercised by the supplied package-installed Docker matrix. Review metrics: 3 noteworthy metrics.
Stored data model Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review detailsBest possible solution: Land and stabilize the canonical readiness foundation first, then rebase this PR and explicitly approve a documented core profile matrix that remains opt-in, preserves unprofiled upgrades, and keeps every profile condition covered by package-installed release conformance. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR proposes a new named hosting and readiness capability rather than fixing broken behavior with an existing contract. Its real scenarios are nevertheless reproducibly exercised by the supplied package-installed Docker matrix. Is this the best way to solve the issue? Yes for implementation shape: composing opt-in named presets over one canonical readiness evaluator is narrower and more maintainable than creating a second health system. Product acceptance of the exact core matrix and public API surface remains unresolved. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 334c182c2729. Label changesLabel changes:
Label justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
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. How this review workflow works
Review history (3 earlier review cycles)
|
a416b9b to
f54affa
Compare
|
Addressed the review concern about implicit
Exact-head package-installed Docker proof passed: The lane built and checked the package tarball, then ran against image The unrelated @clawsweeper re-review |
4eda8e1 to
baaaa1a
Compare
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: feat: add standard hosting profiles This is item 1/1 in the current shard. Shard 0/1. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
|
Superseded by #113422, which restacks Hosting Profiles on the consolidated core-condition PR #113421 without force-pushing this review history. The corrected profile-only comparison is giodl73-repo#157. |
Related RFC: openclaw/rfcs#37 Depends on: #104018 > Stacked implementation: this branch contains readiness head
c21cf2903f4followed by twenty-one profile-only commits. Until PR 104018 lands, GitHub shows both layers; afterward this PR reduces to the Hosting Profiles work below. ## Problem OpenClaw runs locally, in containers, behind identity proxies, and as a controller for paired execution targets, but those deployment labels are not reproducible support contracts. Their intended posture is scattered across flags, environment, config, probes, and private checklists. A live Gateway can therefore claim readiness without satisfying the runtime facts its host expects. ## Standard Hosting Profiles Profiles are optional, named, release-tested presets over the readiness conditions from PR 104018. They do not create another evaluator. | Profile | Supported posture | Additional required evidence | | --- | --- | --- | |local| Explicit foreground/local Gateway | Writable workspace | |container| Directly reachable container listener | Non-loopback effective listener and writable workspace | |reverse-proxy| Gateway behind a trusted identity proxy | Trusted-proxy auth, identity header, trusted source, explicit loopback allowance when applicable, and writable workspace | |node-mode| Gateway controlling execution targets | Approved pairing, connected target, canonical command-policy approval, live control channel, and writable workspace | Selection precedence isgateway startup argument > environment > openclaw.json. Without a selection, OpenClaw preserves the legacy Gateway readiness decision and emits no profile or activation fields. Selecting a profile explicitly opts into canonical readiness even when no standalonegateway.readinesssection exists. Machine-readable readiness then identifies the profile, its source, a logical runtime ID, and a unique incarnation ID. Invalid selected values fail before destructive reset/force behavior; shadowed lower-precedence values are ignored. Profiles observe effective runtime state. They do not generate or repair configuration, add Lobster/OCC concepts, encode scheduler policy, or replace direct criterion selection. ## Why This Helps Docker, Kubernetes, systemd, OCC, and downstream hosts consume ordinary/readyz:200means the selected posture can serve work;503carries named unmet conditions. Maintainers gain a bounded scenario matrix for reproducing issues against postures OpenClaw explicitly ships and exercises. The reverse-proxy profile validates sources with the same address matcher as authentication and rejects listener/source combinations that cannot connect; it remains a configuration observation rather than a synthetic ingress request. Node-mode uses OpenClaw's current pairing owner, pairing generations, and canonical command policy, so a stale or merely connected node cannot satisfy readiness. A timed-out pairing read permits one bounded replacement read, never more than two concurrent reads, and errors are redacted. Profile and activation identity remain present even when outer readiness evaluation fails. ## Implementation Exact profile head:baaaa1af50d, based on readiness headc21cf2903f4. Profile-only diff: 39 files, 2,074 insertions, 18 deletions, including tests and documentation. The profile-only comparison remains available in fork PR 94. ## Validation - The current changed-file run passes 361 assertions; its only failure is an archive-timestamp test that cannot spawn the missing localzipexecutable. The focused post-fix profile/readiness run passes 113 assertions. The broad Gateway file has the same three unrelated failures on the exact readiness base. - Type-aware lint, formatting, andgit diff --checkpass on the exact head. - Independent review confirms profile-only selection opts into canonical evaluation, failure metadata survives evaluator failure, and unprofiled/unconfigured mode remains legacy. - Three broadgateway.test.tsfailures reproduce identically on the exact readiness base: one reload timing assertion and two staleagents.listfixtures. - Prior package-installed Docker proof covered all four profiles, expected listener/auth/node/workspace failures, recovery, and unprofiled compatibility. Exact-head remote proof remains a landing gate and is currently blocked by remote allocator authentication. ## Deliberate v1 Boundary RFC 0023 standardizes the four built-in profiles, optional selection, provenance, activation identity, readiness composition, and packaged scenario checks. Custom profile inheritance, host assertions, immutable conformance records, and attestation are future work rather than promises in this PR.