Skip to main content
TealState governs agent context — the working memory that AI agents use to maintain conversation state, retrieved documents, and tool outputs. It enforces size limits, tracks provenance metadata for every context entry, and governs mutations to prevent context poisoning.
TealState addresses OWASP ASI-05 (Improper Output Handling) and ASI-08 (Excessive Agency) — the risks that agent context grows unbounded, contains unverified information, or is manipulated to influence future decisions.

Why This Matters

Compliance alignment: NIST AI RMF (MEASURE 2.5 — AI system performance), ISO 42001 (A.8.3 — data quality), EU AI Act Article 10 (data governance).

Class


StateOptions


evaluateMutation()

Evaluate whether a context mutation (adding, updating, or removing an entry) is permitted.

ContextMutation

MutationDecision


Context Size Governance

TealState enforces hard limits on context size to prevent token overflow and cost explosion:

Eviction Strategies


Provenance Metadata

Every context entry carries provenance metadata that tracks its origin, trust level, and lineage:

Querying Provenance


Context Budget


Integration with TealEngine