Scale Intelligence■ Docs
Docs / The model / Correction

Correction.

A correction of a fact already written: it names the fact it replaces and why, so a read as of a date before it still shows the old fact and a reader of the stream tells a new fact from a corrected one; the fact corrected no longer stands

Figure 1Correctionspecified
CORRECTIONfact at follows scopethe id of the fact correctedreplacesidthe kind of the fact correctedkindtextwhy it no longer stands, in plain wordsreasontextthe rule the correction applies, where one doesruletextoptionalpoints at no other object
Correction is a fact at follows scope. The drawing shows its fields and the objects that they point at.
kind
fact
scope
follows
key
the fact it replaces
store
postgres
family
record

Fields#

fieldtyperequirednote
replacesidyesthe id of the fact corrected
kindtextyesthe kind of the fact corrected
reasontextyeswhy it no longer stands, in plain words
ruletextnothe rule the correction applies, where one does

Routes that use it#

No route takes or returns Correction directly. The record holds it, and the objects that point at it reach it.