Part of #1195 — Phase 1
Implement content sanitizer that detects injection patterns and wraps untrusted content with spotlighting delimiters.
Crates: zeph-core
Depends on: SEC-1.1
Tasks:
Files: crates/zeph-core/src/sanitizer.rs, crates/zeph-core/src/sanitizer/patterns.rs (new)
Part of #1195 — Phase 1
Implement content sanitizer that detects injection patterns and wraps untrusted content with spotlighting delimiters.
Crates: zeph-core
Depends on: SEC-1.1
Tasks:
ContentSanitizerstruct with configurable max size, pattern list, markup strippingignore (all|any|previous|prior)?instructionsyou are now,new (instructions|directive|role|persona)developer mode,system promptreveal|show|display your (instructions|prompt|rules)<external-data source="..." trust="...">with explicit "treat as data" preambleInjectionFlagstruct: pattern matched, confidence, location in contentFiles:
crates/zeph-core/src/sanitizer.rs,crates/zeph-core/src/sanitizer/patterns.rs(new)