Plan lifecycle: edit owns no step status once work starts - #43
Merged
DocksDocks merged 1 commit intoAug 25, 2026
Merged
Conversation
Once a plan is past planned (current status or plan:ongoing label history), plan.mjs edit freezes every existing Steps row's presence, display number, Depends, Effect, and Status; new rows are append-only born planned on open plans and refused on closed plans. plan.mjs step becomes the only writer of step state after work starts. Contract, SKILL CLI table, docs/PLAN.md, and the workspace template carry the same clause; plan-cli covers every refusal and the pre-start freedoms including blocked-only history.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #42
Implements the reviewed plan #42:
plan.mjs editrefuses any StepsStatus-cell change, row removal, display-number change,Dependsrewrite, orEffectrewrite once the plan is pastplanned; started is irreversible (current status OR aplan:ongoinglabeled event in issue history).Task,Files, andDone whenstay editable as prose.plannedand append after existing rows; closed plans refuse new rows entirely (terminal repair viaplan.mjs stepstays the only post-merge route).drafting/planned, including with blocked-only label history: pre-start parking is not started work.Reviews: plan review rounds 1-3
repair-> round 4pass(advisory-amended bytes); code review round 1pass(no findings).Verification: full
node scripts/ci.mjsexit 0; plan-cli, plan-skill-phases, plugin selftest all exit 0.