Skip to content

refactor(cli): remove action-contract re-export shim (#1849) - #2071

Merged
Sinity merged 1 commit into
masterfrom
feature/refactor/remove-cli-action-contract-shim-1849
Jun 17, 2026
Merged

Sinity merged 1 commit into
masterfrom
feature/refactor/remove-cli-action-contract-shim-1849

Conversation

@Sinity

@Sinity Sinity commented Jun 17, 2026

Copy link
Copy Markdown
Owner

Summary

Delete the polylogue.cli.action_contracts compatibility re-export module and point devtools/tests/docs at the owning polylogue.operations.action_contracts module.

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 matches
  • nix 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 passed
  • nix develop --command devtools verify --quick -> exit_code 0
  • pre-push devtools verify --quick -> exit_code 0

Ref #1849

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
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Jun 17, 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 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 @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: 1897045d-dfd3-446a-890a-7879bd619033

📥 Commits

Reviewing files that changed from the base of the PR and between 23bd131 and 17bd777.

📒 Files selected for processing (8)
  • devtools/action_contract_report.py
  • docs/cli-reference.md
  • docs/plans/topology-target.yaml
  • docs/topology-status.md
  • polylogue/cli/action_contracts.py
  • tests/unit/cli/test_cli_action_contracts.py
  • tests/unit/cli/test_completion_matrix.py
  • tests/unit/devtools/test_action_contract_report.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/refactor/remove-cli-action-contract-shim-1849

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.

github-actions Bot pushed a commit that referenced this pull request Jun 17, 2026
@Sinity
Sinity merged commit 207faa1 into master Jun 17, 2026
14 checks passed
@Sinity
Sinity deleted the feature/refactor/remove-cli-action-contract-shim-1849 branch June 17, 2026 23:29
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