Skip to content

chore: fold WebChat auto TTS proof into QA - #97632

Merged
RomneyDa merged 1 commit into
mainfrom
dallin/qa-webchat-auto-tts
Jun 29, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
dallin/qa-webchat-auto-tts

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

What Problem This Solves

Resolves a QA maturity accounting gap where the existing WebChat auto-TTS proof lived as a standalone repro script instead of durable QA Lab evidence for existing media coverage IDs.

Why This Change Was Made

This folds scripts/repro/webchat-auto-tts-live-proof.mjs into a QA-owned Vitest scenario and deletes the standalone repro path. The scenario claims primary coverage only for existing IDs it directly proves: media.tts and media.outbound-voice-audio-delivery; it intentionally does not claim gateway.webchat-hosting because this proof does not exercise a hosted WebChat browser surface.

User Impact

Developers and release operators can now count the WebChat auto-TTS proof through qa suite / qa coverage instead of rediscovering or manually running an unlinked repro script.

Evidence

Primary coverage claims:

  • media.tts: the QA test enables messages.tts, installs a mock speech provider, verifies WebChat block chunks do not synthesize intermediate audio, and verifies the final WebChat tail performs exactly one TTS synthesis with spoken text and trusted local media metadata.
  • media.outbound-voice-audio-delivery: the same final TTS payload is passed through WebChat audio block construction, proving trusted local TTS audio becomes an audio attachment while an untrusted local path is rejected.

Validation run:

  • node scripts/run-vitest.mjs test/e2e/qa-lab/media/webchat-auto-tts.e2e.test.ts extensions/qa-lab/src/scenario-catalog.test.ts --reporter=verbose
  • pnpm openclaw qa suite --provider-mode mock-openai --scenario webchat-auto-tts --output-dir .artifacts/qa-e2e/webchat-auto-tts
  • node scripts/run-oxlint.mjs --tsconfig test/tsconfig.json test/e2e/qa-lab/media/webchat-auto-tts.e2e.test.ts
  • node scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.test.json --pretty false
  • .agents/skills/autoreview/scripts/autoreview --mode local (clean: no accepted/actionable findings)

One attempted type probe using test/tsconfig.json failed because that project sets rootDir to test and rejects existing source imports; the shared test project above is the relevant passing typecheck.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts extensions: qa-lab size: M maintainer Maintainer-authored PR labels Jun 29, 2026
@clawsweeper

clawsweeper Bot commented Jun 29, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed June 28, 2026, 10:58 PM ET / 02:58 UTC.

Summary
The PR replaces a standalone WebChat auto-TTS repro script with a QA Lab scenario YAML and a Vitest e2e test that records primary coverage for existing TTS media IDs.

PR surface: Tests +117, Other -108. Total +9 across 4 files.

Reproducibility: not applicable. as a bug reproduction. This PR moves an existing proof into QA Lab coverage, and source inspection plus the PR body establish the behavior being covered rather than a failing current-main repro.

Review metrics: 1 noteworthy metric.

  • QA primary coverage claims: 2 added: media.tts and media.outbound-voice-audio-delivery. Maintainers should notice that this changes maturity coverage accounting for two existing taxonomy IDs.

Stored data model
Persistent data-model change detected: vector/embedding metadata: qa/scenarios/media/webchat-auto-tts.yaml. Confirm migration or upgrade compatibility proof before merge.

Merge readiness
Overall: 🐚 platinum hermit
Proof: 🌊 off-meta tidepool
Patch quality: 🐚 platinum hermit
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • none.

Next step before merge

  • [P2] Protected maintainer-labeled PR should stay on the normal maintainer merge path; no narrow ClawSweeper repair is identified.

Security
Cleared: The diff only moves QA/test proof and scenario metadata; it does not touch dependencies, workflows, secrets, package resolution, or runtime security boundaries.

Review details

Best possible solution:

Keep this on the normal maintainer review path and land the QA-owned scenario if maintainers agree the two primary coverage claims are the right maturity accounting target.

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

Not applicable as a bug reproduction. This PR moves an existing proof into QA Lab coverage, and source inspection plus the PR body establish the behavior being covered rather than a failing current-main repro.

Is this the best way to solve the issue?

Yes. A QA scenario YAML plus Vitest e2e test is the right owner boundary because the scenario catalog supports native Vitest execution paths and avoids leaving the proof as an unindexed standalone repro script.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 00c9ac55d664.

Label changes

Label changes:

  • add P3: This is a low-risk QA/test cleanup that improves release-operator evidence accounting without changing runtime product behavior.
  • 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: Real behavior proof gate is not applicable because this is a maintainer/member PR; the PR body still reports targeted local QA and lint/type validation.

Label justifications:

  • P3: This is a low-risk QA/test cleanup that improves release-operator evidence accounting without changing runtime product behavior.
  • 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: Real behavior proof gate is not applicable because this is a maintainer/member PR; the PR body still reports targeted local QA and lint/type validation.
Evidence reviewed

PR surface:

Tests +117, Other -108. Total +9 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 142 25 +117
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 27 135 -108
Total 4 169 160 +9

What I checked:

  • AGENTS policy read and applied: Root AGENTS.md plus scoped scripts, test, gateway, gateway/server-methods, and plugins guides were read; the QA YAML-only scenario rule, repo-root references, wrapper preference, and protected maintainer PR handling shaped the review. (AGENTS.md:35, 00c9ac55d664)
  • PR surface and validation context: Live PR data shows a clean, mergeable PR with 4 changed files, no review comments, maintainer label, reported validation commands, and successful relevant CI checks including QA Smoke CI, check-test-types, check-lint, and security-sensitive guard. (7b99da329e16)
  • QA catalog supports the requested owner boundary: The repo scenario pack says native tests should use scenario.execution.kind plus scenario.execution.path, and the catalog recursively loads nested YAML scenario files excluding index.yaml. (qa/scenarios/index.yaml:29, 00c9ac55d664)
  • Vitest QA scenarios are executable through qa suite: The unified suite launcher selects test-file scenarios by id, groups them by execution kind, and the test-file runner invokes Vitest scenarios through scripts/run-vitest.mjs with the declared path. (extensions/qa-lab/src/suite-launch.runtime.ts:123, 00c9ac55d664)
  • Coverage IDs match current taxonomy: The taxonomy defines media.tts and media.outbound-voice-audio-delivery as the two Text-to-Speech Delivery coverage IDs, matching the PR's primary coverage claims. (taxonomy.yaml:2941, 00c9ac55d664)
  • Runtime behavior under test is source-backed: maybeApplyTtsToPayload skips non-final delivery in final mode, writes successful TTS audio as mediaUrl, and marks it trustedLocalMedia; WebChat media embedding then requires trustedLocalMedia plus local-root allowance before creating an audio attachment. (packages/speech-core/src/tts.ts:2007, 00c9ac55d664)

Likely related people:

  • wyf027: GitHub PR metadata for the merged original WebChat auto-TTS fix shows this person authored the PR that added the standalone proof path now being folded into QA. (role: original WebChat auto-TTS fix author; confidence: medium; commits: e83d41a3ae91, 1bee26be3ec5, 7e2228ba81d4; files: scripts/repro/webchat-auto-tts-live-proof.mjs, packages/speech-core/src/tts.ts, src/gateway/server-methods/chat-webchat-media.ts)
  • Shakker: Local git blame/log for the current main snapshot attributes the existing standalone proof script and QA scenario/test-file runner infrastructure to commit e9ee58c. (role: current checkout area contributor; confidence: medium; commits: e9ee58c43419; files: scripts/repro/webchat-auto-tts-live-proof.mjs, extensions/qa-lab/src/scenario-catalog.ts, extensions/qa-lab/src/test-file-scenario-runner.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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.

How this review workflow works
  • 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.

@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 Jun 29, 2026
@RomneyDa
RomneyDa merged commit 18f0eea into main Jun 29, 2026
123 of 131 checks passed
@RomneyDa
RomneyDa deleted the dallin/qa-webchat-auto-tts branch June 29, 2026 06:20
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jun 30, 2026
chenyangjun-xy pushed a commit to chenyangjun-xy/openclaw that referenced this pull request Jul 1, 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