Skip to content

cli: Name the real Bitcoin Core requirement when it is missing - #99

Open
BenWestgate wants to merge 2 commits into
codex/remove-unreachable-v1-branchesfrom
claude/new-issue-fixes-fvhbl3-84
Open

BenWestgate wants to merge 2 commits into
codex/remove-unreachable-v1-branchesfrom
claude/new-issue-fixes-fvhbl3-84

Conversation

@BenWestgate

@BenWestgate BenWestgate commented Oct 1, 2026 •

Copy link
Copy Markdown
Owner

Problem

Without bitcoin-cli, ms32 secret, share, correct, wallet and create used the generic message “Install a reviewed bitcoin-cli before creating a backup.” It did not say what Core was needed for, what the codex32 <command> fallback omits, or that ms32 correct would spend up to ten seconds searching before discovering Core was unavailable.

Change

The Core failure now names Bitcoin Core 32+, RPC, and signet/regtest practice. secret, share, and correct explain that Core supplies the master fingerprint/correction ranking and point to the Core-independent codex32 command. create and wallet state that they give Core the master key and therefore have no fallback.

ms32 correct connects before beginning a damaged master-seed search. Core network selection is kept off redirected stdin/stderr so a pipe cannot accidentally answer an interactive network prompt.

Review stack

Base: #105 (codex/remove-unreachable-v1-branches) at 9ea48de.

Current head 27f4cc6 is the two focused #99 behavior commits replayed onto that squashed cleanup base. Both live commits record BenWestgate as author. The unrelated historical refresh/size-budget commit is not part of this PR delta.

Validation

Exact-head Python-package run 37479940117 and Bitcoin Core wallet-fixture run 37479940249 both completed successfully. The composed refreshed stack through #95 also passes all 941 tests normally and under python -O, Ruff check/format, mypy, correction-constant verification, all 57 frozen differential correction cases, and git diff --check.

Focused tests cover all three Core-independent fallback messages, the no-fallback wallet/setup path, early correct Core connection, missing bitcoin-cli, no local Core 32+ RPC, and redirected input not answering network selection.

A fresh Codex review has been requested for 27f4cc6; the prior ACK covered the pre-rewrite head and all inline threads are resolved.

Human review/integration order is #105 → #99 → #80 → #81 → #95.

Closes #84.

@BenWestgate BenWestgate self-assigned this Oct 1, 2026
@BenWestgate
BenWestgate marked this pull request as ready for review October 1, 2026 13:54

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3b738eb71e

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

Comment thread src/codex32/cli.py
Comment thread src/codex32/cli.py
@BenWestgate
BenWestgate force-pushed the 30-recorded-fingerprint-gate branch 2 times, most recently from a7efaae to 054e8d9 Compare October 1, 2026 22:02
@chatgpt-codex-connector

This comment has been minimized.

@BenWestgate
BenWestgate force-pushed the 30-recorded-fingerprint-gate branch from 054e8d9 to 115f2c2 Compare October 2, 2026 08:57
@BenWestgate
BenWestgate force-pushed the claude/new-issue-fixes-fvhbl3-84 branch from d422478 to c583b24 Compare October 2, 2026 17:16
@chatgpt-codex-connector

This comment has been minimized.

1 similar comment
@chatgpt-codex-connector

This comment has been minimized.

@BenWestgate

Copy link
Copy Markdown
Owner Author

@codex review

@BenWestgate

Copy link
Copy Markdown
Owner Author

CACK, will review the code after the bots say it is ready for me.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: 256998066e

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

@BenWestgate BenWestgate left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AI-generated review (Codex), posted at the maintainer's request.

Not ACKing 2569980 yet: this raises the installed-code budget from 5,200 to 5,250 without the explicit authorization AGENTS.md requires. The Core error-handling change otherwise looks sound.

@BenWestgate BenWestgate added area: cli Command-line interface behavior. area: wallet/core Wallet integration and Bitcoin Core boundaries. gate: adversarial review Resolve, merge, or explicitly defer before the next full adversarial review. labels Oct 4, 2026
@BenWestgate
BenWestgate force-pushed the claude/new-issue-fixes-fvhbl3-84 branch from 2569980 to c583b24 Compare October 4, 2026 18:58
@chatgpt-codex-connector

This comment has been minimized.

@BenWestgate
BenWestgate changed the base branch from 30-recorded-fingerprint-gate to codex/remove-unreachable-v1-branches October 4, 2026 18:58

@BenWestgate BenWestgate left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AI-generated current-head follow-up review (Codex), posted at the maintainer's request.

ACK c583b2479359 for the focused #84 behavior now that the unrelated <5250 cap commit has been removed.

The error paths name Bitcoin Core 32+/RPC clearly; Core-independent codex32 fallbacks are described only for secret/share/correct; wallet/create correctly have no fallback. ms32 correct now establishes the Core boundary before spending the correction-search deadline, while already-valid input still returns before connecting. The redirected-input change prevents stdin from being consumed by Core network selection and suppresses incidental selection chatter on redirected stderr.

The behavior is covered by the missing-Core/fallback, wallet no-fallback, multi-network pipe, and Core preflight regressions. No correctness blocker found in the five-file diff.

The PR is now stacked on #105 and preserves <5200; run the final combined-tip CI after human integration/restack before freezing the candidate. Responsible-human authorship/review policy still applies.

BenWestgate added a commit that referenced this pull request Oct 4, 2026
Temporary stack refresh: bring the reviewed #105 cleanup into #99's feature branch so the PR head and CI represent the intended combined tree. Human integration will rewrite/squash agent-authored history under repository policy.
@chatgpt-codex-connector

This comment has been minimized.

@BenWestgate BenWestgate left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codex current-head review at 70c5da6: no findings. Since the prior ACK, the only new commit brings in #105’s already exact-head-reviewed behavior-preserving cleanup; the #99 Core-error/preflight behavior is unchanged and no interaction regression is visible in the combined tree.

@BenWestgate BenWestgate left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AI-generated current-head stack review (Codex), posted at the maintainer's request.

Code ACK 70c5da6267bf for the actual #105 + #99 head. #105 is now an ancestor of this branch; comparing #105 (361feb7) to the current head yields exactly the five previously reviewed #84 files: _bitcoin_core.py, cli.py, test_bitcoin_core.py, test_cli.py, and test_correction_disclosure.py. The unrelated <5250 cap change is absent.

The behavior review remains unchanged: Core 32+/RPC requirements and Core-independent fallbacks are correctly described, ms32 correct establishes the Core boundary before damaged-input search, and redirected input cannot answer Core network selection.

Fresh current-head Python-package run #749 is still queued at the time of this review; current-head Bitcoin Core fixture run #37 has succeeded. Treat this as an exact-head code ACK with Python CI pending, not a claim that the matrix is already green. Responsible-human authorship/review still applies before integration.

@chatgpt-codex-connector

This comment has been minimized.

Copy link
Copy Markdown
Owner Author

@codex review

Current head was mechanically restacked onto the refreshed audit stack after #57's documentation-only follow-up. Please review this exact head for correctness/regressions; the composed stack passes 941 tests normally and under python -O, Ruff, mypy, correction constants, 57 frozen differential cases, and git diff --check locally.

@chatgpt-codex-connector

This comment has been minimized.

Copy link
Copy Markdown
Owner Author

@codex review

Current head was mechanically restacked onto refreshed #105; please review the current diff only.

@chatgpt-codex-connector

This comment has been minimized.

@BenWestgate BenWestgate left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AI-assisted current-head review, posted at the maintainer's request.

ACK 3847389 for code review. The focused #99 behavior is unchanged after the mechanical restack: redirected input cannot drive Core network selection, redirected stderr stays quiet before the disclosure gate, and Core 32+/RPC/fallback errors remain accurate. Bitcoin Core fixture CI passes; the fresh Python-package run is still in progress. No findings.

Copy link
Copy Markdown
Owner Author

@codex review

Please review current head 3847389d13 only. This is the final current-head audit check before human review; do not reopen superseded design debates unless there is a correctness, security, or release-blocking issue.

@chatgpt-codex-connector

This comment has been minimized.

@BenWestgate
BenWestgate force-pushed the codex/remove-unreachable-v1-branches branch from 03b0f8a to 9ea48de Compare October 6, 2026 14:29
Without bitcoin-cli every ms32 command said “Install a reviewed bitcoin-cli before creating a backup”, even commands that create nothing, and the codex32 hint did not say what it leaves out.

Say that Bitcoin Core 32 or newer must run with RPC enabled and that an unsynced regtest or signet node is enough for practice. Then say what the command uses Core for: the master fingerprint and correction ranking for secret, share and correct, or giving Core the master key for create and wallet.

Connect before `ms32 correct` searches so a missing Core does not cost a discarded correction search.

Closes #84.
Connecting before the search makes network selection visible earlier. A pipe cannot answer that prompt safely, and redirected stderr must preserve the correction gate's operational-error-only contract.

Ask for a Core network only when stdin is a terminal and print Core selection messages only when stderr is a terminal. Add regressions for both boundaries.
@BenWestgate
BenWestgate force-pushed the claude/new-issue-fixes-fvhbl3-84 branch from 3847389 to 27f4cc6 Compare October 6, 2026 14:33
@chatgpt-codex-connector

This comment has been minimized.

Copy link
Copy Markdown
Owner Author

@codex review

Please review the current head 27f4cc6 only. Focus on the Core-boundary/error-message behavior and redirected stdin/stderr regressions; avoid stylistic churn.

@chatgpt-codex-connector

This comment has been minimized.

@BenWestgate BenWestgate left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AI-assisted current-head review: ACK 27f4cc6. The Core boundary is explicit and consistent with the chosen v1 policy: ms32 retains Core-backed fingerprint/correction ranking, while the generic codex32 commands are the offline fallback. ms32 correct now fails before spending the correction-search budget, and redirected stdin cannot accidentally answer a multi-network prompt. The wallet/create path correctly offers no Core-independent fallback. Exact-head Python-package and Bitcoin Core fixture CI are green and all review threads are resolved. No correctness or release blocker found.

This branch has not been deployed

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

Labels

area: cli Command-line interface behavior. area: wallet/core Wallet integration and Bitcoin Core boundaries. gate: adversarial review Resolve, merge, or explicitly defer before the next full adversarial review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant