Forbidden-String Leak Scan
lens_consistency_leaksDetect forbidden strings in customer-facing files before publishing. Catches real client names, internal codenames, and banned absolutes with case-insensitive literal matching.
Instructions
Scan customer-facing files for deny-list terms (CASE-INSENSITIVE literal match — note lens_consistency_markers is case-SENSITIVE, they differ). Deterministic, no LLM. Exit 6 on a hit. Run this on EVERY customer-facing file before any irreversible publish: it is the check that catches a real client name, an internal codename or a banned absolute surviving into shipped copy. A credential scanner will not find these, because nothing here is a credential. IMPORTANT — a hit proves the STRING IS PRESENT, which is authoritative; it does not by itself prove a violation, because the match is NEGATION-BLIND: a banned phrase quoted in order to disclaim it ('we will not give you a guaranteed accuracy number') looks identical to the same phrase asserted. Adjudicate before acting. Deny terms should therefore be strings that are wrong in EVERY context (a real client name, an internal codename), not claims-you-do-not-make — those belong in a lens prompt.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory to run in. catches.jsonl is read from and written to here. Defaults to the server's cwd. | |
| deny | No | Extra deny terms, added to the profile's consistency.deny | |
| files | Yes | Local file path(s) to scan | |
| profile | No | Profile YAML providing consistency.deny |