Skip to content

porch cannot express merged-outside-the-loop: add 'porch reconcile' for evidence-based terminal state repair #1297

Open

Description

@waleedkadous

Problem (production report, extends #1294)

Two projects in a production workspace have porch counters frozen mid-implement (phase_6/10, phase_6/8) while ALL work is complete and the PRs are merged to main. The freeze mechanics: the PR-handoff snapshot froze the counter, and the only forward path — porch done — demands consult rounds that the workspace's review-budget policy has retired. Advancing would mean manufacturing consults purely to feed a counter, reviewing already-shipped code out-of-band.

The full current surface offers no exit: porch done → requires the retired consults; porch verify --skip → refuses outside the verify phase; porch rollback → backward only; hand-editing status.yaml → forbidden by the framework's own docs. As the reporting architect put it: "porch cannot express merged-outside-the-loop." The projects read as stuck to the owner when they are in fact shipped.

Ask

porch reconcile <id> --to <phase|complete> --evidence <merged-PR-or-sha> --reason "..." with these properties:

  1. Evidence-gated: refuses without a verifiable merged-PR/commit reference — reconcile exists to make state match shipped reality, not aspiration.
  2. Auditable: writes a permanent reconcile entry into status.yaml history (who, when, reason, evidence) rather than silently rewriting counters.
  3. Terminal-biased: reconciling TO complete/verified on merged evidence is the sanctioned case. Fast-forwarding a mid-flight project PAST unexecuted quality steps (consults, gates) whose outputs are still actionable should refuse or demand a much louder override — that variant ratifies skipped reviews, which is the failure mode the no-hand-edit rule exists to prevent.
  4. Human-gated: like porch approve, an explicit --a-human-explicitly-approved-this-class flag; reconcile is an owner action, not a builder action.

Design note

The distinction in (3) is load-bearing: pre-merge, the porch loop schedules reviews that catch real defects — skipping it and syncing bookkeeping afterward would launder the skip. Post-merge, the remaining counter is bookkeeping debt with no quality function. Reconcile should encode that asymmetry, not just be a state pencil.

Interim

Until this ships, the sanctioned workaround is a human-authorized one-time manual repair with a git-committed audit trail (documented exception to the no-hand-edit rule, granted per-case by the workspace architect/owner).

Activity

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