Skip to content

refactor(cli): report action contracts in output assurance (#1816) - #1944

Merged
Sinity merged 1 commit into
masterfrom
feature/refactor/output-assurance-action-contracts-1816
Jun 15, 2026
Merged

Sinity merged 1 commit into
masterfrom
feature/refactor/output-assurance-action-contracts-1816

Conversation

@Sinity

@Sinity Sinity commented Jun 15, 2026

Copy link
Copy Markdown
Owner

Summary

Makes the output-assurance report consume the new CLI action-contract registry by adding an action-contract coverage section.

Problem

#1941 added code-coupled action contracts, but output_assurance.py still reported only its older top-level command matrix. #1816 needs the old assurance layer to converge toward the contract spine rather than remain a parallel public vocabulary.

Solution

Added contract-derived coverage rows to output assurance, including an internal alias that maps virtual find grammar to the existing search assurance row. Regenerated CLI reference output for the new coverage table and added tests that prove the report reflects ACTION_CONTRACTS.

Issue slice: contract-derived output assurance coverage.
Files inspected: polylogue/cli/output_assurance.py, polylogue/cli/action_contracts.py, output assurance tests.
Files changed: polylogue/cli/output_assurance.py, tests/unit/cli/test_cli_output_assurance_matrix.py, docs/cli-reference.md, docs/topology-status.md.
Old surface removed or retained: retained output assurance as an internal adapter; this slice adds contract coverage rather than deleting the old registry.
Contracts/tests added: action-contract coverage in the assurance report, including virtual find mapping.
Generated artifacts updated: CLI reference and topology status.
Known caveats / SPEC_MISMATCH: output assurance remains top-level-command oriented while action contracts are action-path oriented; virtual find needs an alias to the existing search assurance row.
Follow-up intentionally not included: full retirement of the old assurance registry, behavioral guard tests, docs/help/completion metadata from contracts, and #1818 machine-envelope/schema checks.

Verification

  • devtools test tests/unit/cli/test_cli_output_assurance_matrix.py tests/unit/cli/test_cli_action_contracts.py -> 82 passed.
  • devtools verify --quick -> exit_code 0.

Ref #1816

Problem: #1816 introduced CLI action contracts as the public action floor, but the older output-assurance report still exposed only its hand-maintained command matrix. That left the generated assurance surface detached from ACTION_CONTRACTS metadata.\n\nWhat changed: derive an action-contract coverage section from ACTION_CONTRACTS, map virtual find grammar to the existing search assurance row, and add focused tests proving the rendered report follows the live contract registry. Regenerated the CLI reference and topology status required by the repository generated-surface gate.\n\nVerification: devtools test tests/unit/cli/test_cli_output_assurance_matrix.py tests/unit/cli/test_cli_action_contracts.py -> 82 passed. devtools verify --quick -> exit_code 0.\n\nRef #1816
@coderabbitai

coderabbitai Bot commented Jun 15, 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 34 minutes and 13 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.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

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: 28258297-f1e8-46e1-b2c5-b4ba34edeffd

📥 Commits

Reviewing files that changed from the base of the PR and between 6e8eb9e and 043cdae.

📒 Files selected for processing (4)
  • docs/cli-reference.md
  • docs/topology-status.md
  • polylogue/cli/output_assurance.py
  • tests/unit/cli/test_cli_output_assurance_matrix.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/refactor/output-assurance-action-contracts-1816

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 15, 2026
@Sinity
Sinity merged commit 8d3ae3c into master Jun 15, 2026
14 checks passed
@Sinity
Sinity deleted the feature/refactor/output-assurance-action-contracts-1816 branch June 15, 2026 20:39
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