Skip to content

generation: Share card alignment results - #182

Draft
BenWestgate wants to merge 1 commit into
codex/split146-driverfrom
codex/split146-confirmation
Draft

BenWestgate wants to merge 1 commit into
codex/split146-driverfrom
codex/split146-confirmation

Conversation

@BenWestgate

Copy link
Copy Markdown
Owner

Return shift-aware entered groups and mismatches from ConfirmationResult so clients can share comparison logic.

Extracted from #146; based on #181. 41 generation tests pass.

The CLI kept its own edit-distance group aligner and then let the
ceremony compare the text again positionally, so a dropped character
marked every later group in the GUI. ConfirmationResult now carries the
shift-aware mismatched groups and the entered text split per group;
the CLI uses that result and keeps only its region-retry prompt.

Claude-Session: https://claude.ai/code/session_01XGMpowzJwwgyHMEd63ijDe

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 ✅ Completed 2026-10-24T04:40:17.829498Z 1fc8fa4 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 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: 1fc8fa4402

ℹ️ 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/generation.py

accepted: bool
mismatched_groups: tuple[int, ...] = ()
entered_groups: tuple[str, ...] = ()

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Exclude entered recovery text from the generated representation

When a caller prints or logs the result of CreationCeremony.confirm(), the dataclass-generated repr() and str() now expose every entered group, including the complete valid share on successful confirmation. Previously this public result contained only acceptance status and group indices. This bypasses the project's redacted artifact representations and violates the mandatory security contract keeping secrets out of logs and ordinary output. Mark entered_groups with repr=False or provide a redacted representation while retaining explicit access for presentation.

AGENTS.md reference: AGENTS.md:L70-L72

Useful? React with 👍 / 👎.

@BenWestgate
BenWestgate added this pull request to stack #205 October 24, 2026 13:43

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