Skip to content

fix(native): preserve scoped deletion ownership and partial results - #310

Merged
rynfar merged 1 commit into
nativefrom
nw/308-scoped-delete
Nov 6, 2026
Merged

rynfar merged 1 commit into
nativefrom
nw/308-scoped-delete

Conversation

@rynfar

@rynfar rynfar commented Nov 6, 2026 •

Copy link
Copy Markdown
Owner

Problem

Scoped single and bulk deletion did not share the selected-thread ownership path. An event could clear the open thread before the delete reply. Bulk deletion also stopped after an ordinary failure.

Fix

Reuse the existing pending deletion token and physical-project fallback. Keep the full requested doomed set separate from successful results. Recheck the captured destination, project and grants before writes and after runtime stop. Continue ordinary failures, stop interruptions, and preserve failed or replaced selections.

SB-SECTIONS and SB-SELECT remain partial. This PR closes only the finite scope in #308.

Verification

  • Tests-first scoped actor regressions and nine focused cases pass in the integrated verification lane, with compiler-selected libtest and source/binary custody.
  • Independent exact-head review approves c61691d9d57feec344b7edf7ef081ef4d41ede26, tree e527d65ce2f2c80b47cf045b5be3abd787a03d3d (report SHA256 cb2b5fe1cec3a696ce63a60d943c3572c524dc3d67d5e778eb01fecbeafa34d9).
  • Clean cargo test -p t3-core -p t3-client: 1,356 pass. Required strict Clippy, normal app build, snapshot app build, theme, intake and conformance checks pass.
  • Exact candidate snapshot main and compiler-selected libtest are built and SHA256-bound to stable sources. Nine focused deletion tests and the existing captured context actor pass. A cross-worktree stale-cache attempt was discarded; all reported Cargo gates were rerun after cleaning this session’s local package artifacts.
  • Candidate libtest SHA256: 577ee9ee8433cef28d50de6e75bdb972237f37cdc64dad0e17ce56ffc2a0c98d. Fresh merged proof follows the matched-head squash; no whole-row credit is claimed.
  • Synthetic fixtures exercise request/event/reply order, mixed owners, permission and identity drift, runtime stop, and selected-thread reply ownership. They do not prove live server/provider behavior, AppKit Input/NSView, clipboard or measured performance.
  • Formatting remains RED under the explicit existing exception. No sweep, suppression or constant change.

Model: GPT-6.1 Sol / Codex. Harness: Prime Agent.

@rynfar
rynfar merged commit aa30fe4 into native Nov 6, 2026
@rynfar

rynfar commented Nov 6, 2026

Copy link
Copy Markdown
Owner Author

Merged at aa30fe46826549099066df3d1e7fb4c1bab1cbb2, tree e527d65ce2f2c80b47cf045b5be3abd787a03d3d, exactly matching the independently reviewed candidate tree. Clean required default tests (1,356), strict Clippy, normal and snapshot app builds, theme, intake and conformance checks pass. Candidate compiler-selected test binary passes nine scoped deletion cases plus the existing context actor.

Fresh merged-tree snapshot app build and compiler-selected libtest pass. The fresh merged test binary passes all nine scoped deletion cases and the existing context actor (10 tests, no failures). Sources remain identical to the reviewed tree. Merged libtest SHA256: b427735ddbd2a31565897f0fa3eb22889cf24193ecf5e35225dbd7bd2744da9d. SB-SECTIONS and SB-SELECT remain partial; overall sidebar acceptance stays 8/16. Formatting remains RED under the explicit exception, with no sweep or suppression. No constants changed. Synthetic actor proof does not establish live server/provider, real AppKit input/AX, clipboard, or performance behavior.

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