Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 26, 2026, 8:23 PM ET / September 27, 2026, 00:23 UTC (Revision 2). ClawSweeper reviewWhat this changesThe branch reserves a Swarm collector’s queue position before asynchronous requester lookup, transfers that reservation into child spawning, and adds ordering, cancellation, and reservation ownership tests. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked before merge - 4 items remain Keep this PR open. Current main still has the requester lookup before the FIFO reservation, so the ordering repair remains useful. The current head also retains the prior review’s blocker: malformed collector input can hold a group’s queue while its requester lookup is pending. Priority: P2 Review scores
Verification
How this fits togetherSwarm accepts collector spawn requests from an agent and schedules each group’s children in invocation order. Requester lookup and admission precede child launch; the launched child later supplies a collector result. flowchart LR
A[Collector spawn request] --> B[Group queue reservation]
B --> C[Requester lookup worker]
C --> D[Input and child admission]
D --> E[Queued child launch]
E --> F[Collector result]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +25, Tests +206. Total +231 across 4 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Keep early FIFO reservation for valid collectors, reject deterministic input errors before reserving, retain mutable admission checks after lookup, and demonstrate that a valid follower proceeds after malformed input is rejected. Do we have a high-confidence way to reproduce the issue? Yes, from source: hold the first collector’s requester lookup, then submit another collector in the same group; current main reserves only after lookup, while the branch’s invalid-schema case exposes a separate queue stall. This read-only review did not execute the test. Is this the best way to solve the issue? No, not yet. Reserving before lookup addresses the FIFO race, but deterministic malformed-input rejection must happen before the reservation. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 5fd7c3d95e03. LabelsLabel changes: No label changes. Label justifications:
EvidenceAcceptance criteria:
What 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)
|
|
Heads-up: #159272, #159273, and #159274 all target the same failure. Before landing, please merge |
|
Closing as superseded by 5cf18de ( |
What Problem This Solves
After #159135 moved requester lookup to a worker, a collector could await that lookup before reserving its FIFO position. A later request in the same group could finish lookup first and launch ahead of the earlier request. This also caused the queued-collector operator-rename test to fail in CI.
User Impact
Collectors retain invocation order while requester lookup remains off the Gateway thread. Other groups can still make progress. Requester identity and current authority are checked before child admission; failed or cancelled preparation releases its position.
Why This Change Was Made
The existing scheduler now owns the reservation before the first lookup await. The request retains that exact hold, transfers it to spawn on success, and withdraws and joins it on failure. It never reacquires ownership from a reused run ID. Ordinary child admission and the existing lookup-before-validation behavior remain intact.
The host effect marker still precedes reservation. Regression cases use the real effect-boundary owner to ensure an attempted reservation is not reported as never started. No new queue, synchronous SQL path, schema, retention policy, protocol, or dependency is introduced.
Evidence
Fresh independent review through P2 passed. Deterministic tests gate the first real lookup while a second collector and another group prepare, then check launch order, captured requester identity, cancellation, lookup/schema errors, and replacement-reservation fencing. Existing group-cap fixtures now provide stable, valid execution snapshots; their assertions are unchanged.
Controlled proof reproduced the original FIFO failure and passed 181 tests across ten complete owner and sibling files with no skips. The attempt then failed the line-count ratchet before later static checks. The unchanged preference fixture table has since moved into the existing test helper, with fresh independent review; its complete 84-case consumer file and remaining selected checks are being verified. The negative and unaffected sibling evidence are retained with their source bindings. Exact-head CI is required before landing. No deployed latency improvement is claimed.