Section 04 — config-variable-rendering
Goal
Replace token-level regex substitution with a closed config-variable set rendered fail-loud (fixes root cause A: unbounded implicit token maintenance).
Implementation Sketch
config_schema.json declares a CLOSED variable set (HARNESS.{TEST_ALL,LINT,FMT,BUILD,FULL_CHECK}, REPO.{SRC_ROOT,LANG}, PROJECT.ORG_REPO); a per-target harness.config.json supplies values. render.py HARD-FAILS on any undefined marker with file+marker location — converting every silent literal-leak into a loud, located error. Adapted artifacts migrate literals->markers incrementally; regex maps retire as each token class is covered, render-fail-loud as the net.
Spec References
missions.md §Tooling (tool hides a problem = tool is wrong); design-log §5 regressions (the bare-form / ORI_* token-coverage gaps this eliminates).
Work Items
- config_schema.json: declare the closed variable set (HARNESS.{TEST_ALL,LINT,FMT,BUILD,FULL_CHECK}, REPO.{SRC_ROOT,LANG}, PROJECT.ORG_REPO); adding a variable is a deliberate schema bump.
- render.py: interpolate adapted artifacts from the per-target harness.config.json; HARD-FAIL on any undefined marker, naming the file and the marker.
- Migrate adapted artifacts literals->markers; retire the regex substitution maps in defaults/*.json as each token class is covered.
- pytest: an undefined marker fails loud with location; covered markers render correctly; a deliberately-injected unclassified file AND undefined marker both fail loud.
Fresh intel (regenerated)
{ “schema_version”: 1, “target”: { “kind”: “plan-section”, “ref”: “harness-distribution/s-3e29401e” }, “generated_at”: “2026-06-22T16:20:29.166902+00:00”, “graph_state”: { “head_sha”: “e48fc4bc”, “last_code_import_at”: “2026-06-22T16:08:27.599Z”, “embedding_stale”: true, “insights_stale”: false, “cpg_stale”: false }, “surfaces”: {}, “summary”: “intel-package[plan-section:harness-distribution/s-3e29401e] agent-authored dossier”, “degraded”: false, “dossier”: { “objective_symbols”: [], “tiers”: {}, “agent_authored”: true, “difficulty”: { “class”: “routine”, “research_online”: false, “research_mode”: “auto”, “signals”: [], “plan_dir”: “/home/eric/projects/ori_lang/plans/harness-distribution” } } }
(full dossier: config-variable-rendering—s-3e29401e.intel.json)