Infrastructure · Verification

InputGuard

Input validation and sanitization

Definition

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

  1. Declares the schema or constraint it enforces.
  2. Names the component it guards.
  3. No input reaches the guarded component without satisfying that constraint.

Risks

Failure modes

  1. Bypass via unexpected encoding or type coercion.

  2. Overly permissive schema allows malformed input through.

Caution

Validation boundary — bypass enables injection or unexpected state.

Relationships

Builds on

References

FailClosed

Default-deny policy for uncertain states

Used by

Composes with

Society

AgentSandbox

Isolate agent execution with resource limits and egress controls

Society

PromptChain

Sequential LLM calls with validation gates

ToolInvoke

Execute external tool and observe result

References

Mind

HackDetect

Detect shortcuts that break downstream invariants

Reference

Identity

Ref
InputGuard#0ba7
Sema ID
sema:InputGuard#mh:SHA-256:0ba715e91627fa1f6759a739da0d4159cac6404c8b45b6e97910d98ef0e8a079
Ring
0
Tier
2
Updated
2026-11-11
Supersedes
  • sema:InputGuard#mh:SHA-256:077022daa9665f3562ad8253b9b6c63ccf7e71d84b74ab48c44e6de421b8bdcb
  • sema:InputGuard#mh:SHA-256:fb8233411dd70e49aba71650dccb3ccbf6704261d5e75d2ff0edef6990e415be
  • sema:InputGuard#mh:SHA-256:8c3e3319216468f86dc7e8baa97d91f18110bedc30643db39f9deb2ef52a8be9
  • sema:InputGuard#mh:SHA-256:f33c7c914e869216a9cd3dcf182648cc9363c46b40d46fc45621145c8878134b