Skip to content

legacy-dark: draining precondition minimal_redrive_finished - #22769

Merged
Git-on-my-level merged 1 commit into
integration/legacy-retirefrom
lr/10-draining-precondition-redrive
Oct 20, 2026
Merged

Git-on-my-level merged 1 commit into
integration/legacy-retirefrom
lr/10-draining-precondition-redrive

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

Summary

Lane 10, contract (h). This adds the draining precondition from the lead's ruling (10-20 05:17Z) on operator minimal redrive (#22503).

ramp_set.py now refuses to leave legacy_sync=on until the operator also confirms minimal_redrive_finished: onthway's minimal-mode redrives are finished, or moved to the batch redrive path.

This makes the precondition a gate the tool enforces, not a checklist line.

What changes:

  • scripts/rollout/ramp_controller.py: new DRAINING_PRECONDITIONS['minimal_redrive_finished'].
  • tests/unit/test_ramp_controller.py: the refusal lists both ids; a partial confirmation is still refused; both together are accepted.
  • docs/runbooks/legacy-dark.md: the precondition text and the --precondition-met minimal_redrive_finished flag in the transition command.

The gate applies to every env, so the M2 staging cycle confirms it too. Staging has no minimal-redrive traffic.

Lane / contract

Lane 10, contract (h). ramp_controller.py's precondition table is the (h) entry gate. Lane 6 is informed.

Product invariants affected

  • INV-DATA-1: a path match only, inherited from integration's .github/workflows/gcp_*.yml against the main base. This PR changes no data-plane routing.
  • INV-MEM-4: a path match only (backend/deploy/runtime_env.yaml, inherited from integration against the main base). No memory change.

Verification

Unit layer: test_ramp_controller.py 71 passed.

Rollback

Revert.

Line-Count-Exception: backend/routers/sync.py | 3820 -> 3893 | inherited from integration; this PR does not touch the file

Failure-Class: none

🤖 Generated with Claude Code

View guided diff Turn on auto-fix

…ing 10-20)

ramp_set refuses to leave legacy_sync=on until operator minimal-mode redrives
(#22503) are confirmed finished or moved to batch: draining stops new
sequencer registration and C11 deletes the mode.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-20T05:36:42.290810Z 9bee8e8 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Git-on-my-level
Git-on-my-level merged commit dcc685d into integration/legacy-retire Oct 20, 2026
25 checks passed
@Git-on-my-level
Git-on-my-level deleted the lr/10-draining-precondition-redrive branch October 20, 2026 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant