WorldManifest class final
The world manifest (schema 1).
Constructors
-
WorldManifest({required int schema, required int spec, required String scenario, required String feature, required int version, required int seed, required List<
WorldTouchpoint> touchpoints, required Map<String, WorldLatencyBands> latency, required List<WorldStorm> storms, required Map<String, Map< corpus, required List<String, dynamic> >WorldBehavior> behaviors, required String description}) -
const
-
WorldManifest.fromDocument(Map<
String, dynamic> doc) -
Parse a manifest document. Throws WorldManifestError (with fix
hints) on structural violations.
factory
-
WorldManifest.parse(List<
int> bytes) -
Parse manifest file
bytes(UTF-8 JSON).factory
Properties
-
behaviors
→ List<
WorldBehavior> -
The scenario's executable behavior program.
final
-
corpus
→ Map<
String, Map< String, dynamic> > -
The golden corpus: fixture responses per touchpoint per method.
final
- description → String
-
final
- feature → String
-
The owning feature slug (
968-simulation-worlds).final - hashCode → int
-
The hash code for this object.
no setterinherited
-
latency
→ Map<
String, WorldLatencyBands> -
Latency bands per touchpoint name.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scenario → String
-
The scenario name (
checkout-flow) — the--scenariokey.final - schema → int
-
final
- seed → int
-
The deterministic time-model seed: same seed + same manifest →
identical virtual time, identical latency draws, identical runs.
final
- spec → int
-
final
-
storms
→ List<
WorldStorm> -
The failure schedule (storms).
final
-
touchpoints
→ List<
WorldTouchpoint> -
final
- version → int
-
The world's version (bump when the world's reality changes).
final
- worldHash → String
-
The world hash: SHA-256 of the canonical encoding (compact form —
hashing ignores indentation so hand-formatting never lies).
no setter
Methods
-
corpusFailure(
String touchpoint, String method) → Map< String, dynamic> ? -
The corpus failure entry for
touchpoint'smethod, when the corpus itself scripts the failure (fixture-table-level faults, distinct from the storm schedule). -
corpusFixture(
String touchpoint, String method) → dynamic -
The corpus fixture
touchpoint'smethodserves, when declared. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toCanonicalJson(
) → String - The canonical JSON encoding: every map's keys sorted recursively, stable 2-space indent, so git diffs are minimal and the encoding is a pure function of the manifest's VALUE (not its construction order).
-
toDocument(
) → Map< String, dynamic> -
toFileContents(
) → String - Serialize to the committed, diffable document bytes.
-
toString(
) → String -
A string representation of this object.
inherited
-
touchpointNamed(
String name) → WorldTouchpoint? -
The touchpoint with
name, ornull.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- schemaVersion → const int
- specNumber → const int