Skip to content

Integration Seams

Runtime composes contracts with different owners and different failure modes. Its integration job is to preserve authority: who supplied the dataset, who defined the plan, which executor could create effects, which verifier produced findings, which policy arbitrated them, and which store retained the result.

Authority Map

flowchart LR
    caller["caller authority"] --> manifest["FlowManifest or ExecutionPlan"]
    lower["canonical package evidence"] --> prepare["runtime preparation"]
    manifest --> prepare
    policy["verification and replay policy"] --> prepare
    prepare --> execute["authority-bearing execution context"]
    execute --> executor["step executors and external effects"]
    execute --> verify["verification and arbitration"]
    execute --> store[("DuckDB execution store")]
    executor --> payloads["artifact and external systems"]
    store --> inspect["inspect, resume, replay, diff"]

Runtime may accept or refuse the composed run. It does not take ownership of ingest normalization, index geometry, reason support semantics, or agent role lifecycle.

Seam Contracts

Seam Required input Runtime records or decides Refusal boundary
manifest and plan tenant, dataset, dependency graph, package identities, determinism and replay posture ordered fingerprinted execution plan changed or incomplete authority identity
lower package governed artifact plus producer identity and status linkage into the whole-run evidence graph opaque payload, missing provenance, incompatible status
executor declared effect class, credentials, entropy, idempotency and failure mapping intent, invocation, causal events, result, checkpoint unauthorized effect or unsafe retry semantics
artifact store payload identity, digest, parentage, resolver metadata and evidence references unresolved, corrupt, or untrusted payload
verification registered rules over claims, evidence, artifacts and entropy complete findings and rule coverage missing mandatory rule or invalid evidence
arbitration fingerprinted policy and verification statuses accept, reject, or non-certifiable decision policy mismatch or prohibited finding
execution store read or write capability with tenant scope causal history, checkpoint, final trace and replay inputs wrong authority, schema, tenant, or finalized state
client surface validated Python/CLI request or implemented HTTP operation result or structured refusal schema-only HTTP run/replay operation

Canonical Package Custody

Producer Runtime consumes Producer retains authority over
ingest dataset identity, normalized source state, provenance acquisition, normalization, chunk coordinates
index execution artifact, backend identity, ranked evidence, completion class vector geometry, capability and retrieval semantics
reason claims, exact supports, verification report, reason bundle claim construction and evidence linkage
agent task identity, ordered trace, decisions, convergence and termination role orchestration and provider adaptation

Pass stable identifiers, hashes, classifications, and complete artifacts. Display names and logs are not cross-package identity.

Executor Admission

flowchart TD
    candidate["executor candidate"] --> authority{"authorized for this step?"}
    authority -->|no| reject["refuse executor"]
    authority -->|yes| effects{"effect and retry semantics declared?"}
    effects -->|no| reject
    effects -->|yes| entropy{"entropy source within policy?"}
    entropy -->|no| reject
    entropy -->|yes| artifacts{"artifact protocol and failure mapping valid?"}
    artifacts -->|no| reject
    artifacts -->|yes| admit["admit executor"]

External tools execute beyond DuckDB's transaction. Runtime can record intent, invocation, result, entropy, and checkpoint, but it cannot roll back a provider call, filesystem write, or service mutation. A mutating executor therefore requires an idempotency key, deduplication, or compensation that survives resume.

DuckDB records artifact identity, hashes, parentage, and evidence references. Payload availability remains the artifact store's responsibility and must be verified before an artifact supports acceptance or replay.

Verification, Persistence, And Replay

Verification creates rule findings; arbitration applies policy to those findings. An arbitration pass is not factual truth. Retain rule identity, coverage, findings, policy fingerprint, decision, and certifiability together.

Write capability is required for execution and resume. Read capability is sufficient for inspection and comparison. The DuckDB implementation is single-writer and local. Replay compares a new execution with retained plan, dataset, envelope, trace, policy, environment, and artifact identity under the original exact or bounded rule.

Client Surfaces

The CLI invokes the canonical application and renders machine-readable failures. bijux-canon and agentic-flows are compatibility commands to the same runtime authority.

The HTTP application implements health, readiness, schemas, headers, and failure envelopes. Its run and replay endpoints return 501 Not Implemented. OpenAPI presence must not be interpreted as remote execution capability.

See API surface for endpoint posture and artifact contracts for runtime custody.