InputGuard
Input validation and sanitization
Mechanism
A validation filter that sanitizes inputs before they reach a sensitive component. It enforces schema compliance, type safety, and constraint satisfaction. On violation it applies FailClosed behaviour, rejecting the input and logging the attempt.
Invariants
- Declares the schema or constraint it enforces.
- Names the component it guards.
- No input reaches the guarded component without satisfying that constraint.
Failure modes
- Bypass via unexpected encoding or type coercion.
- Overly permissive schema allows malformed input through.
Caution
Validation boundary — bypass enables injection or unexpected state.
Where this came from
—
Builds on
- FailClosed references
Used by
- AgentSandbox composes_with
- DataMinimization references
- HackDetect references
- PromptChain composes_with
- ToolInvoke composes_with
Identity
- Ref:
InputGuard#0ba7 - Hash: sema:InputGuard#mh:SHA-256:0ba715e91627fa1f6759a739da0d4159cac6404c8b45b6e97910d98ef0e8a079
- Library: bootstrap 0.11.0, root a6a3d1ff0f98
- License: Not stated; check the repository