# ADR-0092: M10 intentions, actions and durable outcomes ## Status Accepted for M10.4 (2026-10-03). Decisions confirmed with the maintainer on 2026-10-03: intentions and actions have no biological effect yet (durable no-effect); stable action ids and final outcomes are made durable in PostgreSQL in the same transaction as the checkpoint; 10.4 wires M10 sessions into evo-server with a headless client (the GUI client switches later). Delivery: 10.4a protocol and admission (this text), 10.4b durable action records (migration v11) and host integration, 10.4c evo-server listener, headless client and process kill tests. Each segment amends this ADR. ## Context ADR-0089 fixed the scheduling window (server_tick + 1 ..= + 8), one intention per tick, per-session u64 sequences, at most 256 unresolved intentions and 1.5 s final outcomes. ADR-0090 put superseding intentions on QUIC DATAGRAMs and reliable actions on the stream. ADR-0091 binds sessions to accounts. No controllable organism or movement rule exists (10.6 movement experiment, M11 organisms), so nothing an intention names can change authoritative state yet. Committed batch traces record host inputs only, not request ids. ## Decision (10.4a) **Two kinds of client input, three distinct answers.** - *Intentions* (datagram): session, epoch, sequence, tick, bounded move vector; never any state claim (position, energy): the message has no such fields and any extra bytes make it invalid. Answers: an `IntentionReceipt` (admitted = scheduled for its tick, or a refusal) and a cumulative `SimulatedThrough` watermark (every admitted intention up to a sequence whose tick has been simulated in the epoch), repeated every 20 ticks so a lost datagram is covered. Intentions are superseding: there is no per-intention durable record. - *Actions* (stream): a client-chosen action id, unique per account and stable across retries and reconnects, a kind and a tick. Answers: an `ActionReceipt` (scheduled, or a refusal) and a final `ActionOutcome`: `committed_no_effect` with its commit sequence once the commit covering its tick is durable, or `not_committed`. `ActionQuery` resolves an id at any time (`pending`, `unknown`, or the final outcome). The only kind is `probe`. - A receipt is never a final outcome, and the watermark is never durability. **Admission** (`IntentAdmission`, transport-neutral, single owner), in order: the message must name the connection's own session; rate (every attempt counts: 8 intentions and 4 actions per 8-tick window); authority ready; epoch; vector norm <= 1000 or a known action kind and nonzero id; strictly increasing sequence; tick inside the window and, for intentions, after the previous admitted intention's tick; duplicates (an action id already pending or final for the account is never admitted again: `duplicate`, followed by its outcome when final); at most 256 unresolved intentions plus actions per session. Actions belong to the account: a takeover or reconnect sees the same pending and final actions. The host takes scheduled actions with `carry(tick)` for the batch that simulates that tick and reports durable commits with `committed(end_tick, sequence)`. When the epoch advances, actions never carried are final `not_committed`; carried ones stay pending until their durable record decides them (10.4b). Recent final outcomes (2,048) are kept for duplicates and queries; older ones are resolved from the durable record (10.4b). **Protocol.** Session protocol v1 gains message types 6-12 and Welcome gains the server tick (schemas/network/session-v1.md). v1 has never been deployed, so it is amended in place, as ADR-0083 did for M9 v1; after its first deployment, changes need a new version. The action kind is a raw u16 on the wire and validated by admission (an enum narrower than the wire field must never be cast from it). ## Consequences and limits (10.4a) - Durable resolution of carried actions after a crash, and of final outcomes evicted from memory, needs the v11 records (10.4b). Until then a carried action of a lost epoch answers `pending`. - The simulated watermark says the targeted tick ran while the intention was scheduled; with no movement rule it changed nothing. 10.6 gives intentions an effect. - Nothing is wired into evo-server yet (10.4c); nothing deploys M10 sessions.