test: align release and risk documentation contracts - #165
Conversation
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 21 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?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 reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. 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, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe documentation now places fixed PostHog command classification before trusted MCP annotations. Contract tests verify this ordering and require the corresponding trusted command metadata wording in the v0.3.2 release notes. ChangesRisk precedence contracts
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
@coderabbitai full review |
✅ Action performedFull review finished. |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@tests/release-version.test.ts`:
- Line 75: Update the release-notes assertion in the relevant test to verify
that “trusted PostHog command metadata” is explicitly described as taking
precedence over “generic static annotations,” rather than merely checking that
both phrases occur in order. Preserve the existing case-insensitive matching
behavior and assert the release contract’s precedence relationship directly.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 17eeb3fe-8fc8-4085-809e-49f05bf641eb
📒 Files selected for processing (3)
docs/config.mdtests/release-version.test.tstests/risk-classification-docs-contract.test.ts
Closes #163
Closes #164
Why
A fresh CodeRabbit review of promotion PR #140 found two release-review gaps: the v0.3.2 contract did not protect the #142 release note, and
docs/config.mdlisted trusted annotations before the fixed PostHog adapter despite runtime precedence being the reverse.Change
classifyToolRisk(); no runtime policy behavior changes.TDD evidence
trustedfrom the bug: give PostHog command metadata precedence over static read-only hints #142 release note and with the incorrect documentation order.Validation
npx vitest run tests/release-version.test.ts tests/risk-classification-docs-contract.test.ts tests/risk-classifier.test.ts --reporter=dotnpm run lintnpm run typecheckSummary by CodeRabbit
Documentation
Tests