Repository navigation
refactor(google): share video capability metadata - #130406
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 26, 2026, 5:51 PM ET / 21:51 UTC. ClawSweeper reviewWhat this changesThe PR replaces repeated Google video-generation capability fields with a private factory while retaining each mode’s distinct input limits. Merge readinessThis behavior-preserving refactor remains useful because current main still repeats the same capability fields across the three Google video modes. No correctness or security defect was found; keep it for normal exact-head maintainer review. Priority: P3 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — step 1 Assertions:
How this fits togetherThe Google plugin supplies video-generation capabilities to OpenClaw’s media tools. Those capabilities determine which generation modes and controls the runtime advertises to an agent. flowchart LR
A[Google plugin] --> B[Video metadata builder]
B --> C[Common capability factory]
C --> D[Three video modes]
D --> E[Google video provider]
E --> F[Media generation tools]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -7. Total -7 across 1 file. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the provider-local factory, rebase onto current main, and verify that all three modes still advertise identical shared fields with independent arrays. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR is an internal metadata consolidation, not a report of broken runtime behavior; source comparison shows the prior values and ordering are retained. Is this the best way to solve the issue? Yes: a private helper at the Google provider boundary removes repeated policy while retaining mode-specific limits and avoids creating a broader shared API. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 54db7d4f99e8. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
What Problem This Solves
Google video generation metadata repeated the same eight capability fields across generate, image-to-video, and video-to-video modes. That made future capability changes easier to apply inconsistently.
Why This Change Was Made
Use one private capability factory while keeping mode-specific limits inline. The factory is called separately for each mode, preserving fresh arrays, exact field ordering, and all existing values.
User Impact
No user-visible behavior changes. Provider metadata is easier to keep consistent.
Evidence
43 focused Google generation metadata tests passed.
Native PR review reran the focused video/music provider suites successfully.
Native
node scripts/check-changed.mjspassed, including extension production/test typecheck, lint, dead exports, plugin boundaries, and import cycles.Scoped TypeScript typecheck, formatting, and
git diff --checkpassed.Exact-head one-shot metadata proof passed at
81c91b819ea77f73f59cc48d97e99d77e81def1c:Result:
pass; exactObject.keysorder matched for all three modes, andsupportedDurationSeconds,aspectRatios, andresolutionswere separate references across modes and across two metadata calls.Blacksmith Testbox exact-head proof passed
43/43withexitCode: 0andrunStatus: succeeded: leasetbx_01m10ntmdehvddbwpmrwv13hz3, Actions run https://github.com/openclaw/openclaw/actions/runs/33037904045.Fresh branch autoreview reported no accepted/actionable findings (
0.99confidence).Production delta:
+17/-24, net-7.ClawSweeper Disposition
main8dac217ce94e14a67ad2fc65837e518a2fbe0669, the metadata owner, Plugin SDK capability type, concrete video caller, and focused video/music tests are byte-identical to the PR parent. The only drift in the lazy entry file is unrelated embedding-provider registration; its video-specific lazy caller is unchanged. The synthetic merge completed cleanly.