Skip to content

codex: isolate release recovery validation - #27

Merged
ttaylorr-oai merged 1 commit into
metafrom
ttaylorr/codex-release-pin-recovery-fix
Aug 7, 2026
Merged

codex: isolate release recovery validation#27
ttaylorr-oai merged 1 commit into
metafrom
ttaylorr/codex-release-pin-recovery-fix

Conversation

@ttaylorr-oai

Copy link
Copy Markdown
Collaborator

The live no-push recovery preflight reached canonical validation, then the wrapper falsely reported a changed source boundary because shared validators reused the parent shell variable. Run those read-only validators in subshells so their scratch state cannot leak into the one-shot wrapper. The regression fixture now includes an unrelated unstable boundary that would trigger the clobber.

Tests: sh -n .github/workflows/codex-branch.sh; sh -n t/t9905-codex-branch.sh; git diff --check; t/t9905-codex-branch.sh --run=116-117 (117/117); exact live no-push preflight on meta 6e44c55 proposed only d8ddd6608e plus codex-pins/40589.

The release recovery wrapper calls shared validators before checking its own saved source boundary. Those validators intentionally reuse shell variables while walking every pinned topic, so a later unstable row can overwrite source_base and make an exact recovery fail after canonical validation already passed.

Run both read-only validators in subshells so their scratch variables cannot leak back into the recovery wrapper. Extend the recovery fixture with an unrelated unstable boundary so the regression fails without that isolation.
@ttaylorr-oai
ttaylorr-oai merged commit 40b029d into meta Aug 7, 2026
6 checks passed
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