100%

Walking Skeleton — thinnest end-to-end slice

Goal

Prove the whole json-SSOT pipeline on ONE category (LEAK) end-to-end before any bulk migration: a minimal impl-hygiene-rules.json holding the LEAK record, a minimal loader that reads it, a minimal generator that emits LEAK’s slice of the impl-hygiene.md view, and a round-trip test confirming the regex-scraper token set for LEAK is reproduced byte-stable from JSON.

Implementation Sketch

Create scripts/impl_hygiene_rules_runtime/ (per script-first.md §4 layout: __main__.py, api.py, loader.py, generator.py, next_action.schema.json, tests/). Author impl-hygiene-rules.json at repo .claude/rules/ with exactly the LEAK record (token LEAK, severity_default Critical, the 12 subcats with their tokens, guidance). Loader reads it; generator emits the LEAK - **LEAK** block matching the current markdown shape. Round-trip test feeds the generated markdown to reviewer_history._parse_impl_hygiene_categories and asserts the LEAK token set is identical to parsing live impl-hygiene.md today.

Spec References

script-first.md §4 (runtime layout); scripts/tpr_review_runtime/reviewer_history.py:105-188 (the parser the round-trip must satisfy); scripts/plan_orchestrator/rules.py:496-570 (loader precedent).

Work Items

  • Create scripts/impl_hygiene_rules_runtime/ skeleton + author impl-hygiene-rules.json with the LEAK record only (token + 12 subcat tokens + severity_default + guidance).
  • Minimal loader.py reads the LEAK record; minimal generator.py emits the LEAK markdown block (- LEAK … Subcats: …) matching current shape.
  • Round-trip test: generated LEAK markdown parsed by reviewer_history._parse_impl_hygiene_categories yields the SAME LEAK:* token set as parsing live impl-hygiene.md.

Success Criteria

  • [sc-17b3e5aa] Walking-skeleton round-trip reproduces the live LEAK token set byte-stable from JSON. (probe: pytest scripts/impl_hygiene_rules_runtime/tests/test_skeleton.py -q; expect: passed)

Fresh intel (regenerated)

{ “schema_version”: 1, “target”: { “kind”: “plan-section”, “ref”: “impl-hygiene-rules-as-data/s-ce599725” }, “generated_at”: “2026-06-21T04:23:44.293615+00:00”, “graph_state”: { “head_sha”: “b0bd51a8”, “last_code_import_at”: “2026-06-21T04:16:17.891Z”, “embedding_stale”: false, “insights_stale”: false, “cpg_stale”: false }, “surfaces”: {}, “summary”: “intel-package[plan-section:impl-hygiene-rules-as-data/s-ce599725] 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/impl-hygiene-rules-as-data” } } }

(full dossier: walking-skeleton—s-ce599725.intel.json)