Skip to content

porch: no way to drop or amend a plan phase after implement starts (phase list is snapshotted once) #1900

Closed

Description

@waleedkadous

Problem

A SPIR project's approved plan had its last phase dropped by the owner after the earlier phases were built and merged. Porch still lists the dropped phase as pending and will hand the builder its build tasks. The review document is only reachable after the last plan phase, so the project cannot finish cleanly. Reported by an adopter.

Root cause

Porch copies the plan's phase list into status.yaml (plan_phases) once, on entering the implement phase (commands/porch/index.ts and three paths in next.ts). It never re-reads the plan afterwards, so editing the plan's phase list has no effect.

The only command that re-extracts is porch rollback <id> implement, which resets every phase to pending and restarts from the first one. There is no command to skip or drop a single phase. (porch verify --skip covers the verify phase only.)

Fix (to be decided)

Either or both:

  1. porch skip-phase <id> <plan-phase> --reason "..." --a-human-explicitly-approved-this: marks one plan phase as skipped, records the reason in state, and advances. Human-gated because it changes an approved plan.
  2. A re-sync command that re-reads the plan's phase list and reconciles it with state: completed phases stay complete, removed pending phases are dropped, new phases are appended as pending. Refuses if a completed phase was removed or reordered.

Option 1 is smaller and covers the reported case.

Testing

Unit tests on the state transition: skip the last pending phase and reach review; skip a middle phase; refuse to skip a completed phase; refuse without the human flag.

Activity

  1. added
    area/porch
    on Nov 15, 2026
  2. waleedkadous commented on Nov 16, 2026

    @waleedkadous
    ContributorAuthor

    Baked Decisions (architect, 2026-11-16)

    • Build option 1 only: porch skip-phase <id> <plan-phase> --reason "..." --a-human-explicitly-approved-this. The re-sync command (option 2) is out of scope.
    • It requires the human flag and a non-empty reason, refuses a phase that is already complete, and records the skip (phase id, reason, time) in project state so porch status shows it as skipped rather than complete.
    • Skipping the current phase advances to the next pending one; skipping the last pending phase lets the project proceed to review.
    • Document it in porch --help and the porch skill, in every tree the skill ships in.
  3. added 8 commits that reference this issue on Nov 16, 2026
  4. waleedkadous commented on Nov 17, 2026

    @waleedkadous
    ContributorAuthor

    Implemented by PR #1908 (merge commit e2403c3): porch skip-phase <id> <plan-phase> --reason "..." --a-human-explicitly-approved-this. On main; not yet in a published release. Design follow-ups are in issue #1909.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/porch

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions