1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
//! WORLD-4 — World Simulation (`inkhaven realworld` + the real-time
//! fact-checker). See `Documentation/PROPOSALS/WORLD-4_PLAN.md`.
//!
//! Branch A is a deterministic, layered, on-demand compiler that turns a
//! structured world definition (`world.hjson` + optional `world.bund`) into
//! populated system books. Five MVP layers run in dependency order —
//! astronomy → geology → climate → hydrology → demographics — each a pure
//! function of `(definition, seed)` (layer 5 has seeded-stochastic + AI parts).
//!
//! All five physical layers are built and tested (`compile/`), each materialises
//! into its World-book chapter (`materialize.rs`), and the surface is complete:
//! `realworld compile [--layer <name>|all]`, the plakat `map`, the `places`
//! bridge, `magic`, `coherence`, co-location, proposals, and the fast/slow
//! fact-checker. WORLD-7 (1.6.0) unifies a bare `compile` into a one-command
//! whole-world compile + materialise, surfaces every layer in the TUI, and
//! deepens the world→prose bridge.
//!
//! Authority discipline (the spine of the RFC): the author always wins. The
//! compiler *proposes*; nothing commits without acceptance. Astronomy is the one
//! layer with no proposals — its outputs are closed-form physics, treated as
//! fact and re-asserted every run unless the author hand-overrides.
// WORLD-7 — the simulation is now wired end-to-end (compile → materialise →
// surface), so the blanket `unused_imports` allow is retired. A handful of
// foundation items remain ahead of their consumers (the `WorldError`/`Result`
// pair, a few reserved fact-check / storage / utopia helpers), so `dead_code`
// stays scoped here.
// WORLD-6 — utopian/dystopian coherence checker.
use fmt;
/// The crate-local result type for world operations.
pub type Result<T> = Result;
/// Errors from parsing, validating, or compiling a world definition.