Skip to content

porch: ASPIR implement loop has been single-shot — ungated direct-advance never extracts plan_phases #1503

Closed

Description

@waleedkadous

What

Porch's extractPlanPhases had only two call sites — the pre-approval path and the gate-approved transition. The ungated direct-advance path in handleVerifyApproved had none. ASPIR has no spec/plan human gates, so its plan→implement transition always takes that path — meaning every ASPIR project has entered implement with an empty plan_phases and never reached the per-plan-phase advance branch.

Consequence: ASPIR's implement phase has effectively been a single shot rather than the per-plan-phase cycle the protocol describes, for as long as this code has existed. SPIR was unaffected (its transitions are gated or pre-approved, both of which extract).

How it surfaced

Found by Codex consultation during Spec 1470 (automatic context refresh) Phase 2, grep-verified by the builder: 1470's ASPIR per-plan-phase boundary deliverable was unreachable because the cycle it hooks into never ran.

Fix

Shipped inside the Spec 1470 work (commit 7d1bc828e on builder/spir-1470, with the pre-existing nature documented inline and a regression test) — kept in that PR by architect ruling because the spec's ASPIR deliverable depends on it. This issue exists for traceability: ASPIR implement semantics change from single-shot to a genuine per-plan-phase cycle when that PR lands.

Deliberately NOT done: retroactive repair

In-flight ASPIR projects mid-implement are not repaired — the fix applies on transition only. Retroactively populating plan_phases for a project already in implement would reset phase statuses to pending and rewind recorded progress, the same harm class as #1408. If a repair is ever needed, it belongs in a human-run tool against a named project, never in a read path with a side effect.

Closes when the Spec 1470 PR merges.

Activity

  1. added
    area/porch
    on Aug 18, 2026
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