Entity / foldkit-entity/laws

LawPair

interface · packages/entity/src/laws.ts:132

interface LawPair {
  readonly write: string
  readonly entity: string
  readonly invariant: string
  readonly reads: ReadonlyArray<string>
  readonly readsBefore: boolean
  readonly footprint: Footprint
  readonly verdict: LawVerdict
  readonly postcondition: boolean
  readonly evidence: Option.Option<Evidence>
}

One transition against one invariant of its Entity.

Members

LawPair.write

property · packages/entity/src/laws.ts:133

readonly write: string

LawPair.entity

property · packages/entity/src/laws.ts:134

readonly entity: string

LawPair.invariant

property · packages/entity/src/laws.ts:135

readonly invariant: string

LawPair.reads

property · packages/entity/src/laws.ts:137

readonly reads: ReadonlyArray<string>

The members the invariant reads, before and after, by field key.

LawPair.readsBefore

property · packages/entity/src/laws.ts:143

readonly readsBefore: boolean

True for a transition invariant, which reads the row before: a write that leaves every member it reads alone can still break it, so the graph reads it as reading the whole row.

LawPair.footprint

property · packages/entity/src/laws.ts:144

readonly footprint: Footprint

LawPair.verdict

property · packages/entity/src/laws.ts:145

readonly verdict: LawVerdict

LawPair.postcondition

property · packages/entity/src/laws.ts:147

readonly postcondition: boolean

True for a write's own ensures: a law of that write alone, held where it commits.

LawPair.evidence

property · packages/entity/src/laws.ts:153

readonly evidence: Option.Option<Evidence>

A record for a pair the check kept by reading the declarations: Bounded for one metakit's checker proved, Enumerated for the rest; none for an author's word (declared), a refusal, or an undecided pair.