Repository navigation
improve(swarm): close out wait, phase, and worker follow-ups - #111605
Conversation
… untangle sibling assertions
|
Codex review: needs real behavior proof before merge. Reviewed July 19, 2026, 11:08 PM ET / July 20, 2026, 03:08 UTC. Summary PR surface: Source +220, Tests +278, Docs +43. Total +541 across 11 files. Reproducibility: no. high-confidence live reproduction was established in this review. The PR supplies targeted tests and CI evidence, but no observed Codex-harness or Control UI after-fix run. Review metrics: none identified. Stored data model Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review detailsBest possible solution: Retain the bounded implementation, then add redacted after-fix runtime evidence for a shortened and full-budget-equivalent Do we have a high-confidence way to reproduce the issue? No high-confidence live reproduction was established in this review. The PR supplies targeted tests and CI evidence, but no observed Codex-harness or Control UI after-fix run. Is this the best way to solve the issue? Unclear. The branch is a plausible bounded solution and addresses the earlier resolver assertion, but direct upstream Codex-contract inspection and observed runtime behavior are still required to judge it as the best safe fix. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 3564c1c79545. Label changesLabel justifications:
Evidence reviewedPR surface: Source +220, Tests +278, Docs +43. Total +541 across 11 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
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. How this review workflow works
Review history (1 earlier review cycle)
|
|
ClawSweeper rank-up disposition for the exact reviewed head
No code change is needed for these rank-up moves. The validated maintainer review artifact remains |
|
Merged via squash.
|
…w#111605) * fix(codex): support full swarm wait budgets * feat(ui): bucket swarm dots by phase * docs(swarm): document flat worker patterns * fix(codex): configured per-tool timeout still wins over swarm wait default * fix(codex): outer swarm-wait watchdog outlives the 600s budget (cap + grace) * fix(ui): order swarm phase buckets by observation rank * fix(ui): repair rank-order widget test — proper lit render container, untangle sibling assertions * fix(ui): implicit swarm phase assignment only on child creation events * test(ui): split swarm activity integration coverage
…w#111605) * fix(codex): support full swarm wait budgets * feat(ui): bucket swarm dots by phase * docs(swarm): document flat worker patterns * fix(codex): configured per-tool timeout still wins over swarm wait default * fix(codex): outer swarm-wait watchdog outlives the 600s budget (cap + grace) * fix(ui): order swarm phase buckets by observation rank * fix(ui): repair rank-order widget test — proper lit render container, untangle sibling assertions * fix(ui): implicit swarm phase assignment only on child creation events * test(ui): split swarm activity integration coverage
Related: #110325
What Problem This Solves
Closes the remaining #110325 and #111401 Swarm follow-ups found during live end-to-end testing and maintainer review: Codex-harness collector waits could lose the tail of the full 600-second budget, the dots widget did not preserve or chronologically group phase observations, and worker-agent guidance did not make the flat leaf-worker safety model concrete.
Why This Change Was Made
This completes three bounded closeout improvements. Codex-harness
agents_waitnow gives the inner wait budget a completion grace window while preserving per-call and operator-configured timeout priority. The Swarm widget groups children into phase buckets ordered by phase-observation rank, assigns implicit phases only when children are created, and shows the latestlog()narrator line across canonical session refreshes. The docs now spell out the children-are-leaves planner-then-execute idiom, harden dedicated workers withtools.swarm: false, and document the Codex 600-second wait support.User Impact
Codex-driven Swarms can use the complete bounded wait budget without the outer harness preempting the structured timeout result. Control UI users see stable, chronological phase buckets and the latest progress narration. Operators get a safer, clearer worker-agent configuration and a concrete flat orchestration pattern.
Evidence
node scripts/run-vitest.mjs extensions/codex/src/app-server/dynamic-tool-execution.test.ts ui/src/lib/sessions/index.test.ts ui/src/lib/board/widgets/swarm.test.ts— 66 tests passed across three files underset -o pipefail.pnpm ui:build— production UI build, precompressed-asset verification, and Control UI performance budgets passed.pnpm deadcode:exports— production, full-tree, and script unused-export scans passed with 0 entries.pnpm formaton all touched files — clean; no post-format diff.