Skip to content

Interface: RiskTotalsDto

@kortexya/reasoninglayer


@kortexya/reasoninglayer / RiskTotalsDto

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

Historical risk aggregation over one tenant’s ledger.

The four grade counters (nSafe, nWarning, nUnsafe, nUngraded) partition the ledger: every record falls in exactly one. nUngraded is never folded into nSafe — it counts records appended before signal recording shipped, and reading them as safe would report a clean ledger that was never graded.

The verification counters (nVerified, nRefuted, nAbstained) and the fabrication counters (nFabricationDetected, nFabricationClean, nFabricationUnknown) each partition the same records along a second and a third axis, so they do not sum to nRecords together with the grades.

This is the EU AI Act Article 15 evidence — the numbers the compliance surface exists to report.

optional fabricationRate?: number | null

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

Share of CHECKED responses that were fabricating — the headline figure of the Article 15 assessment.

⚠️ null means “not measured”, and it is NOT zero. The denominator is checked responses only, so a rate over zero checks is undefined. Folding it to 0 reports a clean rate for a ledger nobody checked — the exact misreading the nullability exists to prevent.


nAbstained: number

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

Records a verifier could neither confirm nor contradict.


nClaimsRefuted: number

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

Individual claims refuted across the ledger.


nClaimsTotal: number

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

Individual claims assessed across the ledger.


nFabricationClean: number

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

Records on which a fabrication check ran and found none.


nFabricationDetected: number

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

Records on which a fabrication check ran and found fabricated content.


nFabricationUnknown: number

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

Records on which no fabrication check ran.


nGradedByVerification: number

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

Of the graded records, how many rest on an actual verification act rather than on the HTTP status alone.


nRefuted: number

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

Records a verifier contradicted.


nSafe: number

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

Records graded safe.


nUngraded: number

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

Records carrying no grade — appended before signal recording shipped.

Never folded into nSafe. “Not graded” is not “graded safe”.


nUnsafe: number

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

Records graded unsafe.


nVerified: number

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

Records a verifier confirmed.


nWarning: number

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

Records graded warning.