Scale Intelligence■ Docs
Docs / The model / Law

Law.

A check that can fail, registered against a kind or a flow

Figure 1Lawspecified
LAWrow at platform scopenametexta kind or a flowagainsttextwhat it reads and what red ischecktextthe case that must read redplanted_faulttextlast_redtimeoptionallast_greentimeoptionalnot trusted until the injected fault fails the check and the restored case passes itstateReadinessREADINESSthrough state
Law is a row at platform scope. The drawing shows its fields and the objects that they point at.
kind
row
scope
platform
key
its name
store
postgres
family
kernel

Fields#

fieldtyperequirednote
nametextyes
againsttextyesa kind or a flow
checktextyeswhat it reads and what red is
planted_faulttextyesthe case that must read red
last_redtimeno
last_greentimeno
stateReadinessyesnot trusted until the injected fault fails the check and the restored case passes it

Routes that use it#

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