Skip to content

fix(assertions): finish candidate judgment catalogs (#2182) - #2205

Merged
Sinity merged 1 commit into
masterfrom
feature/fix/assertion-candidate-followup-2182
Jun 20, 2026
Merged

Sinity merged 1 commit into
masterfrom
feature/fix/assertion-candidate-followup-2182

Conversation

@Sinity

@Sinity Sinity commented Jun 20, 2026

Copy link
Copy Markdown
Owner

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 --limit options lacked the expected -l alias, the archive facade status route catalog did not know the new async candidate/explain methods, the user-tier audit omitted AssertionKind.JUDGMENT, and the SQL interpolation audit line keys had shifted.

Solution

  • Added -l aliases to polylogue ops debt list --limit and polylogue ops state candidates list --limit.
  • Registered explain_import, list_assertion_candidates, and judge_assertion_candidate in the facade route catalog.
  • Added judgment assertions to the user overlay audit map.
  • Updated the audited SQL line keys for the assertion projection f-strings.
  • Regenerated the two affected showcase help baselines.

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 passed
  • devtools render all --check -> pass
  • devtools lab scenario verify-baselines -> Ran 102 exercises; All baselines match.
  • devtools verify --quick -> exit_code 0

Closes #2182

@coderabbitai

coderabbitai Bot commented Jun 20, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@Sinity, we couldn't start this review because you've reached your PR review rate limit.

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 @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 845f86cd-b249-4aa5-a1ba-2e3f5e913802

📥 Commits

Reviewing files that changed from the base of the PR and between 28455f9 and 1ef79d9.

📒 Files selected for processing (7)
  • polylogue/cli/commands/debt.py
  • polylogue/cli/commands/status.py
  • polylogue/cli/commands/user_state.py
  • polylogue/storage/sqlite/archive_tiers/user_audit.py
  • tests/baselines/showcase/help-ops-debt-list.txt
  • tests/baselines/showcase/help-ops-state-candidates-list.txt
  • tests/unit/storage/test_no_string_interpolated_sql.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/fix/assertion-candidate-followup-2182

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Sinity
Sinity merged commit 1fb8ace into master Jun 20, 2026
13 checks passed
@Sinity
Sinity deleted the feature/fix/assertion-candidate-followup-2182 branch June 20, 2026 02:39
Sinity added a commit that referenced this pull request Jun 20, 2026
## 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
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.

feat(assertions): promote candidate claims through explicit operator judgment

1 participant