Skip to content

fix(native): preserve scoped deletion ownership and partial batch outcomes #308

Closed

Description

@rynfar

Problem

SB-SECTIONS and SB-SELECT remain partial. Scoped single/bulk Delete uses generic mutation/drop execution instead of the existing #218 physical-project fallback and selected-mount deletion ownership. An event-before-reply deletion can clear the open thread before its successful reply. Bulk also stops at ordinary server failures rather than preserving partial results.

Scope

  • Reuse the existing physical-project fallback selector and pending deletion/selected-mount token. Same real destination/project, saved sort, current deletion-time clock; exclude the full immutable requested doomed set from fallback (same-owner raw IDs only).
  • Selected-thread navigation only after its successful owned reply. Background deletes never activate a destination. Preserve event-first/reply-first, failed reply, route-away-and-back, current owner/project/grants, replacement and fallback validity protections.
  • One deletion-specific path for scoped single/bulk. Preflight and recheck exact destinations; stop runtime first when required, recheck before delete. No active-client fallback.
  • Continue ordinary operation failures, stop interruptions; report honest completed counts. Deselect successful/missing original keys only; retain failures, unattempted/replaced/new selection. Do not change shared-worktree successful-deletion bookkeeping into full-doomed bookkeeping.
  • Keep generic placement/undo behavior unchanged. No duplicated deletion watcher/service or new server/client contracts.

Acceptance

Tests-first real scoped entry-point assertion must fail before production changes. Focused actor request/event/reply barriers cover current destination and partial outcomes without sleep/polling. Independent exact-head Sol/Codex review, required native gates, matched-head squash merge, fresh meaningful merged synthetic runtime proof. SB-SECTIONS and SB-SELECT remain partial until all other applicable criteria pass; sidebar accepted baseline8/16.

Boundaries

Native-only source; root serializes cargo/render. No real windows/CUA, live server writes/provider turns, auth refresh, clipboard, original credential reads beyond hash/origin, installs, unowned signals. Formatting RED remains explicitly excepted. Scope-tail/page lifetime is a separate sequential slice.

Activity

  1. added
    native:bug
    status:in-progress
    status:review
    and removed
    status:in-progress
    on Nov 6, 2026
  2. rynfar commented on Nov 6, 2026

    @rynfar
    OwnerAuthor

    Finite scoped deletion ownership slice merged in #310. Required gates and exact candidate tests pass. Fresh merged-tree snapshot build and compiler-selected tests pass: nine scoped deletion cases plus one captured context actor. SB-SECTIONS and SB-SELECT remain partial; sidebar acceptance stays 8/16. See the final PR verification comment for custody and limits.

  3. removed
    status:review
    on Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    native:bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions