Orchestrate Next Milestone
Overview
Execute the selected plan milestone to closure, not just partial checkboxes.
Prioritize finishing the milestone with passing gates and clear evidence.
Terminology Alignment
- Milestone: primary planning unit with deliverables and gates.
- Workstream: parallel lane inside a milestone.
- Work package: coder-sized chunk with acceptance criteria and verification commands.
- Patch: reviewable code change set used in summaries and changelog entries.
- Stage / Step / Pass: durable pipeline terms for code identifiers when needed.
- If older plans use "phase", treat it as legacy milestone wording and do not introduce new phase terminology.
Operating mode
- Treat the manager-selected milestone as the primary target.
- Implement code, tests, and documentation updates required to close that milestone.
- Include adjacent fixes when they are necessary to pass milestone gates or prevent immediate regressions.
- Keep changes contract-driven and avoid case-specific hacks.
Inputs to read first
- Review STYLE guides in AGENTS.md, docs/PYTHON_STYLE.md, and docs/REPO_STYLE.md
- Manager directive naming the target milestone (or latest explicit manager instruction).
- Target plan in
docs/active_plans/ (if present in the target repo; or use specified path).
refactor_progress.md for active/completed context (if present in the target repo).
- Related archive precedent if cited by the plan.
- Current repo state (
git status --short, git diff).
Mandatory constraints
- Treat the plan design philosophy near the top as binding architecture policy.
- Do not stop at partial progress when the remaining work is directly required to close the selected milestone.
- Do not ask for guidance before attempting concrete unblock steps.
- Do not weaken strict gates to force a pass.
- Do not move geometry/runtime policy into tool/report layers unless the plan explicitly requires it.
- Do not claim completion without reproducible command evidence.
Scope policy
- Primary scope: selected milestone deliverables and done checks.
- Allowed adjacent scope: fixes that are strictly required to satisfy selected-milestone gates.
- Deferred scope: improvements not required for selected-milestone closure.
When adjacent scope is used, record:
- why it was required,
- what gate it unblocked,
- why deferral would leave the milestone incomplete.
Workflow
- Lock the target milestone:
- Identify exact milestone id/name and extract deliverables, done checks, and gates.
- Record explicit out-of-scope items from later milestones.
- Build execution map:
- Map deliverables to file paths.
- Map work packages and done checks/gates to exact commands.
- Identify likely adjacent fixes needed for closure.
- Implement to closure:
- Apply required edits for the milestone.
- Apply adjacent unblock fixes when needed.
- Keep design-philosophy alignment explicit in decisions.
- Validate gates:
- Run milestone-required tests/commands first.
- Run broader regression gates required by the plan.
- Run targeted
pytest regression: source source_me.sh && python3 -m pytest -q tests/test*.py -k <file>/py.
- Treat any failing
pytest run as Not complete until fixed.
- Iterate until gates pass or a concrete blocker remains.
- Prepare evidence:
- Capture command outputs and pass/fail results.
- Capture before/after artifacts when visuals/behavior are part of acceptance.
- Capture residual risks and ownership.
- Close out docs:
- Update
docs/CHANGELOG.md with concrete changes and validation commands/results.
- Update plan status language only when evidence supports closure.
Implementation checklist template
- Milestone target:
- Deliverables completed:
- Adjacent fixes applied (and why):
- Deferred items:
- Files changed:
- Work packages completed:
- Patches delivered:
- Commands run:
- Gate results:
- Remaining blockers:
- Completion decision:
Complete or Not complete
Failure handling
- If milestone target is ambiguous, pick the most recent manager-specified milestone and state the assumption.
- If gates conflict, follow the plan-defined gate hierarchy and report the conflict explicitly.
- If blocked, report exact blocker plus attempted mitigations; do not present partial work as complete.
Manager completion report (required)
Submit one manager-grade close-out report at milestone close-out using this structure.
Required sections:
Milestone decision: Complete or Not complete.
Scope execution: what was completed, what was deferred, and why.
Files changed: exact paths grouped by runtime/tests/docs/tooling.
Gate evidence: exact commands with PASS/FAIL.
Design philosophy alignment: how implementation followed plan philosophy and avoided hacks.
Visual/behavior evidence: before/after paths and measured values (when required).
Patch summary: Patch 1, Patch 2, ... with intent and touched components.
Open risks: unresolved risks with impact and owner.
Next action: one prioritized next step.
Report template:
Milestone decision: Complete | Not complete
Scope execution:
- Completed:
- Deferred:
- Adjacent fixes (required for closure):
Files changed:
- Runtime:
- Tests:
- Docs:
- Tooling:
Patch summary:
- Patch 1:
- Patch 2:
Gate evidence:
- <command>: PASS/FAIL
- <command>: PASS/FAIL
Design philosophy alignment:
- <how implementation stayed aligned and avoided hacks>
Visual/behavior evidence:
- Before: <path>
- After: <path>
- Measurements: <metric=value, threshold=value>
Open risks:
- <risk, impact, owner>
Next action:
- <single prioritized next step>
Output contract
Return results in this order:
- Milestone completion decision (
Complete or Not complete).
- Deliverables implemented (mapped to files).
- Work packages and patch summary (
Patch 1, Patch 2, ...).
- Validation evidence (commands and outcomes).
- Known gaps and risks.
- Next action recommendation.
1---2name: orchestrate-next-milestone3description: Orchestrate Next Milestone4---5# Orchestrate Next Milestone67## Overview8Execute the selected plan milestone to closure, not just partial checkboxes.9Prioritize finishing the milestone with passing gates and clear evidence.1011## Terminology Alignment12- Milestone: primary planning unit with deliverables and gates.13- Workstream: parallel lane inside a milestone.14- Work package: coder-sized chunk with acceptance criteria and verification commands.15- Patch: reviewable code change set used in summaries and changelog entries.16- Stage / Step / Pass: durable pipeline terms for code identifiers when needed.17- If older plans use "phase", treat it as legacy milestone wording and do not introduce new phase terminology.1819## Operating mode20- Treat the manager-selected milestone as the primary target.21- Implement code, tests, and documentation updates required to close that milestone.22- Include adjacent fixes when they are necessary to pass milestone gates or prevent immediate regressions.23- Keep changes contract-driven and avoid case-specific hacks.2425## Inputs to read first260. Review STYLE guides in AGENTS.md, docs/PYTHON_STYLE.md, and docs/REPO_STYLE.md271. Manager directive naming the target milestone (or latest explicit manager instruction).282. Target plan in `docs/active_plans/` (if present in the target repo; or use specified path).293. `refactor_progress.md` for active/completed context (if present in the target repo).304. Related archive precedent if cited by the plan.315. Current repo state (`git status --short`, `git diff`).3233## Mandatory constraints34- Treat the plan design philosophy near the top as binding architecture policy.35- Do not stop at partial progress when the remaining work is directly required to close the selected milestone.36- Do not ask for guidance before attempting concrete unblock steps.37- Do not weaken strict gates to force a pass.38- Do not move geometry/runtime policy into tool/report layers unless the plan explicitly requires it.39- Do not claim completion without reproducible command evidence.4041## Scope policy42- Primary scope: selected milestone deliverables and done checks.43- Allowed adjacent scope: fixes that are strictly required to satisfy selected-milestone gates.44- Deferred scope: improvements not required for selected-milestone closure.4546When adjacent scope is used, record:47- why it was required,48- what gate it unblocked,49- why deferral would leave the milestone incomplete.5051## Workflow521. Lock the target milestone:53- Identify exact milestone id/name and extract deliverables, done checks, and gates.54- Record explicit out-of-scope items from later milestones.55562. Build execution map:57- Map deliverables to file paths.58- Map work packages and done checks/gates to exact commands.59- Identify likely adjacent fixes needed for closure.60613. Implement to closure:62- Apply required edits for the milestone.63- Apply adjacent unblock fixes when needed.64- Keep design-philosophy alignment explicit in decisions.65664. Validate gates:67- Run milestone-required tests/commands first.68- Run broader regression gates required by the plan.69- Run targeted `pytest` regression: `source source_me.sh && python3 -m pytest -q tests/test*.py -k <file>/py`.70- Treat any failing `pytest` run as `Not complete` until fixed.71- Iterate until gates pass or a concrete blocker remains.72735. Prepare evidence:74- Capture command outputs and pass/fail results.75- Capture before/after artifacts when visuals/behavior are part of acceptance.76- Capture residual risks and ownership.77786. Close out docs:79- Update `docs/CHANGELOG.md` with concrete changes and validation commands/results.80- Update plan status language only when evidence supports closure.8182## Implementation checklist template83- Milestone target:84- Deliverables completed:85- Adjacent fixes applied (and why):86- Deferred items:87- Files changed:88- Work packages completed:89- Patches delivered:90- Commands run:91- Gate results:92- Remaining blockers:93- Completion decision: `Complete` or `Not complete`9495## Failure handling96- If milestone target is ambiguous, pick the most recent manager-specified milestone and state the assumption.97- If gates conflict, follow the plan-defined gate hierarchy and report the conflict explicitly.98- If blocked, report exact blocker plus attempted mitigations; do not present partial work as complete.99100## Manager completion report (required)101Submit one manager-grade close-out report at milestone close-out using this structure.102103Required sections:1041. `Milestone decision`: `Complete` or `Not complete`.1052. `Scope execution`: what was completed, what was deferred, and why.1063. `Files changed`: exact paths grouped by runtime/tests/docs/tooling.1074. `Gate evidence`: exact commands with PASS/FAIL.1085. `Design philosophy alignment`: how implementation followed plan philosophy and avoided hacks.1096. `Visual/behavior evidence`: before/after paths and measured values (when required).1107. `Patch summary`: `Patch 1`, `Patch 2`, ... with intent and touched components.1118. `Open risks`: unresolved risks with impact and owner.1129. `Next action`: one prioritized next step.113114Report template:115116```text117Milestone decision: Complete | Not complete118119Scope execution:120- Completed:121- Deferred:122- Adjacent fixes (required for closure):123124Files changed:125- Runtime:126- Tests:127- Docs:128- Tooling:129130Patch summary:131- Patch 1:132- Patch 2:133134Gate evidence:135- <command>: PASS/FAIL136- <command>: PASS/FAIL137138Design philosophy alignment:139- <how implementation stayed aligned and avoided hacks>140141Visual/behavior evidence:142- Before: <path>143- After: <path>144- Measurements: <metric=value, threshold=value>145146Open risks:147- <risk, impact, owner>148149Next action:150- <single prioritized next step>151```152153## Output contract154Return results in this order:1551. Milestone completion decision (`Complete` or `Not complete`).1562. Deliverables implemented (mapped to files).1573. Work packages and patch summary (`Patch 1`, `Patch 2`, ...).1584. Validation evidence (commands and outcomes).1595. Known gaps and risks.1606. Next action recommendation.