Repository navigation
refactor(cli): report action contracts in output assurance (#1816) - #1944
Conversation
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
|
Warning Review limit reached
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 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 configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (4)
✨ 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
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.pystill 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
findgrammar to the existing search assurance row. Regenerated CLI reference output for the new coverage table and added tests that prove the report reflectsACTION_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
findmapping.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
findneeds 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