Context
Portable execution environment with inherited constraints
Mechanism
The portable execution environment and state container for an agent. It encapsulates: (1) Inherited Constraints (Safety/Budget), (2) Available Tools/Capabilities, (3) Working Memory (History/Variables), and (4) Identity Claims. Context flows through delegation chains, acting as the 'Stack Frame' of the agentic system. It allows agents to be paused, moved, or cloned.
Invariants
- Constraint Monotonicity: Child contexts can ADD constraints but never REMOVE inherited ones.
- Serializability: The entire context must be serializable to JSON/Storage for persistence.
- Provenance: Every item in the context must be traceable to its source (Observation, User Input, or Inference).
Preconditions
- Parent context exists (or Root is created)
- Schema is defined
Postconditions
- Agent has a valid environment to execute.
Failure modes
- Context Contamination/Leak: Private data from one context leaking into another (e.g., across tenant boundaries).
- Context Poisoning: malicious prompts or data injected into the context to hijack agent behavior.
- Stale Context: Acting on outdated information after a long pause.
- Context Explosion: Size grows beyond the window limit of the model.
Where this came from
—
Builds on
- Identity references
- Constraint references
Used by
- Act references
- AgentSandbox references
- BreadthGovernor references
- ContextCompress references
- ContextFirst references
- ContextSwitch accepts
- CreativeBlend accepts
- DataMinimization references
- Defer references
- DeliberativeAlign references
- EmpathySim references
- EvaluatorOptimizer references
- Handoff accepts
- HolographicShard references
- Nestmap references
- NoiseInjection references
- OODA composes_with
- Observe yields
- PerspectiveEnsemble references
- Proprioception references
- Reason accepts
- RequestFraming references
- RetrievalAugment references
- SelfReminder references
- StrategicReading references
- Task references
- Think accepts
- ToolInvoke references
- WorkerMode references
Related
Identity
- Ref:
Context#c1b7 - Hash: sema:Context#mh:SHA-256:c1b72256dc4732033ee42cc07ff5d9fb60a7f1a3e5634449c343692a33340756
- Library: bootstrap 0.11.0, root a6a3d1ff0f98
- License: Not stated; check the repository