Our Software · Ghoul

The governed library. The actor remains.

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.

Library, boundary, receipts.

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.

Four core mechanics, one library.

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.

01

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.

02

Typed messages

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.

03

Fenced leases

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.

04

Receipts

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

The cluster does not own the identity.

Inference attaches

The model is a tenant, not the principal.

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

The library does not inherit what it serves.

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

The accelerator bill is for inference, not for proof.

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

11 conformance tests

Each core mechanism is covered, including negative tests for tampering, replay, conflicting messages, leaked secrets and stale ownership.

Conformance ≠ liveness

A system is Ghoul-conformant only when every contract element is implemented and tested against the suite. Live health alone is not conformance.

Authority stays with the owner

Ghoul holds shared mechanics only. Each system that uses it keeps its own identity, policy and decisions.

Identity across model swaps

Behavioural continuity through a model change is confirmed by paired test, not assumed from topology. The weights are not the principal.

Signed conversations

Conversations are signed and can be verified by anyone holding only the public key; no private material is needed to check them.

Verified callbacks, fenced restarts

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

Identity holds across model swaps.

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.