Repository navigation
chore(recovery): read frozen expected anchor from protected config - #529
Conversation
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
AI assistance
Antigravity (Gemini 4 Hydrogen) assisted with the edit and test verification.
What changed
FROZEN_EXPECTED_SHA256literal fromscripts/binance_recovery_controller.pyand readBINANCE_FROZEN_EXPECTED_SHA256from environment configuration (falling back toFROZEN_EXPECTED_SHA256for unit tests that monkeypatch the attribute), failing closed unless it is a valid 64-hex SHA-256 matchingdigest(expected).BINANCE_FROZEN_EXPECTED_SHA256: ${{ vars.BINANCE_FROZEN_EXPECTED_SHA256 }}into the protected recovery step in.github/workflows/runtime-protected.yml.How verified
ruff check scripts/binance_recovery_controller.pypassed.pytest -q tests/test_reconciliation_recovery.py tests/test_post_rebase_recovery.py tests/test_prospective_recovery_diagnosis.py(135 passed).Why
vars.*) instead of hardcoding them in public source, perAGENTS.md.Risk
scripts/binance_recovery_controller.pyand.github/workflows/runtime-protected.yml). Fail-closed validation is preserved: missing or malformedBINANCE_FROZEN_EXPECTED_SHA256raisesrecovery_frozen_anchor_changed.