fix: address release review findings - #102
Conversation
📝 WalkthroughWalkthroughThe MCP approval-listing tool now publishes observational, read-only metadata. Approval documentation and release notes were clarified, while changelog contract tests now validate individual issue entries through a shared helper. ChangesManagement contract and documentation
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Poem
Caution Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional.
❌ Failed checks (1 error, 1 warning, 1 inconclusive)
✅ Passed checks (2 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
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/management-tools-contract.test.ts`:
- Around line 23-28: Add an exact-length assertion in the delegated-mode test
around managementTools({ delegatedAgentApproval: true }), verifying the returned
delegated collection length equals MANAGEMENT_TOOL_DESCRIPTORS.length before or
alongside the existing descriptor loop. Keep the per-descriptor presence and
annotation assertions unchanged.
🪄 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: 9e2fc4ee-12ee-434a-9285-22760acfe2ae
📒 Files selected for processing (13)
CHANGELOG.mddocs/config.mdsrc/mcp/server/management-tools.tstests/approval-docs-contract.test.tstests/changelog-issue-entry.test.tstests/helpers/changelog.tstests/management-tools-contract.test.tstests/mcp-wrapper.test.tstests/preset-docs-contract.test.tstests/profile-runtime-isolation-docs-contract.test.tstests/profile-state-docs-contract.test.tstests/release-version.test.tstests/routing-context-docs-contract.test.ts
Summary
Addresses the valid CodeRabbit findings from release-promotion PR #101 before
0.3.0can advance tomain.miftah_list_approvalsmetadata to an observational, read-only local tool.miftah_list_approvalsbehavior in the pending0.3.0notes.Test-first evidence
Validation
npm testnpm run test:corenpm run test:coverage— 95.47% statements/lines, 92.00% branchesnpm run lint,npm run typecheck,npm run build,npm run smoke:clinpm run check:pack,npm run test:packageNo approval authorization flow, token handling, profile behavior, or release version changes are included.
Summary by CodeRabbit
New Features
miftah_list_approvalsis now presented as a read-only observation tool, with metadata accurately indicating that it does not modify state.Documentation
miftah init --client claude-codenow provides exact manual permission guidance without changing Claude Code settings.miftah_list_approvalsas read-only.