Skip to content

First run 2/3: duplicate review lanes and free removal - #308

Merged
Nishith merged 24 commits into
mainfrom
feature/first-run-duplicates
Nov 29, 2026
Merged

Nishith merged 24 commits into
mainfrom
feature/first-run-duplicates

Conversation

@Nishith

@Nishith Nishith commented Nov 29, 2026

Copy link
Copy Markdown
Owner

First-run experience, milestone 2 of 3. Stack: first-run-trust → this → first-run-guided. Base is feature/first-run-trust; retarget to main after that merges.

What

  • Deduplicate review in three lanes (identical copies, nearly identical, look at each), accept by lane, Quick Review with Accept the Rest.
  • Free removal: whole groups up to the allowance, always a subset of the full DeduplicationPlanner.plan with the same identities. A free removal keeps the saved review (D-FRX-25, approved).
  • Core: DeduplicateReviewLane, FreeDedupeBatchPlanner.
  • Strings (English, German) and docs.

Includes the planner fix from the INV-32 PR (fix/dedupe-planner-rail-protects-fanout, #300) as a merge commit; merge that PR first. With it, the notice "Chronoframe skips a group when nothing in it is kept" is true, and the docs say so plainly.

Evidence

  • Gate G2: suite exit 0 (2654), coverage 96.17%, 14 guards, 30 invariants, Xcode build, German check: all exit 0. One screen rendered and checked.
  • After merging the planner fix (run on the stack tip): coverage script exit 0, 2704 passed, 0 failed, 96.16%; 14 guards; Xcode build.
  • Two premise assertions in testForcedKeepThatWouldUnskipAGroupStopsTheWalk changed to follow INV-32.

Not done

🤖 Generated with Claude Code

Nishith and others added 20 commits November 28, 2026 17:45
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The per-group rail skips a group whose members are all marked Delete, but
its members could still be removed by pair fan-out from another group or by
a second group that lists the same files. Members of a skipped group are now
protected from direct deletes and from fan-out.

Adds INV-32, fixed regressions for both routes, and a property test whose
generator builds cross-group pairs and overlapping groups.

Fixes #300

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…duplicates

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…as a fact

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 29, 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-29T08:35:24.347543Z 3ca0e25 PR opened
ℹ️ 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: 3ca0e256e3

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

Nishith and others added 3 commits November 29, 2026 06:28
…onth may be the whole plan

TrialRemaining returns nil for verificationUnavailable and unverified, so
the preview never describes a spent trial or offers a purchase to someone
who may already have paid. The unlock sheet offers a requested month even
when the plan has shrunk to exactly that month.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…aches both lanes

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Base automatically changed from feature/first-run-trust to main November 29, 2026 15:49
main holds #306 and #307 as squash commits; this branch already contains
both, so conflicting hunks keep this branch's side.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@Nishith
Nishith enabled auto-merge (squash) November 29, 2026 15:55
@Nishith
Nishith merged commit c4ca23a into main Nov 29, 2026
24 checks passed
@Nishith
Nishith deleted the feature/first-run-duplicates branch November 29, 2026 16:24
Nishith added a commit that referenced this pull request Nov 29, 2026
main holds #306, #307 and #308 as squash commits; this branch already
contains all three, so conflicting hunks keep this branch's side.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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