count_masks counts runs of exactly five stars, or <REDACTED: marks under typed and
named; absent counts 0. write_pairs gives each change's text before and after. The
guard denies when a change holds more marks than what it replaces, and a Write's
"before" is the file on disk, read only if the new text holds a mark. Both projects
of a path call decide. on_mask_write = "allow" turns it off. The refusal says "ask the
user", names the setting and quotes nothing.
Each PostToolUse that masked adds a note beside the output.
cli_hook_fail_closed: a masked Write's only note is now the masks note, asserted
exactly, in place of "no note".