Post-foundation API sketches
Responsibility: show the intended developer experience for ADRs 0014 (adoption has shipped; see the Drizzle guide) and 0016. Authority: illustrative proposal only. These names and signatures are not exported and are subject to API/versioning review. This is the one API document whose examples the documentation check does not typecheck; an example moves to the API reference, as a self-contained checked module, when its API ships.Work offline
Shipped in M6.5: see Offline queue and ADR 0058.Version a workflow
wf.version(name, n) sketch. Markers are declared on Actor.workflow, and every marker’s current value is recorded when an execution starts. wf.version(name) returns the recorded value, or 0 for executions that predate the marker, so in-flight executions keep their branch even before they reach it. akter workflows check and startup compare the manifest derived from the registered step constructors and versions with open executions and the manifests they started under, and refuse removed or renamed steps (reached or not) and markers outside min..current.
Inspect and reproduce
akter inspect Chat/room-42 and akter export Chat/room-42 --output room-42.seed shipped, with test.actor(Chat, "room-42", { seed: "room-42.seed" }) (server API). The baseline export is current actor state plus pending intents and jobs; arbitrary past-turn rewind, and so a --turns option, requires a separately costed history feature.
Derive protocols
Actors.serve({ mcp }), described in generating clients) exposes only public members. A durable tool invocation requires a stable caller-supplied commandId; a transport event ID with no guaranteed retry stability is insufficient. The Python client (see generating clients) follows the same runtime schemas and expiry semantics as the TypeScript client.
Serve cold
Generated apps
TodoList source is validated in isolation and activated as a versioned build; no generated handler runs in the control-plane process.
The Agent.definition sketch for ADR 0015 was removed: the agent runtime is Outlast, a separate product (ADR 0017).