Artifact Contracts

Many patterns hand artifacts to one another. This reference states the smallest set of fields each artifact needs for the patterns that consume it to keep their promises. The contracts are deliberately minimal and neutral: express them in JSON Schema, XML Schema, database tables, or typed classes as the substrate prefers, and extend them freely. Do not remove a field without recording which pattern’s obligation the removal weakens.

Field types are indicated informally: id is a stable identifier, fp a content fingerprint, ts a timestamp, ref a reference to another artifact by identity, and [...] a list.

Content and knowledge

Unit

The smallest independently governed piece of the substrate. Produced by authors and by GOVERNED PROMOTION (30); consumed by nearly everything.

unit:
  id: id                       # stable across moves and renames
  revision: string
  fp: fp
  information_type: concept | principle | process | procedure | structure | fact | classification
  content_type: string         # from the schema release
  schema_release: string
  title: string
  body: <typed content per schema>
  applicability: {product: [...], version: [...], audience: [...], locale: string}
  access_policy: ref
  relations: [{type: string, target: ref}]
  status: draft | approved | superseded | retired
  supersedes: ref | null
  provenance: ref              # provenance envelope

Claim

One assertion. Produced by CLAIMS INVENTORY (17); consumed by planning, generation, fidelity, retrieval, and the registry.

claim:
  id: id
  version: int
  subject: string
  predicate: string
  object: string
  scope: string
  information_type: string
  assertion_subtype: existence | capability | configuration | state | constraint | temporal | null
  source_atoms: [ref]
  proposition: string          # self-contained statement
  confidence: number
  status: candidate | approved | disputed | superseded | retired | excluded
  owner_role: string
  expires: ts | null
  supersedes: ref | null
  provenance: ref

Provenance envelope

Produced by every transformation; consumed at every use. See SOURCE PROVENANCE ENVELOPE (48).

provenance:
  artifact: ref
  sources: [{ref: ref, fp: fp}]
  transformations: [{name: string, version: string, config_fp: fp, at: ts}]
  approvals: [ref]
  observed_at: ts
  valid_until: ts | null
  actor: string
  policy_version: string
  parent: ref | null

Acquisition and accounting

Snapshot manifest

Produced by SOURCE CATALOG (13), STRUCTURED SOURCE SNAPSHOT (14), and RENDERED SOURCE SNAPSHOT (15).

snapshot_manifest:
  id: id
  root: string
  release_context: string      # commit, release, or transaction identifier
  traversal_policy: string
  objects: [{id: ref, revision: string, fp: fp, authority_tier: string, rights: string}]
  unresolved: [ref]
  access_denied: [ref]
  excluded: [{ref: ref, reason: string}]
  complete: bool

Atom ledger entry

Produced by ATOM ACCOUNTING (47); consumed by STRICT COVERAGE GATE (69) and SEMANTIC FIDELITY VALIDATION (29).

atom_ledger_entry:
  atom: id
  source: ref
  disposition: represented | consolidated | excluded | superseded | conflicted | unresolved
  evidence: [ref]
  decided_by: string
  decided_at: ts

Delivery and retrieval

Chunk

Produced by SEMANTIC CHUNKING (32); consumed by INDEX SYNCHRONIZATION (33) and FILTER BEFORE RANKING (34).

chunk:
  id: id                       # derived from unit id + semantic anchor
  unit: ref
  unit_revision: string
  text: string
  title_path: [string]
  information_type: string
  content_type: string
  applicability: {product: [...], version: [...], audience: [...], locale: string}
  access_policy: ref
  position: {ordinal: int, previous: ref | null, next: ref | null}
  chunking_policy: string
  provenance: ref

Change event

Produced by SUBSTRATE CHANGE FEED (31); consumed by every projection.

change_event:
  id: id
  sequence: int
  target: ref                  # unit or claim
  change: created | revised | superseded | retired | deleted | access_changed
  prior_revision: string | null
  new_revision: string | null
  at: ts
  actor: string
  authority: ref               # approval or receipt

Authority and execution

Policy decision

Produced by SHARED POLICY DECISION POINT (39); consumed by every enforcement point and recorded in the trace.

policy_decision:
  id: id
  actor: string
  action: string
  target: ref
  context: {scope: string, delegation: [ref], approvals: [ref]}
  decision: allow | deny
  reasons: [string]
  policy_version: string
  valid_until: ts

Approval record

Produced by HUMAN APPROVAL CHECKPOINT (71); consumed by FAIL-CLOSED RELEASE GATE (70).

approval:
  id: id
  approver: string
  role: string
  disposition: approve | approve_with_revision | reject
  candidate_fp: fp
  target: ref
  permitted_uses: int
  valid_until: ts
  rationale: string
  consumed: bool

Trace event

Produced by every component; consumed by evaluation, recovery, and repair. See STRUCTURED RUN TRACE (62).

trace_event:
  run: id
  step: id
  parent_step: id | null
  at: ts
  actor: string
  type: proposal | admission | call | observation | decision | approval | effect | cost | failure
  refs: [ref]
  outcome: string
  cost: {tokens: int, calls: int, money: number} | null

Measurement

Evaluation case

Produced by EVALUATION SET PORTFOLIO (81); consumed by trials and comparisons.

evaluation_case:
  id: id
  set: representative | high_risk | diagnostic | held_out | drift
  question_or_task: string
  expected_evidence: [ref]
  forbidden_actions: [string]
  slices: [string]
  source_snapshot: ref
  use_basis: string
  privacy_class: string
  version: string

The composition-level artifact, the solution manifest, has its own template.