Skip to content

fix(qa): enable OpenAI for stored audio scenario - #119349

Merged
steipete merged 1 commit into
mainfrom
codex/qa-audio-provider-plugin
Aug 4, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/qa-audio-provider-plugin

Conversation

@steipete

@steipete steipete commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

Closes #119348

What Problem This Solves

The inbound media-store audio QA scenario configured an OpenAI transcription model without declaring the OpenAI plugin. Its Gateway loaded acpx, memory-core, and qa-channel, then media understanding reported that the OpenAI transcription provider was unavailable. No marker reply could arrive, so the scenario failed only after 60 seconds.

Root Cause

QA scenarios own the optional bundled plugins required by their config through scenario.plugins. This scenario patched tools.media.models downstream but omitted the provider owner upstream. Provider/model strings in a scenario config patch do not activate plugins; that would bypass the explicit scenario ownership seam.

What Changed

  • Declare openai in inbound-media-store-audio-transcription's plugin list.
  • Assert that ownership in the existing channel-scenario catalog contract.

No provider loader, fallback, timeout, Gateway, media-store, transcription, protocol, config schema, or shipped product behavior changes.

Evidence

Exact head: 35ef01be3c0574.

Repair Doctrine Summary

  • Architectural owner: the QA scenario plugin declaration.
  • Canonical fix: activate the provider through scenario.plugins, matching the existing Matrix transcription scenario.
  • Avoided paths: no provider auto-discovery from arbitrary config patches, fallback provider, retry, timeout increase, or weaker assertion.
  • QA scenario delta: +2/-0.
  • Regression-test delta: +1/-0.
  • Total delta: +3/-0 across two QA-only files.
  • Risk: low. This only makes the declared QA scenario runnable.

Changelog not required: internal QA correctness only.

AI-assisted: yes.

@steipete

steipete commented Aug 4, 2026

Copy link
Copy Markdown
Contributor Author

Land-ready proof for 35ef01be3c0574cc6ada0522d27bef3d00172904.

The change is +3/-0 across two private-QA files and has no shipped runtime, protocol, config, provider-loader, or security effect. No proof gap remains.

@steipete

steipete commented Aug 4, 2026

Copy link
Copy Markdown
Contributor 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 proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P2 Normal backlog priority with limited blast radius. 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 4, 2026, 6:03 PM ET / 22:03 UTC.

ClawSweeper review

What this changes

Adds the OpenAI plugin declaration and a catalog assertion so the stored-audio QA scenario starts its transcription provider.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep this necessary QA repair open: current main still omits the explicit OpenAI plugin declaration, while the patch uses the established scenario activation seam and has sufficient exact-head behavior proof. The protected maintainer label requires human merge handling.

Priority: P2
Reviewed head: 35ef01be3c0574cc6ada0522d27bef3d00172904
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A focused owner-boundary repair with strong before-and-after QA behavior evidence and no actionable review finding.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (linked_artifact): The PR supplies exact-head Testbox evidence of the real QA Lab, mock provider, Gateway, and QA Channel flow producing the expected marker reply.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (linked_artifact): The PR supplies exact-head Testbox evidence of the real QA Lab, mock provider, Gateway, and QA Channel flow producing the expected marker reply.
Evidence reviewed 8 items Current-main defect: The scenario configures an OpenAI transcription model but has no declared scenario plugins on current main.
Activation owner boundary: The suite derives enabled plugins from selected scenarios, then passes them into Gateway startup; explicit scenario ownership is therefore the correct repair boundary.
Gateway configuration contract: Enabled plugin IDs become both allowed and enabled Gateway plugin entries, so the added declaration activates OpenAI without model-string inference.
Findings None None.
Security None None.

How this fits together

QA Lab reads scenario YAML, selects its declared plugins, and starts an isolated Gateway for the selected channel flow. The Gateway then processes stored inbound audio and emits the scenario’s expected QA-channel marker reply.

flowchart LR
  A[Scenario YAML] --> B[QA suite planner]
  B --> C[Declared plugin list]
  C --> D[Isolated Gateway]
  D --> E[OpenAI transcription]
  E --> F[QA Channel marker reply]
Loading

Decision needed

Question Recommendation
Should this maintainer-labeled internal QA repair proceed through normal protected-PR merge handling? Proceed through normal merge gates: Accept the owner-boundary repair after the repository’s exact-head protected-PR checks and review requirements are satisfied.

Why: The patch is narrow and evidence-backed, but the protected maintainer label requires an explicit human handling decision.

Before merge

  • Complete next step (P2) - No repair is needed; the patch has no actionable finding, while the protected maintainer label requires normal human merge handling.
Agent review details

Security

None.

PR surface

Tests +1, Other +2. Total +3 across 2 files.

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

Review metrics

Metric Value Why it matters
QA versus test LOC delta production +0; QA scenario configuration +2; tests +1 The only behavior change is an explicit QA ownership declaration, with one adjacent contract assertion protecting it.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #119348
Summary: This PR is the focused candidate fix for the linked missing-provider declaration report; both should remain open until it merges.

Members:

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

Technical review

Best possible solution:

Keep OpenAI declared by this scenario and retain the catalog contract so its stored-audio transcription flow always activates its provider before processing media.

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

Yes—high-confidence source reproduction is available: the linked scenario selects no OpenAI plugin despite configuring an OpenAI audio model, and the supplied single-scenario run records the resulting provider-unavailable failure.

Is this the best way to solve the issue?

Yes—the explicit scenario declaration is the narrowest maintainable fix because the existing planner already carries declared plugins into Gateway activation; model-string inference would bypass that ownership boundary.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 9bfe292c8686.

Labels

Label changes:

  • add P2: This repairs a deterministic internal QA scenario failure with limited blast radius and no shipped runtime behavior change.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR supplies exact-head Testbox evidence of the real QA Lab, mock provider, Gateway, and QA Channel flow producing the expected marker reply.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (linked_artifact): The PR supplies exact-head Testbox evidence of the real QA Lab, mock provider, Gateway, and QA Channel flow producing the expected marker reply.

Label justifications:

  • P2: This repairs a deterministic internal QA scenario failure with limited blast radius and no shipped runtime behavior change.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (linked_artifact): The PR supplies exact-head Testbox evidence of the real QA Lab, mock provider, Gateway, and QA Channel flow producing the expected marker reply.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR supplies exact-head Testbox evidence of the real QA Lab, mock provider, Gateway, and QA Channel flow producing the expected marker reply.

Evidence

What I checked:

Likely related people:

  • steipete: Recent reachable history attributes the selected-runtime QA flow path to this contributor, and this PR repairs that same path. (role: recent QA execution-path contributor; confidence: high; commits: f15120c6d19b, d16e33e08e45; files: extensions/qa-lab/src/suite-run.runtime.ts, extensions/qa-lab/src/suite-run-standard.ts)
  • vincentkoc: Recent history connects this contributor to the configuration boundary that turns declared plugin IDs into Gateway activation. (role: recent QA Gateway-config contributor; confidence: medium; commits: aa07d55ec98f; files: extensions/qa-lab/src/qa-gateway-config.ts)
  • shakkernerd: Local reachable history attributes the scenario and its catalog contract baseline to this contributor, though the partial object store limits older provenance. (role: scenario and contract introducer; confidence: medium; commits: f44eb4419f01; files: qa/scenarios/media/inbound-media-store-audio-transcription.yaml, extensions/qa-lab/src/scenario-catalog-channels.test.ts)

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.

@clawsweeper

clawsweeper Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: fix(qa): enable OpenAI for stored audio scenario This is item 1/1 in the current shard. Shard 0/1.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@steipete
steipete merged commit 15499e7 into main Aug 4, 2026
206 of 217 checks passed
@steipete
steipete deleted the codex/qa-audio-provider-plugin branch August 4, 2026 22:08
@steipete

steipete commented Aug 4, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Aug 5, 2026
Punchcard-Session: crisp-lantern-orchard-nv

* origin/main:
  perf(memory): defer session backfill runtime (#119372)
  fix(ci): isolate built TUI PTY fixture (#119339)
  fix(commands): restore tool inventory for dynamic models (#119306)
  fix(media): release rejected BytePlus and Runway video downloads under debug capture (#119257)
  docs: add ChromeOS (Crostini) platform install guide (#107663)
  test(msteams): serve JWKS from in-process server in auth coverage (#119354)
  fix(qa): enable OpenAI for stored audio scenario (#119349)
  test(agents): realpath apply-patch temp dir fixture (#119353)
  test(slack): drop redundant .js-suffixed system-event mock (#119352)
  fix(exec): leave safe builtins unrewritten in enforced mode (#119351)
  fix(sessions): keep gateway responsive while large transcript archives are built (#112424)
  fix(tui): restore provider auth in installed local mode (#119283)
vincentkoc added a commit that referenced this pull request Aug 5, 2026
…time

* origin/main: (75 commits)
  fix(commands): restore tool inventory for dynamic models (#119306)
  fix(media): release rejected BytePlus and Runway video downloads under debug capture (#119257)
  docs: add ChromeOS (Crostini) platform install guide (#107663)
  test(msteams): serve JWKS from in-process server in auth coverage (#119354)
  fix(qa): enable OpenAI for stored audio scenario (#119349)
  test(agents): realpath apply-patch temp dir fixture (#119353)
  test(slack): drop redundant .js-suffixed system-event mock (#119352)
  fix(exec): leave safe builtins unrewritten in enforced mode (#119351)
  fix(sessions): keep gateway responsive while large transcript archives are built (#112424)
  fix(tui): restore provider auth in installed local mode (#119283)
  fix(release): accept legacy empty core artifacts (#119337)
  fix(qa): carry selected runtime into flow scenarios (#119324)
  fix(ci): retry interrupted Windows dashboard release checks (#119095)
  fix(release): filter validation ancestry fetch (#119334)
  fix(release): accept trusted extended-stable validation evidence (#119264)
  fix(sessions): preserve recorder-owned user turns (#119307)
  perf(cli): split plugin registry startup timing (#119318)
  fix(qa): align release scenario setup and compaction proof (#119188)
  fix(ci): avoid duplicate Matrix release QA runs (#119171)
  perf(agents): reuse provider policy manifest registry (#119305)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 5, 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 P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: XS 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.

Inbound audio QA scenario times out without OpenAI plugin

1 participant