Skip to content

test(qa): cover runtime telemetry evidence - #118950

Merged
vincentkoc merged 2 commits into
mainfrom
codex/qa0803-telemetry-runtime-evidence
Aug 3, 2026
Merged

vincentkoc merged 2 commits into
mainfrom
codex/qa0803-telemetry-runtime-evidence

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Aug 3, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

The observability scorecard had no primary executable proof that QA Lab records real runtime tool evidence on the QA bus or that task progress claims remain tied to a completed artifact.

Why This Change Was Made

Adds two source-checkout QA scenarios and one companion E2E. The scenarios use a real mock-OpenAI gateway plus qa-channel turn: one validates searchable redacted outbound tool traces, and one validates ordered read, read, write followthrough with the status artifact written before the final Pending/Blocked/Done reply.

Scope is test-only: 0 production LOC. It does not touch diagnostics-otel, protocol, doctor, plugin, taxonomy, or QA Lab production code.

Primary coverage:

  • observability.telemetry-evidence
  • observability.telemetry-no-fake-progress
  • observability.telemetry-qa-bus
  • observability.telemetry-qa-lab
  • observability.telemetry-task-followthrough

User Impact

No shipped runtime behavior changes. Maintainers gain direct QA evidence for runtime telemetry and honest task followthrough.

Evidence

  • node scripts/run-vitest.mjs extensions/qa-lab/src/scenario-catalog.test.ts: 47/47 passed.
  • git diff --check: passed.
  • Production/test LOC: 0 production; +397/-0 QA scenarios and tests.
  • Private-QA build plus exact companion E2E passed on Blacksmith Testbox tbx_01kz4qnkawz4h4k9605eg6nx0w (run): 1/1 Vitest test and 2/2 runtime scenarios passed. The only later diff removes an unused map parameter; it does not change runtime or assertion behavior.
  • The changed gate passed every lane through runtime-sidecar checks, then found one unused callback parameter in the companion test. The one-line repair passed the failed full typecheck lane on Blacksmith Testbox tbx_01kz4rvh6wpf1mbhntk40bqndv (run).
  • Current signed head: d71a8c56586a653499471ed3a5307f9126b00809.

ClawSweeper Disposition

  • Rank-up move: rerun the two-scenario proof after any rebase. Not applicable: the branch was not rebased after the recorded Testbox proof.
  • The serialized-state metric refers to QA scenario and test fixtures, not persisted runtime state. No schema or migration surface changes.

AI-assisted: yes. The implementation and assertions were reviewed against the repository QA contracts.

@vincentkoc vincentkoc self-assigned this Aug 3, 2026
@vincentkoc vincentkoc changed the title improve(qa): cover runtime telemetry evidence test(qa): cover runtime telemetry evidence Aug 3, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review August 3, 2026 21:47
@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 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:03 PM ET / 22:03 UTC.

ClawSweeper review

What this changes

This PR adds two QA Lab flow scenarios and an E2E test that verify sanitized QA-bus tool traces and artifact-backed task-progress reporting through a mock OpenAI QA-channel turn.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

Keep this maintainer-owned PR open for normal QA-owner review. It adds focused, test-only evidence for a real mock-OpenAI plus QA-channel turn; current main has adjacent synthetic bus and direct-agent followthrough scenarios, but not this combined runtime path. No concrete patch defect was found.

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

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, coherent QA-only patch with supplied runtime proof and successful checks; no blocking defect was found.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored QA-only PR is exempt from the external-contributor proof gate; its body nevertheless provides a Blacksmith Testbox after-fix mock-OpenAI plus qa-channel run with both runtime scenarios passing.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored QA-only PR is exempt from the external-contributor proof gate; its body nevertheless provides a Blacksmith Testbox after-fix mock-OpenAI plus qa-channel run with both runtime scenarios passing.
Evidence reviewed 5 items Focused test-only patch: The PR head adds two runtime scenario YAML files and one QA Lab E2E test; the scenarios exercise a real qa-channel turn, inspect durable outbound tool traces, and check artifact-before-reply ordering.
Catalog automatically discovers nested scenarios: QA Lab recursively lists every nested YAML scenario except index.yaml, so the two new runtime files enter the catalog without an index.yaml edit.
Existing coverage is adjacent, not equivalent: Current main already has a synthetic QA-bus sanitization/search scenario and a direct-agent personal followthrough scenario; this PR adds the missing combined qa-channel runtime route and artifact serialization assertions.
Findings None None.
Security None None.

How this fits together

QA Lab discovers YAML scenarios, runs them through a mock OpenAI gateway and qa-channel, then writes structured suite and evidence artifacts. The added tests turn observability scorecard claims into executable proof without changing production runtime behavior.

flowchart LR
  A[QA scenario YAML] --> B[QA Lab catalog]
  B --> C[Mock OpenAI gateway]
  C --> D[QA-channel agent turn]
  D --> E[QA bus and workspace artifact]
  E --> F[Suite and evidence artifacts]
  G[E2E assertion] --> F
Loading

Decision needed

Question Recommendation
Does the QA owner want to retain this additional real qa-channel runtime evidence alongside the existing synthetic bus and direct-agent followthrough scenarios? Land after refresh: Retain the complementary real channel path and require exact-head QA proof only if rebasing changes the harness.

Why: The patch is coherent and test-only, but the protected maintainer label requires explicit owner handling of the added QA-suite cost and evidence boundary.

Before merge

  • Resolve merge risk (P1) - GitHub reported this PR as mergeable but behind its original base. Refresh the exact-head QA proof after any rebase because these scenarios depend on the evolving QA harness.
  • Resolve merge risk (P1) - A fresh local full-range diff check could not complete because this partial checkout attempted to fetch a missing promisor blob while GitHub DNS was unavailable; the review used directly available PR blobs and the supplied successful PR check/proof evidence instead.
  • Complete next step (P2) - No mechanical repair is indicated; this maintainer-owned test-only PR needs ordinary owner review and an exact-head proof refresh only if its branch changes.
Agent review details

Security

None.

PR surface

Tests +121, Other +276. Total +397 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 121 0 +121
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 276 0 +276
Total 3 397 0 +397

Review metrics

Metric Value Why it matters
Production vs test LOC production +0, tests/scenarios +397 The added surface is entirely executable QA evidence, so it adds no runtime behavior or upgrade risk.

Stored data model

Persistent data-model change detected: serialized state: qa/scenarios/runtime/telemetry-qa-lab-bus.yaml, serialized state: test/e2e/qa-lab/runtime/telemetry-runtime-boundaries.e2e.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep the existing synthetic and direct-agent scenarios, add this complementary real qa-channel coverage, and land it after any required rebase refresh confirms the same two-scenario runtime proof on the exact head.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep the existing synthetic and direct-agent scenarios, add this complementary real qa-channel coverage, and land it after any required rebase refresh confirms the same two-scenario runtime proof on the exact head.

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

Not applicable: this PR adds QA evidence rather than repairing a reported current-runtime defect. Its after-fix path is described in the PR body as a two-scenario mock-OpenAI plus qa-channel run.

Is this the best way to solve the issue?

Yes. The branch complements, rather than replaces, current main's synthetic QA-bus trace scenario and direct-agent followthrough scenario by exercising the real QA-channel route and emitted evidence artifacts together.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 65fa1f9a7bd1.

Labels

Label changes:

  • add P3: This is a focused test-only observability-evidence improvement with no shipped 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 maintainer-authored QA-only PR is exempt from the external-contributor proof gate; its body nevertheless provides a Blacksmith Testbox after-fix mock-OpenAI plus qa-channel run with both runtime scenarios passing.

Label justifications:

  • P3: This is a focused test-only observability-evidence improvement with no shipped 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 maintainer-authored QA-only PR is exempt from the external-contributor proof gate; its body nevertheless provides a Blacksmith Testbox after-fix mock-OpenAI plus qa-channel run with both runtime scenarios passing.

Evidence

What I checked:

Likely related people:

  • vincentkoc: Current-main history attributes the analogous QA-bus, task-followthrough, and QA Lab public API additions to Vincent Koc; the PR extends that same owned test surface. (role: recent QA Lab scenario and API contributor; confidence: high; commits: 5150670c72d9, d71a8c56586a; files: extensions/qa-lab/api.ts, qa/scenarios/runtime/qa-bus-tool-trace-visibility.yaml, qa/scenarios/personal/task-followthrough-status.yaml)

Rank-up moves

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

  • If the branch is rebased, rerun the two-scenario QA proof on the resulting exact head.

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 0483ca7 into main Aug 3, 2026
153 of 155 checks passed
@vincentkoc
vincentkoc deleted the codex/qa0803-telemetry-runtime-evidence branch August 3, 2026 22:11
vincentkoc added a commit that referenced this pull request Aug 3, 2026
* origin/main: (90 commits)
  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)
  feat(sms): add Twilio MMS support (#118664)
  test(gateway): prove TLS certificate pinning (#118812)
  test(qa): cover tool policy and sandbox gates (#118925)
  fix(cli): keep update dry-run state immutable (#118856)
  fix(scripts): honor last repeated CLI flag value (#118710)
  ...

# Conflicts:
#	pnpm-workspace.yaml
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
* test(qa): add telemetry runtime evidence

* test(qa): fix telemetry evidence typecheck
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: 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