Skip to content

Guardrails & policy middleware — validated, safe, compliant I/O by default #892

Closed

Description

@AmitoVrito

Strategic bet

Regulated buyers (health/finance/gov) need input/output governance as a first-class, auditable layer — not ad-hoc. We already have pii_filter, SafetyPolicy (computer-use), and signed audit trails (#738/#822); a unified guardrails middleware composes them into one policy surface and pairs with Neuro-Symbolic (#733) for verifiable compliance.

Scope

  • Guardrail middleware runnable on any LLM/agent/tool call (pre + post hooks)
  • Input: prompt-injection / jailbreak detection, topic/allow-deny, max-cost gate
  • Output: schema/grounding validation (reuse StructuredOutput), toxicity, PII redaction, citation-required
  • Compliance rulepacks: HIPAA / GDPR / PCI clause → check (some verifiable via Z3 backend, v2.0: Neuro-Symbolic Reasoning Layer — LLM proposes, solver verifies #733)
  • Every decision emits a signed, replayable audit record (reuse GroundedSignal / audit)
  • Modes: block / redact / flag / require_human

Acceptance

  • Test suite of adversarial inputs blocked; benchmark false-positive rate
  • Docs: "governed agents" guide; example wiring a HIPAA rulepack

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementepic

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions