@obversa/runtime compiles graph definitions and records graph decisions and
node outcomes. A host can resume unfinished positions from that record.
Install
Public entry points
From@obversa/runtime (packages/runtime/src/api.ts):
- Graph definitions:
compileGraph,dagGraphType, andconvergencedefine dependency graphs and repeated reviews. - Graph runs:
createGraphExecutor,resolveGraphPlan, andpersistRunDefinitionrun and resume a stored graph. - In-process callbacks:
createCallbackGate,createCallbackClient,replayCallbackClient, anddirectRoutermanage replayable questions. - Stored callbacks:
createStoredCallbackClientstores callback history in the run event stream. - Proof artifacts:
writeProofArtifactstores one stable JSON proof packet and returns its content digest. - Accepted results:
createAcceptedResultRecord,resolveAcceptedResult, andacceptedResultMatchesbind a result to its reviewed inputs, proof, graph, workspace, and caller-supplied reviewer identity. - Approval:
createApprovalCallbackGate,approvalSubjectDigest, andresolveApprovalbind a stored decision to the exact subject bytes. The stored client writes the callback submission and approval together. - Job helpers:
run,loop,pipeline,dag, andsequenceare the older job API.
- Testing:
@obversa/runtime/testingprovides graph definition helpers and mocks. - Local storage:
@obversa/runtime/storage/localprovidescreateLocalRunStorage.
Runnable example
From an Obversa checkout, runpnpm example:pipeline. The source is
examples/packages/pipeline.ts. It stores a three-stage pipeline and runs it
through createGraphExecutor.
See Built-in pipeline for the report that command prints.