Skip to content

Fix #261: fail cutover scripts when shadow mode is unresolved - #315

Closed
joei4cm wants to merge 2 commits into
CopilotKit:mainfrom
joei4cm:fix/261-cutover-shadow-status
Closed

joei4cm wants to merge 2 commits into
CopilotKit:mainfrom
joei4cm:fix/261-cutover-shadow-status

Conversation

@joei4cm

@joei4cm joei4cm commented Dec 2, 2026

Copy link
Copy Markdown

Closes #261.

execute-cutover.ts and rollback.ts no longer treat an unresolved SHADOW_MODE as success. Cutover now passes only when the invoking shell has exactly SHADOW_MODE=false; rollback now completes that step only when it has exactly SHADOW_MODE=true. Any other value, including unset, fails before the announcement or team-notification step. The messages and README now state that the scripts check the invoking shell as the operator's attestation and do not call Railway.

Tests:

  • NODE_OPTIONS=--max-old-space-size=4096 vitest run scripts/__tests__/cutover.test.ts --maxWorkers=2 — 30 passed

🤖 Generated with Claude Code

joei4cm and others added 2 commits December 2, 2026 20:32
Require the exact SHADOW_MODE attestation before cutover or rollback can continue, and document that the scripts check the invoking shell rather than calling Railway.

Co-Authored-By: Claude Code <noreply@anthropic.com>
The cutover scripts and their README were not Prettier-formatted before this
branch, and the CI format check runs on every file a PR touches, so it would
fail here. Formatting only; no behaviour change.

Co-Authored-By: Claude Code <noreply@anthropic.com>
@NathanTarbert

Copy link
Copy Markdown
Collaborator

Hey @joei4cm, thanks for picking this one up. Tightening both scripts so they only pass on an exact SHADOW_MODE value is exactly what #261 asked for, and the tests around it are really thorough.

We've decided to go a different direction with the cutover tooling, and scripts/cutover/ is being removed from the repo. That means this change won't land, so I'll close this PR along with #261 once the removal merges. That's a call about the scripts themselves, not about your work here.

Thanks for your continued work on Outpost. If there's another issue you'd like to pick up, let me know and I'll assign you.

@joei4cm

joei4cm commented Dec 5, 2026

Copy link
Copy Markdown
Author

Thanks for the update and for explaining the direction change. I understand the cutover scripts are being removed, so this PR no longer has a landing path. I see it is now closed; no further action needed from my side.

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.

Stop the cutover and rollback scripts reporting success while shadow mode is unresolved

2 participants