magicciv/tooling/claude/dot-claude
Natalie 655d25e2c1 docs(@projects/@magic-civilization): 🛡️ Rail-2 — document the two-path content divergence + track an enforcement gate
rust-source-of-truth.md: add the "two-path divergence" rule to the canonical
content store section. Content reaches the sim two ways — in-game (GDScript
DataLoader reads JSON at runtime, projection.rs:41) and headless (Rust falls back
to a compile-time include_str!/hardcode copy, dispatch.rs:410). A balance constant
hardcoded in a crate is both a Rail-2 violation and a silent second copy that
drifts from the JSON — and headless is where the AI trains. Rule: grep
public/resources + public/games/**/data for a JSON home before adding a numeric
balance const; if it exists, LOAD it (OnceLock+include_str!, never std::fs in
shared sim code). References the p3-28 ContentRegistry endgame.

p3-28: add the matching "Rail-2 verify gate (enforcement)" acceptance bullet —
tools/check-no-rust-hardcoded-content.py + a verify step to catch the next
hardcode, best landed alongside the ContentRegistry.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-27 09:47:43 -04:00
..
agents feat(@projects/@magic-civilization): 📣 orchestration transparency — announce specialist start/finish 2026-06-27 06:09:18 -04:00
hooks feat(@projects/@magic-civilization): 🔎 session bootloader leaves a verifiable trace 2026-06-27 06:00:28 -04:00
instructions docs(@projects/@magic-civilization): 🛡️ Rail-2 — document the two-path content divergence + track an enforcement gate 2026-06-27 09:47:43 -04:00
plans
projects/-var-home-lilith-Code--projects--magic-civilization/memory
skills/finish-game-1 feat(@projects/@magic-civilization): 📣 orchestration transparency — announce specialist start/finish 2026-06-27 06:09:18 -04:00
worktrees feat(@projects/@magic-civilization): 😊 p3-26 B1 — surface computed happiness_pool in view_json 2026-06-26 15:50:30 -04:00
launch.json feat(@projects/@magic-civilization): mark sprite pipeline as complete 2026-06-10 04:09:08 -07:00
settings.json feat(@projects/@magic-civilization): 🧭 add SessionStart bootloader — live project orientation for fresh sessions 2026-06-27 04:57:33 -04:00
settings.local.json fix(@projects): 🐛 update deployment and guide workflows 2026-06-10 03:38:03 -07:00