Skip to content

Retire completed local worktrees after owner and retention verification #6179

Open

Description

@BunsDev

lane: release
state: needs-owner
owner: BunsDev, Copilot
unit: —
blocked-by: —
clears-when: owner dispositions answered and dashboard claim 632c6f5d released
next: In a dedicated branch-curator session, present the exact candidate units and the 632c6f5d claim for Val's dispositions; 41/28 worktrees now also blocks #5845 and #6524.
updated: 2026-11-19

Current maintainer request: remove old unnecessary worktrees, or land needed work through protected PRs. This curation supports the #5256 documentation close-out, which is blocked by the 28-worktree budget. Actor: Codex, thread 01a16533-9ddc-7611-b2a4-ffcf51829ce0. Scope: local worktree cleanup and protected PR delivery where current ownership and verification allow it; no remote deletion, releases, or protection changes.

Continuity: bounded REST search for open worktree issues returned 0, incomplete_results=false. Historical #5474 is closed and covered different exact candidates; this is a new batch, not authority inherited from it. Origin is https://github.com/OpenCoven/coven-cave.git. No new worktree is needed for this read-only audit. Project access remains unavailable; private execution stores were not searched.

Inventory: 32 registered worktrees, 43 local branches. Fetched origin/main is da32081. Exhaustive paginated REST inventory returned 5,474 PRs. Of 31 secondary worktrees, 25 match exact heads of merged PRs, two match open PRs, and four hold uncommitted work. Squash-merged heads are not treated as retained solely because the PR merged. No deletion proof or DELETE classification is claimed yet.

Open-PR disposition: #6174 at 133fdcb fails Frontend build and Frontend E2E (1/8), with the original #6173 dependency unresolved. #6176 at 4588a3d fails Frontend build, Frontend E2E (6/8), and Frontend E2E (agentic); its owner still has active processes. Neither is ready for protected merge. Do not rerun or change those units to make cleanup possible.

Runtime evidence: repository-scoped coven claim status returned no claims. The local surface-claim file records active owners for #6057, #6058 and #6059; OS CWD inventory also finds live processes in those exact worktrees. The local maintenance status reports no held gate and no writer intents, which does not negate those active writers. Coven sessions lacks a repository filter in its advertised CLI, so an unscoped private session inventory was not retrieved; coverage is unknown. The branch-curator contract requires a current owner-backed idle/disposition receipt and preservation on incomplete coverage.

First proposed bounded retirement candidates, pending fresh owner/runtime clearance: #6103 / PR #6133 at a6bc52d, #6128 / PR #6131 at 70872e1, and #6129 / PR #6134 at 997e908. All three owning issues are closed; exact PR heads match, no tracked/untracked changes or CWD processes were observed, and only policy-listed generated paths are ignored. Their latest owner dispositions explicitly preserve exact-head/evidence units for a separate authorized retirement pass. No artifact is discarded by this proposal.

Next: obtain current owner/runtime release for the exact candidate units, then choose and record the manual-local-only profile, acquire the local maintenance lease, refresh complete issue/PR/workflow/recovery/remote-retention evidence, and require the strict worktree guard before each non-forced removal. Keep every dirty, active, unresolved, or non-disposable-evidence unit intact. No merge, removal, local ref deletion, or remote deletion has occurred.

Full local-branch classification (read-only; action is preserve until each proof is complete):

Branch Exact HEAD PR evidence Decision Reason
cody/5865-chat-list 3081839b54946044b50d2560631e71b5fdffd6a9 #6109 PRESERVE - uncertain Owner-backed retirement and runtime clearance outstanding
docs/issue-6126-core-contract b4674fb21006b883184a0b5db5cb924210c97148 #6127 PRESERVE - uncertain No worktree; recovery and owner disposition not proven
feat/issue-6129-memory-traversal 997e908578bea6a927483ffb64b95b58112b7110 #6134 PRESERVE - uncertain Owner-backed retirement and runtime clearance outstanding
fix/daemon-setup-recovery 693aba6d0e1224df617ec9ba8e4190f965acfa3a #6117 PRESERVE - uncertain Owner-backed retirement and runtime clearance outstanding
fix/issue-5917-self-report-ownership 46d8736f3a83a71f79158e64559b995cd5555aa0 #6152 PRESERVE - uncertain No worktree; recovery and owner disposition not proven
fix/issue-5979-startup-diagnostics d2d5c7b712b6af22cf326e6da4bf32ee9eedff0b #6159 PRESERVE - uncertain Owner-backed retirement and runtime clearance outstanding
fix/issue-5980-window-geometry 17ebc7f110cf6a1cae437abd6e1eff76e9a171b2 #6167 PRESERVE - uncertain Owner-backed retirement and runtime clearance outstanding
fix/issue-5981-sidecar-recovery 0598dbea3820804268027fee9d0c94cc34d2d23c #6158 PRESERVE - uncertain Owner-backed retirement and runtime clearance outstanding
fix/issue-5981-update-information c94b131750091a9ad4fa00a007a5ceb7f83e7e2c #6155 PRESERVE - uncertain Owner-backed retirement and runtime clearance outstanding
fix/issue-6060-ui-fallback e23b89abab6521fd81e3bc814191848371a5a476 #6175 PRESERVE - uncertain Owner-backed retirement and runtime clearance outstanding
fix/issue-6103-project-mentions a6bc52dcf9e5a5d176f1c3313398403498f4f194 #6133 PRESERVE - uncertain Owner-backed retirement and runtime clearance outstanding
fix/issue-6114-e2e-reliability b76ba3b5d776194b967931e052ca8a9e0c02bb8b #6115 PRESERVE - uncertain Owner-backed retirement and runtime clearance outstanding
fix/issue-6122-daemon-poll-deadline 5ea26eee6d4db740b7b6910a32fbcab709594c48 #6123 PRESERVE - uncertain No worktree; recovery and owner disposition not proven
fix/issue-6124-chat-fixture-admission ea281a5ee81f873e019143b1e4ee45b528c0a79d #6125 PRESERVE - uncertain Owner-backed retirement and runtime clearance outstanding
fix/issue-6128-github-attachment-identity 70872e111b6f6f839d98f9ba3bb816a8e88d65fe #6131 PRESERVE - uncertain Owner-backed retirement and runtime clearance outstanding
fix/issue-6130-github-watcher-deadline 141e43b0c6f37ba481b1a1a0740532f86197d977 #6132 PRESERVE - uncertain Owner-backed retirement and runtime clearance outstanding
fix/issue-6135-github-watcher-lifecycle 974f77f373405c67692ba55ae54d12d9f77f65da #6136 PRESERVE - uncertain Owner-backed retirement and runtime clearance outstanding
fix/issue-6139-security-dependencies dd8b745768661ceee2e65da720c4c87e1265d9b3 #6140 PRESERVE - uncertain Owner-backed retirement and runtime clearance outstanding
fix/issue-6142-memories-acceptance 962be2dd5e1a6eb1ac398aa706c6bfc7c45c9712 #6146 PRESERVE - uncertain Owner-backed retirement and runtime clearance outstanding
fix/issue-6150-research-runtime c9c484e38e24bc0764b0d0b2a425878e19a81649 #6151 PRESERVE - uncertain Owner-backed retirement and runtime clearance outstanding
fix/issue-6153-inbox-preservation 3b8ceb2c989d4dafac7d45de5df32763accfd86a #6154 PRESERVE - uncertain No worktree; recovery and owner disposition not proven
fix/issue-6156-cli-verification 179f27fd2f6678bdeb6be71ff822a93f2b58fe41 #6157 PRESERVE - uncertain Owner-backed retirement and runtime clearance outstanding
fix/issue-6160-inbox-admission 4fd4ceed945b664ff886a9cdc49511919750ac5c #6162 PRESERVE - uncertain No worktree; recovery and owner disposition not proven
fix/issue-6164-reviewed-cli f2ecac77b649362a3e45a025553c40e93d8aa596 #6165 PRESERVE - uncertain Owner-backed retirement and runtime clearance outstanding
fix/issue-6166-setup-reconcile e037224222d82f3cd8c9ffa9e26dea9cb3183a5e #6168 PRESERVE - uncertain Owner-backed retirement and runtime clearance outstanding
fix/issue-6170-node-verification c9f9eea4781733ef379ee59410551d3a4680f15b #6171 PRESERVE - uncertain Owner-backed retirement and runtime clearance outstanding
fix/issue-6172-backup-state 133fdcbd4913ab0691c4b1f91cba19df5889e95e #6174 PRESERVE - live Open PR; required checks failed; owning session retained
fix/issue-6173-find-navigation 61175924280813bcee6e3f6d97612a81daed9010 No exact-head PR found PRESERVE - live Uncommitted work; owner and locks preserved
fix/local-models-e2e 7833ea147a4d8798d9863609409b0851e9fe27b7 No exact-head PR found PRESERVE - uncertain No worktree; recovery and owner disposition not proven
main da32081f4dad38aa30a2311afa1d8005592c76df No exact-head PR found PRESERVE - live Protected primary checkout
perf/issue-6144-research-styles f66f6f243fd40d3cc7979916e8697a715eee2f6a #6145 PRESERVE - uncertain No worktree; recovery and owner disposition not proven
test/issue-5897-access-acceptance a90bc40a50fb10f06f4fc5b8f9737c653ad60711 #6161 PRESERVE - uncertain Owner-backed retirement and runtime clearance outstanding
test/issue-6036-build-observation f9a88f3e6048d5f7a47ab24b2d4622d6515f6c37 No exact-head PR found PRESERVE - live Uncommitted work; owner and locks preserved
test/issue-6036-incremental-checker 577ba555ca8831b3f75e9539f95cd2bf63cdad72 #6169 PRESERVE - uncertain No worktree; recovery and owner disposition not proven
test/issue-6036-typescript-diagnostics a353afd555233720fe38ce1318e410bc7f4c4b36 #6163 PRESERVE - uncertain No worktree; recovery and owner disposition not proven
test/issue-6057-reasoning-states 4588a3d253bfbdd00b69965f4c5dd5612774290c #6176 PRESERVE - live Open PR; required checks failed; owning session retained
test/issue-6058-authority-guards da32081f4dad38aa30a2311afa1d8005592c76df No exact-head PR found PRESERVE - live Uncommitted work; owner and locks preserved
test/issue-6059-replay-guards da32081f4dad38aa30a2311afa1d8005592c76df No exact-head PR found PRESERVE - live Uncommitted work; owner and locks preserved
test/issue-6119-research-lifecycle 69554077e33202bbda5a763a572ce29a2a5d2bc2 No exact-head PR found PRESERVE - uncertain No worktree; recovery and owner disposition not proven
test/issue-6120-real-daemon-lifecycle 5a75988824da6b5dae42ac006d4e213d88b7d82e #6121 PRESERVE - uncertain Owner-backed retirement and runtime clearance outstanding
test/issue-6137-stream-performance 78aecbbb89131bab70a58825e1f2fd3c812e3bd9 #6138 PRESERVE - uncertain Owner-backed retirement and runtime clearance outstanding
test/issue-6147-probe-cleanup bd057359351bff7ade47773b74951249dbe089e9 #6149 PRESERVE - uncertain Owner-backed retirement and runtime clearance outstanding
verify/issue-6119-integrated-recovery 5643ee93e15d74309e728919779b97d6d4395b93 No exact-head PR found PRESERVE - uncertain No worktree; recovery and owner disposition not proven

Activity

  1. BunsDev commented on Oct 22, 2026

    @BunsDev
    MemberAuthor

    First-candidate read-only preflight completed for #6103/#6128/#6129. Exact merged PR details and live refs/pull/6133/head, refs/pull/6131/head, and refs/pull/6134/head advertise the audited local heads. All 30 active-workflow queries returned zero. No assume-unchanged or skip-worktree flags were found. Generated roots remain intact. Clean previews also expose empty fixture-directory scaffolding requiring inspection during the final proof.

    The required cross-repository associatedPullRequests query failed with GraphQL RATE_LIMIT. REST remains usable, but its origin PR inventory does not replace that association proof. The rate_limit endpoint reports available quota while the actual GraphQL query is rejected; actual failure is authoritative.

    Current owner-backed release for the three units was requested through native input; no answer received. Associated-PR proof also remains unavailable. Active #6057/#6058/#6059 processes and claims remain untouched. No maintenance lease or DELETE verdict is claimed, and no destructive command was attempted.

    Next: after owner release and restored query access, refresh the exact candidates and complete the manual-local-only proof under the local maintenance lease, including recovery retention and the strict worktree guard. Audit files: /tmp/cave-curation-classification.json, /tmp/cave-curation-worktrees.json, /tmp/cave-curation-prs.jsonl and /tmp/cave-curation-proof-{6103,6128,6129}.json. No worktrees or refs removed, no PR merged, no release. Count remains 32; #5256 remains blocked on capacity.

  2. self-assigned this
    on Oct 22, 2026
  3. BunsDev commented on Oct 22, 2026

    @BunsDev
    MemberAuthor

    Val has now instructed: "proceed with your recommendations please", following the explicit owner-release question for #6103, #6128 and #6129. Record this as the current maintainer-backed release/disposition and authority for this bounded local-only cleanup batch; do not request the same approval again.

    Manual-local-only candidate set: .worktrees/issue-6103-project-mentions / fix/issue-6103-project-mentions at a6bc52d (merged #6133); .worktrees/issue-6128-github-attachment-identity / fix/issue-6128-github-attachment-identity at 70872e1 (merged #6131); .worktrees/issue-6129-memory-traversal / feat/issue-6129-memory-traversal at 997e908 (merged #6134). Repository OpenCoven/coven-cave; audited main da32081. Actor Codex, thread 01a16533-9ddc-7611-b2a4-ffcf51829ce0; execution from the primary checkout is read-only coordination, with no source edit there. Local branches and remote refs will be retained unless their separate deletion proof is completed; remote deletion is outside this batch.

    Owner-release input is resolved. All runtime, exact-head, remote retention, recovery, lease and strict-guard checks still apply. A fresh associatedPullRequests GraphQL query still returns RATE_LIMIT; no deletion or bypass has occurred. Continue independent read-only preflight and resume removal only when the required proof is available.

  4. BunsDev commented on Oct 22, 2026

    @BunsDev
    MemberAuthor

    All three approved candidates passed the read-only strict worktree-guard preflight with exact GitHub merged-PR retention: #6103 at a6bc52d, #6128 at 70872e1, and #6129 at 997e908. These are preflights only; they must run again immediately before removal under the maintenance lease.

    Both branch and private HEAD reflogs contain only two distinct nonzero OIDs per unit, each reachable from the exact retained head or main. ORIG_HEAD/FETCH_HEAD entries also pass that ancestry check. The additional fixture scaffolding contains no files. No source or evidence was removed.

    GitHub GraphQL's own response reports remaining=0 and resetAt=2026-10-22T20:32:51Z, unlike the inconsistent REST quota summary. One read-only association retry is scheduled just after that reset; no credential changes or repeated authentication. Owner-release approval remains recorded and does not need renewal merely because the API is waiting.

  5. BunsDev commented on Oct 22, 2026

    @BunsDev
    MemberAuthor

    The first approved removal passed all final API/ownership/retention/recovery checks and the strict guard, then my subprocess wrapper killed git worktree remove after 90 seconds. This was an execution-timeout error in the wrapper, not a guard refusal. The batch stopped immediately and released its maintenance lease; #6128 and #6129 were not touched. No complete worktree removal is claimed.

    Recovery: the #6103 HEAD and local branch remained at a6bc52d. Fresh status contained only 156 tracked deletions, with no modifications or untracked work. Restored only those deleted paths from that exact head using a NUL-delimited path list. Subsequent status is clean and HEAD unchanged. Generated build/dependency directories may be partially removed and are disposable under the existing policy. During this removal the auto-lock hook added a lock reporting four deleted paths; initial inventory proved the unit unlocked. This is a lock induced by this cleanup attempt, not another owner's lock. Its exact text will be checked before clearing it after source recovery.

    The failed batch is over. Start a new bounded batch under Val's existing current-task instruction for these same three exact units, with a new lease and every proof refreshed. Keep the removal process attached without a per-command kill deadline, heartbeat the lease, and verify terminal status/path/registration before moving on. Never bypass the strict guard or change its safety rules. No additional owner permission is inferred for any other unit.

  6. BunsDev commented on Oct 22, 2026

    @BunsDev
    MemberAuthor

    Completed the approved manual local-only retirement batch. All three worktree directories and registrations are absent; their local branch refs remain at the exact audited heads and the merged PR head refs retain those commits. Worktree count is 29, down from 32. The local maintenance lease was held through the batch and released successfully.

    Issue Removed worktree Retained HEAD Merged PR
    #6103 .worktrees/issue-6103-project-mentions a6bc52dcf9e5a5d176f1c3313398403498f4f194 #6133
    #6128 .worktrees/issue-6128-github-attachment-identity 70872e111b6f6f839d98f9ba3bb816a8e88d65fe #6131
    #6129 .worktrees/issue-6129-memory-traversal 997e908578bea6a927483ffb64b95b58112b7110 #6134

    Post-action verification covered all 5,475 repository PRs and 30 active-workflow queries across the three exact branch names and heads; no matching open PR or active run was found. The primary checkout remains clean. No local or remote branch was deleted, and no PR was merged in this batch. The earlier removal timeout and restoration are recorded above; the subsequent fresh guarded batch completed successfully.

    Remaining units stay preserved for the ownership, live-work, recovery, or incomplete-proof reasons in the inventory. In particular, #5981 now has a reused dirty unit and #6058 has advanced, confirming concurrent work. Further retirement needs a fresh bounded batch with current owner dispositions and proof. At 29 worktrees, two additional verified retirements would permit a new #5256 worktree within the 28-worktree budget. Project status could not be verified; this issue remains open for the remaining capacity blocker.

  7. BunsDev commented on Oct 24, 2026

    @BunsDev
    MemberAuthor

    New bounded manual batch (2026-10-24): local worktree + local branch retirement

    Authority. Val, in the current Claude Code session (25c3817b): "continue on any incomplete work in the repo and merge to main and remove the worktree and branch with pruning". Val then picked these options: "Green 5 + repair 2" and "Retire merged, preserve rest". This is a new batch. It inherits no earlier authority.

    Merged under this authority (exact-head squash, required Frontend build green, zero review threads): #6187 → 1594ceed7, #6174 → 7723b3466, #6198 → 34219bf5a, #6197 → 2c17bbf96, #6194 → 1deb57cc2. #6180 and #6185 had main merged in (f02004e82, 66f2f0f7d). They merge only if they come back green.

    Profile. Manual and local-only, under the repository maintenance gate. Each removal goes through worktree-guard --strict-worktree-remove --retained-by-github-pr, with no bypass. Each local ref is compare-and-deleted at its audited OID. GitHub auto-deleted every candidate's remote branch on merge. There is no remote deletion transaction. Then git worktree prune and git fetch --prune run (fetch.pruneTags stays false).

    Exact candidates (every one is the exact head of a merged PR):

    Worktree Branch Audited HEAD PR
    .worktrees/daemon-setup-recovery fix/daemon-setup-recovery 693aba6d0e1224df617ec9ba8e4190f965acfa3a #6117
    .worktrees/fix-issue-6060-ui-fallback fix/issue-6060-ui-fallback e23b89abab6521fd81e3bc814191848371a5a476 #6175
    .worktrees/issue-5256-qualified-window docs/issue-5256-qualified-window 994cad3d6e55c5ac69167ee5b0cb9eca57e6831f (ff from dc22a406b) #6187
    .worktrees/issue-5761-map-ledger docs/issue-5761-map-ledger 2eb2ad54f855c1d55f9e5f62fa5dacf1ca72bc9f #6182
    .worktrees/issue-5865-continuation cody/5865-chat-list 3081839b54946044b50d2560631e71b5fdffd6a9 #6109
    .worktrees/issue-5920-contextual-enhance fix/issue-5920-contextual-enhance f90c231e44d4c27d082aaf91f1ffea3448e65c8c #6203
    .worktrees/issue-5979-startup-diagnostics fix/issue-5979-startup-diagnostics d2d5c7b712b6af22cf326e6da4bf32ee9eedff0b #6159
    .worktrees/issue-5981-sidecar-recovery fix/issue-5981-install-recovery d7280ed065831d1fc92acf7a13668307b74d897b #6183
    .worktrees/issue-5981-update-information fix/issue-5981-update-information c94b131750091a9ad4fa00a007a5ceb7f83e7e2c #6155
    .worktrees/issue-6059-replay-guards test/issue-6059-replay-guards 97102d14b6542144868a4bc73d24d4a106da9c4b #6184
    .worktrees/issue-6114-e2e-reliability fix/issue-6114-e2e-reliability b76ba3b5d776194b967931e052ca8a9e0c02bb8b #6115
    .worktrees/issue-6120-real-daemon-lifecycle test/issue-6120-real-daemon-lifecycle 5a75988824da6b5dae42ac006d4e213d88b7d82e #6121
    .worktrees/issue-6124-chat-fixture-admission fix/issue-6124-chat-fixture-admission ea281a5ee81f873e019143b1e4ee45b528c0a79d #6125
    .worktrees/issue-6130-github-watcher-deadline fix/issue-6130-github-watcher-deadline 141e43b0c6f37ba481b1a1a0740532f86197d977 #6132
    .worktrees/issue-6135-github-watcher-lifecycle fix/issue-6135-github-watcher-lifecycle 974f77f373405c67692ba55ae54d12d9f77f65da #6136
    .worktrees/issue-6139-security-dependencies fix/issue-6139-security-dependencies dd8b745768661ceee2e65da720c4c87e1265d9b3 #6140
    .worktrees/issue-6142-memories-acceptance fix/issue-6142-memories-acceptance 962be2dd5e1a6eb1ac398aa706c6bfc7c45c9712 #6146
    .worktrees/issue-6177-main-ci fix/issue-6177-transport-readiness 4c69c1687d8427df83e0981d0cca32550d84ca42 #6198
    .worktrees/issue-6191-playwright-image ci/issue-6191-playwright-image 1f85f5573cd7333623ee8640f7c934b3e006c29c #6192
    .worktrees/issue-6196-research-automations fix/issue-6196-research-automations d4a352d9cb6b14fe0f3f5369b98a372837afa489 #6202
    .worktrees/issue-6201-chat-header-rows fix/issue-6201-chat-header-rows 485ec6b869cde1da2cf340e95c152a05aa8b7def #6204

    The issue-5256-qualified-window worktree is clean and sits behind its own PR head. It is fast-forwarded to the merged #6187 head before the proof.

    Preserved:

  8. BunsDev commented on Oct 24, 2026

    @BunsDev
    MemberAuthor

    Batch complete: 21 worktrees and 21 local branches retired, 7 PRs merged

    This completes the batch recorded in comment 6381098459.

    Merges. Each was a squash at its exact head, with the required Frontend build green on that head and no reviews, threads or comments:

    PR Head Merge commit
    #6187 994cad3d6 1594ceed7
    #6174 35ba3928e 7723b3466
    #6198 4c69c1687 34219bf5a
    #6197 2cb17bcd4 2c17bbf96
    #6194 7857a5d32 1deb57cc2
    #6180 f02004e82 b368cdaad
    #6185 66f2f0f7d 777d6a0ad

    #6180 and #6185 were refreshed with a main-merge commit first. The refresh cleared #6185's stale merge-tree refusal and the old #6173 Find E2E failure on #6180. Their runs were 40071120680 and 40071127137. GraphQL was rate limited, so the last two merges went through REST PUT /pulls/{n}/merge with sha= (exact-head match).

    Retired. These went through three gate-held batches. Each removal passed fresh PR, workflow, claim and session checks, plus worktree-guard --strict-worktree-remove --retained-by-github-pr with no bypass. Then came a non-force git worktree remove and update-ref -d at the audited OID. The retired branches:

    fix/daemon-setup-recovery, fix/issue-6060-ui-fallback, docs/issue-5256-qualified-window, docs/issue-5761-map-ledger, cody/5865-chat-list, fix/issue-5920-contextual-enhance, fix/issue-5979-startup-diagnostics, fix/issue-5981-install-recovery, test/issue-6059-replay-guards, fix/issue-6114-e2e-reliability, test/issue-6120-real-daemon-lifecycle, fix/issue-6124-chat-fixture-admission, fix/issue-6130-github-watcher-deadline, fix/issue-6135-github-watcher-lifecycle, fix/issue-6139-security-dependencies, fix/issue-6142-memories-acceptance, fix/issue-6177-transport-readiness, ci/issue-6191-playwright-image, fix/issue-6196-research-automations, fix/issue-6201-chat-header-rows, test/issue-6058-authority-guards.

    5256 and 6058 were clean but behind their own merged PR heads, so they were fast-forwarded first. Three units carried AUTO_MERGE equal to their HEAD tree, which is the guard's documented exception. They ran in a fresh second batch after the first batch's stricter pre-check stopped them.

    Each retired head is still retained at refs/pull/<n>/head. Remote branches were already absent because GitHub auto-deleted them. No remote deletion was performed. git worktree prune found nothing stale. git fetch --prune dropped 8 stale remote-tracking refs. No tags were pruned. Worktrees went from 44 to 24.

    Still preserved:

  9. BunsDev commented on Oct 24, 2026

    @BunsDev
    MemberAuthor

    Follow-up batch: consolidate .superpowers notes, then retire 9 units

    Authority. Val, in the same session, in reply to the offer to archive the notes: "yes, those superpowers worktrees should reduce to a single notes consolidated then rest pruned". This is a new bounded batch with the same profile as the previous one. It is manual and local-only, runs under the maintenance gate and the strict guard with no bypass, and compare-and-deletes each local ref at its audited OID. There is no remote deletion.

    Preservation first. Every .superpowers file is copied byte for byte into one gitignored archive in the primary checkout, .superpowers/archive/2026-10-24-retired-worktrees/. The archive holds a consolidated NOTES.md, raw/<worktree>/ copies and MANIFEST.sha256. Before each removal, the proof re-hashes every file in that unit's .superpowers and requires an identical archived copy. Any other non-disposable ignored state still preserves the unit.

    Worktree Branch Audited HEAD PR
    .worktrees/issue-5980-window-geometry fix/issue-5980-window-geometry 17ebc7f110cf6a1cae437abd6e1eff76e9a171b2 #6167
    .worktrees/issue-6119-integrated-recovery fix/issue-6170-node-verification c9f9eea4781733ef379ee59410551d3a4680f15b #6171
    .worktrees/issue-6137-stream-performance test/issue-6137-stream-performance 78aecbbb89131bab70a58825e1f2fd3c812e3bd9 #6138
    .worktrees/issue-6147-probe-cleanup test/issue-6147-probe-cleanup bd057359351bff7ade47773b74951249dbe089e9 #6149
    .worktrees/issue-6150-research-runtime fix/issue-6150-research-runtime c9c484e38e24bc0764b0d0b2a425878e19a81649 #6151
    .worktrees/issue-6156-cli-verification fix/issue-6156-cli-verification 179f27fd2f6678bdeb6be71ff822a93f2b58fe41 #6157
    .worktrees/issue-6164-reviewed-cli fix/issue-6164-reviewed-cli f2ecac77b649362a3e45a025553c40e93d8aa596 #6165
    .worktrees/issue-6166-setup-reconcile fix/issue-6166-setup-reconcile e037224222d82f3cd8c9ffa9e26dea9cb3183a5e #6168
    .worktrees/issue-6172-backup-state fix/issue-6172-backup-state 35ba3928ea2a8bc3b1adafabfa54c63bba6400cb (ff from 133fdcbd4) #6174
  10. BunsDev commented on Oct 24, 2026

    @BunsDev
    MemberAuthor

    Follow-up batch complete: 9 more units retired after the notes were archived

    This completes comment 6381392406.

    Archive. All 103 .superpowers files from the nine units are in .superpowers/archive/2026-10-24-retired-worktrees/ in the primary checkout. That path is gitignored, so it isn't committed. The archive holds a consolidated NOTES.md with progress notes and briefs inline and raw diffs and logs linked, plus raw/<worktree>/ and MANIFEST.sha256. Each unit's proof re-hashed its .superpowers files against the archive before removal. After removal, shasum -c still reports 103/103 OK.

    Retired. All nine passed under the gate with worktree-guard --strict-worktree-remove --retained-by-github-pr and no bypass, followed by a non-force removal and update-ref -d at the audited OID: fix/issue-5980-window-geometry (#6167), fix/issue-6170-node-verification (#6171), test/issue-6137-stream-performance (#6138), test/issue-6147-probe-cleanup (#6149), fix/issue-6150-research-runtime (#6151), fix/issue-6156-cli-verification (#6157), fix/issue-6164-reviewed-cli (#6165), fix/issue-6166-setup-reconcile (#6168) and fix/issue-6172-backup-state (#6174, fast-forwarded to 35ba3928e first).

    Local and remote absence was verified for every ref. Each head is still retained at refs/pull/<n>/head. git worktree prune found nothing stale, and no remote-tracking refs remained to prune.

    Totals. Worktrees went from 24 to 17. That count includes fix/issue-6201-two-row-chrome and fix/issue-6209-startup-worker-lifecycle, which other sessions created during this batch. Preserved units are unchanged from the previous record.

  11. BunsDev commented on Oct 24, 2026

    @BunsDev
    MemberAuthor

    Bounded batch: retire the #6036 unit after its PRs merged

    Authority. Val launched a goal with "manual local-only retirement of the #6036 unit after both merge". Both are merged: #6217 → a0fe5577c, #6218 → d0a7a41c5. Same profile as the earlier batches: manual local-only, maintenance gate, worktree-guard --strict-worktree-remove --retained-by-github-pr with no bypass, and compare-and-delete at the audited OIDs. There is no remote deletion; GitHub auto-deleted both remote branches.

    Candidate Audited OID Retained by
    worktree .worktrees/issue-6036-typescript-diagnostics + branch test/issue-6036-build-observation 63f4b78a38b2fdfdc196afccea2c6209e158cacc refs/pull/6218/head (merged #6218)
    branch fix/issue-6036-typecheck-before-compile (not checked out) 50bab3ee522dc4fc60d216c9c23db9867d556c06 refs/pull/6217/head (merged #6217)

    Preserved. ci/issue-6036-runtime-ceilings (e52177f77) heads the live draft #6223, so its local and remote refs stay.

  12. BunsDev commented on Oct 24, 2026

    @BunsDev
    MemberAuthor

    Done: the #6036 unit is retired (completes 6390900397)

    • Worktree: .worktrees/issue-6036-typescript-diagnostics passed worktree-guard --strict-worktree-remove --retained-by-github-pr origin OpenCoven/coven-cave 6218. It was removed without force, and both the path and its registration are gone.
    • test/issue-6036-build-observation: compare-and-deleted at 63f4b78a3, retained at refs/pull/6218/head.
    • fix/issue-6036-typecheck-before-compile: compare-and-deleted at 50bab3ee5, retained at refs/pull/6217/head. Before deletion, fresh checks confirmed the PR was merged at that exact head, no PR was open and no workflow was active, and the remote branch was absent.

    The maintenance gate was held for both deletions and released. ci/issue-6036-runtime-ceilings stays (live draft #6223). No remote ref was deleted.

  13. BunsDev commented on Oct 24, 2026

    @BunsDev
    MemberAuthor

    Bounded batch: retire the #6067 unit now that #6073 has merged

    Authority. In the current Claude Code session (7fcd2b86), Val launched the goal: "…work to reduce the total worktrees and branches…". This batch covers only the unit this session created and owns. It inherits no other authority and doesn't touch other sessions' units; the 25c3817b batches still own the wider sweep.

    Profile. Manual and local-only, under the local maintenance gate. Removal goes through worktree-guard --strict-worktree-remove --retained-by-github-pr with no bypass. The local ref is compare-and-deleted at the audited OID. GitHub already deleted the remote branch when #6073 merged (delete_branch_on_merge), so there is no remote transaction.

    Candidate Audited OID Retained by
    worktree .worktrees/issue-6067-failed-child-text + branch fix/issue-5947-native-ui fa918c6e07f3fdf821e4349e34fcdccc89e41a6a refs/pull/6073/head (merged #6073 → 775a4151d)

    Read-only preflight.

    • The tree is clean. Its only ignored state is verification output from this session: node_modules/, .next/, test-results/, artifacts/, public/sandbox/, server.mjs, next-env.d.ts and tsconfig.tsbuildinfo.
    • No index flags are set, and no process has its working directory in the worktree.
    • Render native chat UI with state retained through settlement #6073 is closed and merged into main at this exact head, and refs/pull/6073/head advertises it.
    • No open PR uses this head or branch. Active-workflow queries for the branch and the head returned 0.
    • The strict guard preflight returned ok.

    Before mutating, the checks are repeated under the gate.

  14. 136 remaining items

  15. BunsDev commented on Nov 27, 2026

    @BunsDev
    MemberAuthor

    Owner disposition — .worktrees/issue-6482-needs-you-menu-cody (retire)

    Val authorized retiring this unit on 2026-11-26. Nova prepared it; removal runs from Val's terminal.

    • Branch: fix/issue-6482-needs-you-menu-cody, HEAD ea2f41fbcf618cc80a1b6ab6ce03b912a347ea26, contained in origin/main (b4f2eee65). No unique commits, no remote branch, no PR.
    • Unique work: 3 uncommitted paths (AppModel.swift, ChatsHomeView.swift modified; ChatStatusMenuUITests.swift untracked). Superseded: Keep iOS chat filters on one row and share the Duo navigation rail #6533 (f3a22518c) closed iOS: keep filters on one row and share the Duo landscape side rail #6482 with the single-row status menu; Always list Needs you in the iOS status filter menu #6574 (b4f2eee65) landed the one remaining behavior (Needs you always listed).
    • Archive: primary checkout artifacts/issue-6482-needs-you-menu-cody/ — uncommitted.diff, full copies under files/, SHA256SUMS (sha256 of the manifest 3b94606612979cc4…; all entries verified and byte-equal to the live files).
    • Lock: worktree-autolock from 2026-11-16 for the uncommitted path; lifted only after the archive is re-verified.
    • Removal: artifacts/issue-6482-needs-you-menu-cody/retire-worktree.sh re-checks the archive, HEAD, exact status and origin/main containment, discards only the archived paths, runs worktree-guard.mjs --strict-worktree-remove … --retained-by-remote-branch origin refs/heads/main, then git worktree remove without --force and git branch -d. It stops and preserves on any drift.
  16. BunsDev commented on Nov 27, 2026

    @BunsDev
    MemberAuthor

    Retired — .worktrees/issue-6482-needs-you-menu-cody (follow-up to the disposition above)

    Val ran artifacts/issue-6482-needs-you-menu-cody/retire-worktree.sh on 2026-11-26. Postconditions checked afterwards:

    • Worktree no longer registered in git worktree list --porcelain; directory absent.
    • git show-ref --verify refs/heads/fix/issue-6482-needs-you-menu-cody exits 1 (local branch deleted). There was no remote branch.
    • HEAD ea2f41fbc stays retained on main; the archive in artifacts/issue-6482-needs-you-menu-cody/ still passes shasum -a 256 -c SHA256SUMS.
  17. BunsDev commented on Nov 27, 2026

    @BunsDev
    MemberAuthor

    The eight-hour watch ended at 7:35 a.m. Central on November 26. All 100 observations included the same three active writers, including the deadline observation. The cleanup never acquired the repository maintenance lock and retired 0 of the 25 approved branches. It made no remote branch or worktree changes.

    At follow-up verification, Git listed 107 local branches and 47 worktrees, including the #5748 checkout. All 25 approved local heads matched their recorded full commit IDs, all 25 local recovery tags passed signature verification and resolved to those commits, and none of the branches was checked out. Git could not resolve github.com for a fresh remote tag check.

    Resume when coven maintenance status --json shows no writers or maintenance owner and git ls-remote origin refs/heads/main succeeds. Acquire the maintenance lock, refresh main, inventory refs and worktrees, then repeat the per-branch ownership, PR, CI, signed remote tag and repository guard checks. Delete only eligible local refs using their approved full OIDs and verify the exact inventory difference before releasing the lock.

    To restore a retired branch, find its name, tag and full commit in the signed tag map and approved heads. Run git fetch --no-tags origin tag "$tag" and git verify-tag "refs/tags/$tag". After confirming git rev-parse "refs/tags/$tag^{commit}" equals the approved full OID, run git branch -- "$branch" "$oid".

  18. BunsDev commented on Nov 27, 2026

    @BunsDev
    MemberAuthor

    The November 27 retry verified all 25 recovery tags through GitHub’s REST API while local Git DNS was unavailable. Each remote ref identified the exact annotated tag object whose signature was verified locally, and each remote tag resolved to its approved commit. All 25 local branches still matched those commits and were outside every registered checkout.

    I requested the repository maintenance lock directly. Three writers continued to hold leases through its drain timeout. The request released its fence, and the coordinator reported no remaining maintenance owner. This retry retired zero branches. The inventory was 107 local branches and 47 worktrees. Resume with a fresh lock acquisition and repeat the ownership, activity, recovery, and ref checks under the lock before deleting eligible local refs.

  19. BunsDev commented on Nov 27, 2026

    @BunsDev
    MemberAuthor

    Owner disposition — .worktrees/issue-6482-ios-filter-rail-nova (retire)

    Val authorized retiring this unit on 2026-11-27. It was kept after #6533 for release traceability (#6482 comment 7034169148); that is now carried by refs/pull/6533/head plus the archive below. Nova prepared it; removal runs from Val's terminal.

    • Branch: fix/issue-6482-ios-filter-rail, HEAD c0d7dd4ff126314c40e6bab04ee3fc7251dc5727, contained in origin/main and in refs/pull/6533/head (232f3b184). No remote branch.
    • Tracked changes (22 paths): all contained in Keep iOS chat filters on one row and share the Duo navigation rail #6533's merged head: 20 byte-identical, PermissionsView.swift and AppModel.swift reverse-apply cleanly against it.
    • Untracked (16 files): an older FilterRailUITests.swift (superseded by the merged one) and docs/design/evidence/ios-filter-rail-6482-2026-11-12/ (15 files, not on main).
    • Archive: primary checkout artifacts/issue-6482-ios-filter-rail-nova/: status-at-archive.txt, uncommitted.diff, untracked/ byte copies, SHA256SUMS (manifest sha256 f1f15b1907f9ba45…, 19 entries, verified).
    • Lock: worktree-autolock from 2026-11-13 for uncommitted paths; lifted only after the archive is re-verified.
    • Removal: artifacts/issue-6482-ios-filter-rail-nova/retire-worktree.sh re-checks HEAD, exact status, the tracked diff, every untracked file and origin/main containment, discards only the archived state, runs worktree-guard.mjs --strict-worktree-remove … --retained-by-remote-branch origin refs/heads/main, then git worktree remove without --force and git branch -d. Read-only checks pass as of main d67f1559a.
  20. BunsDev commented on Nov 27, 2026

    @BunsDev
    MemberAuthor

    Retired — .worktrees/issue-6482-ios-filter-rail-nova (follow-up to the disposition above)

    Val ran artifacts/issue-6482-ios-filter-rail-nova/retire-worktree.sh on 2026-11-27. Postconditions checked afterwards:

    • Worktree no longer registered in git worktree list --porcelain; directory absent.
    • git show-ref --verify refs/heads/fix/issue-6482-ios-filter-rail exits 1 (local branch deleted). There was no remote branch.
    • HEAD c0d7dd4ff stays retained on main and refs/pull/6533/head; the archive in artifacts/issue-6482-ios-filter-rail-nova/ (including the 2026-11-12 design evidence) still passes shasum -a 256 -c SHA256SUMS.
  21. BunsDev commented on Nov 27, 2026

    @BunsDev
    MemberAuthor

    Owner disposition — .worktrees/issue-6509-model-metadata (retire)

    Val authorized retiring this unit on 2026-11-27. It is the integration worktree #6533 merged from, kept afterwards for release traceability (#6482 comment 7034169148); refs/pull/6533/head now carries that. Nova prepared it; removal runs from Val's terminal.

    • Branch: fix/6482-qualified-duo, HEAD 232f3b184a6521f546c2b48fb29c3f889c744e29 = refs/pull/6533/head. Keep iOS chat filters on one row and share the Duo navigation rail #6533 merged as f3a22518c (squash), so HEAD is not an ancestor of main. The remote branch was already auto-deleted.
    • State: clean (no tracked or untracked changes), unlocked, no artifacts/, FETCH_HEAD holds only main. Ignored files are generated only: node_modules/, tsconfig.tsbuildinfo, the XcodeGen project, built Resources/, .DS_Store. Nothing to archive.
    • Owning issue: Correct current GPT family labels and context metadata in Cave #6509 (closed); the worktree name predates its reuse for iOS: keep filters on one row and share the Duo landscape side rail #6482 integration.
    • Removal: artifacts/issue-6509-model-metadata/retire-worktree.sh re-checks HEAD, branch ref, clean status, no lock, the exact ignored set and refs/pull/6533/head, runs worktree-guard.mjs --strict-worktree-remove … --retained-by-github-pr origin OpenCoven/coven-cave 6533 --expected-base main, then git worktree remove without --force. Because the PR was squash-merged, the branch is deleted with git update-ref -d refs/heads/fix/6482-qualified-duo 232f3b184… (only if it still equals the audited OID). Read-only checks pass.
  22. BunsDev commented on Nov 28, 2026

    @BunsDev
    MemberAuthor

    Owner disposition: November 28 local batch (retire 9 worktrees, 58 local branches)

    On 2026-11-28 Val asked Nova to reduce worktrees and branches. He then approved this exact batch and chose to have Nova run it. The profile is manual and local-only: no remote ref is deleted, no worktree is force-removed, and nothing is pushed. The audited main is d67f1559a21509ae7b9a0a9c6a634f7150363014. The inventory before the run was 47 worktrees and 108 local branches.

    The script is artifacts/curation-20261128/retire-batch.sh in the primary checkout. Just before each change, it re-proves the unit:

    • Worktrees: exact HEAD and branch, registered, unlocked, no operation in progress, no tracked or untracked changes, and no assume-unchanged entries. The head is retained by main or by the merged PR's refs/pull/<n>/head, no open PR uses it, and worktree-guard.mjs --strict-worktree-remove passes. Ignored evidence (artifacts/, playwright-evidence/, test-results/) is copied to artifacts/curation-20261128/archive/<name>/ and checked against a SHA256SUMS manifest. Removal uses git worktree remove without --force.
    • Branches: the ref is not symbolic, its tip equals the audited OID, it is not checked out anywhere, it is retained as above, and no open PR uses it. Deletion runs git update-ref -d <ref> <oid> (compare-and-delete), then confirms show-ref exits 1.

    The repository maintenance lease is still not available, because the same three writers hold it. This batch follows the Nov 27 per-unit pattern instead: strict guard plus compare-and-delete. Since gh 2.106.0, gh api on a PR endpoint prints an agent-only hint: to stderr when CLAUDECODE/AI_AGENT is set. The strict guard treats any stderr as unexpected and refuses. Val chose to have Nova run with those two variables unset. No guard variable is bypassed. The guard fix is a follow-up.

    Worktree HEAD Branch Retained by
    .worktrees/issue-6540-lane-c c1263857ceb0884549ad7970f23192b4560afb81 - main
    .worktrees/4781-local-chat-acceptance b92929990c5510eab6113610e8f18389e8ffc630 fix/4781-local-chat-acceptance #6549
    .worktrees/issue-5887-reflection-replay 9de0eb731995fc3dbfe3afc05984ca504b094d96 test/issue-5887-reflection-replay #6536
    .worktrees/issue-5981-watcher-name 69b98cf49fb56b98f225562328426512e521ef9a fix/issue-5981-recovery-watcher-name #6505
    .worktrees/issue-6511-setup-modal 9dbd94d4326327cdabdfd38fee5efb484ca3fd84 fix/issue-6511-setup-modal #6512
    .worktrees/issue-6392-shard-evidence c8a4846f025d7f5dc56d41165efd36dbaaa79709 fix/issue-6392-shard-evidence #6414
    .worktrees/issue-6371-credentials-rate-limits 31729a205a6f19c17205414a867faf970b606b8b fix/issue-6447-cache-namespace #6449
    .worktrees/issue-6493-runtime-chat-scope 3941b31d3fdc24bac765cf3e471e3da4d33c46ee fix/issue-6493-runtime-chat-scope #6497
    .worktrees/goal-6369-class2 15e0f480cde5d1ad211fad7a3628fbb269d1490e goal/6369-class2 #6380
    58 local branches
    Branch OID Retained by
    feat/issue-5748-hitch-capture cc778ffd8cc2f0dd2abeeb9338b0624d7e0a2bda #6550
    feat/issue-5980-quick-chat-shortcut 24699c77f53a31cf56a7afccf4d01f5225a3ea0d #6535
    feat/issue-6458-guided-first-use d4f7c99f98073a717550e415b2024ae8b8ea37e3 #6462
    feat/issue-6485-short-onboarding 4a5058e51b8b08a746000f7061d0f17f186500cc #6489
    fix/4781-local-chat-acceptance b92929990c5510eab6113610e8f18389e8ffc630 #6549
    fix/6514-recovery-fixture 5255331a638f3c3b3be3a6b48aca7080cf71f8a0 #6553
    fix/issue-5981-loopback-recovery-acl c75238985d546cfeb60df154a2b883fbb0a4a98b #6503
    fix/issue-5981-recovery-watcher-name 69b98cf49fb56b98f225562328426512e521ef9a #6505
    fix/issue-5981-updater-manifest-notes bbc4f89d393fbe4d88d731ad39f257ee2b09cb48 #6504
    fix/issue-6211-release-toolchain ace7dd9b5ea34092be3be4a57f05434d6db43674 #6513
    fix/issue-6357-analytics-agree 57730fd23f7fbedecfd4e7dca5f4616aabe5db3f #6361
    fix/issue-6369-response-proof a63aef63101a36f0ff173bef76bf5b0ba370644c #6409
    fix/issue-6370-upstream-deadlines 5af9839b261da2d76198d0b9c7a8710d416c5937 #6394
    fix/issue-6391-literal-underscores ebaba986ee6d3275bafd8979cd7e56b96a6b49dd #6429
    fix/issue-6392-shard-evidence c8a4846f025d7f5dc56d41165efd36dbaaa79709 #6414
    fix/issue-6403-sidecar-headroom cc779665686645cec536d8d581569ef8a80f316b #6575
    fix/issue-6419-claude-retry a398e32cb1a880ba05ee1bc969d34a2b8a2e68b3 #6420
    fix/issue-6427-chat-filter 91c3cbc41920bfaa6c15072169d740a7119ce249 #6434
    fix/issue-6440-effective-read-only 88fe4312f24ded5151e53d698c40f1af62b28aaf #6448
    fix/issue-6447-cache-namespace 31729a205a6f19c17205414a867faf970b606b8b #6449
    fix/issue-6451-merge-review ba90c22d2492018a0ccf9f9d54d52e70ea4221c0 #6460
    fix/issue-6452-regenerated-manifest 362f7ade0b43fc9aa1e2bab3e20a9402525747c9 #6463
    fix/issue-6467-exclude-build-artifacts 3fcc1a3314970c7c9c803c88d68a5533158c35bd #6468
    fix/issue-6473-supreme-access-display 3e569d695ccc191ef4ad6b0eef008ce3c833cfda #6527
    fix/issue-6487-revoked-thread-cache 4605444399e2bb1432c7cf93d57d7d646093a294 #6500
    fix/issue-6493-runtime-chat-scope 3941b31d3fdc24bac765cf3e471e3da4d33c46ee #6497
    fix/issue-6502-loopback-grants 0c20391fb3a30558627c2926fc39b4d2ca46edbc #6525
    fix/issue-6509-model-metadata 053e6c207cae0317e4617e3f5a6b62e4b8157982 #6510
    fix/issue-6511-setup-modal 9dbd94d4326327cdabdfd38fee5efb484ca3fd84 #6512
    fix/issue-6516-mode-address 3c80152c26d45445411f7ec204724bc2e05986c8 #6522
    fix/issue-6517-webkit-hydration-wait 943d0ca1cf7864dc6226335d7c24bc2a1439c23b #6520
    fix/issue-6518-serve-port-scope c13b69b96d54594b1de10c1d96fca468fec5c23d #6523
    fix/issue-6526-ios-supreme-access f334eeece78ee8a648e99dcdcde79d648f8eaf9e #6529
    fix/issue-6538-mobile-verification 1b98f35b6827c3b9e0c534085e0080cd72d02347 #6558
    fix/issue-6561-review ed797b357b1619a7bd3bf826e340ddb586625bc8 #6564
    fix/issue-6562-slice-3 7006b1773480161a040823b11de9c87f7fa9f4f2 #6573
    fix/issue-6562-stale-running 0d5d822c9b74296af6073140dbe06039884563e8 #6572
    fix/issue-6562-task-run-recovery 592122e6f2cb506ab4ca53fa4dd0e3913c73f2f3 #6565
    fix/issue-6562-task-run-review d104818a5069acf4a6e827d5acd277ffb59bdd18 #6571
    fix/remove-desktop-sidebar-version b2a29ce959c0cf7845075b458279e64b78caccc7 #6546
    fix/settings-update-noise e7505563f6ab8f4e771d134d777110a27d7696c1 #6547
    fix/setup-guided-choices 38b7169ff67eef41fd9539098525d80cc67c2720 #6548
    goal/6368-class1 44c7b5d3bbd7696012f2b5495f4302b8e09c2216 #6379
    issue-6539-launcher 8bba0f4e4722ab80b12cdac68a66e97817a626fc #6552
    issue-6539-model-cache 195ffcb68d6ca3b5be3a3d3f370ed2404af018fe #6554
    issue-6539-project-file-smoke dd945388e7ab470363e6cddd7a0a79be3fc01cdd #6551
    issue-6539-webhook 334321998660b0847cfa3f903a8ac012c75f32b4 #6555
    sweep/issue-6538-lane-a-dead-code 000902befbdc82928375e7cbfb1fcbb065885a04 #6543
    sweep/issue-6538-lane-a-dead-css 56af86c18ee7e51e7b0b5695dddf2128b6ebf66b #6544
    sweep/issue-6540-lane-c 08b95320b8623b7c34ec9307e0c79d8351c12295 #6542
    test/issue-5887-reflection-replay 9de0eb731995fc3dbfe3afc05984ca504b094d96 #6536
    test/issue-6071-canary-20261104 21b07b4d6a2fa4c1df148242bec68c37570bc6c7 #6390
    test/issue-6402-qualification-01a1bee5 fea63da7a524d7a78e22b63e414ef9e6023ffe3c main
    test/issue-6521-prefill-qualification 7ca26b65c46d76682888d139bbf155e88fae3db1 #6528
    test/issue-6530-write-scope-realpath 4fa290a7bcf37e8dbd4f2df42df8d8545e91f55f #6532
    worktree-agent-a5eb532e58ec8288a 57b44a3a8fd53c8c3dee85587ef52513ef513547 main
    worktree-issue-6331-black-pill-rebased 57b44a3a8fd53c8c3dee85587ef52513ef513547 main
    goal/6369-class2 15e0f480cde5d1ad211fad7a3628fbb269d1490e #6380

    Kept, with reasons: dirty or locked units; open PRs (#5932, #6578); the #6403, #6514, #5845, #5748 and #6541 units their issues still name; Lane A, which Val retains on #6538; the echo-threads checkout, which has a live process; and branches with no merged-PR or main retention (no unique-work proof).

    To restore a branch: git fetch origin refs/pull/<n>/head (or use main), then git branch -- <branch> <oid>.

  23. BunsDev commented on Nov 28, 2026

    @BunsDev
    MemberAuthor

    The concurrent 28 November batch removed .worktrees/issue-5981-watcher-name and later deleted its branch. Lane D restored refs/heads/fix/issue-5981-recovery-watcher-name only after verifying the ref was absent. Fresh local and remote reads confirmed that branch and refs/pull/6505/head both resolve to 69b98cf49fb56b98f225562328426512e521ef9a. The directory and registration are absent. The paginated commit association returned only merged #6505, with no next page. Fetched origin/main was d67f1559a21509ae7b9a0a9c6a634f7150363014.

    Comparing registered paths before and after gives 47 → 39, with nine removals by the separate batch and one addition (issue-6200-marketplace). The result is 11 above the budget of 28. Lane D removed zero worktrees. The separate batch ran the strict guard and used ordinary Git removal. Lane D did not hold the removal lease.

    Recovery remains incomplete. The batch’s archive filter excluded node_modules/, src-tauri/gen/, src-tauri/target/ and the three .DS_Store files. Its archive contains no watcher entry. Both designated watcher recovery directories were empty, and Time Machine reported no local Data snapshots or configured destination. The retirement owner needs a pre-removal backup to verify the original files. #5981 remains open for Windows device acceptance.

    After Nova’s batch finished, Lane D rechecked both refs. The restored watcher branch and the live #6505 pull ref still matched the authorized SHA. Nova’s final archive list identifies six other worktrees and supplies no watcher backup. Batch closeout

  24. BunsDev commented on Nov 28, 2026

    @BunsDev
    MemberAuthor

    Retired: November 28 local batch (follow-up to the disposition above)

    Nova ran retire-batch.sh --apply at main d67f1559a, after a clean --check pass. Result: 9 of 9 worktrees removed and 58 of 58 local branches deleted, with 0 preserved and no failed postconditions. The script's log is artifacts/curation-20261128/run-20261128T142558Z-apply.log.

    • Each removed worktree is no longer registered and its directory is gone. Each deleted branch's show-ref exits 1.
    • Archives were verified afterwards with shasum -a 256 -c. They are under artifacts/curation-20261128/archive/, one folder each for goal-6369-class2, issue-6371-credentials-rate-limits, issue-6392-shard-evidence (430 files), issue-6493-runtime-chat-scope (270 files), issue-6511-setup-modal and issue-6540-lane-c.
    • No remote refs were touched. origin/goal/6369-class2 is still at 15e0f480c.
    • Inventory went from 47 worktrees and 108 local branches to 39 worktrees and 52 local branches. A concurrent session added .worktrees/issue-6200-marketplace (refactor/issue-6200-marketplace) during the run, so 38 + 1 = 39. That leaves the repository 11 over the 28 budget.

    Follow-up: since gh 2.106.0, worktree-guard.mjs refuses every PR-retention check inside an agent session, because gh api writes an agent-only hint to stderr. A guard fix with a regression test is needed so that agent runs don't have to unset CLAUDECODE/AI_AGENT.

  25. BunsDev commented on Nov 29, 2026

    @BunsDev
    MemberAuthor

    November 29 local batch: authority and exact candidate set, recorded before mutation

    Val authorized this cleanup in the current Claude Code session (Nova): "prune worktrees and branches comprehensively and intelligently". For the strict-guard run, Val chose to unset CLAUDECODE/AI_AGENT, as approved on Nov 28 (the gh 2.106 stderr-hint false positive is still unfixed). The profile is manual and local-only: no remote ref is deleted, no worktree is force-removed, and there is no WT_GUARD_* bypass. Audited main: feea6b62b8499cd114066f0d9ad7bae4b750955b.

    Script: artifacts/curation-20261129/retire-batch.sh, the Nov 28 script plus a contains:<pr> proof. That proof requires the local tip to be an ancestor of refs/pull/<pr>/head for a PR merged into main. --check passed for every candidate: run-20261129T085210Z-check.log.

    Worktrees to remove (4), all clean, unlocked, no cwd processes, strict guard OK:

    Local branches to delete (11): the three above, exact PR heads; plus eight tips contained in merged PR heads (0 commits ahead): fix/issue-6353-client-heap (#6354), fix/issue-6368-upstream-false-success (#6379), fix/issue-6383-artifact-pins (#6384), fix/issue-6402-core-recovery-01a1af02 (#6426), fix/issue-6442-history-state (#6444), fix/issue-6560-confirm-folder-inline and fix/issue-6560-review (#6563), fix/issue-6561-board-hide-filtered-sections (#6564).

    Preserved, with reasons:

  26. BunsDev commented on Nov 29, 2026

    @BunsDev
    MemberAuthor

    Retired: November 29 local batch (follow-up to the pre-mutation record)

    Nova ran retire-batch.sh --apply at main feea6b62b, after a clean --check pass. Result: 4 of 4 worktrees removed and 11 of 11 local branches deleted, with 0 preserved and no failed postconditions. The log is artifacts/curation-20261129/run-20261129T085348Z-apply.log.

    • Each removed worktree is no longer registered and its directory is gone. Each deleted branch's show-ref exits 1. git worktree prune --dry-run reports nothing stale.
    • The issue-6538-lane-a-dead-code evidence (artifacts/, test-results/, 13 files) is archived under artifacts/curation-20261129/archive/. It verified with shasum -a 256 -c.
    • No remote ref was deleted by an agent. origin/fix/dev-shell-module-factory was auto-deleted on merge, and refs/pull/6582/head retains b464f94c4. Only that one stale local tracking ref was removed, by compare-and-delete. No other tracking refs are stale.
    • Inventory went from 40 worktrees and 53 local branches to 36 worktrees and 42 local branches, which is 8 over the 28 budget. Everything that remains is preserved for the reasons in the pre-mutation record.

    The guard follow-up is unchanged: worktree-guard.mjs still needs to strip CLAUDECODE/AI_AGENT from its gh child env, with a regression test.

  27. BunsDev commented on Nov 29, 2026

    @BunsDev
    MemberAuthor

    November 29 batch 2: owner lock release, recorded before mutation

    In the current Claude Code session (Nova), Val approved releasing the locks on four locked worktrees and retiring them: "i approve, please proceed with your recommendations". Each one's commits are retained by a merged PR or by main, and each holds only leftovers. Every leftover, the lock reason and the tracked diff are archived first. Each archive is verified with cmp against its source and with shasum -a 256 -c, under artifacts/curation-20261129/archive/<name>/.

    Worktree Head Retained by Leftovers (archived, then removed)
    issue-6451-merge-review 762ac484f merged #6499, exact head none (clean); lock by Codex thread 01a1d3b4…, released by Val
    issue-6366-daemon-banner-race a883fe06a merged #6375, exact head AGENTS.md heading level (#→##), a next dev rewrite
    issue-5840-viewport-verify e1cc80197 merged #6323, exact head __mobile.config.ts, __viewports.config.ts (local-only verification configs)
    issue-6421-quick-chat-ux bc1cf2396 (detached) main four scripts/.mobile-process-* temp dirs from stopped test processes

    Also in this batch: this session's own .worktrees/worktree-guard-agent-hint (5d5157207, merged #6585). Branches deleted after their worktrees are removed: fix/issue-6484-signal-recovery, test/issue-6366-daemon-banner-race, test/issue-5840-viewport-verify, fix/worktree-guard-agent-hint.

    Same profile as batch 1: manual, local-only, no remote deletion, no --force, the strict guard on every removal, and no WT_GUARD_* bypass. #6585 (the guard's agent-hint fix) merged as 831bcc5a1. The primary checkout still runs the older guard, so this run keeps the approved env -u CLAUDECODE -u AI_AGENT. The other 16 locked worktrees hold unlanded work and are not touched.

  28. BunsDev commented on Nov 29, 2026

    @BunsDev
    MemberAuthor

    Retired: November 29 batch 2 (follow-up to the pre-mutation record)

    The leftovers were archived and verified, then removed. Each of the four worktrees was then confirmed clean and its lock released. Nova then ran retire-batch.sh --apply after a clean --check. Result: 5 of 5 worktrees removed and 4 of 4 local branches deleted, with 0 preserved and no failed postconditions. The log is artifacts/curation-20261129/run-20261129T173045Z-apply.log.

    Inventory is now 32 worktrees and 39 local branches, 4 over the 28 budget. With batch 1, the day's total is 40→32 worktrees and 53→39 branches. #6584 is fixed by #6585 (831bcc5a1): future agent-run batches no longer need env -u CLAUDECODE -u AI_AGENT once the primary checkout runs the new guard. The remaining 16 locked worktrees hold unlanded work and need their owners' dispositions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

lane:releasestate:needs-owner

Type

No type

Projects

  • Status
    Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions