Back to Waclaude docs

Minimal-change patching

Keep diffs small, surgical, and review-ready

Waclaude prioritizes the smallest diff that closes a vulnerability. Use these controls to fine-tune size, style, and context requirements across repositories.

Style guide alignment

Waclaude learns project-level formatting and idioms from repo telemetry. You can pin ESLint/Prettier configs or provide custom formatters for other languages.

Change-size targets

Set maximum diff sizes globally or per directory. Waclaude will re-plan until the fix lands under your threshold unless policy allows escalation.

Security playbooks

Attach playbooks (e.g., “SQL injection mitigation”) to vulnerability classes. Playbooks constrain function choices, logging, and monitoring to match your standards.

Policy snippet

diff_constraints:
  default_max_changes: 8
  directories:
    services/payments:
      max_changes: 4
      reviewers:
        - @payments-lead
  escalation:
    allow_override: true
    notify: security-platform@acme.com

Next steps

Wire these diff rules into approvals and change-control workflows.

Configure approval gates →