← Documentation indexdocs/superpowers/plans/2026-10-16-v3-issue-242.md

V3 Issue #242: Atomic Working Plan edits

Issue: #242 — Implement atomic plan edits, ordering, dependencies, and validation Requirements: R048–R052, R056, R082–R085, R089–R090, R098–R099 Branch: Evan/v3-242-atomic-plan-edits, based on main at d71d2bd42b68485feb4571d3aad490d7d8327aa3 Delivery: one GPG-signed PR; leave it unmerged and issue open.

Scope and ownership

Extend the current TaskManager, typed update_plan registry tool, TasksRepository, and existing SQLite schema. The repository owns atomic persistence and optimistic revision checks; TaskManager validates a defensive candidate and updates its in-memory projection only after commit. Preserve complexity/tasks callers through the same validation and transaction path. Do not add revision-history storage (#244), Strategic Plan behavior (#245), or material-change approval (#246).

Indexed implementation plan

Task 1 — Revision contract and ordered operation validation

Task 2 — Atomic persistence and progress concurrency

Task 3 — Scheduling, compatibility, and recovery

Task 4 — Validation and delivery

Review focus

Check storage concurrency under BEGIN IMMEDIATE, in-memory rollback on all exceptions, preventing stale candidate state from overwriting new claims/evidence, and scheduler behavior for failed prerequisites and reordered tasks.

Validation record

Implementation is complete on Evan/v3-242-atomic-plan-edits. Python 3.12 and 3.13 each passed all 815 tests with browser tests enabled. make check, make lint, make docs-check, make tui-test, make tui-acceptance, make agent-acceptance, and make subagent-acceptance passed. Focused plan and migration suites passed (46 tests). Independent review found and verified fixes for typed operation schemas, atomic scheduling claims, and rejection of mixed legacy/canonical arguments. No paid provider calls or new dependencies were used. The repository and issue were refreshed before creating this plan; main was d71d2bd42b68485feb4571d3aad490d7d8327aa3, issue #242 remains open, and PR #283 remains open and unmerged.