Skip to content

test(qa): validate live inbound voice talkback - #117971

Merged
vincentkoc merged 9 commits into
mainfrom
test/qa-live-voice-talkback-20260802
Aug 2, 2026
Merged

vincentkoc merged 9 commits into
mainfrom
test/qa-live-voice-talkback-20260802

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Aug 2, 2026 •

Copy link
Copy Markdown
Member

Related: #116201

What Problem This Solves

Realtime voice changes lacked one repeatable QA Lab scenario that sends a real spoken audio clip through stored-media transcription and verifies exactly one visible Gateway reply from a live OpenAI model.

Why This Change Was Made

Add a live-frontier QA Channel scenario for WAV -> media store -> OpenAI transcription -> Gateway agent reply. The existing immutable voice preflight WAV now has one top-level QA Lab owner shared with Matrix, so the private QA bundle can include it without coupling a generic scenario to Matrix transport internals.

This does not exercise the talk.session realtime relay and does not add provider, config, environment-variable, protocol, or runtime product surface.

User Impact

No production behavior changes. Maintainers gain a deterministic real-audio talkback gate for voice changes.

Evidence

  • Exact reviewed head: 54cb02151fd281624dbd59cc72b1e4f53bccf0f4
  • Focused QA Lab tests: initial 3 files, 6/6 passed; final review regressions 2 files, 6/6 passed
  • Private QA build: passed with OPENCLAW_BUILD_PRIVATE_QA=1
  • Live OpenAI QA scenario: 1/1 passed in 27.0s on the enforced openai/gpt-5.4 fast lane
  • Live result: transcribed the 54,238-byte spoken WAV and produced exactly one Matrix QA voice preflight OK reply
  • Fixture integrity: SHA-256 14f4c287682e7762cb17debd99b5126fcb43c875f8a225953ffc71295e6a71cb
  • Gateway RSS: 812,564,480 bytes at start, 656,080,896 bytes at finish, peak 814,694,400 bytes; no retained-growth signal in this run
  • Formatting, git diff --check, and TruffleHog: clean
  • Autoreview: clean after review fixes, patch confidence 0.99

AI-assisted; maintainer reviewed and live-validated.

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

clawsweeper Bot commented Aug 2, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 2, 2026, 8:02 AM ET / 12:02 UTC.

ClawSweeper review

What this changes

Adds a QA Lab live scenario that sends a real spoken WAV through QA Channel storage and OpenAI transcription, then checks that the Gateway emits one visible marker reply.

Merge readiness

✅ Ready for maintainer review

No blocking correctness or security defect was found in the current PR head. The earlier live-model finding is resolved: this active MEMBER-authored QA-only PR should remain open for normal maintainer review and completion of its running checks.

Priority: P3
Reviewed head: 54cb02151fd281624dbd59cc72b1e4f53bccf0f4

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The PR has direct exact-head live behavior evidence, focused regression coverage, and no identified patch defect.
Proof confidence 🦞 diamond lobster (5/6) Not applicable: The external-contributor proof gate does not apply to this MEMBER-authored PR; nevertheless, the PR body and follow-up provide exact-head live OpenAI output for the added scenario.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The external-contributor proof gate does not apply to this MEMBER-authored PR; nevertheless, the PR body and follow-up provide exact-head live OpenAI output for the added scenario.
Evidence reviewed 6 items Distinct live coverage: Current main's related scenario is mock-openai-only and synthesizes a buffer; it does not exercise a real spoken WAV or live model. The PR therefore adds a distinct test boundary rather than duplicating the existing mock coverage.
Live scenario contract: The proposed scenario requires live-frontier, OpenAI, and gpt-5.4, loads the shared WAV fixture, submits it as stored inbound media, and counts only non-deleted outbound messages for its conversation.
Prior finding resolved: The regression test now rejects openai/gpt-5.4-mini while the scenario requires gpt-5.4, addressing the preceding ClawSweeper finding about the unsupported mini-model pin.
Findings None None.
Security None None.

How this fits together

QA Lab runs isolated private scenarios against an ephemeral Gateway. This scenario feeds a stored audio attachment through the QA Channel and media-understanding path, then observes the agent reply produced by a live OpenAI turn.

flowchart LR
  Audio[Spoken WAV fixture] --> Channel[QA Channel inbound message]
  Channel --> Store[Media store]
  Store --> Transcription[OpenAI audio transcription]
  Transcription --> Gateway[Gateway agent turn]
  Gateway --> Reply[One visible QA reply]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +174, Tests -47, Other +135. Total +262 across 9 files.

View PR surface stats
Area Files Added Removed Net
Source 5 182 8 +174
Tests 3 122 169 -47
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 135 0 +135
Total 9 439 177 +262

Review metrics

None.

Stored data model

Persistent data-model change detected: serialized state: extensions/qa-lab/src/scenario-catalog.openai-live.test.ts. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Keep the focused live QA scenario, shared fixture, and gpt-5.4 lane contract together, then land after the exact head has completed normal CI review.

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

Not applicable as a standalone bug report: this PR adds QA coverage. The PR supplies a high-confidence exact-head live validation path for the new scenario through a spoken-WAV OpenAI round trip.

Is this the best way to solve the issue?

Yes. Current main covers the same media-store path only with a mock synthetic buffer; adding a narrowly isolated live spoken-WAV scenario is the maintainable way to cover the missing provider and transcription boundary.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 4dedd5c77ebb.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster 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: The external-contributor proof gate does not apply to this MEMBER-authored PR; nevertheless, the PR body and follow-up provide exact-head live OpenAI output for the added scenario.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P3: This PR adds isolated QA coverage and a shared test fixture without changing production runtime behavior or user configuration.
  • 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: The external-contributor proof gate does not apply to this MEMBER-authored PR; nevertheless, the PR body and follow-up provide exact-head live OpenAI output for the added scenario.

Evidence

What I checked:

Likely related people:

  • Shakker: Introduced the current scenario flow runner and its outbound-quiet helper, which own the runner contract used by this scenario. (role: QA flow and transport feature owner; confidence: high; commits: c4d355133ff6; files: extensions/qa-lab/src/scenario-flow-runner.ts, extensions/qa-lab/src/suite-runtime-transport.ts)
  • Harjoth Khara: Introduced the current mock media-store audio transcription scenario that this live scenario extends with real spoken-audio coverage. (role: recent media-understanding scenario contributor; confidence: high; commits: 18f31f6d2298; files: qa/scenarios/media/inbound-media-store-audio-transcription.yaml)

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 (1 earlier review cycle)
  • reviewed 2026-08-02T11:44:47.398Z sha cab7daa :: found issues before merge. :: [P2] Use the supported live QA model

@vincentkoc

Copy link
Copy Markdown
Member Author

Addressed the latest ClawSweeper move at exact head f5712a930b70f0977a04fad70973cdeb413dc3d0.

  • Replaced both prohibited openai/gpt-5.4-mini pins with the supported openai/gpt-5.4 fast lane.
  • Focused QA regressions pass: 2 files, 5/5 tests.
  • Exact-head live spoken-WAV roundtrip passes: 1/1 in 28.2s.
  • Result: provider=openai model=gpt-5.4 reply=Matrix, QA, Voice, Preflight, OK; markerReplies=1.
  • Gateway RSS: 830,521,344 bytes start, 672,907,264 bytes finish, 854,228,992 bytes peak.
  • Autoreview remains clean at 0.99.

The earlier independent review fixes are also present: the scenario no longer claims realtime Talk scorecard coverage, and deleted streaming previews are excluded from visible-reply counts.

@vincentkoc

Copy link
Copy Markdown
Member Author

Final exact-head proof: 54cb02151fd281624dbd59cc72b1e4f53bccf0f4.

  • Replaced both prohibited openai/gpt-5.4-mini pins with the supported openai/gpt-5.4 fast lane.
  • The scenario now enforces requiredModel: gpt-5.4; a focused negative regression proves the mini model is rejected before Gateway startup.
  • Focused QA regressions pass: 2 files, 6/6 tests.
  • Exact-head live spoken-WAV roundtrip passes: 1/1 in 27.0s.
  • Result: provider=openai model=gpt-5.4 reply=matrix QA voice preflight OK; markerReplies=1.
  • Gateway RSS: 812,564,480 bytes start, 656,080,896 bytes finish, 814,694,400 bytes peak.
  • Autoreview remains clean at 0.99.

The earlier independent review fixes are also present: the scenario no longer claims realtime Talk scorecard coverage, and deleted streaming previews are excluded from visible-reply counts.

@vincentkoc
vincentkoc marked this pull request as ready for review August 2, 2026 11:57
@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 2, 2026
@vincentkoc
vincentkoc merged commit 8206bf1 into main Aug 2, 2026
190 of 196 checks passed
@vincentkoc
vincentkoc deleted the test/qa-live-voice-talkback-20260802 branch August 2, 2026 12:05
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 3, 2026
…alkback-20260802

test(qa): validate live inbound voice talkback
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: L 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