@manifesto-ai/lineage
v3.7.0
Published
Manifesto Lineage - decorator runtime for seal-aware continuity, history, and restore
Maintainers
Readme
@manifesto-ai/lineage
Seal-aware continuity for the ADR-017 decorator runtime.
@manifesto-ai/lineage is the package that adds time, history, and restore to a composable manifesto.
Current Contract Note: The current package contract is docs/lineage-SPEC.md. The v2 lineage spec remains as the historical service-first baseline.
What This Package Owns
withLineage(createManifesto(...), config).activate()- lineage-aware
commitAsyncthat seals before publication - restore, head, branch, and world queries on the activated runtime
getWorldSnapshot(worldId)for stored sealed canonical snapshot lookupgetLineage()for DAG inspection on the activated runtime- sealing substrate and the provider surface
- deterministic world identity, branch semantics, and restore normalization
Canonical Path
import { createManifesto } from "@manifesto-ai/sdk";
import { withLineage, createInMemoryLineageStore } from "@manifesto-ai/lineage";
const manifesto = createManifesto<CounterDomain>(schema, effects);
const lineage = withLineage(manifesto, {
store: createInMemoryLineageStore(),
}).activate();
await lineage.commitAsync(
lineage.createIntent(lineage.MEL.actions.increment),
);
const head = await lineage.getLatestHead();
if (head) {
await lineage.restore(head.worldId);
}Low-Level Usage
Use @manifesto-ai/lineage/provider when you need LineageService, LineageStore, prepared commits, or custom persistence without the activated runtime wrapper.
