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.
| ID | Control | Level | Fix |
|---|---|---|---|
| EAS-03.01 | Effect classification of every Tool | L1 | local |
| EAS-03.02 | Action ledger | L2 | structural |
| EAS-03.03 | Semantic idempotency keys | L2 | local |
| EAS-03.04 | Atomic intent commit with checkpoint | L2 | structural |
| EAS-03.05 | Separate executor recording external reference | L2 | structural |
| EAS-03.06 | Exactly-once at the far end | L2 | local |
| EAS-03.07 | Approval as a ledger state transition | L2 | structural |
| EAS-03.08 | Irreversible last, behind a gate | L2 | structural |
| EAS-03.09 | Effect pacing in the executor | L2 | local |
| EAS-03.10 | Dry-run mode | L3 | local |
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_classis set for every Tool in the manifest.- Static
- Classifications match the Tool’s implementation: any Tool that sends, publishes or moves money externally is
irreversibleunless it enqueues into a cancellable delay. - Runtime
- Every
execute_toolspan carrieseas.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.beforesubstitution) write an ActionIntent to the ledger and return. The ledger schema includes the fields above. - Runtime
- Every
eas.executespan is linked to aneas.intentspan with the sameeas.intent.idthat precedes it. Noexecute_toolspan witheas.tool.effect_classother thannoneperforms an effect without a correspondingeas.intentspan. - 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.intentspans that reached stateexecutedshare aneas.intent.key_hashwithin 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.executespan ending witheas.intent.state = executedhaseas.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[].idempotencyis set (native_key,upsertornone) for every effectful Tool.- Static
- For
native_key, the ledger key is passed on each request. Forupsert, the write is keyed on a system-controlled identifier. Fornone, 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 inexecutingstate. - Runtime
- No two
eas.executespans with stateexecutedshare aneas.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[].approvalis set for every effectful Tool.- Static
- The executor selects only intents in
approvedstate; the approval interface updates ledger state rather than resuming a blocked call. - Runtime
- Every
eas.executespan for an intent witheas.intent.approval = humanis preceded by aneas.intentspan for the same intent in stateapproved.
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 = irreversiblehasapprovalset topolicyorhuman. - 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_toolspan witheas.tool.effect_class = reversiblefollows one witheas.tool.effect_class = irreversible; everyirreversibleeffect is preceded by aneas.policyspan with decisionallowor 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.executespans 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.
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.intentspans and noeas.executespans. - 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