Repository navigation
RFC 0018: Readiness Conditions and Providers - #33
giodl73-repo wants to merge 102 commits into
Conversation
510b525 to
5d3b673
Compare
|
Codex review: blocked before merge. Reviewed October 2, 2026, 4:00 PM ET / 20:00 UTC (Revision 146). ClawSweeper reviewWhat this changesAdds a readiness RFC and three supporting documents defining opt-in Gateway checks, plugin observations, runtime identity, and shared diagnostic output. Merge readiness⛔ Blocked before merge - 3 items remain The proposal remains distinct from the default branch and awaits product acceptance. The previously identified specification defects are resolved; no new blocking patch defect was established. Priority: P2 Review scores
Verification
How this fits togetherGateway readiness combines runtime observations and selected plugin checks into a traffic-admission decision. The proposed contract shares that decision and its diagnostic details across HTTP probes, status, health, and CLI consumers. flowchart TD
A[Runtime observations] --> D[Canonical readiness evaluation]
B[Activated plugin checks] --> D
C[Operator criterion selection] --> D
D --> E[Required checks determine readiness]
E --> F[HTTP traffic admission]
D --> G[Authenticated diagnostics and CLI]
Decision needed
Why: The specification is coherent, but permanent public API direction and the operational recovery tradeoff require maintainer intent; implementation proof cannot grant that acceptance. Before merge
Agent review detailsSecurityNone. Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Adopt one opt-in readiness contract with explicit operator selection, preserved legacy behavior, and an agreed provider recovery policy, independently of Hosting Profiles. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR proposes a new contract rather than repairing a reproduced defect in the RFC repository. Is this the best way to solve the issue? Yes, as a design approach: explicit activation, shared projections, bounded observations, and independent profile acceptance avoid competing evaluators; the public API and recovery policy still need product approval. AGENTS.md: not found in the target repository. Codex review notes: model internal, reasoning medium; reviewed against 967d9aac7472. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (145 earlier review cycles; latest 8 shown)
|
Co-authored-by: Copilot <[email protected]> Copilot-Session: ab870252-d6a4-454c-8254-b94b3efe2182
Co-authored-by: Copilot <[email protected]> Copilot-Session: ab870252-d6a4-454c-8254-b94b3efe2182
Co-authored-by: Copilot <[email protected]> Copilot-Session: ab870252-d6a4-454c-8254-b94b3efe2182
Co-authored-by: Copilot <[email protected]>
|
Refreshed onto current main at b09eed5 and resolved the two current specification findings. Permanent provider quarantine now has one bounded recovery boundary: it persists across config/plugin reload and clears only when the callback settles or the Gateway process restarts after operator repair, with an explicit conformance case. The health projection now refers to the declared ReadinessResult type. git diff --check passes. @clawsweeper re-review |
|
Closing this RFC as paused at the author's request while reducing the active proposal queue. This is a prioritization decision, not a statement that the design was rejected, accepted, shipped, or superseded. The branch, commits, and discussion history are retained. Reopen when the author and relevant maintainers choose to resume a concrete scope and refresh the proposal against current implementation and ownership boundaries. This closure does not merge, close, or change any implementation PR, fork, or deployed behavior. |
Decision Requested
Should OpenClaw add an opt-in, structured, subject-aware readiness contract around its existing Gateway checker?
This RFC covers Readiness Conditions and Providers. Standard Hosting Profiles remain a separate product/support decision in RFC 0023.
Why
OpenClaw already exposes
/readyand/readyz, but their evaluator is purpose-built around fixed Gateway observations. Operators cannot select which known runtime facts their deployment requires, plugins cannot contribute bounded observations, and a single result cannot identify the different runtime subjects those observations describe.Proposed V1
Each condition has stable
type,subjectRef,status,requirement,reason, andmessagefields, with optional bounded related subjects. RequiredFalseorUnknownconditions fail readiness; advisory conditions remain visible. Activated/ready,/readyz, Gateway health/status projections, andopenclaw readyconsume the same canonical result. HTTP/healthand/healthzremain shallow liveness.Health/status consumers can derive one selected-condition state without changing or re-evaluating conditions:
False->failingUnknownwithout a required failure ->unknownTruewith all required conditions true ->degradedpassingDetailed local or authenticated status reuses each condition's stable
reason, bounded redactedmessage, and subject references. Unauthenticated remote output exposes only the aggregate status and readiness boolean. A separate/statuszmay expose this diagnostic projection while/healthzremains liveness and/readyzremains traffic admission.The result declares its producer and a versioned reconciled subject package once. IDs renew at the lifecycle boundary owned by each subject: optional host workload, process, Gateway serving lifecycle, config, plugin, node, or another resource. A generation revises the same object. Operators can therefore diff
(subjectRef, type)and distinguish a condition transition from replacement or revision.OpenClaw retains no history. Hosts and telemetry systems may store and diff the bounded result. This gives Docker, Kubernetes, OCC, and other operators enough attribution to explain a readiness transition without turning readiness into a resource store or control plane.
Operators select reusable criteria through
gateway.readiness. Registering a criterion never selects it. Plugin providers are namespaced, enumerable, observational, advisory by default, and receive a subject collector. Core owns deadlines, cancellation, coalescing, caching, output bounds, redaction, reconciliation, deterministic ordering, and fail-closed projection.This PR includes the normative
Readiness v1andReadiness Subjects v1sidecars. Its non-normative platform comparison maps the design to Kubernetes, Docker, systemd, ASP.NET Core, Spring Boot, and OpenTelemetry.Proposed Condition Catalog
GatewayStartupComplete,GatewayAcceptingWork,ChannelRuntimeReady,ConfigLoadedChannelRuntimeSuppressed,EventLoopHealthy,PluginsLoadedWorkspaceWritable,ConfigCurrent,ModelRouteReady,SecretsReadyContextEngineReady,ToolCatalogReady,McpRuntimeReady,SandboxReady,HarnessReadySessionStorageReady,StateReady,DeliveryRuntimeReady,SchedulerReadyplugin.<plugin-id>.<criterion-id>ReadinessEvaluationCompleteand remoteGatewayRespondingguard failures keep incomplete evaluation or an unreachable Gateway explicit. Merely implementing or registering a condition never selects it. Outside the universal baseline, onlygateway.readinessconfiguration or a separately accepted Hosting Profile changes what must pass.Compatibility Boundary
gateway.readinessor another accepted activation contract,/readyand/readyzuse the legacy checker.gateway.readiness, including{}, activates bounded canonical evaluation.Unknownconditions.CanonicalReadinessResult; it does not change readiness contract version 1./healthand/healthzremain shallow liveness./statuszis diagnostic and returns200after successful evaluation regardless of condition-health state.Implementation Stack
abbdfa0876f.a7e0df75ff2. It depends on PR 104018./statuszat exact head8cb054a8f47. It is stacked after PR 114636 to avoid reopening the rebased implementation/profile stack, but it has no runtime dependency on Hosting Profiles.The framework and owner PRs are profile-free and independently adoptable. Owner criteria observe existing snapshots. Readiness does not make model calls, acquire credentials, connect MCP servers, start sandboxes or harnesses, open databases, or start schedulers. Active filesystem checks and provider calls are bounded.
Operator Facilities
openclaw ready --watchwith bounded semantic transitions, recovery, and subject-lifetime replacement without changing one-shot behavior.openclaw ready criteria list|inspectwithout invoking providers.openclaw ready --wait [duration]as a bounded startup gate over the canonicalreadyRPC.Package Proof
Exact-head package-installed Docker proof passes over the profile and release-artifact stack. It exercises RFC 0018 readiness surfaces, stable repeated polls, fail-closed transitions, and host-stable/process-and-Gateway-renewing container restart semantics using an immutable no-push package/image artifact.
Maintainer Questions
/statuszthe right diagnostic projection while/healthzremains shallow?