Skip to content

improve(qa): cover music generation controls - #118901

Merged
vincentkoc merged 1 commit into
mainfrom
qa-media-music-controls-20260803
Aug 3, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
qa-media-music-controls-20260803

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Aug 3, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Music generation controls and production tool invocation lacked primary QA ownership across provider routing, capability normalization, and persisted output.

Why This Change Was Made

Adds one QA scenario around the effective production tool inventory and real music_generate runtime, covering:

  • production registration and invocation of music_generate
  • configured primary and fallback provider ordering
  • explicit provider/model selection
  • lyrics, instrumental, duration, and output-format controls
  • capability-driven ignored overrides and duration normalization
  • invalid-format rejection before provider invocation
  • nonempty audio persistence through the real media store

Primary coverage:

  • media.lyrics-instrumental-duration-and-format-controls
  • media.music-generation-provider-controls
  • media.music-generation-tool-invocation

User Impact

No runtime behavior changes. Regressions that remove the tool, misroute providers, mishandle controls, or fail to persist generated audio now fail as owned QA coverage.

Evidence

  • Exact head: 8e4d47e6edaea6f20f9fc492476198ef5f21d821.
  • Exact tree: 83d26c97f465e6884659e1ad3dd3a5e97a4aa018.
  • Focused product tests: 2/2 passed.
  • QA suite: 1/1 passed in full evidence mode.
  • Evidence artifact: .artifacts/qa-e2e/music-generation-controls-exact-8e4d47e-20260803/qa-evidence.json.
  • The direct-cast TS2352 was removed by using createPluginMetadataSnapshot with a structurally valid PluginManifestRecord.
  • Fixture repair test LOC delta: -24.
  • Product-runtime LOC delta: 0.
  • git diff --check: passed.
  • Privacy scan: passed.
  • Hosted replacement exact-head CI: pending.
{
  "scenario": "music-generation-controls",
  "ref": "8e4d47e6edaea6f20f9fc492476198ef5f21d821",
  "tree": "83d26c97f465e6884659e1ad3dd3a5e97a4aa018",
  "evidence": ".artifacts/qa-e2e/music-generation-controls-exact-8e4d47e-20260803/qa-evidence.json",
  "primaryCoverage": [
    "media.lyrics-instrumental-duration-and-format-controls",
    "media.music-generation-provider-controls",
    "media.music-generation-tool-invocation"
  ],
  "focusedPassed": 2,
  "fullSuiteStatus": "pass",
  "fullSuitePassed": 1,
  "fixtureTestLocDelta": -24,
  "productRuntimeLocDelta": 0,
  "hostedExactHeadCi": "pending"
}

@vincentkoc vincentkoc self-assigned this Aug 3, 2026
@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, 7:08 PM ET / 23:08 UTC.

ClawSweeper review

What this changes

Adds a QA scenario and end-to-end test covering music-generation tool availability, configured provider fallback, control normalization, validation, and audio persistence.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

No blocking findings. This maintainer-owned PR adds focused QA coverage over the existing music-generation boundary; current main retains the exercised runtime paths and the supplied exact-head checks are green.

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

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, production-boundary QA addition with green supplied checks and no supported correctness or security concern.
Proof confidence 🌊 off-meta tidepool Not applicable: This MEMBER-authored PR is exempt from the external-contributor proof gate; its body and successful QA checks nevertheless provide focused runtime-and-media-store 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 PR is exempt from the external-contributor proof gate; its body and successful QA checks nevertheless provide focused runtime-and-media-store evidence.
Evidence reviewed 5 items Current runtime contract: The tool gates availability on canonical music configuration and prepared music providers, then passes the prepared providers into execution.
Fallback and normalization owner: Current main resolves configured candidates, normalizes controls per provider, records failed attempts, and rejects empty provider output.
QA scenario contract: The scenario catalog accepts this metadata shape and routes an .e2e.test.ts scenario through the dedicated E2E Vitest configuration.
Findings None None.
Security None None.

How this fits together

QA Lab scenarios map product behaviors to runnable evidence. This test invokes the production music-generation tool with prepared providers and verifies the resulting audio is saved through the media store.

flowchart LR
  A[Music model configuration] --> B[Prepared providers]
  B --> C[Music generation tool]
  C --> D[Provider routing and normalization]
  D --> E[Generated audio]
  E --> F[Media store]
  F --> G[QA scenario evidence]
Loading

Decision needed

Question Recommendation
Should this maintainer-owned QA scenario be accepted as the primary end-to-end regression coverage for music-generation controls? Accept the QA coverage: Approve the focused scenario because it exercises the production tool, prepared providers, normalization, fallback, and real media persistence without changing runtime behavior.

Why: The protected maintainer label requires an explicit maintainer decision even though no mechanical blocker was found.

Before merge

  • Complete next step (P2) - No repair is needed; this protected maintainer-owned PR needs ordinary maintainer acceptance rather than an automated fix lane.
Agent review details

Security

None.

PR surface

Tests +349, Other +33. Total +382 across 2 files.

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

Review metrics

Metric Value Why it matters
Runtime versus QA LOC production +0; QA scenario +33; E2E test +349 The added code is regression coverage only, with no production behavior or configuration change.

Stored data model

Persistent data-model change detected: serialized state: qa/scenarios/media/music-generation-controls.yaml, vector/embedding metadata: test/e2e/qa-lab/media/music-generation-controls.e2e.test.ts. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Keep the production-boundary scenario alongside the existing music runtime unit tests, so registration, provider routing, normalization, and persisted output remain covered together.

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

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

Is this the best way to solve the issue?

Yes. A production-tool E2E scenario complements the runtime unit tests by checking registration, prepared provider routing, validation, normalization, and persisted output together.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 1cdfe9ed7d7b.

Labels

Label justifications:

  • P3: This is low-risk additive QA coverage with no 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 MEMBER-authored PR is exempt from the external-contributor proof gate; its body and successful QA checks nevertheless provide focused runtime-and-media-store evidence.

Evidence

What I checked:

Likely related people:

  • vincentkoc: Recent current-main QA/media work and the prepared-provider seam are attributed to this contributor; they also authored the present coverage. (role: recent area contributor; confidence: high; commits: 622b5eaf8e5d, a492eb90684, 8e4d47e6edae; files: src/agents/tools/music-generate-tool.ts, src/plugins/capability-provider-runtime.ts, test/e2e/qa-lab/media/video-generation-invocation.e2e.test.ts)
  • Peter Steinberger: The music-generation feature history reaches the original feature commit. (role: original feature contributor; confidence: medium; commits: dc0ee2e178dc; files: src/music-generation/runtime.ts, src/agents/tools/music-generate-tool.ts)
  • Dallin Romney: History around QA runtime-evidence coverage includes this contributor’s related work. (role: adjacent QA contributor; confidence: medium; commits: 95e3b92, 05d83125; files: test/e2e/qa-lab, qa/scenarios)

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 (2 earlier review cycles)
  • reviewed 2026-08-03T21:08:15.889Z sha c1d774e :: needs maintainer review before merge. :: none
  • reviewed 2026-08-03T21:16:37.632Z sha a2d34df :: needs maintainer review before merge. :: none

@vincentkoc
vincentkoc force-pushed the qa-media-music-controls-20260803 branch from c1d774e to a2d34df Compare August 3, 2026 21:10
@vincentkoc
vincentkoc marked this pull request as ready for review August 3, 2026 22:16
@vincentkoc
vincentkoc force-pushed the qa-media-music-controls-20260803 branch from a2d34df to fb1392d Compare August 3, 2026 22:24
@vincentkoc
vincentkoc force-pushed the qa-media-music-controls-20260803 branch from fb1392d to 8e4d47e Compare August 3, 2026 22:24
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 3, 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:

@vincentkoc
vincentkoc merged commit 9dfc74e into main Aug 3, 2026
100 checks passed
@vincentkoc
vincentkoc deleted the qa-media-music-controls-20260803 branch August 3, 2026 23:12
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit to clawSean/openclaw that referenced this pull request Aug 3, 2026
* origin/main: (1301 commits)
  fix(sms): align MMS retries with network timeouts (openclaw#119002)
  test(qa): cover composed tool result consumption (openclaw#118991)
  test(cron): cover delivery outcomes (openclaw#118993)
  test(qa): cover guarded media fetch boundaries (openclaw#118857)
  test(qa): cover music generation controls (openclaw#118901)
  test(qa): cover core vision routing (openclaw#118861)
  test(qa): cover Gateway usage and memory APIs (openclaw#118995)
  fix(docker): use authenticated gateway health command (openclaw#118996)
  test(plugins): align tool fixtures with owner policy (openclaw#118959)
  test(qa): cover managed gateway service lifecycle (openclaw#118855)
  test(qa): cover audio proxy and limit handling (openclaw#118863)
  test(qa): cover PDF extraction dispatch (openclaw#118860)
  test(ui): add service-worker update primary QA proof (openclaw#118805)
  test(qa): cover CLI onboarding and plugin install sources (openclaw#118882)
  test(qa): cover remote logging boundaries (openclaw#118951)
  fix(sms): retry transient MMS failures before durable adoption (openclaw#118994)
  test(qa): cover video generation invocation (openclaw#118864)
  test(qa): cover media reference intake (openclaw#118858)
  test(qa): cover image generation task lifecycle (openclaw#118915)
  feat(sms): track Twilio delivery status (openclaw#118665)
  ...
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: 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