Continuity chain
A tamper-evident, monotonic receipt chain — minted and verified. Sequence or status mutation breaks the chain on verification. A restarted process cannot assert continuity it did not earn; the chain is the arbiter, not the uptime.
Our Software · Ghoul
Ghoul is a governed Rust library for persistent agents. Identity, lifecycle, signed records, receipts and provider boundaries remain intact while models, tools and sessions change. A model attaches to the process that uses the library; it does not become the actor.
Ghoul extracts the mechanics that long-running processes have required since the supervised-actor and event-sourcing traditions: durable identity, heartbeat, bounded restart, acknowledgement, recovery and receipts. Ghoul provides those mechanics as a library; the authority to act remains with the system that uses it.
Each mechanism is a contract, not a convenience. These four sit at the core of a broader library, extracted from the behaviour independently evolved systems held in common, so an obligation is enforced in code rather than left to operator discipline.
A tamper-evident, monotonic receipt chain — minted and verified. Sequence or status mutation breaks the chain on verification. A restarted process cannot assert continuity it did not earn; the chain is the arbiter, not the uptime.
A typed message format with replay idempotency, conflict rejection, and refusal of secret-bearing context. Messages carry their own admissibility rules, so a duplicate or a conflicting payload is rejected at the boundary rather than resolved by guess.
Leases bound by owner, deadline, generation and epoch, with an epoch-fencing gate. A stale holder is fenced out deterministically — the lineage that produced a decision cannot be impersonated by a process that has fallen behind.
Durable receipt states — accepted, rejected, deferred, completed, failed, unknown. Interrupted consequential work resolves to UNKNOWN until reconciled. The receipt records what was restored, from which generation, under which owner.
The library / actor boundary
Inference attaches
A model, provider or session may be attached, replaced or upgraded. The process built on Ghoul keeps its identity, mailbox, timers and history. Cognition changes without renaming the actor or expanding the authority it holds.
Authority stays local
Ghoul supplies lifecycle, signing and recovery mechanics. It does not acquire the role-specific authority of the systems built on it. Tools execute inside the jurisdiction those systems already own, and no further.
Proof on ordinary silicon
Heartbeat chains, lease fences and receipts are verified on a CPU by a later reviewer. The library separates the cost of cognition from the cost of verification, so continuity remains checkable without the originating runtime.
Current Evidence
Each core mechanism is covered, including negative tests for tampering, replay, conflicting messages, leaked secrets and stale ownership.
A system is Ghoul-conformant only when every contract element is implemented and tested against the suite. Live health alone is not conformance.
Ghoul holds shared mechanics only. Each system that uses it keeps its own identity, policy and decisions.
Behavioural continuity through a model change is confirmed by paired test, not assumed from topology. The weights are not the principal.
Conversations are signed and can be verified by anyone holding only the public key; no private material is needed to check them.
Provider callbacks are accepted only with a verified signature, are protected against replay and survive a restart, and a durable epoch fence stops a stale process from acting.
Continuity
Heartbeat, restart, receipt, replay, recovery and lease-fencing mechanics recurred across independently evolved services until the pattern was undeniable. Ghoul consolidates them into a common library. Role authority remains with the system that owns it; a restarted process cannot invent success, failure, or continuity from topology alone.