Repository navigation
chore: cover queued session rotation regression - #106995
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 13, 2026, 10:12 PM ET / July 14, 2026, 02:12 UTC. Summary PR surface: Tests +299. Total +299 across 1 file. Reproducibility: no. current-main failure is reproduced: the supplied evidence instead shows the new test failing on the immediate pre-fix parent and passing after the queued-turn lifecycle fix. That is useful historical regression proof, but it is not a failing current-main reproduction. 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: Keep the focused regression test if a complete source review confirms stable harness usage, add redacted real-provider Gateway evidence for the queued Do we have a high-confidence way to reproduce the issue? No current-main failure is reproduced: the supplied evidence instead shows the new test failing on the immediate pre-fix parent and passing after the queued-turn lifecycle fix. That is useful historical regression proof, but it is not a failing current-main reproduction. Is this the best way to solve the issue? Likely yes: a focused Gateway-level test spanning queue admission, session rotation, plugin preparation, and model invocation is the appropriate durable boundary. Final confidence requires reading the complete test and sibling E2E harnesses to rule out timing-sensitive or duplicate coverage. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 6e067f7662f9. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Tests +299. Total +299 across 1 file. 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
|
Related: #103683
What Problem This Solves
Adds durable coverage for a failure where a
/newreplacement turn could be accepted while an earlier turn was active, then disappear beforeagent_turn_prepareor model invocation during session cancellation and rotation.Why This Change Was Made
The test starts an isolated real Gateway with a held mock OpenAI-compatible response and a temporary
agent_turn_preparetracer plugin. It submits/newwhile the first turn is active, then verifies the replacement reaches both the hook and model boundaries. This is regression coverage for the queued-turn lifecycle fix in #100123; it does not change runtime behavior.User Impact
No direct runtime change. CI now protects the session-rotation path implicated by #103683 from regressing.
Evidence
3dff585de62ed85597258868dffc70dd700a608c: the unchanged test fails with one model request instead of two and no replacement-turn progress (blacksmith-testboxtbx_01kxf4j61vfa3dnmxfmpsr68y0).corepack pnpm test test/gateway-queued-session-rotation.e2e.test.tspasses onblacksmith-testboxtbx_01kxf5scrhs5m22896tt2m7291(run).corepack pnpm check:changedpasses the root-test/tooling lanes onblacksmith-testboxtbx_01kxf57smxaxqpmbz22pemtbpr(run)..agents/skills/autoreview/scripts/autoreview --mode branch --base origin/main: clean, no accepted/actionable findings.AI-assisted: implemented and validated with Codex; I reviewed the resulting test and evidence.