StateProvenance
@hardkas/core / StateProvenance
Interface: StateProvenance
Defined in: packages/core/src/provenance.ts:8
Explains the causal origin and validation state of a derived value.
Properties
authority
authority:
string
Defined in: packages/core/src/provenance.ts:12
The architectural authority that asserts this state (e.g. "query-store projection", "filesystem artifact", "memory cache")
consensusValidated
consensusValidated:
boolean
Defined in: packages/core/src/provenance.ts:37
True if this state has been independently verified against network consensus
derivedFrom?
optionalderivedFrom?:ArtifactId
Defined in: packages/core/src/provenance.ts:17
The source artifact ID from which this state was derived (if applicable)
integrity
integrity:
IntegrityStatus
Defined in: packages/core/src/provenance.ts:27
Current deterministic integrity of the source
originalPath?
optionaloriginalPath?:string
Defined in: packages/core/src/provenance.ts:22
The absolute or relative file path of the source artifact
replayScope
replayScope:
"unknown"|"local-only"|"global"
Defined in: packages/core/src/provenance.ts:32
The replay scope indicating where this state is valid (e.g., "local-only", "global")