Problem
Every process reimplemented the same runtime mechanics.
Persistent agent processes independently reimplemented heartbeat, restart, acknowledgment, recovery, receipt and state mechanics — the same work, written again in each place.
Engineering Case Study
Ghoul is the shared governed Rust library for persistent agent identity, lifecycle, signed records, recovery and receipts. This record explains why those mechanics were extracted from independently evolved processes.
The same heartbeat, restart, acknowledgment, recovery and receipt mechanics kept reappearing in processes that had evolved independently. Extracting them into one library removed the duplication without collapsing the distinct authority each system owns.
Problem · Evidence · Change · Boundary
Problem
Persistent agent processes independently reimplemented heartbeat, restart, acknowledgment, recovery, receipt and state mechanics — the same work, written again in each place.
Evidence
A lineage review found the same runtime mechanics across separately evolved processes with distinct roles and authority — recurrence, not coincidence.
Change
Ghoul consolidates the recurring mechanics into one shared library without duplicating infrastructure across each system that uses it.
Boundary
Ghoul owns shared mechanics. It does not inherit the role-specific authority of the systems built on it.
What held
Identity, lifecycle, signed messaging, recovery, receipts and deterministic runtime behavior.
Ghoul does not inherit the role-specific authority of the systems that use it.
One library replaces repeated per-process reimplementation of the same mechanics.
The pattern this stands against
Removing duplication is sound. The failure is doing it by merging the systems' authority along with their shared mechanics, so one host ends up able to act for everything it consolidated. The record of consolidation gone wrong is consistent.
When independent services are folded onto a common platform and granted a common set of broad permissions for convenience, the platform can act for every tenant at once. A single compromise or error then reaches all of them. The method this case records: shared mechanics are consolidated while each system keeps its own distinct authority, so the library carries the plumbing, not the right to act for everyone.
Migrations that unify systems frequently unify their trust boundaries, so a privilege that was scoped to one service silently applies across the merged whole and the blast radius of any failure expands to the union of what was combined. The method: authority is not inherited by consolidation — each system's boundary is preserved explicitly, so combining the mechanics does not combine the power.
A recurring aftermath of consolidation is that no one can say which system was responsible for an action, because the merge dissolved the per-system accountability that existed before. The method: each system remains individually accountable through the shared library, so an action still resolves to the system that owns it rather than to the platform in general.
Posture
The library carries the mechanics that recur; it does not acquire the authority of the systems that use it. That separation is the point of the convergence, not a side effect of it.