Interface: AuditRecord
@kortexya/reasoninglayer / AuditRecord
Interface: AuditRecord
Section titled “Interface: AuditRecord”Defined in: src/types/compliance.ts:39
A single record in the tenant’s hash-chained audit ledger.
Properties
Section titled “Properties”actor?
Section titled “actor?”
optionalactor?:string|null
Defined in: src/types/compliance.ts:45
Optional actor (user id) who triggered the request.
dataVersions
Section titled “dataVersions”dataVersions:
Record<string,string>
Defined in: src/types/compliance.ts:61
Map of input-data versions in effect when the record was written.
extra:
Record<string,unknown>
Defined in: src/types/compliance.ts:71
Caller-defined metadata, plus the engine’s own annotations.
Remarks
Section titled “Remarks”A request that carried causal headers (RequestOptions.causal) records
them here under the causal.* keys: causal.caused_by,
causal.informed_by, causal.scope, causal.seals,
causal.seal_commitment, causal.seal_signer, causal.seal_signature.
gitRevision
Section titled “gitRevision”gitRevision:
string
Defined in: src/types/compliance.ts:59
Git revision of the engine that wrote this record.
id:
string
Defined in: src/types/compliance.ts:41
Stable id of this record.
prevHash
Section titled “prevHash”prevHash:
string
Defined in: src/types/compliance.ts:55
Hash of the previous record (forms the chain).
recordHash
Section titled “recordHash”recordHash:
string
Defined in: src/types/compliance.ts:57
Hash of this record (computed from all other fields).
requestHash
Section titled “requestHash”requestHash:
string
Defined in: src/types/compliance.ts:51
Hash of the audited request body.
requestPath
Section titled “requestPath”requestPath:
string
Defined in: src/types/compliance.ts:49
Path of the audited request.
responseHash
Section titled “responseHash”responseHash:
string
Defined in: src/types/compliance.ts:53
Hash of the audited response body.
tenantId
Section titled “tenantId”tenantId:
string
Defined in: src/types/compliance.ts:43
Tenant the record belongs to.
timestamp
Section titled “timestamp”timestamp:
string
Defined in: src/types/compliance.ts:47
ISO-8601 timestamp at which the record was appended.