Skip to content

fix(native): clear stale scoped selection anchors - #337

Merged
rynfar merged 2 commits into
nativefrom
nw/335-selection-lifecycle
Nov 7, 2026
Merged

rynfar merged 2 commits into
nativefrom
nw/335-selection-lifecycle

Conversation

@rynfar

@rynfar rynfar commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

Finite #335 implementation merged in PR #337 as 122fc61aae2b3a5585c70ba1900fb7b3e39d4320 (matched candidate 6b3446d3c549b7354c95cad681a83e820b0fce47, tree 5e09e2cde94564f7926b2d0d0cfe74823d3cc3d1, parent 4412b37c9264243d32f4482ea9f7123d8af06299).

  • Successful removal of an actually selected scoped key clears its matching anchor. Failed, unselected and untouched anchors remain. Placement and partial deletion exercise owner-local same-raw-ID behavior.
  • Real watched navigation that widens project scope clears both the scoped selection and anchor.
  • Tests failed before each production fix. The existing grant-observation failure in the first candidate remains archived NOT GREEN. Its independent diagnosis led to a 16-line test-only denial/restoration milestone repair; all assertions stayed unchanged.

Candidate required gates passed: 1,356 core/client tests, strict workspace/all-target Clippy, normal/snapshot builds, theme/intake/conformance, core7 and native10. Independent exact-head SOURCE c841db90… and candidate FINAL 6eb803ae… approved. Fresh merged proof passed after cleaning only the three owned native packages: snapshot build, proper merged compiler JSON (fresh=false), core7 and native10 in distinct initially empty homes. Fresh merged FINAL: 1bb80f32526580bdb5b8371eadbc556241ec17682f808fb1fd6321ce5ca3aca0 independently approved, with current main/core/native bytes verified twice initially and twice at final freeze. Finite #335 is accepted.

check:changed is NOT GREEN: unrelated desktop UserTaskDefinition bootstrap fails before checks. Approved formatting exception retained. Constants changed: none. SB-SELECT remains partial and sidebar remains 9/16; action eligibility/clear policy and integrated interaction work are not included.

Problem

Scoped selection could retain a stale range anchor after successful placement/deletion or automatic project-scope widening.

Change

Couple successful singleton membership removal to matching-anchor removal. Keep failed, untouched and toggled-off anchors. Clear the anchor in the existing automatic scope-widening branch, alongside its existing selection clear. The existing missing-original deletion cleanup uses the same singleton invariant; that call-site change has source support but is not a separately observed anchor failure.

Proof and remaining gates

  • Tests-first placement and deletion selected-anchor failures: independent review 59ed0df46f3e39120c88235a3006a5e9ed1651e1de645b1cd3ca2d22e34162b5.
  • The first anchor fix passed all four placement modes and all three deletion modes, then exposed the automatic-widening failure: independent review 566bab65ebc3ef0f1f7d999f7819252a9ff107c975eb42bf08ec27095f4306c5.
  • Preserve the wrong deletion selector's zero-test receipt as NOT GREEN. The corrected deletion_tests selector is authoritative.
  • Both unchanged full cases passed; independent whole-test review 7b6453fbaa557726dc483e5dce50971c9c420405bc712c9896f46f897add1d94 verified all 572 source hashes and the current compiler-selected native artifact. Candidate b3ec35eefbd44cb8fc960064f15380272485cd30, tree bcd79a56197ddaccaf07c834d08287431a8cae7e, parent 4412b37c9264243d32f4482ea9f7123d8af06299 is clean. Required candidate gates, independent exact-head review, matched-head merge and fresh merged proof remain required. No final acceptance yet.
  • A visit reply is not a callback join. The writer FIFO barrier covers prior submitted writes, not all future tasks or global quiescence.
  • check:changed bootstrap remains NOT GREEN; existing approved formatting exception remains.

Parity

SB-SELECT remains partial; sidebar remains 9/16. No constants, protocols, grant checks, Input/Root/real-window behavior, or unrelated bulk action policy change.

Model: Sol 6.1. Harness: Prime Agent; independent review through Codex.

@rynfar

rynfar commented Nov 7, 2026

Copy link
Copy Markdown
Owner Author

PR #337 is NOT GREEN. Required core/client tests (1,356), strict Clippy, normal/snapshot builds, theme/intake/conformance and seven core controls passed. Eight native controls passed. The placement control then failed at thread_menu_tests.rs:1268, an existing READ-grant-revocation assertion before the new route-reveal tail. The final deletion control was not run.

The candidate source and tests are unchanged. No retry, merge, assertion change or artifact overwrite. Independent failure classification and source-causality investigation are running. The existing test waits for an actor destination denial and drains ready GPUI tasks; investigation must determine whether that actually marks the UI fleet grant update. Prior whole-test passes are retained but do not override this failure.

Sidebar remains 9/16. No constants changed; check:changed bootstrap remains NOT GREEN.

@rynfar

rynfar commented Nov 7, 2026

Copy link
Copy Markdown
Owner Author

The failed candidate run remains NOT GREEN and is archived unchanged. Independent review verified the source, compiler-selected native binary and failed assertion. The actor READ denial completed, but that reply does not wait for the separately published UI fleet grant state. The log does not identify which async step was delayed and does not demonstrate a navigation permission bypass.

A narrow test-only repair is under independent source review: wait for a Shell event carrying the same composite owner and the intended READ/OPERATE grants after denial and restoration. All existing authority, readiness, navigation-refusal, no-RPC and toast assertions remain. No production changes, retry, merge, or whole-row credit. A corrected candidate must pass its own complete controls and later fresh merged proof. Constants changed: none.

@rynfar

rynfar commented Nov 7, 2026

Copy link
Copy Markdown
Owner Author

Corrected candidate 6b3446d3c549b7354c95cad681a83e820b0fce47 completed its own required native gates: 1,356 core/client tests, strict workspace/all-target Clippy, normal and snapshot builds, theme/intake/conformance checks, seven exact core controls and ten exact native controls. Each native case ran once in a distinct initially empty test home using the owning-worktree compiler-selected test binary. Placement and deletion both passed, including the preserved assertions after the new grant milestones.

Independent exact-head source review approved the candidate. Final review is now checking current main/core/native artifacts and the complete runtime proof before any matched-head merge. Fresh merged proof remains required after merge. The old b3ec35e grant assertion failure remains NOT GREEN and archived, not retried or erased. check:changed still fails during the unrelated desktop task-graph bootstrap before running checks. Whole sidebar remains 9/16. Constants changed: none.

@rynfar
rynfar merged commit 122fc61 into native Nov 7, 2026
@rynfar

rynfar commented Nov 7, 2026

Copy link
Copy Markdown
Owner Author

PR #337 matched-head squash-merged as 122fc61aae2b3a5585c70ba1900fb7b3e39d4320 after independent candidate FINAL approval (6eb803ae…). The merge tree 5e09e2cde94564f7926b2d0d0cfe74823d3cc3d1 matches the reviewed candidate; its parent is the accepted 4412b37… head. Main is clean and all 572 Rust source hashes plus the ledger match the candidate.

Fresh merged verification is running: cleaned only the three owned native packages, then started a fresh snapshot build. Seven core and ten native controls will run against newly selected merged artifacts in new initially empty homes, followed by independent merged FINAL review. The finite fix is not accepted/closed until then. Sidebar remains 9/16. The original failed candidate stays archived NOT GREEN. Constants changed: none.

@rynfar

rynfar commented Nov 7, 2026

Copy link
Copy Markdown
Owner Author

Finite #335 implementation merged in PR #337 as 122fc61aae2b3a5585c70ba1900fb7b3e39d4320 (matched candidate 6b3446d3c549b7354c95cad681a83e820b0fce47, tree 5e09e2cde94564f7926b2d0d0cfe74823d3cc3d1, parent 4412b37c9264243d32f4482ea9f7123d8af06299).

  • Successful removal of an actually selected scoped key clears its matching anchor. Failed, unselected and untouched anchors remain. Placement and partial deletion exercise owner-local same-raw-ID behavior.
  • Real watched navigation that widens project scope clears both the scoped selection and anchor.
  • Tests failed before each production fix. The existing grant-observation failure in the first candidate remains archived NOT GREEN. Its independent diagnosis led to a 16-line test-only denial/restoration milestone repair; all assertions stayed unchanged.

Candidate required gates passed: 1,356 core/client tests, strict workspace/all-target Clippy, normal/snapshot builds, theme/intake/conformance, core7 and native10. Independent exact-head SOURCE c841db90… and candidate FINAL 6eb803ae… approved. Fresh merged proof passed after cleaning only the three owned native packages: snapshot build, proper merged compiler JSON (fresh=false), core7 and native10 in distinct initially empty homes. Fresh merged FINAL: 1bb80f32526580bdb5b8371eadbc556241ec17682f808fb1fd6321ce5ca3aca0 independently approved, with current main/core/native bytes verified twice initially and twice at final freeze. Finite #335 is accepted.

check:changed is NOT GREEN: unrelated desktop UserTaskDefinition bootstrap fails before checks. Approved formatting exception retained. Constants changed: none. SB-SELECT remains partial and sidebar remains 9/16; action eligibility/clear policy and integrated interaction work are not included.

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