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 cannot express merged-outside-the-loop: add 'porch reconcile' for evidence-based terminal state repair #1297
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:
Evidence-gated: refuses without a verifiable merged-PR/commit reference — reconcile exists to make state match shipped reality, not aspiration.
Auditable: writes a permanent reconcile entry into status.yaml history (who, when, reason, evidence) rather than silently rewriting counters.
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.
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