Skip to content

cli: Announce recovery secret switch - #95

Open
BenWestgate wants to merge 1 commit into
codex/30-existing-fingerprint-before-sharesfrom
codex/recovery-secret-switch-notice
Open

BenWestgate wants to merge 1 commit into
codex/30-existing-fingerprint-before-sharesfrom
codex/recovery-secret-switch-notice

Conversation

@BenWestgate

@BenWestgate BenWestgate commented Oct 1, 2026 •

Copy link
Copy Markdown
Owner

What

When a complete valid secret is supplied after one or more shares were accepted, keep the existing deliberate behavior of ending share recovery and using that secret, but state that choice explicitly before returning it.

Why

The adversarial review correctly reproduced a silent mode switch. The switch itself is intentional; the defect is that already-accepted shares appeared to vanish without explanation.

Review shape

Current head 278be78 is the same reviewed one-commit #95 patch mechanically replayed directly onto current #81 (ada987b). Its stable patch ID is unchanged; the review delta remains two source/test files with three added lines.

Validation

Exact-head GitHub Python-package CI is green. The composed exact current tip passes all 941 tests normally and all 941 under python -O, Ruff, strict mypy, correction-constant verification, and git diff --check. The secret-after-compatible-shares regressions are included.

Refs #38.

Human integration order is #57 → #105 → #99 → #80 → #81 → #95. This commit is agent-authored and requires responsible-human review/rewrite or squash under repository policy before integration.

@chatgpt-codex-connector

This comment has been minimized.

@BenWestgate BenWestgate added area: cli Command-line interface behavior. bug Something isn't working gate: adversarial review Resolve, merge, or explicitly defer before the next full adversarial review. labels Oct 1, 2026
@BenWestgate
BenWestgate force-pushed the codex/recovery-secret-switch-notice branch from 12d2098 to 23dae08 Compare October 1, 2026 04:26
@BenWestgate

Copy link
Copy Markdown
Owner Author

Agent release-gate review at exact head 23dae08:

ACK on behavior. The adversarial-review finding was the silent mid-recovery mode switch: after compatible shares are already accepted, supplying a complete secret intentionally supersedes them. This patch preserves that policy and emits the notice only when accepted is non-empty, immediately before returning the complete secret.

Verification:

  • exact diff is limited to two production lines plus one regression assertion;
  • the existing compatible-share/secret regression passes 3/3 normally and 3/3 under python -O;
  • git diff --check is clean;
  • exact-head GitHub matrix is green and there are no review threads.

No code blocker found. Integration blocker remains authorship policy only: this is a Codex-authored commit and should be human-reviewed/re-written or squashed under the responsible human author before merge, as the PR body already records.

@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 review performed at the maintainer's request and disclosed per docs/developer/AI_POLICY.md.

No correctness findings. The change is narrowly scoped: it preserves the existing recovery behavior when a complete valid secret is entered after shares, but makes the mode switch explicit before returning the secret. The notice is conditioned on accepted, so it does not add noise when the secret is the first input. Focused recovery/secret tests pass locally (17 passed), and the exact-head GitHub matrix is green. Ready for human review/rewrite-squash under the repository authorship policy.

@BenWestgate
BenWestgate force-pushed the codex/recovery-secret-switch-notice branch from 23dae08 to 30062fd Compare October 1, 2026 18:30
@BenWestgate
BenWestgate changed the base branch from reviewability-v1 to codex/30-existing-fingerprint-before-shares October 1, 2026 18:30
@BenWestgate
BenWestgate force-pushed the codex/30-existing-fingerprint-before-shares branch from 7686cb0 to aa2d333 Compare October 1, 2026 18:36
@BenWestgate
BenWestgate force-pushed the codex/recovery-secret-switch-notice branch from 30062fd to cebecfc Compare October 1, 2026 18:36
@BenWestgate
BenWestgate force-pushed the codex/30-existing-fingerprint-before-shares branch from aa2d333 to 9f88b21 Compare October 1, 2026 22:15
@BenWestgate
BenWestgate force-pushed the codex/recovery-secret-switch-notice branch from cebecfc to 4ea72bb Compare October 1, 2026 22:16

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

Exact-head release-gate re-review: ACK 4ea72bb. This remains the same reviewed one-line behavior change by stable patch-id: when a complete valid secret is supplied after accepted shares, the CLI explicitly announces that it is switching to that secret; first-input secret recovery stays quiet. The exact integrated tip passes 935 tests normally and optimized, including the focused recovery-switch regression, and remains 5,193 <5200. No code blocker found. The agent-authored commit requires responsible-human rewrite/squash before integration.

@BenWestgate
BenWestgate force-pushed the codex/30-existing-fingerprint-before-shares branch from 9f88b21 to 1d5b6f5 Compare October 2, 2026 08:59
@BenWestgate
BenWestgate force-pushed the codex/recovery-secret-switch-notice branch from 4ea72bb to 3d8510a Compare October 2, 2026 09:08

@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 re-review: ACK 3d8510a.

The current diff is still the focused disclosure fix: when a complete valid secret is supplied after shares have already been accepted, recovery explicitly tells the operator it is switching to that secret; the first-input secret path stays quiet. There are no inline review threads, and exact-head Python-package run 666 succeeded.

No code blocker found. The agent-authored commit still requires responsible-human rewrite/squash before integration.

@BenWestgate
BenWestgate force-pushed the codex/30-existing-fingerprint-before-shares branch from 1d5b6f5 to b2aafde Compare October 5, 2026 05:16

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 5e44dcb22e

ℹ️ 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-assisted current-head review: ACK 5e44dcb. The intentional complete-secret switch is now announced only after shares were accepted; behavior is otherwise unchanged. Exact-head package CI is green.

@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 5e44dcb: no findings. The CLI now makes the complete-secret override explicit without changing acceptance logic.

@BenWestgate
BenWestgate force-pushed the codex/30-existing-fingerprint-before-shares branch from b2aafde to 9769a5f Compare October 6, 2026 07:27
@BenWestgate
BenWestgate force-pushed the codex/recovery-secret-switch-notice branch from 5e44dcb to 0aab056 Compare October 6, 2026 07:27
@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 #81; please review the current diff only.

@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 0aab056 for code review. The restack preserves the focused disclosure fix: a complete secret entered after accepted shares explicitly announces the switch; first-input secret recovery stays quiet. The fresh Python-package run is queued. No findings.

@chatgpt-codex-connector

This comment has been minimized.

Copy link
Copy Markdown
Owner Author

@codex review

Please review current head 0aab056731 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/30-existing-fingerprint-before-shares branch from 9769a5f to ada987b Compare October 7, 2026 03:40
Entering a complete valid secret during interactive share recovery intentionally supersedes the partial share set. Previously that mode switch happened silently, which made correct behavior look like discarded input.

Emit one explicit notice only when shares were already accepted, and pin the behavior in the existing interactive recovery regression.

Refs #38
@BenWestgate
BenWestgate force-pushed the codex/recovery-secret-switch-notice branch from 0aab056 to 278be78 Compare October 7, 2026 03:41
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 7, 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 ✅ Completed 2026-10-07T03:42:57.503045Z 278be78 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.

@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 278be78. The existing intentional behavior—accept a complete valid secret and stop using the previously entered shares—remains unchanged; the only behavioral delta is an explicit notice when that switch happens after accepted shares. Exact-head Python-package CI is green, the regression asserts the notice, and there are no unresolved review threads. 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. bug Something isn't working 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.

2 participants