You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
porch: ASPIR implement loop has been single-shot — ungated direct-advance never extracts plan_phases #1503
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.
Activity
[Spec 1470][Phase: phase_2_porch_trigger] docs: Record architect ruli…