Repository navigation
Refuse a deploy whose shell still sets the retired stage variable - #474
Merged
Merged
Conversation
This was referenced Dec 1, 2026
Owner
Author
This was referenced Dec 1, 2026
Owner
Author
Merge activity
|
benschac
force-pushed
the
cairn-fixes/landed-review-lazy-trace-hash
branch
from
December 1, 2026 17:28
abad71f to
ae9f909
Compare
benschac
force-pushed
the
cairn-fixes/landed-review-retired-stage
branch
from
December 1, 2026 17:28
4e2daee to
8e131f2
Compare
benschac
force-pushed
the
cairn-fixes/landed-review-lazy-trace-hash
branch
from
December 1, 2026 17:28
abad71f to
ae9f909
Compare
benschac
force-pushed
the
cairn-fixes/landed-review-retired-stage
branch
from
December 1, 2026 17:28
4e2daee to
8e131f2
Compare
benschac
changed the base branch from
cairn-fixes/landed-review-lazy-trace-hash
to
graphite-base/474
December 1, 2026 17:31
Codex found that after the rename a shell still exporting CAIRN_STAGE=staging, with PRDDD_STAGE unset, deploys to prod without being asked. Stage resolution now fails with a message naming the rename. This is a guard on the one variable that selects production; no old name is read as a fallback. The checked-in config still named the old gateway token variable, so a fresh clone following the docs had a judge with no token. It now names PRDDD_AI_GATEWAY_TOKEN. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
benschac
force-pushed
the
cairn-fixes/landed-review-retired-stage
branch
from
December 1, 2026 17:33
8e131f2 to
5d5d713
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Codex found that after the rename a shell still exporting CAIRN_STAGE=staging, with PRDDD_STAGE unset, deploys to prod without being asked. Stage resolution now fails with a message naming the rename. This is a guard on the one variable that selects production; no old name is read as a fallback.
The checked-in config still named the old gateway token variable, so a fresh clone following the docs had a judge with no token. It now names PRDDD_AI_GATEWAY_TOKEN.
Co-Authored-By: Claude Fable 5.2 noreply@anthropic.com
What this changes
Checks
Provenance
Review by Codex
This commit fixes what Codex's first round found on #458. Its second round, on this commit, found two things, left open because two rounds are done:
CAIRN_STAGE=stagingandPRDDD_STAGE=prodis set only inapps/hosted/.env: the package script falls back to--stage prodand the declaration then sees a matchingPRDDD_STAGE.CAIRN_AI_GATEWAY_TOKENname is no longer in the Redactor's credential set, so a shell that still exports only the old name has that value left unredacted.Rebased onto the local-settings work on
main:alchemy.run.tskeepsoriginFor,presentSecretand thealchemy devblock frommainand takesconfiguredStageanddeployStagefromsrc/config.ts.🤖 Generated with Claude Code