Repository navigation
chore(qa): verify repeated restart recovery - #105126
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f6b5f1d508
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| args: | ||
| - lambda: | ||
| async: true | ||
| expr: "readSessionTranscriptSummary(env, sessionKey).then((summary) => (summary.assistantToolCallCounts.exec ?? 0) >= checkpoint && (summary.assistantToolCallCounts.wait ?? 0) >= checkpoint ? summary : undefined).catch(() => undefined)" |
There was a problem hiding this comment.
Count only restart checkpoint tool calls
When the live model makes any extra Code Mode exec/wait call before all three qa_restart_wait checkpoints are complete (for example a retry or the later audit/read step), this condition treats those unrelated calls as completed checkpoints and triggers the next gateway restart at the wrong point. The final assertion also only checks exec >= 4 / wait >= 3, so the scenario can pass without proving three distinct replay-safe checkpoint calls; filter/count the assistant tool calls by the exec input containing qa_restart_wait or a checkpoint marker instead of all exec/wait calls.
Useful? React with 👍 / 👎.
f6b5f1d to
d90e68a
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d90e68a38e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| components=16 | ||
| risks=6 | ||
| deployments=27 | ||
| controls=21 | ||
| unsafeVisible=false |
There was a problem hiding this comment.
Hide audit answers from the live prompt
Because the live prompt itself supplies the exact expected totals, the scenario can pass even if the recovered model never reads restart-audit/ after the restarts and simply echoes these required lines; the final assertion only checks for these strings in the outbound text. For this to prove a substantive audit survived recovery, keep only the output keys/format in the prompt and keep the expected values solely in harness-side fixtures/assertions.
Useful? React with 👍 / 👎.
|
Land-ready proof for exact head
Initial CI exposed unrelated broken-main locale and cron fixtures. #105100 repaired both; this branch was rebased onto that fix with an identical patch-id, then the exact-head CI run above passed. Known gap: live provider output can vary. The deterministic single-restart mock remains covered, while the live scenario asserts semantic checkpoint, safety, delivery, and audit invariants. |
|
Merged via squash.
|
Related: #104993
Follow-up to #104997
What Problem This Solves
The automatic restart-recovery path had only a single-restart mock scenario. It lacked durable live proof that one substantive OpenAI task can survive several sequential Gateway replacements without duplicate delivery, a resend request, or loss of the restart-safe tool policy.
Why This Change Was Made
Adds a live GPT-5.4 QA scenario that records three distinct replay-safe checkpoints, replaces the Gateway child after each checkpoint, and validates automatic recovery through the final audit. The QA transcript summary now counts assistant tool calls so the scenario distinguishes completed checkpoints instead of reusing stale tool state; the existing one-restart scenario also uses additive tool policy and an isolated per-peer session.
User Impact
No runtime behavior change. Maintainers gain repeatable live regression proof for multi-restart automatic recovery, exactly-once final delivery, and fail-closed tool filtering.
Evidence
run_6e09312041c8, passed on the first attempt.check:changedTestbox gate: passed formatting, generated baselines, typecheck, core/extension/script lint, policy guards, and import-cycle validation.AI-assisted. I reviewed the implementation and understand the checkpoint-counting, session-isolation, restart orchestration, and safe-tool assertions.