Repository navigation
refactor(cli): remove action-contract re-export shim (#1849) - #2071
Conversation
Problem: public CLI action contracts live in polylogue.operations.action_contracts, but devtools and tests still imported them through polylogue.cli.action_contracts, a pure compatibility re-export module. What changed: delete the CLI shim, import the owning operation contract module directly, and regenerate CLI/topology docs for the removed module. Verification: - rg -n 'polylogue\.cli\.action_contracts|CLI compatibility imports' . -> no matches - devtools test tests/unit/cli/test_cli_action_contracts.py tests/unit/cli/test_completion_matrix.py tests/unit/devtools/test_action_contract_report.py -> 110 passed - devtools verify --quick -> exit_code 0 Ref #1849
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Review limit reached
More reviews will be available in 26 minutes and 26 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 (8)
✨ 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
Delete the
polylogue.cli.action_contractscompatibility re-export module and point devtools/tests/docs at the owningpolylogue.operations.action_contractsmodule.Problem
Action contracts are operation-level metadata, but several repo surfaces still imported them through a CLI shim. That shim added another place for agents to treat the old import path as a real surface, even though it carried no behavior.
Solution
Removed the shim, updated all imports to the operation module, and regenerated CLI/topology documentation so the deleted module is no longer declared.
Verification
rg -n 'polylogue\.cli\.action_contracts|CLI compatibility imports' .-> no matchesnix develop --command devtools test tests/unit/cli/test_cli_action_contracts.py tests/unit/cli/test_completion_matrix.py tests/unit/devtools/test_action_contract_report.py-> 110 passednix develop --command devtools verify --quick-> exit_code 0devtools verify --quick-> exit_code 0Ref #1849