Repository navigation
fix(docker): use authenticated gateway health command - #118996
Conversation
|
@clawsweeper review |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 7:04 PM ET / 23:04 UTC. ClawSweeper reviewWhat this changesThe PR replaces unsupported authenticated root health commands in Docker guidance and Compose QA with the supported gateway health command, adds JSON contract checks, and cleans task-owned root-written test files. Merge readinessKeep open: this is a necessary, focused fix for a current Docker documentation and Compose-health defect. No blocking patch findings were found; the member-authored, maintainer-labeled PR needs normal merge handling after its behind-base status is refreshed. Priority: P2 Review scores
Verification
How this fits togetherDocker setup prints an operator command, while the Compose scenario starts a Gateway and a CLI sidecar to verify that same authenticated command. Both paths invoke the packaged CLI, which sends a health RPC to the running Gateway. flowchart LR
A[Docker setup output] --> B[Documented container command]
C[Compose QA scenario] --> D[Gateway container]
B --> E[Gateway health command]
D --> E
F[CLI sidecar] --> E
E --> G[Authenticated health RPC]
G --> H[Operator result and QA proof]
Decision needed
Why: The patch is correct and fixes current behavior, but protected maintainer handling requires a human merge decision. Before merge
Agent review detailsSecurityNone. PR surfaceTests +27, Docs 0, Other +30. Total +57 across 5 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the canonical gateway health invocation consistently in Docker operator output, documentation, and the real Compose proof after the merge result is refreshed. Do we have a high-confidence way to reproduce the issue? Yes—source reproducibly shows that current Docker guidance invokes root health with --token even though root health does not accept that option; gateway health does. Is this the best way to solve the issue? Yes—the PR uses the existing gateway-owned authenticated command instead of adding a parallel token surface to root health, and proves both Compose execution paths. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a2ccd6ea61ec. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
ClawSweeper rank-up move disposition for exact head
No rebase/merge refresh is needed: current-main drift is unrelated, the merge result is clean, and changing the head would invalidate the exact-head Docker attestation without changing this patch. |
|
Merged via squash.
|
* origin/main: (1301 commits) fix(sms): align MMS retries with network timeouts (openclaw#119002) test(qa): cover composed tool result consumption (openclaw#118991) test(cron): cover delivery outcomes (openclaw#118993) test(qa): cover guarded media fetch boundaries (openclaw#118857) test(qa): cover music generation controls (openclaw#118901) test(qa): cover core vision routing (openclaw#118861) test(qa): cover Gateway usage and memory APIs (openclaw#118995) fix(docker): use authenticated gateway health command (openclaw#118996) test(plugins): align tool fixtures with owner policy (openclaw#118959) test(qa): cover managed gateway service lifecycle (openclaw#118855) test(qa): cover audio proxy and limit handling (openclaw#118863) test(qa): cover PDF extraction dispatch (openclaw#118860) test(ui): add service-worker update primary QA proof (openclaw#118805) test(qa): cover CLI onboarding and plugin install sources (openclaw#118882) test(qa): cover remote logging boundaries (openclaw#118951) fix(sms): retry transient MMS failures before durable adoption (openclaw#118994) test(qa): cover video generation invocation (openclaw#118864) test(qa): cover media reference intake (openclaw#118858) test(qa): cover image generation task lifecycle (openclaw#118915) feat(sms): track Twilio delivery status (openclaw#118665) ...
* fix(docker): use authenticated gateway health command * test(docker): prove documented compose health command
Related: #118785
What Problem This Solves
Fixes an issue where operators following the Docker setup output or install guide would run
openclaw health --token, even though the root health command does not accept--token. The same unsupported command also caused the real Docker Compose proof to fail before authenticated Gateway health could be established.Why This Change Was Made
Uses the supported
openclaw gateway health --tokenboundary consistently in the setup hint, Docker guide, and Compose producer. The producer requests JSON and validates the returned health contract for both the Gateway service and CLI sidecar. It also removes root-owned bind-mount state through the established Docker cleanup pattern so a successful scenario cannot be reported as failed during teardown.User Impact
Docker operators can copy the documented authenticated health command and get a real Gateway health result. The package-backed Compose lane now proves the same command against both services and exits cleanly.
Evidence
0fcaf17385ae972501628d090060096344faf97e.TMPDIR=/tmp node scripts/run-vitest.mjs src/dockerfile.test.ts- 37/37 passed.cbx_22c6fe232f54, runrun_fc66c2b24274- 1/1 scenario passed; evidence ref matches the exact repaired head.sh -lcand returnedGateway Health/OK; identity recordsdocumentedHealthCommand=passed.healthJsonEnvelope=passedfor each.[email protected], SHA-2569deed492d2b1534456791de0c2123349dfc5c06df39fd1b4208243c369d2665e.sha256:4fb46705665a4fdf82033653247432b3350c7fbf2ef0712e5a5465e9373f5660.fe0608d0df31608a3b04fe619bb87f6d71673ad04571c40544b06b1e2a6f5a86was running and healthy; CLI sidecar7781eea89e3a781feddfe2cfbc69cd37887b122ef974a5667388602c305100bdexited successfully.git diff --checkand Bash syntax checks passed.src/config/**exports; current-main merge-ref CI remains the authoritative baseline gate. No current-main commit touches the five files in this PR.+2/-2).