proofnamespacenamespace proofThe typed tables of the proof model, generated by IFC Data from the model. Do not edit: change the model and run bun tools/typed.ts --write.
The proof that a platform can be put right and that its figures are right
proofnamespacenamespace proofproof.DrillRowinterfaceinterface DrillRowOne drill of a recovery: what was tested (a replay, a rollback or a restore), against which load or scope, how long it took, what it found and the evidence, so that a recovery is shown and not assumed
| Member | Type | What it is |
|---|---|---|
drillId | string | What identifies the drill |
kind | "replay" | "restore" | "rollback" | What it tested |
scope | string | What it was done to: a load id, a table or a store |
startedAt | Timestamp | When it began |
seconds | number | How long it took, in whole seconds |
outcome | "abandoned" | "failed" | "passed" | What it found |
beforeHash | string | null | The hash of what was there before |
afterHash | string | null | The hash of what was there after |
evidence | string | null | Where the evidence is kept |
proof.DrillInsertinterfaceinterface DrillInsertWhat an insert into drill takes: what the database fills may be left out.
| Member | Type | What it is |
|---|---|---|
drillId | string | |
kind | "replay" | "restore" | "rollback" | |
scope | string | |
startedAt | Timestamp | |
seconds | number | |
outcome | "abandoned" | "failed" | "passed" | |
beforeHash? | string | null | |
afterHash? | string | null | |
evidence? | string | null |
proof.DrillKeytypetype DrillKey = { readonly drillId: string };The key of a row of drill.
proof.drillconstconst drill: Table<DrillRow, DrillInsert, "drill">One drill of a recovery: what was tested (a replay, a rollback or a restore), against which load or scope, how long it took, what it found and the evidence, so that a recovery is shown and not assumed
proof.CalculationRunRowinterfaceinterface CalculationRunRowOne run of a calculation: its name and version, the parameters it ran with, the hash of its inputs and of its outputs and how many rows it gave, so that a figure can be reproduced and a change of one shown
| Member | Type | What it is |
|---|---|---|
calculationRunId | string | What identifies the run |
calculation | string | The calculation |
version | string | Its version |
parameters | string | null | The parameters it ran with, as JSON |
inputHash | string | The SHA-256 of its inputs |
outputHash | string | The SHA-256 of its outputs |
rows | number | How many rows it gave |
ranAt | Timestamp | When |
loadId | string | null | The load it was run for, where it was |
proof.CalculationRunInsertinterfaceinterface CalculationRunInsertWhat an insert into calculation_run takes: what the database fills may be left out.
| Member | Type | What it is |
|---|---|---|
calculationRunId | string | |
calculation | string | |
version | string | |
parameters? | string | null | |
inputHash | string | |
outputHash | string | |
rows | number | |
ranAt | Timestamp | |
loadId? | string | null |
type CalculationRunKey = { readonly calculationRunId: string };The key of a row of calculation_run.
proof.calculationRunconstconst calculationRun: Table<CalculationRunRow, CalculationRunInsert, "calculationRun">One run of a calculation: its name and version, the parameters it ran with, the hash of its inputs and of its outputs and how many rows it gave, so that a figure can be reproduced and a change of one shown
proof.ReferenceCaseRowinterfaceinterface ReferenceCaseRowA case with inputs and the value a calculation must give for them, found by hand or from a source that is trusted, with how close it must be: what a calculation is held to
| Member | Type | What it is |
|---|---|---|
referenceCaseId | string | What identifies the case |
calculation | string | The calculation it is for |
description | string | What the case shows |
inputs | string | The inputs, as JSON |
expected | string | The value it must give, as a number |
tolerance | string | How far it may be from the value, as a number: 0 for exact |
source | string | Where the value comes from |
proof.ReferenceCaseInsertinterfaceinterface ReferenceCaseInsertWhat an insert into reference_case takes: what the database fills may be left out.
| Member | Type | What it is |
|---|---|---|
referenceCaseId | string | |
calculation | string | |
description | string | |
inputs | string | |
expected | string | |
tolerance | string | |
source | string |
type ReferenceCaseKey = { readonly referenceCaseId: string };The key of a row of reference_case.
proof.referenceCaseconstconst referenceCase: Table<ReferenceCaseRow, ReferenceCaseInsert, "referenceCase">A case with inputs and the value a calculation must give for them, found by hand or from a source that is trusted, with how close it must be: what a calculation is held to
proof.LineageEdgeRowinterfaceinterface LineageEdgeRowA dataset that another is made from, by which transform, so that what a change reaches and what a figure came from can both be found
| Member | Type | What it is |
|---|---|---|
lineageEdgeId | string | What identifies the edge |
fromDataset | string | The dataset it is made from |
toDataset | string | The dataset that is made |
via | string | The transform or workload that makes it |
proof.LineageEdgeInsertinterfaceinterface LineageEdgeInsertWhat an insert into lineage_edge takes: what the database fills may be left out.
| Member | Type | What it is |
|---|---|---|
lineageEdgeId | string | |
fromDataset | string | |
toDataset | string | |
via | string |
type LineageEdgeKey = { readonly lineageEdgeId: string };The key of a row of lineage_edge.
proof.lineageEdgeconstconst lineageEdge: Table<LineageEdgeRow, LineageEdgeInsert, "lineageEdge">A dataset that another is made from, by which transform, so that what a change reaches and what a figure came from can both be found
proof.EntityLinkRowinterfaceinterface EntityLinkRowA record of one source linked to an entity that other sources also hold, with the rule that found it and the score, so that who is the same person or thing is a fact with a reason and not a guess
| Member | Type | What it is |
|---|---|---|
entityLinkId | string | What identifies the link: the source and the key of its record |
entityId | string | The entity it is linked to |
source | string | The source |
sourceKey | string | The key of the record in the source |
rule | "confirmed" | "exact" | "normalized" | "similar" | How it was found |
score | string | How sure, as a number from 0 to 1 |
proof.EntityLinkInsertinterfaceinterface EntityLinkInsertWhat an insert into entity_link takes: what the database fills may be left out.
| Member | Type | What it is |
|---|---|---|
entityLinkId | string | |
entityId | string | |
source | string | |
sourceKey | string | |
rule | "confirmed" | "exact" | "normalized" | "similar" | |
score | string |
type EntityLinkKey = { readonly entityLinkId: string };The key of a row of entity_link.
proof.entityLinkconstconst entityLink: Table<EntityLinkRow, EntityLinkInsert, "entityLink">A record of one source linked to an entity that other sources also hold, with the rule that found it and the score, so that who is the same person or thing is a fact with a reason and not a guess