`reach wiki stats` and `reach wiki gttr-hook` replace tooling/db/wiki_sync.py and populate_gttr_hook.py. Both are output-identical to the originals: `stats` byte-for-byte, and all 301 extracted GTTR hooks line-for-line. wiki_sync.py moved whole, but generate_wiki() and import_from_wiki() are NOT verbs. Before porting, the old `--generate` was run against a clean tree to get a parity baseline. It changed all 301 system pages, +940 / -10,761, and was reverted at once. It deletes the Celestial Bodies / Stations blocks (owned by the Rust atlas sync, which it does not know about), deletes the Industries / Exports / Imports rows (nothing writes those any more), and rewrites star types where systems.db and the pages disagree. D-262, CLAUDE.md and the wiki skill all described it as the routine, prose-preserving render. CLAUDE.md and the skill now say not to run it; D-262 needs amending — T-1292. Provenance moves to tooling/archive/, with a README naming what each script did and why it is not run: - pql-migrate/ (the T-1271 ruling) - wiki-bootstrap/: assign-astro-ids + its catalog, migrate-s-to-gj, patch-core-sector (hardcodes a dead path), fill-missing-globes, generate-stubs and find-stubs (finds 0 stubs — Phase 1 is done), backfill_cultural_corridor (a raw systems.db patch script, outside D-262), and process-wiki-system-changes, whose last step is the destructive render Also: - stats() printed "run import first" and exited 0 when a table was missing; it now fails with a remedy. generate_wiki() counted created pages after writing them, so `created` was always 0. - tooling/godot-cold-parse and godot-parse-sweep were never retired after T-1283, and the pr-process skill still told agents to run them. Removed; the skill and parse_sweep.gd now name the reach verbs. - systems.db re-stamped: schema comments changed, and the stamp records the schema file's SHA for tamper detection. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
101 lines
4.1 KiB
Markdown
101 lines
4.1 KiB
Markdown
<!-- TEMPLATE: star-system page (generated model)
|
|
|
|
System pages carry NO YAML frontmatter. Structured fields live in
|
|
server/data/systems.db (DB owns structured, wiki owns prose — see
|
|
tooling/domains/wiki/wiki_sync.py and wiki/GOVERNANCE.md). Pages are produced by the
|
|
generator pipeline; the authoring surface is the five prose sections below.
|
|
Sections marked READ-ONLY are regenerated from their source — never edit them
|
|
by hand. -->
|
|
|
|
# {Name}
|
|
**{GJ ID}** | {star-type} | {sector}
|
|
|
|
---
|
|
|
|
## System Profile
|
|
<!-- READ-ONLY — generated from systems.db -->
|
|
|
|
| | |
|
|
|---|---|
|
|
| **Star** | {spectral_class} · {distance} ly |
|
|
| **Bodies** | {habitable_count} habitable · {inhabited_count} inhabited |
|
|
| **Gates** | {aperture_count} aperture · {topology} |
|
|
| **Settlement** | {wave} |
|
|
| **History** | {history_tags} |
|
|
| **Population** | {population} |
|
|
| **Economy** | Tier {n} · {economic_base} |
|
|
| **Industries** | {industry_tags} |
|
|
| **Exports** | {export_commodities} |
|
|
| **Imports** | {import_commodities} |
|
|
| **Governance** | {governance_type} · {governance_body} |
|
|
| **Atmosphere** | {atmosphere_tags} |
|
|
| **Stability** | {stability_level} · {stability_descriptor} |
|
|
| **Earth Alignment** | {earth_alignment} |
|
|
|
|
<!-- Not all fields are required. Unsettled/placeholder systems may omit History,
|
|
Population, Economy, Governance, Atmosphere, Stability, and Earth Alignment.
|
|
Bodies may also be omitted when unknown. -->
|
|
|
|
---
|
|
|
|
## Supply Dependency
|
|
<!-- AUTHORED PROSE — preserved across regeneration.
|
|
What the system produces, what it imports, where the economic leverage lies.
|
|
Required for manufacturing/transit_logistics base and narrative_notable systems. -->
|
|
|
|
{How the system feeds itself, what it exports, what supply relationships define its
|
|
economic position. Where the leverage points are.}
|
|
|
|
## Faction Notes
|
|
<!-- AUTHORED PROSE — significant local factions not covered by standard columns.
|
|
Who has institutional presence, who competes, who cooperates. -->
|
|
|
|
{Faction presence, institutional relationships, political dynamics.}
|
|
|
|
## Silence Topic
|
|
<!-- AUTHORED PROSE — what the system does not discuss. The administered or organic
|
|
silence. Required for narrative_notable and Institutional Core / Diplomatic
|
|
Periphery zones. -->
|
|
|
|
{The thing the system's residents, institutions, or records avoid discussing.
|
|
What a visitor would eventually notice is never mentioned.}
|
|
|
|
## Narrative Hook
|
|
<!-- AUTHORED PROSE — required if narrative_notable = true. One sentence that
|
|
captures the core dramatic tension or mystery of the system. -->
|
|
|
|
{One sentence.}
|
|
|
|
## Calibration Note
|
|
<!-- AUTHORED PROSE — unusual column combinations requiring justification. Explains
|
|
why the system profile data is internally consistent despite seeming
|
|
contradictions. -->
|
|
|
|
{Why the system profile values make sense together. Addresses apparent
|
|
contradictions in star type, settlement wave, economic tier, topology, etc.}
|
|
|
|
## Topology
|
|
<!-- READ-ONLY — regenerated from star-map.json edges -->
|
|
- **Hop Distance from Gateway:** {n}
|
|
- **Adjacent Systems:** {comma-separated GJ IDs}
|
|
|
|
## Celestial Bodies
|
|
<!-- READ-ONLY — generated from systems.db bodies/stations tables (atlas sync) -->
|
|
|
|
| Orbit | ID | Name | Type | Inhabited | Pop | Mass | Gravity | Year (d) | Day (h) | Atmo | Class | Hydro | Economy | Settlement | Industrial |
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
| {n} | `{body_id}` | {name} | {type} | {yes/no} | {pop} | {mass} | {g} | {days} | {hours} | {atmo} | {class} | {hydro} | {economy} | {settlement} | {industrial} |
|
|
|
|
### Stations & Facilities
|
|
|
|
| ID | Name | Type | Orbits | Population | Economy | Governance | Docking | Gate | Districts |
|
|
|---|---|---|---|---|---|---|---|---|---|
|
|
| `{station_id}` | {name} | {type} | `{body_id}` | {pop} | {economy} | {governance} | {docking} | {yes/no} | {n} |
|
|
|
|
## Stations GTTR
|
|
<!-- Links to station/settlement-level Drifter's Guide prose files
|
|
(gttr-{slug}.md, flat in the system directory). Only present when such
|
|
guides exist for this system. -->
|
|
|
|
[{Location Name}](gttr-{slug}.md) · [{Location Name}](gttr-{slug}.md)
|