Content-rewrite-from-intel op (core)
Goal
Content-rewrite-from-intel op (core) — part of the linear chain making /review-section re-ground each section against its FRESH intel package (regen -> skeleton-check -> rewrite) before /continue-roadmap serves it.
Spec References
- scripts/review_section_runtime/dispatch.py (prepare_review:107, apply_restructure:156, _RESTRUCTURE_OPS:153, _mission_drift_enrichment:77)
- scripts/review_section_runtime/state.py (restructuring delegation; mark_reviewed_clean)
- scripts/intel_package_runtime/api.py:heal_section_package (the regen entry point)
- .claude/rules/plan-read-discipline.md 3.1 (rewrite = execution-phase content authoring; content md only, never plan.json)
Work Items
- Add a rewrite-from-intel op to dispatch.py _RESTRUCTURE_OPS + a content-md rewrite primitive in state.py that folds the fresh intel package findings into content/
— .md, PRESERVING every existing [w-id] description line (no work_item loss); edits content/**/*.md ONLY, never plan.json (plan-read-discipline 2.1/3.1). - Idempotence: re-running rewrite-from-intel on an unchanged intel hash produces zero content diff.
- pytest: rewrite folds a finding into the body; every work_item id-line preserved; idempotent on unchanged hash; plan.json untouched.