Repository navigation
fix(assertions): finish candidate judgment catalogs (#2182) - #2205
Conversation
|
Warning Review limit reached
More reviews will be available in 33 minutes and 35 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 (7)
✨ 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 |
## Summary Refactors CLI read-view execution so the registry is no longer the view implementation dump: read-view option ownership is grouped by view family, concrete handlers live under `polylogue/cli/read_views/`, and `read_view_handlers.py` is reduced to profile/handler registry glue plus validation. ## Problem #2177 tracks cleanup where existing contracts should own behavior instead of being shadowed by parallel dispatch. The read-view surface had drifted in that direction: one `ReadViewInvocation` carried unrelated options for messages, raw, context, context-pack, recovery, neighbors, and correlation, while one large `read_view_handlers.py` module mixed registry validation, shared delivery helpers, query passthrough, and every concrete view implementation. That made each new view more likely to add another field or branch to the shared dispatcher. ## Solution - Added typed option groups for message/raw, context, context-pack, recovery, neighbors, and correlation options. - Moved shared read-view contracts and delivery/query helpers to `polylogue/cli/read_views/base.py`. - Split concrete handlers into `polylogue/cli/read_views/{standard,messages,context,recovery,neighbors,correlation,bulk}.py`. - Kept `polylogue/cli/read_view_handlers.py` as the small executable registry that validates profile/handler drift and dispatches by view id. - Updated tests and operation/artifact metadata to reference the concrete handler owner modules rather than old private registry helpers. - Regenerated topology surfaces for the new package layout. ## Verification - `devtools test tests/unit/cli/test_query_verbs_runtime.py tests/unit/cli/test_continue_absorption.py tests/unit/cli/test_terminal_snapshots.py tests/unit/cli/test_neighbors_command.py -q` -> `52 passed` - `devtools test tests/unit/cli/test_plain_cli_snapshots.py::test_json_status_snapshot -q` -> `1 passed` - `devtools verify --quick` -> exit_code 0 - `devtools verify --seed-testmon --skip-slow` -> `11615 passed`, exit_code 0; first run caught one status snapshot drift from #2205, fixed here and rerun green. Ref #2177
Summary
Completes the candidate-judgment follow-up surfaced by the broad verification pass after #2204: command help aliases, facade status routing, assertion audit coverage, and generated showcase baselines now include the new candidate judgment surface.
Problem
The #2182 implementation merged cleanly through CI, but a seed-testmon verification run immediately afterward exercised broader catalog checks and found stale surfaces: two
--limitoptions lacked the expected-lalias, the archive facade status route catalog did not know the new async candidate/explain methods, the user-tier audit omittedAssertionKind.JUDGMENT, and the SQL interpolation audit line keys had shifted.Solution
-laliases topolylogue ops debt list --limitandpolylogue ops state candidates list --limit.explain_import,list_assertion_candidates, andjudge_assertion_candidatein the facade route catalog.Verification
devtools test tests/unit/cli/test_theme_aliases_help_markdown.py::test_flag_aliases_consistent tests/unit/cli/test_status.py::test_archive_facade_route_catalog_covers_public_async_facade tests/unit/storage/test_archive_tiers_user_audit.py::test_user_overlay_audit_covers_every_assertion_kind tests/unit/storage/test_no_string_interpolated_sql.py::test_no_unaudited_string_interpolated_sql tests/unit/storage/test_no_string_interpolated_sql.py::test_audited_sites_are_real_violations -q->5 passeddevtools render all --check-> passdevtools lab scenario verify-baselines->Ran 102 exercises; All baselines match.devtools verify --quick-> exit_code 0Closes #2182