feat: curate story-flags into registry + docs (Task 6)

Bootstrap 56 high-signal skeletons; name game_mode/route_branch/scjump_decision_out2,
recategorize CONFIG-written globals as non-story. Docs: name-resolution.md registry
section, CLAUDE.md canonical+SoT tables + trigger (root, untracked), tools-reference rows.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
gamer147
2026-07-07 08:33:51 -04:00
parent f0d7775d15
commit 169075fe37
6 changed files with 727 additions and 10 deletions

View File

@@ -60,8 +60,11 @@ def test_miner_finds_known_flags():
def test_bootstrap_is_additive_and_idempotent():
import tempfile, pathlib, story_flags
# start from a copy of the real toml so curated entries are present
src = (paths.VM_MAP / "globals.toml").read_text(encoding="utf-8")
# Minimal fixture (one curated entry) so bootstrap always has candidates to add, independent
# of how many the real globals.toml already holds.
src = ('[meta]\nnote = "fixture"\n\n[[global]]\naddress = "0xa57"\nname = "lily_form_a"\n'
'category = "story-flag"\ntype = "int"\nvalue_domain = "{0,1}"\nusage = "curated"\n'
'source = "investigation"\nconfidence = "high"\ndepends_on = []\n')
with tempfile.TemporaryDirectory() as d:
tp = pathlib.Path(d) / "globals.toml"
tp.write_text(src, encoding="utf-8")