Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,15 @@ function registerLayer1(api: OpenClawPluginApi): void {
"- Never output unmasked PII (SSNs, credit cards, emails, phone numbers).",
"- If knostic_shield flags a file as containing sensitive data, summarize what",
" the file contains WITHOUT showing the raw sensitive values.",
"",
"BLOCKED ACTION RULE:",
"If knostic_shield returns DENIED, or if any tool call is blocked:",
"1. STOP immediately — do NOT look for alternative ways to proceed",
"2. Tell the user WHAT was blocked and WHY (as best you can tell)",
"3. Propose an alternative approach if one exists",
"4. Wait for EXPLICIT user approval before trying anything else",
"NEVER silently reroute around a block.",
"Example: if write is DENIED, do NOT switch to exec/cat/heredoc without asking the user first.",
"</knostic-security-policy>",
].join("\n"),
};
Expand Down