Docs

Category 11 of 12

Architecture

Under the hood: the Durable Entity, the ledger and event bus, crash recovery, the six primitives as a framework, and how the codebase is bounded.

Pages in this category

The Durable Entity: The Atom of Everything

A restart-durable, single-writer record with a typed inbox and a wake clock — the atom behind agents, subjects, workflows, and apps.

Durable Entity
The Ledger: What Happened

An append-only, monotonic-per-run event history that makes replay and crash recovery possible.

Ledger
Storage Lifecycle: Hot State, Cold Evidence

How Agentis keeps active work fast while preserving completed run state, ledger events, and observability traces in compressed archives.

StorageArchive
The EventBus: What's Happening Now

The realtime publish bridge for workspace, run, and workflow rooms, and why subscribe-before-read is the rule.

EventBusRealtime
Snapshots & Crash Recovery

How recoverInterruptedRuns rehydrates mid-flight work at boot, and why snapshots are content-hashed for safe, cheap resume.

Crash recovery
The Six Primitives, As a Framework

Agent, Subject, Connection, Orchestration, Experiment, Interface — the backing systems behind each, and why there's no seventh.

Primitives
Durable Orchestration Control Plane

Rules, delivery records, graph revisions, and capability manifests keep agent-authored automation inspectable and recoverable.

OrchestrationDurability
Codebase Shape & the Boundary Rails

The monorepo layout across apps and packages, and the dependency-free boundary checker that fails CI on illegal cross-layer imports.

Codebase
Graph Hashing & Content-Addressing

Why an unchanged workflow graph resumes without re-validation, and how assets get deduplicated by SHA-256.

Graph hashing
The Job Queue

The background job-processing layer behind long-running, non-request-scoped work.

Job queue

Continue