Skip to content

Interface: AuditRecord

@kortexya/reasoninglayer


@kortexya/reasoninglayer / AuditRecord

Defined in: src/types/compliance.ts:39

A single record in the tenant’s hash-chained audit ledger.

optional actor?: string | null

Defined in: src/types/compliance.ts:45

Optional actor (user id) who triggered the request.


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.

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: 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: string

Defined in: src/types/compliance.ts:55

Hash of the previous record (forms the chain).


recordHash: string

Defined in: src/types/compliance.ts:57

Hash of this record (computed from all other fields).


requestHash: string

Defined in: src/types/compliance.ts:51

Hash of the audited request body.


requestPath: string

Defined in: src/types/compliance.ts:49

Path of the audited request.


responseHash: string

Defined in: src/types/compliance.ts:53

Hash of the audited response body.


tenantId: string

Defined in: src/types/compliance.ts:43

Tenant the record belongs to.


timestamp: string

Defined in: src/types/compliance.ts:47

ISO-8601 timestamp at which the record was appended.