Skip to content

test(qa): cover status and health observability - #118961

Merged
vincentkoc merged 1 commit into
mainfrom
codex/qa0803-status-health-clear
Aug 3, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
codex/qa0803-status-health-clear

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Aug 3, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

The observability scorecard lacked executable QA ownership for nine production status and health behaviors: monitor lifecycle, authenticated Gateway health/status RPCs, account enable/disable reloads, and cached health snapshot boundaries.

Why This Change Was Made

Adds three isolated QA scenarios and test-only producers. They exercise the production monitor and health handler directly, then use the public QA Lab facade for the real CLI Gateway crossings needed by account reload and plugin-tool coexistence.

No production, SDK, taxonomy, status, health, monitor, or QA Lab implementation code changes.

User Impact

No runtime behavior changes. Maintainers gain regression evidence for:

  • startup/connect grace, stale/busy/stuck evaluation, restart sequencing, cooldown/hour caps, logging, failure recovery, and shutdown
  • authenticated health/status RPCs plus a targeted account config leaf reload with sibling stability
  • cache hits, bounded passive refresh, stale/probe/lifecycle bypasses, live overlays, public/admin isolation, and real plugin tool coexistence

Production LOC delta: 0. Test/QA delta: +1251 across 9 files.

Evidence

Final head: b8fb4e9339a692f9ac2f2a814d673bc4c3f023b0

Local focused proof:

  • monitor producer test: 1 passed
  • cached-health and Gateway producer tests: 4 passed, 2 real-Gateway cases skipped locally as intended
  • QA scenario catalog: 47 passed
  • oxfmt --check: 9 files passed
  • git diff --check: passed
  • branch autoreview: no actionable findings

Blacksmith Testbox exact-head proof:

  • exact three-scenario suite with OPENCLAW_QA_REAL_GATEWAY=1: 3 passed, 0 failed, 0 skipped
  • all three evidence entries record final head b8fb4e9339a692f9ac2f2a814d673bc4c3f023b0
  • all nine primary observability coverage IDs are present
  • pnpm check:changed: passed in 9m59s, including typecheck, lint, plugin boundaries, formatting, and runtime import-cycle checks

Artifacts:

  • .artifacts/qa-e2e/status-health-final-20260803/qa-suite-summary.json
  • .artifacts/qa-e2e/status-health-final-20260803/qa-evidence.json
  • .artifacts/qa-e2e/status-health-final-20260803/qa-suite-report.md

The normal Gateway response wire intentionally omits handler logging metadata, so exact { cached: true } evidence is captured at the production health-handler response boundary while real authenticated RPC proves payload and plugin-tool behavior.

Review Follow-Through

  • replaced private QA Lab source imports with the existing public extensions/qa-lab/api.js facade
  • removed direct use of the private QA channel transport helper
  • completed the latest ClawSweeper rank-up move by running and recording the exact Testbox Gateway proof above

@vincentkoc vincentkoc self-assigned this Aug 3, 2026
@vincentkoc vincentkoc changed the title chore(qa): cover status and health observability test(qa): cover status and health observability Aug 3, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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 3, 2026
@clawsweeper

clawsweeper Bot commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 6:16 PM ET / 22:16 UTC.

ClawSweeper review

What this changes

Adds three QA scenarios and test-only producers for channel-health monitoring, cached Gateway health responses, and account-level health/status reload behavior.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

No blocking correctness or security finding was found. This active, maintainer-authored PR adds distinct QA ownership for current Gateway health and channel-monitor behavior; it should remain open for normal maintainer merge review.

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

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Focused QA coverage with strong reported exact-head Gateway evidence and no source-level correctness finding.
Proof confidence 🦞 diamond lobster (5/6) Not applicable: This member-authored test-only PR is not subject to the external-contributor proof gate; its body nevertheless records exact-head Testbox Gateway evidence.
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 test-only PR is not subject to the external-contributor proof gate; its body nevertheless records exact-head Testbox Gateway evidence.
Evidence reviewed 6 items Test-only scope: The branch adds only scenario YAML and QA/test producers: no production, SDK, configuration, or dependency files change.
Production-boundary coverage: Current main’s health handler returns cached responses with bounded passive refresh and forces refreshes for probes or lifecycle mismatches, matching the added producer’s asserted boundary.
QA public contract: The producers use the public QA Lab facade for bus state/server and Gateway-child startup, rather than private extension imports.
Findings None None.
Security None None.

How this fits together

QA Lab scenarios invoke test producers that exercise the Gateway’s health/status paths and the channel-health monitor. The producers emit evidence artifacts that guard operational observability behavior without altering runtime code.

flowchart LR
  A[QA scenario definitions] --> B[Test-only producers]
  B --> C[Gateway health and status]
  B --> D[Channel health monitor]
  C --> E[QA evidence artifacts]
  D --> E
  E --> F[Regression coverage]
Loading

Decision needed

Question Recommendation
Should this focused test-only observability coverage be merged after the current-base merge result and required checks are confirmed? Merge after current-base verification: Accept the added QA ownership once GitHub verifies the merge result and required checks for the current base.

Why: The PR is member-authored and carries the protected maintainer label, so final merge acceptance remains a maintainer decision despite a clean source review.

Before merge

  • Resolve merge risk (P1) - The branch is behind current main; confirm the clean merge result and required checks against the current base before landing.
  • Complete next step (P2) - No mechanical repair is identified; the protected maintainer label and final merge acceptance require maintainer review.
Agent review details

Security

None.

PR surface

Tests +1158, Other +93. Total +1251 across 9 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 6 1158 0 +1158
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 3 93 0 +93
Total 9 1251 0 +1251

Review metrics

Metric Value Why it matters
Production vs test LOC production +0, tests/QA +1251 The added code is regression coverage and scenario metadata, with no runtime behavior change.

Stored data model

Persistent data-model change detected: migration/backfill/repair: qa/scenarios/observability/cached-health-snapshot-boundaries.yaml, migration/backfill/repair: qa/scenarios/observability/channel-health-monitor-lifecycle.yaml, migration/backfill/repair: qa/scenarios/observability/gateway-rpc-account-health.yaml, migration/backfill/repair: test/e2e/qa-lab/runtime/channel-health-monitor-lifecycle-runtime.test.ts, persistent cache schema: qa/scenarios/observability/cached-health-snapshot-boundaries.yaml, persistent cache schema: test/e2e/qa-lab/runtime/cached-health-snapshot-boundaries.test.ts, and 1 more. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Preserve the three public-facade QA scenarios as regression ownership for the existing health and monitor contracts, then merge once the current-base result is validated.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Preserve the three public-facade QA scenarios as regression ownership for the existing health and monitor contracts, then merge once the current-base result is validated.

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

Not applicable: this PR adds regression coverage rather than reporting a user-facing failure.

Is this the best way to solve the issue?

Yes. Current production already has focused unit coverage; these producers add the missing QA-level ownership through the public QA facade and real Gateway boundaries.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P3: This is test-only observability coverage with no user-facing runtime change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster 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 test-only PR is not subject to the external-contributor proof gate; its body nevertheless records exact-head Testbox Gateway evidence.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Recent account-lifecycle work and long-running health-monitor history cover the production paths exercised here. (role: recent Gateway health and monitor contributor; confidence: high; commits: aa2a5c96f69a, 42dd07748b15, 442b45e54eca; files: src/gateway/server-methods/health.ts, src/gateway/channel-health-monitor.ts, src/gateway/channel-health-policy.ts)
  • vincentkoc: Current-main history independently connects this author to health snapshot/status ownership and adjacent QA coverage. (role: recent health/status and QA contributor; confidence: high; commits: 0211407d8a2c, 46f629882b50, fa16b0fcf0f6; files: src/gateway/server-methods/health.ts, test/e2e/qa-lab/runtime/gateway-rpc-account-health.ts)
  • Dallin Romney: QA scenario YAML, script evidence, and real Gateway transport history establish relevant ownership of the test architecture. (role: QA Lab architecture contributor; confidence: high; commits: 9d68f877ac3e, 5361e5a0b455, fef839407995; files: extensions/qa-lab/api.ts, extensions/qa-lab/src/scenario-catalog.ts, test/e2e/qa-lab/runtime/script-evidence.ts)

Rank-up moves

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

  • Confirm the current-base merge result and required checks before landing.

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 (3 earlier review cycles)
  • reviewed 2026-08-03T21:04:39.534Z sha 69dfa1218a40780f551198f5bcfd790ca77b2b1c :: needs maintainer review before merge. :: none
  • reviewed 2026-08-03T21:13:53.946Z sha 54dd88e :: needs changes before merge. :: [P2] Use the QA Lab public facade for the Gateway child | [P2] Remove private QA Lab imports from the account-health producer
  • reviewed 2026-08-03T22:02:18.690Z sha b8fb4e9 :: needs maintainer review before merge. :: none

@vincentkoc
vincentkoc force-pushed the codex/qa0803-status-health-clear branch from 69dfa12 to 54dd88e Compare August 3, 2026 21:07
@clawsweeper clawsweeper Bot added status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 3, 2026
@vincentkoc
vincentkoc force-pushed the codex/qa0803-status-health-clear branch from 54dd88e to d4c7cd8 Compare August 3, 2026 21:37
@vincentkoc
vincentkoc force-pushed the codex/qa0803-status-health-clear branch from d4c7cd8 to b8fb4e9 Compare August 3, 2026 21:42
@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. 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 Aug 3, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review August 3, 2026 22:08
@vincentkoc
vincentkoc merged commit 51f6b8f into main Aug 3, 2026
145 of 152 checks passed
@vincentkoc
vincentkoc deleted the codex/qa0803-status-health-clear branch August 3, 2026 22:17
vincentkoc added a commit that referenced this pull request Aug 3, 2026
…r-admin-20260803

* origin/main: (89 commits)
  fix(googlechat): align doctor policy ownership with canonical account configuration (#118972)
  test(tui): prove editor input through PTY (#118982)
  fix(memory): persist trusted owner provenance at canonical transcript boundary (#118987)
  test(qa): cover health monitor and cache boundaries (#118961)
  fix(macos): restore dashboard frame double-click zoom (#118976)
  fix(googlechat): recover durable lanes after oversized attachments (#118986)
  test(qa): cover runtime telemetry evidence (#118950)
  fix(gateway): resolve SQLite usage details (#118918)
  test(cron): cover durable scheduler state (#118981)
  test(gateway): cover node exec approval relay (#118825)
  test(qa): add Active Memory recall coverage (#118963)
  test(qa): promote package-backed Docker artifact proof (#118826)
  test(qa): cover diagnostic event boundary (#118844)
  test(gateway): cover WebSocket runtime contracts (#118797)
  fix(signal): drain accepted websocket messages before shutdown (#118975)
  fix(plugins): remove stale load paths during uninstall (#118930)
  test(qa): cover bundled runtime discovery (#118922)
  chore(clawhub): cover plugin release policy contracts (#118971)
  test(qa): cover support export and stability (#118956)
  fix(feishu): enforce exact signed webhook request boundaries (#118758)
  ...
vincentkoc added a commit that referenced this pull request Aug 3, 2026
…ansports-20260803

* origin/main: (120 commits)
  test(ui): add service-worker update primary QA proof (#118805)
  test(qa): cover CLI onboarding and plugin install sources (#118882)
  test(qa): cover remote logging boundaries (#118951)
  fix(sms): retry transient MMS failures before durable adoption (#118994)
  test(qa): cover video generation invocation (#118864)
  test(qa): cover media reference intake (#118858)
  test(qa): cover image generation task lifecycle (#118915)
  feat(sms): track Twilio delivery status (#118665)
  test(tasks): cover TaskFlow registry lifecycle (#118983)
  test(gateway): verify SSH tunnel fallback (#118818)
  fix(security): harden network tool output at canonical owner boundaries (#118984)
  fix(googlechat): align doctor policy ownership with canonical account configuration (#118972)
  test(tui): prove editor input through PTY (#118982)
  fix(memory): persist trusted owner provenance at canonical transcript boundary (#118987)
  test(qa): cover health monitor and cache boundaries (#118961)
  fix(macos): restore dashboard frame double-click zoom (#118976)
  fix(googlechat): recover durable lanes after oversized attachments (#118986)
  test(qa): cover runtime telemetry evidence (#118950)
  fix(gateway): resolve SQLite usage details (#118918)
  test(cron): cover durable scheduler state (#118981)
  ...
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. size: XL 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