Repository navigation
Description
Problem
The watched-environment Settled page consumer and PAGES mount can outlive a change in the owner's physical project scope. If the new scope already has enough shell rows, growth returns before reconciling that scope. The chosen-scope tail reset in #320 is a separate behavior and does not release physical page ownership.
Finite contract
Reconcile the normalized physical project set before deriving page frontiers, extra rows or the watched sidebar model. On a changed physical scope, release only the owned page continuation and PAGES mount and reset its page demand. Preserve independent search/family mounts, and preserve same-physical-scope behavior including collapse/reopen and explicit grant-refusal retry.
Tests first
- Use an actual actor with scope A: load a real first page, then hold a second page reply while its production consumer remains installed.
- Scope B has at least 35 settled shell rows above the older cut. Its chosen tail reset to 10 must pass as a control. The intended independent RED is the immediate old PAGES mount still being present, not the tail count.
- Do not take the page Task in the test. Do not infer wire cancellation from a sender result. Keep the old reply unsent until switching back to A and observing a fresh actual request; then send old and fresh replies and await the positive fresh-row Shell milestone. No stale old rows; independent search mount remains.
- No polling, sleeps, raised timeout, fake events, or absent-RPC waits. Compile failure is not a regression proof.
This first allocation covers A -> B -> A while open. Empty excluded owners, collapsed scope changes, same-physical key reorder and membership-only scope changes need an explicit decision or later independent cases; do not claim them from this first fixture. Legacy local fallback/cross-mode behavior, inbox history and attention remain separate. No whole SB-SECTIONS credit.
Ship focused actual proof, independent exact-head review, all required native gates, matched-head merge, and fresh meaningful merged proof. No constants, server, live provider/auth, AppKit, AX or performance changes/claims.
Allocation status
Tests-first source only is approved for a serialized root-run regression. The suspected production fix is not accepted yet. Sidebar whole-row acceptance remains 9/16.
Activity
rynfar commentedon Nov 7, 2026
Actual tests-first regression reproduced on the existing production path: one selected test failed at
omitted_rows.rs:840:13, with old PAGES mountSome(0)instead ofNone. The selected scope's tail reset to 10 and its filled-row controls passed first. The fixture used a real actor page request, loaded first-page rows and a held second response while keeping the production consumer owned; independent search remained mounted.The assertions after that first failure have not run yet. This does not prove wire cancellation, local fallback, collapsed/empty/membership transitions, or whole SB-SECTIONS parity. The next step is independent classification, then a small scope-reconciliation fix before model derivation. No constants changed.
rynfar commentedon Nov 7, 2026
The complete new actor regression now passes on the focused fix, as do the existing collapse/reopen, explicit grant-refusal retry, chosen-scope tail and frontier-handoff cases. Each case selected one test and passed. The new case checks page-consumer and PAGES-mount release before derivation, retained search rows, a fresh actual request after switching back, and fresh owned rows without stale rows.
The production change moves physical project-scope reconciliation before frontier, extra-row and model derivation. It replaces the two previous late resets rather than adding another reset path. Same physical scope stays unchanged. Independent current-artifact review is pending, then this finite fix will be isolated and run through the required gates. SECTIONS remains partial; overall sidebar acceptance remains 9/16.
rynfar commentedon Nov 7, 2026
Finite #322 is accepted after matched merge
0e4ad74ae3b4c602a4fc9232c01fe04a46ade90c(tree95e2999ecb79764c8b2494c1c55a732689f6722d), required candidate gates, a clean merged rebuild and five fresh actual runtime cases. Independent final review82587afd0ae8be0bd89533954328179c3894e0863df7e8e8bbaf80dcd011a143checked exact source identity, nonzero test selection and both present artifact hashes.The A/B/A page-scope case passes alongside collapse/reopen, explicit grant-refusal retry, chosen-tail reset and frontier handoff. SECTIONS remains partial and sidebar acceptance remains 9/16. No wire-cancellation, same-cursor race, full physical-scope variants, local fallback/cross-mode, AppKit/AX, live-provider or performance claim. No constants changed.