Skip to content

fix(windows): delete again succeeds after a held file is released - #34058

Merged
brennanb2025 merged 24 commits into
mainfrom
brennanb2025/rm-metadata-last
Oct 27, 2026
Merged

brennanb2025 merged 24 commits into
mainfrom
brennanb2025/rm-metadata-last

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 10 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1100 $\color{#cf222e}{\Huge{\mathbf{−}}}$​430 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​670
Prod 29 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​965 $\color{#cf222e}{\Huge{\mathbf{−}}}$​329 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​636

When another program keeps a checkout file open on Windows, Git can unregister the checkout before its folder is gone. Closing that program and choosing Delete again then leaves the workspace behind because the remaining folder no longer proves that it belongs to Git.

Remove checkout files before the checkout marker, remove only the empty root, then release target Git administration. Failed Delete keeps its workspace row and close-and-retry message even when Git marks the markerless checkout prunable. A refused retry and ordinary refresh preserve the existing failure until a successor deletion is accepted or existing cleanup ends it. Delete again checks current ownership, locks and force. Nonempty replacement folders remain protected; no saved identity or wire field is added.

Owning-directory discovery supports ordinary, bare, linked and separate Git layouts, including owning-directory junctions and aliases. Candidate/backlink proof retains its address boundary and accepts only structured missing-path observations. Selected-WSL metadata reads normalize missing-path diagnostics in the existing subprocess while preserving successful contents and refusing unknown errors. Native Windows uses metadata-last removal; POSIX, WSL, SSH and folder-workspace deletion routes retain their existing paths. Marker-last removal and the nonrecursive root operation are intended differences from the common pattern.

Follow-up to #33722 (merged); tracked in #33722. Full review path is required because this change governs deletion ownership, ordering and recovery. Six review rounds are complete. Fixes preserve supported owning-junction discovery, accurate retry advice and failed-row visibility through refusal/refresh. No additional round or production change is proposed.

Independently accepted Windows evidence covers previous-build setup/default terminals through graceful upgrade, browser-held failure, failed/pending restart and released-browser retries on 3a603bf (setup7daa1fa); empty-root retry, terminal-open normal Delete/unrelated workspace continuity and both owning-junction orderings on 85df9a9; and refusal → authoritative Git refresh → refusal on dcb6486, preserving the durable failure, visible row/Delete, replacement sentinel and Git identities. Separate desktop/runtime current-force contracts passed on143da463 (exit0,2passes), through refusal, persisted failure/reload and explicit-force completion. Real-Git long-path desktop Delete passed on242d4fc8 (exit0,1pass), verifying root/admin/registration/default-policy branch and host-qualified metadata removal with a file beyond 260 characters. The handler tests have store/lifecycle fixture seams; they do not establish rendered UI or durable Store behavior. Earlier failed fixture and invalid driver attempts remain excluded and retained; screenshots and underlying receipts, rather than driver exit0, support UI acceptance.

The sixteen-row E4-tsapi admission/registration contract passed on 85 with exactly one loader-provider substitution and unchanged thresholds: wrapper 12≤16, proof calls 12≤12; canonical operations ≤10 per proof is a separate bound. Realpath 0 limits its proof measurements to the lexical corpus. Real native Git/filesystem, injected EBUSY and substituted infrastructure do not prove WSL, physical locks, packaging, branch cleanup or latency/CPU/heap. E3 retains its original isolated-helper/injected-lock limits. Neither E3 nor E4 nor any accepted native/current-force/long-path flow will be rerun.

Selected-WSL CLI integration independently passed on 5b5dd7e74f7f3365fba123d287e71f6b06ad457e. The unchanged contract ran once as native Windows Node under the isolated orcaqa run: Node, wrapper and terminal exited 0; all 13 assertion steps succeeded with zero failed assertion events. All 14 source pins matched before/after, and the diagnostic helper was separately qualified around the same process. Real selected-WSL reads preserved exact bytes and classified genuine absence correctly. Negative cleanup refused before the supplied watcher callback and preserved candidate/marker/sibling; positive production cleanup removed only the genuinely pruned orphan candidate, preserving owner and unrelated registration. The independent audit verified 54 exact originals and 72 comparisons without disagreement.

This proves CLI transport/filesystem/proof/owner-local cleanup composition, not rendered WSL Delete or desktop/runtime force/provenance authorization. Historical server build 7039 supplied transport only; the proof imported exact 5b5d source. Setup required official run-only Python and a same-file loader URI correction; frozen scripts-on install exited 0, while the optional cpu-features build failed and earlier setup failures remain recorded. The serialized lease lost timezone formatting; actual execution was independently within the original explicit UTC admission. 27/28 real-config hash observations were unchanged; Neil's .claude.json changed with no established cause, and contents were not read. Scoped graceful cleanup verified zero recorded survivors/listeners; no machine-wide claim is made. Ticket 2704 is released, and the lead and auditor terminals are closed.

These are actual run heads. Earlier scoped evidence carries through reviewed production 7ddb6b971678e547178adfb5ecbf53775d1fffcb; dcb6486c7f07019ad2165eb42b71e1cfb4f8f6f5 adds a test comment. Main merge 43d30cd9038f181014e138d00a937436336ffe65 preserves all 37 then-owned paths. Test-only 17858a408ae8a8f98be0373e767f0a39568f1419 preserves all 29 production files; test-only 143da corrects the checkout-byte invariant; test-only 38f1 updates obsolete native-route fixtures and the ESM fault fixture. Incoming-main merge 900539ea18c3d6dd5e5f51b5ebb6ce2a3340a6a9 contains main c23 and preserves all 38 then-owned paths, with zero own overlap. Test-only ea829 replaces obsolete fixtures with the real long-path case and corrects two runtime assertions; test-only 242d4fc8a8e4637f0ae1b5c042bc0834129ca5b5 repairs its runner namespace/import seam. All29 production paths remain unchanged through 242d. These merges and test/nonshipped commits do not constitute new whole-app runs.

Current clean head 5b5dd7e74f7f3365fba123d287e71f6b06ad457e includes the permitted conflict-blocking main merge for #34304. The independent merge audit identifies only main's diagnostic import/call in the selected-WSL filesystem adapter; the other 28 production files and all 10 tests match 242d. It preserves this PR's ownership type, raw stderr and definitive absence classification. Native evidence carries without reruns. The fourteen contract source inputs include the merged adapter; the incoming diagnostic helper is a separate before/after pin, outside the immutable contract's fourteen-source receipt.

The complete PR spans 39 paths:29 production files, 965 additions/329 deletions;10 test files, 1100 additions/430 deletions. The historical older-base owned-path count 967/330 production includes incoming main's +2/-1. The programmatic LoC header was regenerated from the current GitHub file list. Test-only maintenance updates inherited runtime fixtures to current native contracts, makes the unknown-error filesystem fixture spyable and repairs the long-path runner seam; it adds no production behavior.

Deferred P3 concerns remain explicit: inherited apply rejection can omit a concurrent lock-loss warning; a narrow external marker-loss race can stop terminals before a later safe refusal. The latter has no proven new main-to-PR user regression or data-loss path, and is neither fixed nor wholly refuted. The duplicate-import CI issue was fixed in 3f1ca14171a8288f4edf1108bd2997347916d78f. The three bot threads were resolved with their dispositions recorded; thread resolution does not turn the two deferred concerns into fixes.

Current source 5b5d is clean and CI passes. The PR is out of draft; final mergeability is checked by the readiness gate. Native cleanup/config receipts retain their historical scope; WSL cleanup is separately qualified above. Local focused tests could not collect without built workspace packages, so no local test pass is claimed; normal commit hooks passed.

Orca Worker and others added 8 commits October 25, 2026 18:20
…is held open

Node's async recursive rm retries every nested entry separately and orphans
sibling walkers when it rejects, so deleting a workspace holding a live
browser profile multiplied filesystem work per directory level until the
main process hung. Delete Windows host trees with a walker that retries
whole passes from one shared budget and leaves nothing running on failure.

Also bound and log detached worktree removal, and fail a file transaction
whose proper-lockfile lock is compromised instead of throwing from its timer.
…om walker

Replace the hand-rolled tree walker with Node's own recursive rm and no
per-entry retries. Async rm gives each nested entry its own retry counter and
never stops siblings, which is what multiplied the work; with retries off each
pass is one bounded walk, and a transient Windows lock repeats the whole pass
from the existing 250/500/1000/2000 ms budget, checking the job's signal
between passes.

A failed delete now names the file another program holds open instead of
Node's EBUSY/EPERM text. Drop the 30-minute background deadline. The lost-lock
error no longer embeds the library's message and says the write may or may not
have been saved.
@brennanb2025
brennanb2025 marked this pull request as ready for review October 26, 2026 19:54
@brennanb2025
brennanb2025 changed the base branch from OrcaWin/fix-windows-rm-retry-storm to main October 26, 2026 20:51
@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3988dd92-1399-41bb-8397-ac09f434262d
Commits

Reviewing files that changed from the base of the PR and between fc357fe and 81fd23b.

Files selected for processing: 1
  • src/main/runtime/runtime-interrupted-local-worktree-removal.test.ts
Files skipped from review as they are similar to previous changes: 1
  • src/main/runtime/runtime-interrupted-local-worktree-removal.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.

Walkthrough

The changes add native Windows worktree removal with repeated authorization checks and host-side checkout deletion. They expand filesystem access for Git metadata and orphan-directory proof. Desktop and runtime removal paths now use the native flow where applicable. Failed-removal records, retries, and listing behavior also change, with tests covering removal failures and replacement checkouts.

Priority: Normal

Merge Risk: Low · up to 81fd2

The held-root retry test covers failure and recovery, and the CI import issue is fixed. Two narrower risks remain: callers may miss a lost-lock warning, and a rare marker-loss race may stop terminals before deletion is refused. These warrant owner awareness or follow-up.

Pre-merge checks: Passed 3 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Description check Warning The description contains detailed change and validation information, but it does not follow the required template. It omits the required ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, A… Rewrite the description using every template heading. Add a plain-language ELI5 summary, structured change and rationale sections, an explicit linked issue entry such as Fixes #33722 or the applicable issue, Visual Proof with N/A and a …
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the primary Windows retry-removal fix.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description contains detailed change and validation information, but it does not follow the required template. It omits the required ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, AI Disclosure, Review, Agent skill upstream boundary, Notes, and Checklist sections. The issue reference is mentioned in prose but is not provided in the required Linked Issue section.

Resolution

Rewrite the description using every template heading. Add a plain-language ELI5 summary, structured change and rationale sections, an explicit linked issue entry such as Fixes #33722 or the applicable issue, Visual Proof with N/A and a reason if no UI change exists, a Testing section with completed checklist items and platform coverage, AI disclosure or the applicable internal-contributor omission, Review and Agent skill boundary sections, Notes covering the requested compatibility areas, and the completed Checklist.

Finishing Touches: 💡 1
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🛠️ Fix failing CI checks: 💡
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🧹 Nitpick comments: 1
src/main/runtime/runtime-registered-local-worktree-removal.ts: 1

138-163: Trivial · Maintainability & Code Quality · Quick win

This preflight duplicates assertRegisteredLocalWorktreePreflight.

Lines 138-168 match assertRegisteredLocalWorktreePreflight in src/main/ipc/worktrees/removal/registered-local-worktree-preflight.ts, including the orphan-compatible catch. Any fix to native refusal handling must then be made twice. Call the shared helper instead.

Proposed refactor
-  try {
-    if (usesNativeWindowsRemoval(canonicalPath, localOptions)) {
-      ...
-    } else if (!markerMissing) {
-      ...
-    }
-  } catch (error) {
-    if (!isOrphanCompatiblePreflightError(error)) {
-      throw new Error(formatWorktreeRemovalError(error, canonicalPath, args.force))
-    }
-  }
+  await assertRegisteredLocalWorktreePreflight(
+    repo.path,
+    canonicalPath,
+    refreshed,
+    args.force,
+    localOptions,
+    args.hasLocalOptions,
+    ignoredLinkedPaths,
+    markerMissing
+  )

Review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 722e530c-4bc3-4ba9-9b6a-1b08d18c3108
Commits

Reviewing files that changed from the base of the PR and between c2ceb52 and b2dac6d.

Files selected for processing: 47
  • src/main/asar-transparent-fs.ts
  • src/main/browser/browser-client-upload-staging.ts
  • src/main/codex/codex-hook-trust-derivation.test.ts
  • src/main/codex/codex-hook-trust-derivation.ts
  • src/main/file-transaction-lock.test.ts
  • src/main/file-transaction-lock.ts
  • src/main/git/windows-worktree-removal.ts
  • src/main/git/worktree-operation-options.ts
  • src/main/git/worktree-removal-preflight.ts
  • src/main/git/worktree-removal-real-git.test.ts
  • src/main/git/worktree-removal.ts
  • src/main/host-checkout-removal.test.ts
  • src/main/host-tree-removal.ts
  • src/main/ipc/worktrees/removal/execute-worktree-removal.ts
  • src/main/ipc/worktrees/removal/registered-local-worktree-preflight.ts
  • src/main/ipc/worktrees/removal/remove-registered-local-worktree.ts
  • src/main/ipc/worktrees/removal/remove-unregistered-worktree.ts
  • src/main/ipc/worktrees/removal/retry-failed-local-worktree-removal.ts
  • src/main/local-worktree-filesystem.test.ts
  • src/main/local-worktree-filesystem.ts
  • src/main/local-worktree-removal-recovery.test.ts
  • src/main/local-worktree-removal-recovery.ts
  • src/main/managed-server/host-state/orcad-windows-host-state-ops.test.ts
  • src/main/managed-server/host-state/orcad-windows-host-state-ops.ts
  • src/main/runtime/orca-runtime-tests/worktree-removal-execution-host.spec.ts
  • src/main/runtime/runtime-failed-local-worktree-removal.test.ts
  • src/main/runtime/runtime-interrupted-local-worktree-removal.test.ts
  • src/main/runtime/runtime-interrupted-local-worktree-removal.ts
  • src/main/runtime/runtime-registered-local-worktree-removal.ts
  • src/main/runtime/runtime-unregistered-worktree-removal.ts
  • src/main/runtime/workspaces/stale-worktree-registration-preflight.ts
  • src/main/runtime/workspaces/workspace-removal-target.ts
  • src/main/runtime/workspaces/workspace-removal.ts
  • src/main/window/clipboard-remote-file-staging.test.ts
  • src/main/window/owned-temp-staging-root.ts
  • src/main/worktree-background-removal.ts
  • src/main/worktree-failed-removal.test.ts
  • src/main/worktree-orphan-gitdir-proof.ts
  • src/main/worktree-removal-failure.ts
  • src/main/worktree-removal-leftover.ts
  • src/main/worktree-removal-listing.ts
  • src/main/worktree-removal-safety.test.ts
  • src/renderer/src/store/slices/worktrees-background-removal.test.ts
  • src/shared/git-common-directory.ts
  • src/shared/windows-path-access.ts
  • src/shared/windows-transient-lock-removal.ts
  • src/shared/worktree/removal.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.

Comment thread src/main/file-transaction-lock.ts Resolved

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick comments: 1
src/main/git/worktree-removal-real-git.test.ts: 1

112-112: Trivial · Maintainability & Code Quality · Quick win

Remove the console.info debug output.

This logs the owning-metadata layout on every run of the layout test. It is a debug artifact. It adds CI noise and does not assert anything. Delete it. If the values matter, assert them with expect.

♻️ Proposed fix
-      console.info('owning metadata layout', { layout, marker, backlink })

Review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6542c61c-16aa-4515-af6d-839d1e4d2d02
Commits

Reviewing files that changed from the base of the PR and between 1dff9d0 and 85df9a9.

Files selected for processing: 7
  • src/main/git/worktree-removal-real-git.test.ts
  • src/main/ipc/worktrees/listing/ssh-worktree-fallback.ts
  • src/main/local-worktree-filesystem.test.ts
  • src/main/local-worktree-filesystem.ts
  • src/main/runtime/runtime-interrupted-local-worktree-removal.test.ts
  • src/main/worktree-orphan-gitdir-proof.ts
  • src/main/worktree-removal-safety.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.

@brennanb2025

brennanb2025 commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor Author

When another program holds a checkout file open on Windows, Git can unregister the checkout before its folder is gone. Closing that program and choosing Delete again can then leave the workspace stranded.

This change removes checkout files before the Git marker, removes only the empty root afterward, and releases the target Git administration once the root is absent. A failed Delete keeps its row and close-and-retry advice, including when Git marks the markerless checkout prunable. A refused retry and an ordinary refresh preserve that existing failure; another Delete rechecks current ownership, locks and force. Nonempty replacement folders remain protected. No saved identity or wire field is added. Marker-last removal and the nonrecursive final root operation are intended differences from the common pattern.

Six review rounds are complete. Corrections retain owning-directory junction support, retry advice and the existing failed row through refusal/refresh until a successor deletion is accepted or an existing invalidator ends it.

Selected-WSL CLI integration independently passed on 5b5dd7e74f7f3365fba123d287e71f6b06ad457e. The unchanged contract ran once as native Windows Node under the isolated orcaqa run: Node, wrapper and terminal exited 0; all 13 assertion steps succeeded with zero failed assertion events. All 14 source pins matched before/after, and the diagnostic helper was separately qualified around the same process. Real selected-WSL reads preserved exact bytes and classified genuine absence correctly. Negative cleanup refused before the supplied watcher callback and preserved candidate/marker/sibling; positive production cleanup removed only the genuinely pruned orphan candidate, preserving owner and unrelated registration. The independent audit verified 54 exact originals and 72 comparisons without disagreement.

This proves CLI transport/filesystem/proof/owner-local cleanup composition, not rendered WSL Delete or desktop/runtime force/provenance authorization. Historical server build 7039 supplied transport only; the proof imported exact 5b5d source. Setup required official run-only Python and a same-file loader URI correction; frozen scripts-on install exited 0, while the optional cpu-features build failed and earlier setup failures remain recorded. The serialized lease lost timezone formatting; actual execution was independently within the original explicit UTC admission. 27/28 real-config hash observations were unchanged; Neil's .claude.json changed with no established cause, and contents were not read. Scoped graceful cleanup verified zero recorded survivors/listeners; no machine-wide claim is made. Ticket 2704 is released, and the lead and auditor terminals are closed.

Accepted Windows UI evidence covers browser-held failure, failed/pending graceful restart and released-browser retries on 3a603bf0535750718b33a3302468cf28386aa9be; previous-build setup used 7daa1fa56ee4f5d0520fb5eaf61e1c57a279648c. Empty-root retry, terminal-open normal Delete/unrelated workspace continuity and both owning-junction orderings passed on 85df9a934c05ca8858101b786c5fdfc7af1caa5e (empty-root failure originated on 3a). Final refusal → authoritative Git refresh → refusal passed on dcb6486c7f07019ad2165eb42b71e1cfb4f8f6f5: the same durable failure, row/Delete action, replacement sentinel and Git identities survived. Ordinary/bare real-Git contracts passed separately.

Desktop/runtime current-force integration contracts independently passed on 143da463f097450652e93859723d220587700c11: actual test exit 0,2 passed/0 failed/31 skipped, covering refusal, persisted failure/reload and explicit current-force completion. The exact original checkout Buffer is compared without normalization. The real-Git long-path desktop Delete contract independently passed on 242d4fc8a8e4637f0ae1b5c042bc0834129ca5b5: actual exit 0,1 passed/0 failed/17 skipped. It verifies removal of a checkout containing a file beyond 260 characters, target admin/registration, default-policy branch and host-qualified Orca metadata. These use store/lifecycle fixture seams; they do not establish rendered UI, durable Store, physical-handle, WSL or machine-wide cleanup behavior. Failed fixture receipts remain retained, and terminal-wrapper unknown-stop observations are separate from actual saved test exits.

These are actual run heads. Earlier scoped evidence carries through reviewed production 7ddb6b971678e547178adfb5ecbf53775d1fffcb; dcb6486c7f07019ad2165eb42b71e1cfb4f8f6f5 adds a test comment. Main merge 43d30cd9038f181014e138d00a937436336ffe65 preserves all 37 then-owned paths. Test-only 17858a408ae8a8f98be0373e767f0a39568f1419 preserves all 29 production files; test-only 143da corrects the checkout-byte invariant; test-only 38f1 updates obsolete native-route fixtures and the ESM fault fixture. Incoming-main merge 900539ea18c3d6dd5e5f51b5ebb6ce2a3340a6a9 contains main c23 and preserves all 38 then-owned paths, with zero own overlap. Test-only ea829 replaces obsolete fixtures with the real long-path case and corrects two runtime assertions; test-only 242d4fc8a8e4637f0ae1b5c042bc0834129ca5b5 repairs its runner namespace/import seam. All29 production paths remain unchanged through 242d. These merges and test/nonshipped commits do not constitute new whole-app runs.

Current clean head 5b5dd7e74f7f3365fba123d287e71f6b06ad457e includes the permitted conflict-blocking main merge for #34304. The independent merge audit identifies only main's diagnostic import/call in the selected-WSL filesystem adapter; the other 28 production files and all 10 tests match 242d. It preserves this PR's ownership type, raw stderr and definitive absence classification. Native evidence carries without reruns. The fourteen contract source inputs include the merged adapter; the incoming diagnostic helper is a separate before/after pin, outside the immutable contract's fourteen-source receipt.

For Brennan's review

Each screenshot below is an existing full-frame upload, labelled by its actual run:

Actual run / accepted UI outcome Existing full-frame screenshot
3a — browser-held child failure Screenshot
3a — failed state after graceful restart Screenshot
3a — genuine pending deletion recovered after restart Screenshot
3a — released-browser branch retry completes Screenshot
3a — released-browser pending-restart retry completes Screenshot
85 — released empty-root explicit retry completes Screenshot
85 — terminal-open normal Delete completes Screenshot
dcb — first nonempty replacement refusal retains row Screenshot
dcb — ordinary authoritative Git refresh retains row Screenshot
dcb — second ordinary refusal retains row Screenshot

No literal baseline/main retry frame is established. The historical failed-retry comparator belongs to cf400 and is not presented as main.

The sixteen-row E4-tsapi admission/registration contract passed on 85 with exactly one loader-provider substitution and unchanged thresholds: wrapper 12≤16, proof calls 12≤12; canonical operations ≤10 per proof is a separate bound. Realpath 0 limits its proof measurements to the lexical corpus. Real native Git/filesystem, injected EBUSY and substituted infrastructure do not prove WSL, physical locks, packaging, branch cleanup or latency/CPU/heap. E3 retains its original isolated-helper/injected-lock limits. Neither E3 nor E4 nor any accepted native/current-force/long-path flow will be rerun.

Invalid driver attempts remain excluded: 3a final-ui manifest overwrite, 2588 attachment after failed identity read and 2601 conflicting/stale-ref preparation. The earlier 2588 missing-row failure remains historical; the fresh dcb sequence accepts its correction. Acceptance rests on screenshots, catalog/DOM, disk/Git and durable-record receipts, not driver exit0 alone. Native cleanup audits record 0 owned survivors/listeners and 9 unchanged native config hashes at their specific checkpoints; they establish no broader resource/watcher claim. WSL cleanup is separately qualified above. Local focused-test collection lacked built workspace packages; no local test pass is claimed. Normal commit hooks passed.

Deferred P3 concerns remain explicit: inherited apply rejection can omit a concurrent lock-loss warning; a narrow external marker-loss race can stop terminals before a later safe refusal. The latter has no proven new main-to-PR user regression or data-loss path, and is neither fixed nor wholly refuted. The duplicate-import CI issue was fixed in 3f1ca14171a8288f4edf1108bd2997347916d78f. The three bot threads were resolved with their dispositions recorded; thread resolution does not turn the two deferred concerns into fixes.

The complete 39-path PR has 965 production additions/329 deletions and 1100 test additions/430 deletions against incoming main; the older-base production count 967/330 includes main's +2/-1. CI passes on 5b5d. The PR is out of draft; final mergeability is checked by the readiness gate. Six review rounds and the owed verification are complete; the two P3 concerns remain explicitly deferred.

Three human judgment spots, pinned to reviewed production 7ddb:

@brennanb2025
brennanb2025 merged commit f0eb094 into main Oct 27, 2026
45 checks passed
@brennanb2025
brennanb2025 deleted the brennanb2025/rm-metadata-last branch October 27, 2026 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant