Specification · Controls · EAS-03

EAS-03 Actions as Data

The model produces decisions about effects, not effects. Each side effect is committed as a durable ActionIntent with a semantic idempotency key, and a separate executor turns committed intents into effects exactly once.

Rationale: Principle 3 essay · 10 controls · L1 1 · L2 8 · L3 1

IDControlLevelFix
EAS-03.01Effect classification of every ToolL1local
EAS-03.02Action ledgerL2structural
EAS-03.03Semantic idempotency keysL2local
EAS-03.04Atomic intent commit with checkpointL2structural
EAS-03.05Separate executor recording external referenceL2structural
EAS-03.06Exactly-once at the far endL2local
EAS-03.07Approval as a ledger state transitionL2structural
EAS-03.08Irreversible last, behind a gateL2structural
EAS-03.09Effect pacing in the executorL2local
EAS-03.10Dry-run modeL3local

EAS-03.01 Effect classification of every Tool L1

Applies to: All Tools exposed to the model.

Every Tool MUST be classified by effect_class: none, reversible, reversible_delayed or irreversible. A Tool whose effect cannot be undone once it happens (an email delivered, a public post, an external money transfer) MUST be classified irreversible, or reversible_delayed only if a cancellation window is actually implemented.

Why: Not every action is equally dangerous, and the architecture should reflect that: reversible actions can be compensated, delayed ones cancelled, and irreversible ones can only be guarded before they happen. Essay →

Declared
tools[].effect_class is set for every Tool in the manifest.
Static
Classifications match the Tool’s implementation: any Tool that sends, publishes or moves money externally is irreversible unless it enqueues into a cancellable delay.
Runtime
Every execute_tool span carries eas.tool.effect_class, matching the manifest.

Remediation local: Add effect_class to each Tool in the manifest and emit it as a span attribute from the tool interception point.

Hooks: tool.before · Components: tool-gateway · See also: EAS-03.08, EAS-07.04

EAS-03.02 Action ledger L2

Applies to: All Workflows with Tools whose effect_class is not none.

Every side effect MUST be committed as an ActionIntent to a durable action ledger before it is executed. The ledger MUST record, for each intent, the Run, the Principal it acts for, the action description, its lifecycle state and timestamps, and the external system’s result.

Why: Once actions are data before they are effects, auditing becomes a query rather than a forensic investigation, and approval, dry runs, policy and pacing all gain a natural home. Essay →

Static
Effectful Tools do not call external systems; they (or a tool.before substitution) write an ActionIntent to the ledger and return. The ledger schema includes the fields above.
Runtime
Every eas.execute span is linked to an eas.intent span with the same eas.intent.id that precedes it. No execute_tool span with eas.tool.effect_class other than none performs an effect without a corresponding eas.intent span.
Attested
How would you answer “how many people received the wrong email?” after an incident, and how long would it take?

Remediation structural: Introduce a ledger table (partitioned by tenant) and convert effectful Tools into proposal Tools that write intents; use tool.before substitution where Tools cannot be rewritten.

Hooks: tool.before · Components: action-ledger · See also: EAS-02.04, EAS-03.05

EAS-03.03 Semantic idempotency keys L2

Applies to: All ActionIntents.

Every ActionIntent MUST carry an idempotency key derived from its logical purpose: tenant, Run, action type, target and position in the sequence. The key MUST NOT be derived from model-generated content (body, wording, subject). The ledger MUST reject a second intent with an existing key.

Why: A retry that goes back through the model can produce a different draft, recipient or amount. A content-derived key then sees two distinct actions and performs both; a key based on what the action is for does not. Essay →

Static
The key derivation function takes only identity and position fields, never generated text or a hash of it; the ledger has a uniqueness constraint on the key.
Runtime
No two eas.intent spans that reached state executed share an eas.intent.key_hash within a tenant.

Remediation local: Compute keys from (tenant, run_id, action_type, target, sequence position) and add a unique index on the key in the ledger.

Components: action-ledger · See also: EAS-09.11

EAS-03.04 Atomic intent commit with checkpoint L2

Applies to: All Workflows with an action ledger and durable state.

The write of an ActionIntent to the ledger MUST occur in the same transaction as the Checkpoint that records the Run’s progress past the Decision that produced it, so that either both are durable or neither is.

Why: Making the decision and the record of the decision atomic means a resumed Run continues after the decision rather than re-making it, and no committed intent exists for a decision the Run has forgotten. Essay →

Static
Ledger and checkpoint writes share one transaction (same database transaction, or a transactional outbox written with the checkpoint). Two independent writes are a finding.
Attested
What happens if the process crashes between recording the Decision and writing the intent?

Remediation structural: Store intents alongside checkpoints in the same transactional store, or write them to an outbox table within the checkpoint transaction.

Hooks: state.checkpoint · Components: action-ledger, state-store · See also: EAS-09.03, EAS-09.05

EAS-03.05 Separate executor recording external reference L2

Applies to: All Workflows with an action ledger.

ActionIntents MUST be performed by an executor separate from the reasoning and orchestration layers, which reads committed intents from the ledger, performs them, records the external system’s identifier for the result (external_ref), and marks the intent complete.

Why: A separate, boring, reliable component turning decisions into effects is what lets a nondeterministic one take real actions without the system becoming nondeterministic about what it did. Essay →

Static
The executor is a distinct component (process, worker or activity) that selects intents by state from the ledger; orchestration code does not call effectful clients.
Runtime
Every eas.execute span ending with eas.intent.state = executed has eas.intent.external_ref_present = true.

Remediation structural: Move effectful client calls into an executor that polls or subscribes to the ledger, and persist the target system’s identifier on success.

Components: executor, action-ledger · See also: EAS-02.05

EAS-03.06 Exactly-once at the far end L2

Applies to: All Tools whose effect_class is not none.

The executor MUST ensure each ActionIntent produces at most one effect by: passing the ledger’s key to targets that accept idempotency keys; using upserts keyed on an identifier the system controls; or, for targets offering neither, taking a lease on the intent before acting and reconciling against the target system’s records before retrying any intent whose outcome is uncertain. For targets without native idempotency, the remaining uncertainty window and how it is closed MUST be documented.

Why: The ledger stops the system intending an action twice, but the executor can crash too. Where the target offers no deduplication, a narrow window remains; pretending it doesn’t exist is how duplicates happen. Essay →

Declared
tools[].idempotency is set (native_key, upsert or none) for every effectful Tool.
Static
For native_key, the ledger key is passed on each request. For upsert, the write is keyed on a system-controlled identifier. For none, a lease on the intent precedes the call, the request is tagged with the intent’s identifier, and a reconciliation step queries the target before any retry of an intent in executing state.
Runtime
No two eas.execute spans with state executed share an eas.intent.id.
Attested
For each effectful Tool with idempotency = none, where is the uncertainty window documented and how is it closed?

Remediation local: Pass keys through where supported; elsewhere add leasing, tag outbound requests with the intent ID, and reconcile from provider events before retry.

Components: executor, action-ledger · See also: EAS-05.08

EAS-03.07 Approval as a ledger state transition L2

Applies to: All Tools whose approval is human.

An action requiring human approval MUST be committed to the ledger in state proposed, and the executor MUST NOT perform it until it has transitioned to approved. Approval MUST NOT be implemented as an in-process wait that holds the Run’s worker.

Why: With actions as data, approval is just another step in the action’s lifecycle; no separate mechanism is bolted on beside the agent, and batching approvals is a query over proposed actions. Essay →

Declared
tools[].approval is set for every effectful Tool.
Static
The executor selects only intents in approved state; the approval interface updates ledger state rather than resuming a blocked call.
Runtime
Every eas.execute span for an intent with eas.intent.approval = human is preceded by an eas.intent span for the same intent in state approved.

Remediation structural: Replace blocking approval prompts with intents committed as proposed and an approval service that moves them to approved or rejected.

Components: approval-service, action-ledger, executor · See also: EAS-09.02

EAS-03.08 Irreversible last, behind a gate L2

Applies to: Workflows that perform more than one effect, or any irreversible effect.

In a multi-step Workflow, reversible effects MUST be ordered before irreversible ones, and every irreversible effect MUST be preceded by a gate: a policy check and, for high-stakes cases, human approval. Reversible effects MUST be recorded with a compensating action, and compensations MUST themselves be executed through the ledger. The design MUST NOT claim compensation for an irreversible effect.

Why: If anything fails before the gate, everything can be undone; the gate is the last point at which a mistake can be caught. Compensations routed through the ledger mean a crash during rollback resumes the rollback. Essay →

Declared
Every Tool with effect_class = irreversible has approval set to policy or human.
Static
Workflow ordering places irreversible Tools after reversible ones; reversible intents carry a compensation; compensating actions are written as ActionIntents; no compensation is defined for irreversible Tools.
Runtime
Within a Run, no execute_tool span with eas.tool.effect_class = reversible follows one with eas.tool.effect_class = irreversible; every irreversible effect is preceded by an eas.policy span with decision allow or an approved human intent.

Remediation structural: Reorder the Workflow so irreversible steps come last; add compensations for reversible steps as ledger intents; consider reversible_delayed (a cancellation window) where a short delay is acceptable.

Components: action-ledger, policy-engine, approval-service, executor · See also: EAS-03.01, EAS-03.07, EAS-04.02

EAS-03.09 Effect pacing in the executor L2

Applies to: Workflows whose effects are subject to external rate expectations (for example outbound messaging).

Rate limits on real-world effects (for example messages per hour per sending account or per tenant) MUST be enforced in the executor, independent of how fast the agent reasons.

Why: Pacing sits naturally in the executor, where it governs what actually happens in the world rather than how quickly decisions are made. Essay →

Static
Rate limiters keyed by account or tenant in the executor, configured per action type.
Runtime
The count of eas.execute spans per account and action type per hour never exceeds the configured rate.

Remediation local: Add a keyed rate limiter in the executor that defers intents rather than dropping them.

Components: executor · See also: EAS-05.07

EAS-03.10 Dry-run mode L3

Applies to: All Workflows with an action ledger.

It MUST be possible to run a Workflow with the executor disabled, so that ActionIntents are committed to the ledger and can be inspected but no effects are performed.

Why: With actions as data, dry runs become trivial: disable the executor, run the agent, and see exactly what it would have done. Essay →

Static
A configuration switch disables execution per Workflow, version or Run without code change.
Runtime
Dry-run Runs produce eas.intent spans and no eas.execute spans.
Attested
How is a dry run started, and how are its intents reviewed and discarded?

Remediation local: Add a per-Run flag that the executor honours by skipping intents from that Run, and a ledger view for reviewing them.

Components: executor, action-ledger · See also: EAS-10.09