Scope Isolation
A 3-dimensional approach to controlling what each AI agent can see and do.
Why Context Isolation Matters
In a multi-agent workflow, not every agent should see everything. Consider:
- A code analysis agent shouldn't leak secrets to a reporting agent
- A sandboxed agent processing untrusted input shouldn't pollute the main context
- A debugging agent should observe without modifying state
Most workflow tools give you "shared context" or "no context" — a binary choice. We think context should be graduated and orthogonal.
The Three Dimensions
DAG
What results from other tasks can this agent see?
Transcripts
What conversation history is available?
State
What shared state can be read or modified?
# Each preset is an ALIAS for a 3D configuration
# You can think of it as coordinates in context-space
preset: minimal = (dag: none, transcripts: none, state: none)
preset: default = (dag: ancestors, transcripts: parent, state: read)
preset: debug = (dag: all-read, transcripts: all-read, state: read)
preset: full = (dag: all, transcripts: all, state: read-write)The Four Presets
minimal
— Fresh 200K context, completely isolatedNo access to other task results
Starts with empty history
Cannot read or write shared state
default
— Position-aware context (standard)Access to direct ancestors only
Inherits from parent tasks
Read-only access to resolved inputs
debug
— Can read main context, writes isolatedFull DAG visibility (read-only)
Can read all, writes to isolated buffer
Full read, isolated write
full
— Full context access, accumulates transcriptsComplete access to all task outputs
Full read/write, persists across tasks
Full read/write access
Usage in Workflows
tasks:
- id: fetch-secrets
agent:
prompt: "Retrieve API credentials"
scopePreset: minimal # ◎ Isolated - can't leak
- id: process-data
agent:
prompt: "Transform the data"
scopePreset: default # ◈ Standard inheritance
- id: debug-check
agent:
prompt: "Analyze what happened"
scopePreset: debug # ⊕ Can see everything, can't modify
- id: orchestrate
agent:
prompt: "Coordinate all agents"
scopePreset: full # ◉ Full access for orchestrationThis is implemented in Nika v7.0
Join the beta to try it out.