Crash-resumable agents
Every specialist writes the facts, constraints, decisions, and next action another process needs to continue without replaying the whole investigation.
State Capsule is an SDK and protocol for checkpointing, restoring, and verifying agent work across processes, frameworks, and nodes.
Protocol trace
Agent A
+04s
publishes signed capsule
Runtime
+21s
process crashes or hands off
Agent B
+38s
restores verified state
Adapter
+55s
resumes framework loop
Observer
+72s
verifies capsule chain
Capsule primitive
task_id
support-ticket-482
capsule.head
0x8cf2...19ab
current_holder
agent-b
next_action
continue from checkpoint
64 KB soft cap
sdk contract
signed writes
sdk contract
schema migration
sdk contract
Every specialist writes the facts, constraints, decisions, and next action another process needs to continue without replaying the whole investigation.
Capsules are signed, chained, anchored, and summarized through 0G Compute so receivers can trust what changed and why.
Triager, Reproducer, Patcher, and Reviewer coordinate over AXL as separate nodes with separate failure domains.
Demo application
create, update, restore, verify, subscribe
signed capsule chain with storage and anchor hooks
open-source maintenance swarm built on top
Architecture
State Capsule owns durable task state. Storage, chain anchors, task pointers, and live coordination are pluggable integration layers around the same capsule contract.
Mutable capsule head plus append-only log
Registry anchors for capsule lineage
Sealed summaries for fast restore
Live multi-node coordination
Human-readable task pointers
OpenClaw, LangChain, Vercel AI SDK
SDK surface
MaintainerSwarm uses the same SDK surface available to any agent runtime. The adapters wire checkpoints into existing frameworks instead of asking teams to rewrite their stack.
const capsule = await restoreCapsule(taskId, {
verifyChain: true,
sealedSummary: true,
});
await updateCapsule(capsule, {
facts: [...capsule.facts, reproWindow],
next_action: "apply narrowed race fix",
created_by: "reproducer-02",
});