✨ feat: onboard allows the pull request tools that turn Auto-fix on (P-52)
Slice: #249
niyam onboard adds mcp__ccd_pr__bind_pr, mcp__ccd_pr__get_status and mcp__ccd_pr__set_monitor to permissions.allow in the repo's .claude/settings.json, beside REVIEW_THREAD_RULE and the same way: edits in the text, only the missing ones, the rest of the file left as it is. Its pull request names the change; the plan's label is "Auto-fix rules", or "allow rules" when the review-thread rule is added in the same run, so the plan line stays within 60 columns.
niyam doctor warns (▲) under "This repo" when an onboarded repo's .claude/settings.json lacks any of the three, naming which, with the fix niyam onboard again. It says nothing outside a git repo, in a repo without niyam settings, or when the file does not parse.
Tests: a fresh file, a file that already has all three (unchanged byte for byte), and one with only get_status, for both onboard and doctor. README and docs/decisions.md updated.
No version bump; the coordinator releases it. Repos get the rules when the owner reruns niyam onboard after the release.
🤖 Generated with Claude Code
Summary by cubic
niyam onboard now adds mcp__ccd_pr__bind_pr, mcp__ccd_pr__get_status, and mcp__ccd_pr__set_monitor to permissions.allow, and niyam doctor warns about missing ones. Agent sessions turn Auto-fix on with set_monitor, but in auto mode the classifier refuses those calls unless the repo's .claude/settings.json allows them; repos so far needed the rules added by hand.
onboardedits the text, adding only the missing rules beside the review-thread rule.doctorwarns (▲, still passing) under "This repo", naming each missing rule, and suggestsniyam onboard again.- An allow rule for the whole pull request server (
mcp__ccd_prormcp__ccd_pr__*) counts, so none of the three are added or warned about. doctorfinds the clone assession-startdoes, so a cloud-session run from outside the clone still checks it.- Both stay silent outside a git repo, when the repo is not onboarded, or when the settings file does not parse. Repos get the rules when the owner reruns
niyam onboardafter the release.