Repository navigation
refactor(agents): consolidate generation and runtime fixtures - #128339
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 23, 2026, 3:48 PM ET / 19:48 UTC. ClawSweeper reviewWhat this changesThe PR centralizes image, video, and music generation lifecycle handling and consolidates repeated MCP, memory, and queue test fixtures. Merge readinessNo blocking correctness finding: the shared helper preserves the prior create, detach-or-foreground, completion, and failure sequence across all three media tools. This maintainer PR still needs a current merge result and completed exact-head checks before landing. Priority: P3 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherMedia-generation tools admit an agent request, run a provider-specific job, then either return immediately or complete a detached task and wake the requester. The new helper owns the common lifecycle while callers retain tool-specific generation work and metadata. flowchart LR
A[Image, video, music tools] --> B[Shared task lifecycle]
B --> C{Foreground or detached}
C --> D[Tool-specific provider job]
D --> E[Completion, failure, wake delivery]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -193, Tests -1289. Total -1482 across 10 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the single lifecycle owner once GitHub confirms a clean current merge result and completed exact-head checks, preserving tool-specific provider jobs and behavior tests. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR refactors an established lifecycle rather than reporting a separate bug. Is this the best way to solve the issue? Yes: centralizing the repeated lifecycle at its existing owner is preferable to retaining three parallel implementations. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against bd7fb1d5976c. LabelsLabel 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
Image, video, and music tools duplicated foreground and detached generation lifecycle policy, while adjacent MCP, runner-memory, and queue tests repeated large fixture blocks.
Why This Change Was Made
One agent-owned media generation task now handles admission, cancellation, completion, failure, wake delivery, and transcript outcomes for all three tools. The exact adjacent regression fixtures are consolidated without changing their cases. The extension-runner cleanup is intentionally excluded from this PR.
AI-assisted maintainer cleanup. I reviewed the final code, proof, and exact landing diff.
User Impact
Media generation keeps the same model-visible schemas and outcomes through a smaller canonical lifecycle. Contributors get substantially smaller MCP, memory, and queue regression fixtures.
Evidence
-193; tests net LOC:-1289; total net-1482across exactly ten files.b977ccb21e2b4b8bff05729548ea1b1558a74a33; exact head:560aef262e4db8c41d75ab61a655f867631a66fd.dd85450f408206c7358de4327d1090f0122b1d45f2f7aa2e87650b4f0f62bd50.