Skip to content

Wizard: whole-library classify scope#24

Merged
elfensky merged 1 commit into
developfrom
feat/wizard-whole-library
Jul 11, 2026
Merged

Wizard: whole-library classify scope#24
elfensky merged 1 commit into
developfrom
feat/wizard-whole-library

Conversation

@elfensky

Copy link
Copy Markdown
Owner

What

The wizard's classify stage was locked to new/changed books and dead-ended when nothing had changed. It now opens with a scope menu:

classify scope:
  [n] new/changed — 12 books        (default, when >0)
  [a] whole library — 1,847 books · full pass
  [s] skip

The whole-library option is offered even when nothing's changed (where it previously just said "nothing to tag ✓").

  • classify --all — new scope flag reusing select.pick("all"), so the CLI gains the same capability; the wizard just sets a.all.
  • €50 guard unchanged — the engine menu prices the chosen scope, the non-apple send is gated by the existing confirm (send 1,847 books to the gemini API (~$X)?), and apple (free) stays the default engine. A full paid pass is never the default.

Test

test_core pins the safety invariant — --all is opt-in, a bare classify is never whole-library. All 8 suites pass (test_core now 43).

🤖 Generated with Claude Code

The wizard's classify stage was hardcoded to new/changed books (select.changed)
and dead-ended with "nothing to tag" when nothing had changed — there was no way
to re-tag the whole library short of the CLI. Open the stage with a scope menu:
new/changed (the cheap default) or whole library (a full pass), still offered
when nothing's changed.

classify gains an --all scope (reusing select.pick("all")) so the CLI has the
same capability and the wizard just sets a.all. The €50 guard is unchanged: the
engine menu prices the chosen scope, the non-apple send is gated by the existing
confirm, and apple (free) stays the default engine — a full paid pass is never
the default. test_core pins that --all is opt-in (bare classify is never
whole-library).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@elfensky
elfensky merged commit 4eced42 into develop Jul 11, 2026
2 checks passed
@elfensky
elfensky deleted the feat/wizard-whole-library branch July 11, 2026 12:07
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