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
The 2026-09-03 aggressive VNext backlog/branch review has canonicalized useful design work into current main and current GitHub issues. PR #331 is closed/superseded; its valid verification-goal requirements live in #355/#356. The unmerged reviewer-scope branch's useful requirements live in #188/#337/#338. Several other refs are simply leftovers of already-merged PRs.
The connected GitHub surface used for planning cannot delete remote refs directly, so cleanup must be executed by a repository-authorized agent/CLI. Never delete by branch-name pattern alone. Re-read current remote SHA/open-PR/reachability immediately before each deletion batch.
The remote branch list contains no reviewed superseded pre-VNext implementation/review branches. Every deleted ref is either already merged/reachable from main or has a documented supersession handoff preserving its useful requirements. No open PR/current implementation branch is removed, and PR/commit/issue history remains intact.
Tasks
Already-merged leftovers
Delete only after confirming the expected PR/commit is merged/reachable from currentmain:
PR #331 is closed without merge. Its valid requirements/test ideas are preserved in #187/#355/#356. Delete only after confirming no candidate has gained a new open PR or newer unported commits:
Before deletion, confirm its head has not acquired newer unported commits. If changed, stop and open a narrow preservation finding rather than deleting.
Implementation Sequence
Fetch immutable current inventory — git fetch --prune/GitHub branch + open-PR APIs; record branch -> current SHA -> open PR -> reachability/disposition table for only the named candidates.
Merged-ref proof — for each merged candidate verify exact current head commit is an ancestor/reachable from current main and expected PR is merged; if head advanced after merge, stop that branch.
Superseded-ref proof — for each [EPIC] Verification goals and proof-run lifecycle #187/reviewer candidate verify no open PR and current head equals/is within reviewed superseded lineage; compare current commits against the relevant closed PR/issue handoff and stop on any unported new commit.
Dry-run deletion manifest — print exact candidate name + pre-delete full SHA + disposition + preservation issue/merged PR; require no wildcard/pattern expansion and no unexpected ref.
Delete in two batches — already-merged refs first; re-fetch/reconcile; then superseded unmerged refs. Use normal remote ref deletion/API, not force-moving refs.
Post-delete reconcile — refetch branch/open-PR state and prove every deleted ref absent, protected/live refs present and no open PR references deleted head.
Audit comment — concise exact deleted branch/pre-delete SHA list plus any deliberately skipped candidate/reason. Do not paste local paths/secrets.
Primary Code / Control Seams To Inspect First
This is remote Git governance rather than application code. Inspect:
Garbage-collecting unreachable Git objects on GitHub.
Deleting branches created after this issue without a fresh explicit review.
Any application-code refactor.
Implementation Scope
Small but destructive - one repository-hygiene operation with two deletion batches and mandatory re-fetch/review gates.
Technical Notes
If any candidate fails its expected-state assertion, skip it and report the exact mismatch. Partial safe completion is preferable to deleting a branch whose current meaning changed.
Execution mode: implementation
Depends on: none
Issue Type
Repository hygiene / governance
Context
The 2026-09-03 aggressive VNext backlog/branch review has canonicalized useful design work into current
mainand current GitHub issues. PR #331 is closed/superseded; its valid verification-goal requirements live in #355/#356. The unmerged reviewer-scope branch's useful requirements live in #188/#337/#338. Several other refs are simply leftovers of already-merged PRs.The connected GitHub surface used for planning cannot delete remote refs directly, so cleanup must be executed by a repository-authorized agent/CLI. Never delete by branch-name pattern alone. Re-read current remote SHA/open-PR/reachability immediately before each deletion batch.
Keep:
mainalways;audit/vnext-instruction-boundarywhile PR docs: align repository agent instructions with VNext runtime truth #351 remains open. After docs: align repository agent instructions with VNext runtime truth #351 is explicitly merged/closed by the operator, ordinary merged-branch cleanup may remove it separately.Desired Outcome
The remote branch list contains no reviewed superseded pre-VNext implementation/review branches. Every deleted ref is either already merged/reachable from
mainor has a documented supersession handoff preserving its useful requirements. No open PR/current implementation branch is removed, and PR/commit/issue history remains intact.Tasks
Already-merged leftovers
Delete only after confirming the expected PR/commit is merged/reachable from current
main:agent/normalize-execution-outcomes— PR feat: add canonical execution outcomes #324 / [FEATURE] Normalize execution outcomes and stop reasons #185 lineage.claude/forge-issue-review-arch-37iv2q— PR Add capability reliability ledger (#186) #326.codex/issue-187-registry-import-api— PR feat: add authenticated verification goal imports (#187) #329.codex/issue-187-verification-goal-registry— PR feat: add verification goal registry foundation (#187) #328.docs/forge-vnext-architecture— PR docs: lock Forge VNext general-agent architecture #345 / ADR 0014.Superseded #187 / PR #331 lineage
PR #331 is closed without merge. Its valid requirements/test ideas are preserved in #187/#355/#356. Delete only after confirming no candidate has gained a new open PR or newer unported commits:
architecture/issue-187-goal-run-policy-final— former PR feat: implement project verification goals and proof runs (#187) #331 head.architecture/issue-187-verification-goal-execution-policyarchitecture/issue-187-verification-goal-execution-policy-r1architecture/issue-187-verification-goal-run-policyarchitecture/issue-187-verification-goal-run-policy-v1codex/issue-187-goal-definition-v2These are historical evidence only. New proof-run work starts from current
main; never rebase/cherry-pick these branches wholesale.Superseded reviewer-scope branch
codex/reviewer-scope-controls— no PR; reviewed requirements are captured in [FEATURE] Add independent Verification Workforce execution #188/[FEATURE] VNext Phase 3 — complete Software Engineering as the first generic Workforce #337/[FEATURE] VNext Phase 4 — declarative Workforce packages and Software Engineering extraction #338 (change-scoped blocking findings, adjacent findings separate, read-only reviewer, bounded rework scope).Before deletion, confirm its head has not acquired newer unported commits. If changed, stop and open a narrow preservation finding rather than deleting.
Implementation Sequence
git fetch --prune/GitHub branch + open-PR APIs; record branch -> current SHA -> open PR -> reachability/disposition table for only the named candidates.mainexists/current; assert PR docs: align repository agent instructions with VNext runtime truth #351 head is excluded while PR docs: align repository agent instructions with VNext runtime truth #351 open; detect any new open PR/head created after this issue and exclude it automatically.mainand expected PR is merged; if head advanced after merge, stop that branch.Primary Code / Control Seams To Inspect First
This is remote Git governance rather than application code. Inspect:
git ls-remote --heads origin/ fetched remote refs;mainancestry viagit merge-base --is-ancestoror equivalent exact commit comparison;Do not edit application files merely to perform branch cleanup.
Orthogonal Checkpoints
main; no force-update as substitute for deletion.Acceptance Criteria
mainis never force-moved/deleted.mainbefore deletion; advanced heads are skipped.main, the live PR docs: align repository agent instructions with VNext runtime truth #351 branch if still open, and any newly created legitimate branches not listed for deletion.git push origin --delete/ GitHub ref deletion), never force-moving stale refs onto another commit.Out of Scope
Implementation Scope
Small but destructive - one repository-hygiene operation with two deletion batches and mandatory re-fetch/review gates.
Technical Notes
If any candidate fails its expected-state assertion, skip it and report the exact mismatch. Partial safe completion is preferable to deleting a branch whose current meaning changed.