Skip to content

test(music): remove redundant registration coverage - #134548

Merged
steipete merged 1 commit into
mainfrom
codex/test-audit-music-model-policy
Sep 1, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/test-audit-music-model-policy

Conversation

@steipete

@steipete steipete commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The music tool has two registration tests with the same configured-model invocation. The stronger case also makes provider discovery throw and verifies it never ran. A private model-selection forwarding function has one caller and no independent contract.

Why This Change Was Made

Remove the duplicate registration case and call the shared model-selection owner directly, preserving configuration, workspace, agent directory, auth store, call override and lazy provider discovery. The shorter file no longer needs its max-lines exemption, so remove that suppression and its exact baseline row.

User Impact

Runtime and public tool behavior are unchanged. Production is +3/-20 (net -17), tests -14, and the lint baseline loses one entry. Explicit-model laziness, timeout overrides, cancellation, detached-task continuation, SSRF, persistence rollback and delivery protection retain their coverage. The separately landed fallback documentation correction is preserved; this PR does not change fallback policy.

Evidence

The ordinary Music/shared-helper group passed 52 cases before and 51 after, removing exactly the duplicate registration case. Four temporary fault controls were captured and restored: inverted availability failed both old registration cases and the stronger retained case; eager discovery failed the retained explicit-execution case before and after deletion. The final suppression/baseline cleanup does not change executable or test bytes.

Full changed checks and the standard build passed for the reviewed three-file patch, including SDK declarations, CLI bootstrap and UI budgets. Managed review and independent owner/lifecycle inspection found no actionable issue. These are retained results from their recorded source bases, not new build results after this refresh.

Hosted CI subsequently failed unrelated Teams inline-code and unpinned promotional-price fixtures. This failure-justified refresh incorporates the canonical repairs from #134528 and #134564. All three candidate afterimages and the complete binary patch remain unchanged. The canonical pricing repair's 107-case main proof retains all 20 source contexts; it is not claimed as a new branch run.

Because the base updates TypeBox to 1.3.17, the composed commit was run through the ordinary Music/shared-helper group again: all 51 cases passed with the exact inventory and order preserved. A fresh managed Codex review of the complete composed diff is scoped-clean at the configured P0 threshold. Exact-head hosted CI 33462496843 completed successfully; the latest completed review has no findings.

This is internal composition proof using existing provider, persistence and task fixtures. It does not claim a live provider call, performance improvement or durable background-task proof. No assertion is weakened and no timeout, mock surface, dependency or public API is added by this PR.

The same 51-case group also passed on the current-main composition at 9597f65, including its changed transitive auth imports, with exact case names and execution order. An independent closeout verified the complete patch, source contexts, raw logs and restoration. This is a Music owner composition check, not independent auth-storage validation.

@clawsweeper

clawsweeper Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: XS maintainer Maintainer-authored PR labels Aug 31, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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. labels Aug 31, 2026
@clawsweeper

clawsweeper Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 31, 2026, 10:32 PM ET / September 1, 2026, 02:32 UTC.

ClawSweeper review

What this changes

The branch deletes a duplicate music-tool registration test, inlines a one-use model-resolution wrapper at its caller, and removes the corresponding lint size exemption.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

Keep this maintainer-authored cleanup open: the direct shared-resolver call preserves the wrapper’s arguments, while the retained registration test is stronger than the deleted smoke case.

Priority: P3
Reviewed head: 42a39185251a9e90c52d8fc6c086bca231165a0b

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, net-negative cleanup with preserved argument forwarding and stronger retained lazy-discovery coverage.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored, behavior-neutral cleanup changes no user-visible flow; focused retained boundary coverage is the relevant evidence.
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, behavior-neutral cleanup changes no user-visible flow; focused retained boundary coverage is the relevant evidence.
Evidence reviewed 5 items Equivalent resolver call: The introduced hunk replaces the private forwarding wrapper with the same shared resolver and preserves configuration, workspace, agent directory, auth store, model override, and lazy provider callback.
Stronger retained registration coverage: The remaining registration test uses the same configured music model but makes provider discovery throw and asserts it was never called; the removed test only asserted a tool was returned.
Shared resolver contract: The shared resolver returns on an explicit configuration before invoking its lazy provider source, with dedicated coverage for that behavior.
Findings None None.
Security None None.

How this fits together

The music-generation tool resolves configured or explicitly requested models before invoking a music provider. This cleanup simplifies that internal request path without changing its user-visible behavior.

flowchart LR
  A[Agent music request] --> B[Music generation tool]
  B --> C[Shared model resolver]
  C --> D[Provider discovery when needed]
  D --> E[Music provider]
  E --> F[Generated audio result]
Loading

Before merge

  • Complete next step (P2) - No repair lane is needed: the branch has no actionable correctness finding, and normal exact-head CI gating remains.
Agent review details

Security

None.

PR surface

Source -17, Tests -14, Other -1. Total -32 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 1 3 20 -17
Tests 1 0 14 -14
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 0 1 -1
Total 3 3 35 -32

Review metrics

Metric Value Why it matters
Production versus test delta production −17, tests −14 The branch is net-negative, removing a one-use production wrapper and redundant coverage.

Technical review

Best possible solution:

Land the behavior-neutral simplification after the required exact-head checks complete, retaining the stronger lazy-discovery coverage.

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

Not applicable: this PR removes redundant internal coverage and a forwarding wrapper rather than fixing a reported user-facing failure.

Is this the best way to solve the issue?

Yes: calling the established shared resolver directly removes a one-use wrapper, and the retained test protects the same registration behavior plus lazy provider discovery.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P3: This is a low-risk internal test and refactor cleanup with no intended user-visible 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, behavior-neutral cleanup changes no user-visible flow; focused retained boundary coverage is the relevant evidence.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

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

  • Wait for the required exact-head checks to complete before landing.

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-31T23:55:06.367Z sha 356ed2e :: needs maintainer review before merge. :: none
  • reviewed 2026-09-01T00:27:29.224Z sha 356ed2e :: needs maintainer review before merge. :: none

@steipete
steipete marked this pull request as ready for review September 1, 2026 00:20
@steipete
steipete force-pushed the codex/test-audit-music-model-policy branch from 356ed2e to 42a3918 Compare September 1, 2026 02:25
@steipete steipete self-assigned this Sep 1, 2026
@steipete
steipete merged commit 82f4fd1 into main Sep 1, 2026
263 of 265 checks passed
@steipete
steipete deleted the codex/test-audit-music-model-policy branch September 1, 2026 05:12
@steipete

steipete commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling 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: 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.

1 participant