Interface: RiskTotalsDto
@kortexya/reasoninglayer / RiskTotalsDto
Interface: RiskTotalsDto
Section titled “Interface: RiskTotalsDto”Defined in: src/types/compliance.ts:182
Historical risk aggregation over one tenant’s ledger.
Remarks
Section titled “Remarks”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.
Properties
Section titled “Properties”fabricationRate?
Section titled “fabricationRate?”
optionalfabricationRate?:number|null
Defined in: src/types/compliance.ts:227
Share of CHECKED responses that were fabricating — the headline figure of the Article 15 assessment.
Remarks
Section titled “Remarks”⚠️ 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
Section titled “nAbstained”nAbstained:
number
Defined in: src/types/compliance.ts:206
Records a verifier could neither confirm nor contradict.
nClaimsRefuted
Section titled “nClaimsRefuted”nClaimsRefuted:
number
Defined in: src/types/compliance.ts:216
Individual claims refuted across the ledger.
nClaimsTotal
Section titled “nClaimsTotal”nClaimsTotal:
number
Defined in: src/types/compliance.ts:214
Individual claims assessed across the ledger.
nFabricationClean
Section titled “nFabricationClean”nFabricationClean:
number
Defined in: src/types/compliance.ts:210
Records on which a fabrication check ran and found none.
nFabricationDetected
Section titled “nFabricationDetected”nFabricationDetected:
number
Defined in: src/types/compliance.ts:208
Records on which a fabrication check ran and found fabricated content.
nFabricationUnknown
Section titled “nFabricationUnknown”nFabricationUnknown:
number
Defined in: src/types/compliance.ts:212
Records on which no fabrication check ran.
nGradedByVerification
Section titled “nGradedByVerification”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
Section titled “nRefuted”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
Section titled “nUngraded”nUngraded:
number
Defined in: src/types/compliance.ts:195
Records carrying no grade — appended before signal recording shipped.
Remarks
Section titled “Remarks”Never folded into nSafe. “Not graded” is not “graded safe”.
nUnsafe
Section titled “nUnsafe”nUnsafe:
number
Defined in: src/types/compliance.ts:188
Records graded unsafe.
nVerified
Section titled “nVerified”nVerified:
number
Defined in: src/types/compliance.ts:202
Records a verifier confirmed.
nWarning
Section titled “nWarning”nWarning:
number
Defined in: src/types/compliance.ts:186
Records graded warning.