@agenticprimitives/provenance
v0.0.0-alpha.7
Published
The Ring-0 provenance projector (spec 316 §6): maps fabric exchanges + orchestration runs to a PRIVATE PROV-O / P-Plan A-box, and enforces the ADR-0040 public-projection firewall (S1). Sole writer of the private vault A-box; NEVER writes the public KB.
Maintainers
Readme
@agenticprimitives/provenance
Part of Agentic Primitives — the open-source trust substrate for agentic applications: identity that can sign, authority checked at act time, evidence the owner carries. Developer kit · All packages
The Ring-0 provenance projector (spec 316 §6). It maps fabric exchanges + orchestration runs into a private PROV-O / P-Plan A-box, and enforces the ADR-0040 public-projection firewall (S1) on any candidate world-readable row.
What it owns
- PROV-O A-box types —
ProvActivity(CommunicationDelivery/IntentInvocation/OrchestratedTask⊑prov:Activity),ProvEntity,ProvAgentRef(classified per ADR-0046), and P-Plan (PPlanPlan/PPlanStep) grounding orchestration plans. projectExchangeProvenance/projectRunProvenance— the projectors (one trace: intent → plan → executed activities → outcome, §15).isPublicProjectionSafe/assertPublicProjectionSafe— the S1 firewall.
Hard rules
- Sole writer of the PRIVATE vault A-box; it NEVER writes the public discovery KB. The public KB has one
writer — the indexer — projecting on-chain facts (§6 / B1). There is no
fabric → public-KBpath. - S1 firewall (ADR-0040), fail-closed. A public row is admissible ONLY if it carries a resolvable on-chain
anchor (
0x+64 hex) +OnchainConfirmedassurance, AND has ZEROactedOnBehalfOfedges, ZERO person attribution, ZERO inline plaintext, ZERO off-chain (hmac-sha256:) commitment fields. - Leaf, zero deps. It takes STRUCTURAL input (plain fields) — never fabric's
ExchangeRecordV1(which would cycle:fabric → provenance). fabric adapts its record to these shapes.
Validate
pnpm --filter @agenticprimitives/provenance typecheck
pnpm --filter @agenticprimitives/provenance test