Skip to content

cleanup: Remove dead and unused code - #179

Open
BenWestgate wants to merge 3 commits into
codex/split146-identifierfrom
codex/split146-cleanup
Open

BenWestgate wants to merge 3 commits into
codex/split146-identifierfrom
codex/split146-cleanup

Conversation

@BenWestgate

@BenWestgate BenWestgate commented Oct 24, 2026 •

Copy link
Copy Markdown
Owner

Remove unreachable creation branches, unused correction state and dormant tools. Preserve behavior.

Extracted from #146; based on #178. 148 generation and BCH tests pass.

Peer-review follow-up

The 10, 12, and 13cash creation headers now fail rather than silently changing the backup policy; regression tests added (5fd47a6). The pre-v1 compatibility alias removal is intentional. Exact-head CI is pending.

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-24T14:01:15.617488Z
We couldn’t complete this review. Comment @codex review to try again.
16d6d0a New commits
ℹ️ 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 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: e02e03feb9

ℹ️ 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/errors.py
Comment thread src/codex32/cli.py Outdated

@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 static review, 5fd47a6: Concept ACK. The rpartition guard now rejects 10, 12, and 13cash without changing backup policy; regression tests cover these cases. Creation still requires a TTY. The pre-v1 compatibility alias removal is an explicit maintainer decision. CI is queued; no code ACK or runtime claim yet.

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: 5fd47a6127

ℹ️ 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 added this pull request to stack #205 October 24, 2026 13:43
@BenWestgate
BenWestgate marked this pull request as ready for review October 24, 2026 13:44
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@BenWestgate

Copy link
Copy Markdown
Owner Author
  • create --existing: the correction preview never received a
    fingerprint provider, so drop the parameter.

This should receive a fingerprint if the user knows it. Maybe not in the target branch but eventually we DO ask for the fingerprint before the hex or existing codex32 secret to improve error detection. So I wouldn't remove it just to add it back, if that is the same thing I am talking about here.

Drop code that never runs or only aliases other code:

- create: Bitcoin Core is always connected and the terminal is always
  interactive, so the `core is None` and non-TTY branches are dead.
  The header is always ms, and `_generated_secret` only wrapped
  `generate_master_seed`.
- create --existing: the correction preview never received a
  fingerprint provider, so drop the parameter.
- correction: `_FixedCorrector` always set `erasure_products` to None,
  so the two-erasure product-table path never ran.
- tools: nothing ran the two dependency-free fuzz targets.
- errors: drop the pre-1.0 `MismatchedProfile` alias.
- bip93: drop the one-line `_validate_basis_prefix` wrapper.

No behaviour change.

Claude-Session: https://claude.ai/code/session_01XGMpowzJwwgyHMEd63ijDe
A literal 1 separates the application prefix from a backup header.
Treating 12 or 10 as standalone thresholds silently changes the
creation policy. Preserve bare threshold and ms1 header support.
@BenWestgate
BenWestgate force-pushed the codex/split146-cleanup branch from 5fd47a6 to 16d6d0a Compare October 24, 2026 14:01
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@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 static review. ACK 16d6d0a. Invalid 10, 12, and 13cash headers are rejected with regression coverage; the intentionally removed pre-v1 alias is documented in review. Both earlier threads are resolved. Current-head CI is queued.

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant