Returns the current reactive snapshot for external store consumption.
The reactive snapshot.
Global normalize pass per spec §6. Runs the AN rule set
(AN-1..AN-4) everywhere it can fire, converging the argument
toward tier (defaults to 'presentable').
normalize is non-destructive in the logical-meaning sense — it
does not delete variables, change claim references, or modify
operator semantics. Recovery from Evaluable or Derivable
violations requires user intent and is exposed via the repair
primitives.
In v1.0 every AN rule targets a Presentable invariant, so calls
with tier ∈ {'structural', 'evaluable', 'derivable'} are
effectively no-ops. The parameter exists as forward-compatible
API surface.
Bypasses behavior: cleanup runs regardless of whether the
engine is in 'assistive' or 'permissive' mode.
Optionaltier: "structural" | "evaluable" | "derivable" | "presentable"Restores the engine to a previously captured snapshot state.
The snapshot to restore from.
Returns a serializable snapshot of the full engine state.
The engine snapshot.
Registers a listener that is called after every mutation.
The callback to invoke on mutation.
An unsubscribe function that removes the listener.
Four-tier grammar validation per spec §4. Returns the union of
violations from Structural up through tier — 'structural'
returns S-rule violations only, 'evaluable' returns S + E,
'derivable' returns S + E + D, 'presentable' returns the
full union. Empty array means the argument is at the requested
tier or stricter. Never throws on grammar issues.
For the invariant sweep (schema/reference/checksums) see TArgumentLifecycle.validateInvariants.
Run a comprehensive invariant validation sweep on the entire argument. Checks schema conformance, reference integrity, ownership, conclusion-ref + circularity, and per-premise validation.
Distinct from TArgumentLifecycle.validate, which runs
the four-tier grammar validator (Structural ⊇ Evaluable ⊇ Derivable ⊇ Presentable). The two are complementary — grammar
tiers cover AST-shape rules; this method covers
schema/reference/structural-bookkeeping invariants that sit
outside the tier hierarchy.
Snapshot, rollback, and reactive subscription lifecycle. Static factory methods (fromSnapshot, fromData) are class-level only.