Repository navigation
fix(ci): align lifecycle retry fixtures with terminal replies - #127295
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 21, 2026, 1:36 PM ET / 17:36 UTC. ClawSweeper reviewWhat this changesThe PR updates the subagent lifecycle-retry E2E fixture so successful required completions include terminal replies, retry waits observe durable pending payloads, and the capped transcript case is modeled as optional delivery. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessNo blocking patch findings: the fixture now matches the current producer-owned terminal-reply contract and changes only test code. This MEMBER-authored, maintainer-labeled PR should remain open for maintainer review after the incomplete exact-head CI rollup finishes. Priority: P3 Review scores
Verification
Live VerificationCommand: Result: FAIL (partial) — step 2 Assertions:
How this fits togetherThe subagent registry receives Gateway lifecycle events, records a child run’s terminal reply, and delivers its completion to the requester with retry handling. This E2E fixture drives that lifecycle through a mocked Gateway to keep release-validation behavior aligned with the runtime contract. flowchart LR
A[Gateway lifecycle event] --> B[Terminal reply snapshot]
B --> C[Subagent registry completion]
C --> D[Durable delivery payload]
D --> E[Retry and cleanup]
E --> F[Lifecycle retry E2E fixture]
F --> G[Release validation signal]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +76. Total +76 across 1 file. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Merge the focused fixture alignment once exact-head CI completes and a maintainer confirms the test remains the canonical coverage for lifecycle retry delivery. Do we have a high-confidence way to reproduce the issue? Yes, from source: a required successful plain end event reaches completion without terminal-reply evidence and is converted to an error; the old fixture modeled exactly that state. The reviewer did not execute the failing pre-patch test locally. Is this the best way to solve the issue? Yes. Supplying producer-owned terminal replies to required-success fixtures follows the current completion boundary, while marking the transcript-cap scenario optional preserves its distinct fallback coverage. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against f9b5693612ed. 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
Resolves a release-validation failure where the Gateway shard's lifecycle-retry fixtures still modeled required subagent completions without producer-owned terminal replies.
Why This Change Was Made
Required-success events now carry the terminal reply owned by the producer, retry synchronization waits for the durable pending delivery payload, and the transcript-cap case is explicitly modeled as an optional completion-message fallback. Production behavior and refresh expectations are unchanged.
User Impact
No runtime behavior changes. Maintainers get an accurate Gateway release-validation signal instead of fixture failures caused by the newer terminal-reply contract.
Evidence
node scripts/run-vitest.mjs run --config test/vitest/vitest.e2e.config.ts src/agents/subagents/registry/subagent-registry.lifecycle-retry-grace.e2e.test.ts- 12/12 passed on rebased head.subagent-announce.format.e2e.test.ts,gateway.test.ts, thensubagent-registry.lifecycle-retry-grace.e2e.test.ts- 109/109 passed.git diff --checkpassed.node scripts/check-changed.mjs -- src/agents/subagents/registry/subagent-registry.lifecycle-retry-grace.e2e.test.tspassed all guards through the core-test typecheck; that lane then hit an unrelated isolated-install baseline error becauseui/vite.config.tscould not resolve declarations for existing dependencypako.