Repository navigation
refactor(cli): move overlay roots under user-state (#1842) - #2145
Conversation
Problem: #1842 still exposed blackboard and feedback as root command families even though they are durable reader-user-state overlays. The old CLI audit document also preserved stale command-floor conclusions that contradicted the reopened issue body. What changed: remove blackboard and feedback from root registration, register them under the real user-state Click group, rename their implementation modules away from root-command names, update route metadata, docs, help baselines, and focused CLI tests, and delete the stale CLI audit. The showcase baseline runner now prints per-exercise progress so long generated-help runs are observable instead of looking hung. Verification: devtools test tests/unit/cli/test_blackboard.py tests/unit/cli/test_json_output.py tests/unit/cli/test_click_app.py::TestCliMetadata::test_retained_command_owners_are_registered tests/unit/cli/test_completion_matrix.py tests/unit/cli/test_status.py::test_archive_cli_route_catalog_reports_user_tier_surfaces tests/unit/cli/test_status.py::TestNoArchiveStatus::test_direct_status_json_reads_archive_file_set_from_archive_tiers tests/unit/cli/test_help_snapshots.py tests/unit/cli/test_terminal_snapshots.py tests/unit/cli/test_plain_cli_snapshots.py tests/unit/showcase/test_exercise_catalog.py::TestExercisesByGroup::test_all_command_paths_have_generated_help_exercises tests/unit/showcase/test_exercise_catalog.py::TestExercisesByGroup::test_inventory_includes_nested_command_paths -> 189 passed; devtools lab scenario verify-baselines -> 96 exercises, all baselines match; devtools render all --check -> sync OK; devtools verify --quick -> exit_code 0. Ref #1842
|
Warning Review limit reached
More reviews will be available in 18 minutes and 20 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (50)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0f68304975
ℹ️ 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".
|
Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.
Only the rows listed above are dispositioned. Held findings remain open. |
Summary
Move the user-overlay command families off the root
polyloguesurface and under the existingpolylogue user-stateowner. This removes rootblackboardandfeedback, keeps their behavior available aspolylogue user-state blackboard ...andpolylogue user-state feedback ..., renames the implementation modules away from root-command names, refreshes generated help/docs/baselines, and deletes the stale CLI audit document that contradicted the reopened #1842 scope.Problem
#1842 was reopened because the public CLI still taught a flat command zoo after several earlier absorption slices landed. After #2144, user tags are assertion-backed and the next coherent overlay step is to make reader-user-state own the remaining blackboard/feedback surfaces instead of leaving them as root command families. The stale
docs/cli-audit.mdalso preserved old conclusions such as root feedback/blackboard and old query verbs, making it more misleading than useful.Solution
user-stateas a lazy Click group and attachblackboardandfeedbackbeneath it, without hidden root aliases or compatibility shims.polylogue/cli/commands/blackboard.pyandfeedback.pytouser_state_blackboard.pyanduser_state_feedback.py, and update examples/docstrings to the new command path.docs/cli-audit.md; the live reopened issue Polylogue: final hard-pruned CLI surface #1842 is now the durable command-floor spec.devtools lab scenario verify-baselinesso the 96-command showcase help lane is observable instead of appearing hung.Verification
devtools test tests/unit/cli/test_blackboard.py tests/unit/cli/test_json_output.py tests/unit/cli/test_click_app.py::TestCliMetadata::test_retained_command_owners_are_registered tests/unit/cli/test_completion_matrix.py tests/unit/cli/test_status.py::test_archive_cli_route_catalog_reports_user_tier_surfaces tests/unit/cli/test_status.py::TestNoArchiveStatus::test_direct_status_json_reads_archive_file_set_from_archive_tiers tests/unit/cli/test_help_snapshots.py tests/unit/cli/test_terminal_snapshots.py tests/unit/cli/test_plain_cli_snapshots.py tests/unit/showcase/test_exercise_catalog.py::TestExercisesByGroup::test_all_command_paths_have_generated_help_exercises tests/unit/showcase/test_exercise_catalog.py::TestExercisesByGroup::test_inventory_includes_nested_command_paths->189 passeddevtools lab scenario verify-baselines --update->Ran 96 exercises, updated baselinesdevtools lab scenario verify-baselines->Ran 96 exercises,All baselines match.devtools render all --check-> sync OKdevtools verify --quick->exit_code: 0devtools verify-> refused because this fresh worktree has no seeded testmon DB:pytest-testmon is not seeded; run devtools verify --seed-testmon ...Ref #1842