github kenryu42/cc-safety-net v2.8.0

one hour ago

The user policy can now replace what an agent is told when a built-in rule blocks, and the local policy GUI gets an inline editor with a live preview of that message.

Added

  • Added destructive_command_protection.messages and secret_protection.messages to the user policy. Each maps a built-in rule id to { "reason": "...", "intent": "..." } to replace what the agent is told when that rule blocks, for example to name a safe alternative. The rule still blocks, one message covers every command that rule blocks, and a match found inside a script keeps its file:line prefix. (#370, #371)
  • Added reason and intent validation for those maps: reason is required and at most 256 characters, and the optional intent selects the closing instruction (hard_stop, use_alternative, scope_down, manual_only, or stop_and_explain). Only ids in that section's rule set qualify; a structural denial such as guard.*, analysis.*, cwd.*, tool-call.*, or secret.deny-path cannot carry a message.
  • Added a block-message editor to every rule row in the Protections tab of the policy GUI, with the built-in wording to start from where it can be resolved, a preview rendered by the real block formatter with the custom parts marked, and a per-section count of custom messages. A rule with a message shows its wording at rest, counts under "Changed from default", and matches search; a reason over the limit shows how much to cut and disables Save. (#371)
  • Added links from a blocked tester result and a blocked Activity entry straight to that rule's message editor.
  • Added rule messages to the policy check --global diff, so a user-scope proposal that sets or changes one shows it as a diff row.

Changed

  • Changed rule messages to user scope only: a project policy that sets them is ignored with a config warning, and both policy check and the GUI refuse a project proposal that carries them.
  • Improved the error for an object under destructive_command_protection.overrides or secret_protection.overrides, which now points at that section's messages map instead of only repeating that the value must be "on" or "off".

Don't miss a new cc-safety-net release

NewReleases is sending notifications on new releases.