Section 00 — package-and-port
Goal
Stand up scripts/harness_dist/ reproducing the CURRENT sync behavior behind the thin shim; byte-parity vs a real /sync-from-orilang run (fixes root cause B: engine decoupled from canonical content).
Implementation Sketch
Engine + content become ONE checkout. script-first.md §4 layout is MANDATORY: main.py + api.py + classify.py + render.py + apply.py + version.py + manifest_schema.json + config_schema.json + tests/. The global ~/.claude/skills/sync-from-orilang/{manifest.json,defaults/,templates/,scripts/sync.py} is the migration SOURCE (port from it, do not re-invent).
Spec References
script-first.md §4 (runtime layout) + §8 (consumption contract); missions.md §Tooling (improve tooling, never work around).
Work Items
- Author scripts/harness_dist/ package skeleton (main.py, api.py, classify.py, render.py, apply.py, version.py, manifest_schema.json, config_schema.json, tests/) per script-first.md §4 layout.
- Port manifest.json + defaults/{typescript,rust,python,ori}.json + templates/ from the global engine into scripts/harness_dist/, versioned with the canonical content they distribute.
- Implement
apply --target <dir> --root <ori_lang>reproducing current per-category overwrite + preserve_on_exist sidecar behavior; engine refuses to run inside ori_lang (one-way distribution invariant). - Byte-parity test: harness_dist apply output is byte-identical to a real /sync-from-orilang run on a fixture target.
- pytest covering apply/classify/state +
__main__.py --self-testend-to-end green.
Fresh intel (regenerated)
{ “schema_version”: 1, “target”: { “kind”: “plan-section”, “ref”: “harness-distribution/s-b1113bd0” }, “generated_at”: “2026-06-22T13:55:57.548092+00:00”, “graph_state”: { “head_sha”: “6809a0f2”, “last_code_import_at”: “2026-06-22T13:26:17.832Z”, “embedding_stale”: true, “insights_stale”: true, “cpg_stale”: false }, “surfaces”: {}, “summary”: “intel-package[plan-section:harness-distribution/s-b1113bd0] 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: package-and-port—s-b1113bd0.intel.json)