Repository navigation
test(gateway): mock orphan recovery in startup proof - #117922
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed August 2, 2026, 5:15 AM ET / 09:15 UTC. ClawSweeper reviewWhat this changesThe PR mocks the orphan-session recovery marker in a Gateway startup responsiveness test so an unrelated session-recovery import graph does not dominate the timed proof. Merge readinessThe patch appears to be a sound, narrowly scoped test-isolation change: the Gateway responsiveness proof continues to exercise real startup, while orphan-session marking has dedicated owner-level coverage. This PR should remain open for the existing maintainer review and exact-head CI gates; no actionable patch defect was found. Priority: P3 Review scores
Verification
How this fits togetherGateway startup starts post-attach sidecars after the health endpoint is available. The affected test holds channel startup behind a barrier and verifies that the health probe stays responsive without loading provider catalogs; orphan-session marking is a separate startup concern invoked on that path. flowchart LR
A[Gateway startup test] --> B[Post-attach sidecars]
B --> C[Orphan-session marker]
B --> D[Model-runtime prewarm]
D --> E[Channel startup barrier]
A --> F[Health endpoint]
F --> G[Responsive health assertion]
C --> H[Dedicated recovery tests]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +6. Total +6 across 1 file. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the isolated responsiveness proof and the dedicated orphan-marker tests separate, then land only after the current head has the required CI and maintainer approval. Do we have a high-confidence way to reproduce the issue? Yes, at source level: the timed Gateway proof imports post-attach startup, whose orphan-marker lazy import can pull a separate recovery graph. The reported hosted timeout was not rerun because this review is read-only. Is this the best way to solve the issue? Yes: mocking the narrow marker in this proof is the best separation because the marker’s ordering and failure behavior remain covered in the post-attach startup suite, while this test retains the real Gateway startup and health-response path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against d6aafb3dfc8b. 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
|
Co-authored-by: Peter Steinberger <[email protected]>
Summary
Verification