100%

Intel-package regen in prepare

Goal

Intel-package regen in prepare — 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

  • Wire scripts/intel_package_runtime/api.py:heal_section_package into prepare_review so the review runs against a freshly-healed (regenerated-if-stale) intel package; best-effort: graph-down degrades to the existing dossier, NEVER blocks the review.
  • Emit the regenerated package path in the prepare dispatch payload; pytest in scripts/review_section_runtime/tests/ (heal called before review; graph-down degrades without raising).