Skip to content

test(qa): prove container health endpoints - #119012

Merged
vincentkoc merged 1 commit into
mainfrom
qa-container-health-proof-20260803
Aug 4, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
qa-container-health-proof-20260803

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Aug 3, 2026 •

Copy link
Copy Markdown
Member

Related: #118785

What Problem This Solves

The Docker Compose QA producer exercised the packaged gateway topology, but it did not register primary evidence for the Compose gateway contract or prove the image health boundary end to end.

Why This Change Was Made

This extends the existing compose-setup producer instead of creating a parallel lane. It verifies the Dockerfile, resolved Compose service, and running container use the same healthcheck; proves /healthz and /readyz; checks authenticated gateway health from the gateway and CLI sidecar; forces a deterministic unhealthy state; and proves recovery with Docker health and operator-log diagnostics.

Primary coverage:

  • containers.docker-compose-gateway
  • containers.container-health-endpoints

Secondary coverage remains:

  • containers.docker-compose-mounts-and-secrets

User Impact

No product behavior changes. Maintainers gain package-backed Docker evidence for Compose startup, authenticated health commands, live/ready endpoints, unhealthy diagnostics, and recovery.

Evidence

Exact head: 2eaa83fd378ea4544eb417fdd0eec46966677364

  • Focused Vitest: src/dockerfile.test.ts 37/37 and test/e2e/qa-lab/runtime/docker-artifact-proof.test.ts 3/3.
  • Static proof: shell syntax, exact coverage queries for both primary IDs and the secondary ID, Docker plan inspection, git diff --check, and structured scenario assertions passed.
  • Fresh autoreview: Sol/high, TruffleHog clean, no accepted/actionable findings.
  • Direct AWS QA product proof: run_37f6db0fe4e9.
    • qa-evidence.json: compose-setup passed at exact ref 2eaa83fd378ea4544eb417fdd0eec46966677364.
    • Coverage emitted both primary IDs and retained mounts/secrets as secondary.
    • Package: [email protected], SHA-256 5bb1b42f85b368c83775c41967be2eaaf8a9c3f1c4d94dfa846d063da6c5aeb3.
    • Image: sha256:a4ab19aba7629b85a587d7313332ecc8523476746629376457225b9bedc02549.
    • Gateway and CLI identity artifacts record explicit success for healthcheck definition/resolution/runtime, live and ready endpoints, wrong-token rejection, configured-token acceptance, forced unhealthy state, recovery, Compose logs, and State.Health diagnostics.
    • Producer log ended Docker Compose setup proof passed and status=0.
  • The Crabbox wrapper recorded exit 1 only after QA completed because its trailing post-processing looked for a nonexistent scenario-level qa-evidence.json; the actual suite evidence is at the output root and the identity artifact is under script/compose-setup/. Existing artifacts were inspected directly; Docker was not rerun.
  • Exact-head changed gate: direct AWS run_55c607d4067f passed at 2eaa83fd378ea4544eb417fdd0eec46966677364, including all-lanes typecheck, lint, formatting, dependency guards, plugin boundaries, script declarations, and runtime import-cycle checks.
  • Diff: 2 files, +227/-22. Production LOC delta: 0.

Blacksmith Testbox authentication was unavailable. The first direct-AWS changed-gate attempt, run_81edcc0b7fef, failed before repository execution because the wrapper expected a missing dirty-tree bundle. The retry used a normal fresh-PR checkout and ran only the failed changed-gate surface.

AI-assisted: yes. The change and evidence were reviewed before submission.

@vincentkoc vincentkoc self-assigned this Aug 3, 2026
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts extensions: qa-lab size: M maintainer Maintainer-authored PR labels Aug 3, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review August 4, 2026 00:03
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added 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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Aug 4, 2026
@clawsweeper

clawsweeper Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 8:35 PM ET / August 4, 2026, 00:35 UTC.

ClawSweeper review

What this changes

Extends the existing Docker Compose QA producer to verify liveness/readiness endpoints, authenticated CLI health, Docker unhealthy state, recovery, and diagnostics.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep open for normal maintainer review at head 2eaa83fd378ea4544eb417fdd0eec46966677364: it adds unique, coherent Compose health evidence that current main does not contain, and the member-authored, maintainer-labeled PR must not be auto-closed.

Priority: P3
Reviewed head: 2eaa83fd378ea4544eb417fdd0eec46966677364

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A coherent, focused QA proof upgrade with no blocking correctness or security finding.
Proof confidence 🌊 off-meta tidepool Not applicable: This member-authored PR is outside the external-contributor proof gate; its body nevertheless supplies an exact-head direct Docker QA run, though linked artifacts could not be retrieved during this review.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This member-authored PR is outside the external-contributor proof gate; its body nevertheless supplies an exact-head direct Docker QA run, though linked artifacts could not be retrieved during this review.
Evidence reviewed 5 items Exact-head Compose proof: The changed producer verifies the Dockerfile, resolved Compose service, running container healthcheck, endpoints, token rejection, recovery, and recorded diagnostics.
Health endpoint contract: Gateway probes return the liveness envelope and local readiness details expected by the new assertions.
Current-main comparison: Current main differs from the PR by the full added scenario and Compose proof, so it has not superseded this work.
Findings None None.
Security None None.

How this fits together

QA Lab builds a package-backed OpenClaw image, starts the documented Compose gateway and CLI sidecar, then records health evidence. This exercises the container deployment contract without changing production runtime behavior.

flowchart LR
  A[Package-backed image] --> B[Compose QA producer]
  B --> C[Gateway container]
  B --> D[CLI sidecar]
  C --> E[Health and readiness endpoints]
  D --> F[Authenticated health command]
  C --> G[Unhealthy recovery]
  E --> H[QA evidence artifacts]
  F --> H
  G --> H
Loading

Before merge

  • Resolve merge risk (P1) - GitHub DNS was unavailable during review, so the current PR comment bodies, linked run artifacts, and any latest ClawSweeper rank-up moves could not be independently inspected before merge.
  • Complete next step (P2) - No mechanical repair is indicated; normal human review remains appropriate for this member-authored, maintainer-labeled PR.
Agent review details

Security

None.

PR surface

Other +205. Total +205 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 227 22 +205
Total 2 227 22 +205

Review metrics

Metric Value Why it matters
Production versus QA LOC production 0; QA/test net +205 The added code strengthens package-backed container evidence without changing shipped runtime behavior.

Stored data model

Persistent data-model change detected: serialized state: scripts/e2e/compose-setup.sh. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #118785
Summary: This PR is a viable candidate implementation for the linked umbrella issue's Compose-gateway and container-health proof targets.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Retain one canonical Compose QA producer and land this head once a maintainer confirms the current review-comment guidance and exact-head CI/proof remain applicable.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Retain one canonical Compose QA producer and land this head once a maintainer confirms the current review-comment guidance and exact-head CI/proof remain applicable.

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

Not applicable: this PR adds a QA proof rather than repairing a reported product failure; its Compose path is concretely defined in the existing artifact producer and scheduler.

Is this the best way to solve the issue?

Yes. Extending the existing compose-setup producer is the narrow owner-boundary solution; a parallel health lane would duplicate package/image setup and evidence ownership.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: This is a bounded QA-proof improvement with no user-facing runtime behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This member-authored PR is outside the external-contributor proof gate; its body nevertheless supplies an exact-head direct Docker QA run, though linked artifacts could not be retrieved during this review.

Label justifications:

  • P3: This is a bounded QA-proof improvement with no user-facing runtime behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This member-authored PR is outside the external-contributor proof gate; its body nevertheless supplies an exact-head direct Docker QA run, though linked artifacts could not be retrieved during this review.

Evidence

What I checked:

Likely related people:

  • vincentkoc: Current-main history includes the authenticated Compose health baseline, while this PR and the new scenario coverage are also attributed to this contributor. (role: recent Docker and QA health-contract contributor; confidence: medium; commits: 15b23cfc2d7a, 6ab556919e79; files: scripts/e2e/compose-setup.sh, qa/scenarios/runtime/compose-setup.yaml, Dockerfile)

Rank-up moves

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

  • Before merge, inspect the latest ClawSweeper comment and confirm that any rank-up moves are addressed or intentionally skipped.

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.

@vincentkoc
vincentkoc merged commit a85d3bb into main Aug 4, 2026
163 of 169 checks passed
@vincentkoc
vincentkoc deleted the qa-container-health-proof-20260803 branch August 4, 2026 00:49
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Aug 4, 2026
* origin/main: (54 commits)
  test(qa): cover agent session streaming (#119028)
  test(qa): cover sandbox workspace isolation (#119038)
  test(qa): cover progress followthrough evidence (#119039)
  fix(auth): cooldown inline api key billing failures (#88709)
  chore(gateway): cover update and setup RPCs
  test(qa): prove ClawHub catalog discovery (#118934)
  chore(qa): cover plugin testing harness contracts (#118933)
  test(qa): prove failure recovery visibility (#119034)
  test(qa): cover direct tool invocation (#119025)
  test(qa): close external app SDK proof gaps (#118978)
  test(qa): prove container health endpoints (#119012)
  test(qa): claim sessionless heartbeat coverage (#119027)
  fix(gateway): keep plugin model allowlists static (#118854)
  fix(plugins): refresh bundled channel skills (#119020)
  test(qa): cover ClawHub package compatibility (#118985)
  test(qa): cover agent session reconnect dedupe (#119013)
  test(qa): prove gateway chat RPCs (#118988)
  test(ui): cover Control UI auth transports (#118866)
  fix(auth): do not admit ambient environment credentials behind declared profiles (#118458)
  test(ui): cover operator administration flows (#118836)
  ...
vincentkoc added a commit that referenced this pull request Aug 4, 2026
* commit '25e3b6c9b79dadb912195d86fbff968602d58798': (54 commits)
  fix(cli): honor local port in gateway call (#119046)
  fix(gateway): honor external status target context (#119015)
  test(qa): cover agent session streaming (#119028)
  test(qa): cover sandbox workspace isolation (#119038)
  test(qa): cover progress followthrough evidence (#119039)
  fix(auth): cooldown inline api key billing failures (#88709)
  chore(gateway): cover update and setup RPCs
  test(qa): prove ClawHub catalog discovery (#118934)
  chore(qa): cover plugin testing harness contracts (#118933)
  test(xai): cover playback mark overflow
  fix(xai): bound realtime playback marks
  test(qa): prove failure recovery visibility (#119034)
  test(qa): cover direct tool invocation (#119025)
  test(qa): close external app SDK proof gaps (#118978)
  test(qa): prove container health endpoints (#119012)
  test(qa): claim sessionless heartbeat coverage (#119027)
  fix(gateway): keep plugin model allowlists static (#118854)
  fix(plugins): refresh bundled channel skills (#119020)
  test(qa): cover ClawHub package compatibility (#118985)
  test(qa): cover agent session reconnect dedupe (#119013)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: qa-lab maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant