Skip to content

feat: add reviewer.replaceDefaultPolicy to replace the built-in review policy - #65

Merged
dyoshikawa merged 2 commits into
mainfrom
feat/replace-default-policy
Oct 23, 2026
Merged

dyoshikawa merged 2 commits into
mainfrom
feat/replace-default-policy

Conversation

@dyoshikawa

Copy link
Copy Markdown
Owner

Summary

The built-in review policy leans toward asking a human (it escalates whenever the user's intent is unknown or the operation is ambiguous), and reviewer.instructions could only argue against it. This adds reviewer.replaceDefaultPolicy (boolean, default false) so the user's instructions become the whole policy.

When enabled:

  • agent / chat: the prompt drops "Decide whether it is safe and within the user's intent", "Use escalate when human confirmation is needed…" and "If userIntent is null, escalate…", and introduces the instructions with userPolicyPreamble (the only policy; an operation it does not decide is escalated).
  • decision: the question uses policy-free instructions and criteria phrased against the user's policy.
  • Kept: the review check, the JSON answer format, the untrusted-data guard and boundary, the conversation authorization rules, and minAllowProbability.
  • Requires reviewer.instructions; the plugin fails at startup otherwise.

README documents the option and its trade-off.

Tests

  • pnpm cicheck passes (new tests in config, reviewer, chat-reviewer and decision-reviewer).

🤖 Generated with Claude Code

https://claude.ai/code/session_01XcU6mYjWis3a6YpqCW2xgB

@dyoshikawa
dyoshikawa merged commit 3c221a7 into main Oct 23, 2026
1 check passed
@dyoshikawa
dyoshikawa deleted the feat/replace-default-policy branch October 23, 2026 04:02
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