Skip to content

porch: read on_all_phases_complete instead of hard-coding 'review', and emit the context refresh on a skip-phase transition #1909

Open

Description

@waleedkadous

Two follow-ups from the review of PR #1908 (porch skip-phase, issue #1900). Both are design calls, so they were left out of that PR.

  1. Hard-coded 'review'. handleVerifyApproved and skipPhase both advance to a literal 'review' when all plan phases are settled. SPIR and ASPIR declare on_all_phases_complete: "review" in protocol.json, but normalizePhase drops it and nothing reads it. Surface it and use it at both sites. Decide: default to review when absent, or throw (the schema makes it optional and test fixtures omit it).

  2. Context refresh on a skip. porch skip-phase crosses plan-phase:<next> or enter:review but cannot emit the refresh task, because porch only emits those from porch next at its own transitions. Today it prints a notice telling the builder to run /builder-refresh. A proper fix needs pending-refresh state plus a hook in next(), which touches Spec 1470's design.

Activity

  1. added
    area/porch
    on Nov 16, 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