Metakit / @doeixd/metakit/artifact

EvidenceKeyInput

interface · packages/metakit/src/artifactEvidence.ts:17

interface EvidenceKeyInput {
  readonly fingerprint: Digest
  readonly reader: {
    readonly id: string
    readonly version: string
  }
  readonly profile?: string
  readonly schemaFingerprint?: SchemaFingerprint
  readonly requiredForeignOps?: ReadonlyArray<string>
  readonly foreignIdentities?: ReadonlyArray<
    readonly [Node.ForeignOperation, Option.Option<string>]
  >
  readonly assumptions?: Readonly<Record<string, string | number | boolean>>
}

Inputs that decide whether cached execution/verification evidence may be reused.

Members

EvidenceKeyInput.fingerprint

property · packages/metakit/src/artifactEvidence.ts:22

readonly fingerprint: Digest

The definition's hash: an expression's ArtifactFingerprint, or a definition's executable hash (compiled output) or contract hash (a proof).

EvidenceKeyInput.reader

property · packages/metakit/src/artifactEvidence.ts:23

readonly reader: {
  readonly id: string
  readonly version: string
}

EvidenceKeyInput.profile

property · packages/metakit/src/artifactEvidence.ts:25

readonly profile?: string

Optional backend profile (e.g. 'postgres', 'sqlite', 'z3-4.15').

EvidenceKeyInput.schemaFingerprint

property · packages/metakit/src/artifactEvidence.ts:31

readonly schemaFingerprint?: SchemaFingerprint

The target's Schema (schemaFingerprint(schema)), where evidence depends on more of it than the paths the expression reads, which fingerprint already covers: a table's whole row Schema for compiled SQL.

EvidenceKeyInput.requiredForeignOps

property · packages/metakit/src/artifactEvidence.ts:37

readonly requiredForeignOps?: ReadonlyArray<string>

Foreign operations (id@version) required by the expression. When given, every listed operation must have an Option.some(...) identity in foreignIdentities; otherwise evidenceKey returns Option.none().

EvidenceKeyInput.foreignIdentities

property · packages/metakit/src/artifactEvidence.ts:44

readonly foreignIdentities?: ReadonlyArray<
  readonly [Node.ForeignOperation, Option.Option<string>]
>

Stable identity of each foreign implementation, as [operation, identity] pairs; an operation listed twice throws. Pass Option.none() for any implementation without a reliable identity; evidenceKey then returns Option.none() so evidence is never reused across anonymous closures.

EvidenceKeyInput.assumptions

property · packages/metakit/src/artifactEvidence.ts:48

readonly assumptions?: Readonly<Record<string, string | number | boolean>>

Proof or execution assumptions (e.g. { timeoutMs: 10000 }).