Documentation
¶
Overview ¶
Package scan provides deterministic Memory v2 pre-write content checks.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action string
Action is the strongest deterministic outcome produced by the scanner.
type Category ¶
type Category string
Category groups scan matches by policy family.
const ( // CategoryThreat covers prompt-injection, exfiltration, and persistence payloads. CategoryThreat Category = "threat" // CategoryWhatNotToSave covers Slice 1 persistence denylist policy. CategoryWhatNotToSave Category = "what_not_to_save" // CategoryAnnotation covers non-blocking policy hints for later controller tasks. CategoryAnnotation Category = "annotation" )
type Result ¶
Result is the redaction-safe outcome of scanning candidate memory content.
func Candidate ¶
func Candidate(candidate memcontract.Candidate) Result
Candidate scans the candidate content before persistence.
func (Result) Allowed ¶
Allowed reports whether the scan result may continue to later write decisions.
func (Result) Reason ¶
Reason returns a redaction-safe explanation that never includes scanned content.
func (Result) RuleHits ¶
func (r Result) RuleHits() []memcontract.RuleHit
RuleHits converts scan matches to controller rule-trace entries.
Click to show internal directories.
Click to hide internal directories.