Skip to content

chore(recovery): read frozen expected anchor from protected config - #529

Merged
Pigbibi merged 1 commit into
mainfrom
feat/recovery-frozen-anchor-env
Nov 23, 2026
Merged

Pigbibi merged 1 commit into
mainfrom
feat/recovery-frozen-anchor-env

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

AI assistance

Antigravity (Gemini 4 Hydrogen) assisted with the edit and test verification.

What changed

  • Remove the hardcoded account-bound FROZEN_EXPECTED_SHA256 literal from scripts/binance_recovery_controller.py and read BINANCE_FROZEN_EXPECTED_SHA256 from environment configuration (falling back to FROZEN_EXPECTED_SHA256 for unit tests that monkeypatch the attribute), failing closed unless it is a valid 64-hex SHA-256 matching digest(expected).
  • Pass 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.py passed.
  • pytest -q tests/test_reconciliation_recovery.py tests/test_post_rebase_recovery.py tests/test_prospective_recovery_diagnosis.py (135 passed).

Why

  • Keeps account-bound reconciliation anchors in protected configuration (vars.*) instead of hardcoding them in public source, per AGENTS.md.

Risk

  • R2 (scripts/binance_recovery_controller.py and .github/workflows/runtime-protected.yml). Fail-closed validation is preserved: missing or malformed BINANCE_FROZEN_EXPECTED_SHA256 raises recovery_frozen_anchor_changed.

@Pigbibi Pigbibi added the agent-approved An agent cleared this high-risk change on the current head; not an owner confirmation label Nov 23, 2026
@Pigbibi

Pigbibi commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T10:47:55.127622Z 24ec37d Manual request
🔒 Security Review ✅ Completed 2026-11-23T10:52:24.160593Z 24ec37d Manual request
ℹ️ 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: 24ec37d488

ℹ️ 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".

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".

@Pigbibi
Pigbibi merged commit e6116b1 into main Nov 23, 2026
15 of 17 checks passed
@Pigbibi
Pigbibi deleted the feat/recovery-frozen-anchor-env branch November 23, 2026 10:48
@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 24ec37d488

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-approved An agent cleared this high-risk change on the current head; not an owner confirmation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant