Skip to content

fix(native): release collapsed Settled page consumers - #317

Merged
rynfar merged 2 commits into
nativefrom
nw/314-collapse-pages
Nov 6, 2026
Merged

rynfar merged 2 commits into
nativefrom
nw/314-collapse-pages

Conversation

@rynfar

@rynfar rynfar commented Nov 6, 2026 •

Copy link
Copy Markdown
Owner

Problem

Collapsing the fleet Settled shelf leaves its older-page consumer mounted, so hidden page data and reads can survive the shelf's lifetime.

Fix

Own one page-consumer task, drop it when Settled collapses, unmount only its page rows, and keep requested depth for reopening. Suspend before sidebar derivation and gate both local/scoped page admission before setting Pending. On reopen, separate recording more wanted depth from dispatching already-wanted work under the same highest-frontier eligibility; next_request stays the admission authority. Cancel the consumer, not the already-sent wire request. Preserve independent family/search mounts.

Closes #314. SB-SECTIONS stays partial; scope-tail reset, abandoned Pending retirement, inbox history and attention rollup are separate.

Verification

  • Actual baseline test fails at Some(0) != None after a real full 25-row page, Shell application and production collapse.
  • Exact head 6aff23d20b617611ae9bdb1f1ede229e7d98b7d6, tree 9ce88df9d988f25527462d543c9a6b8f79ecf749, has independent whole-diff source approval (SHA256 6f0b584d02a6067b8d7f5600699c9252ff31e5679520a83229c65b7949c2bfdf).
  • Same existing test is extended for held-old-reply collapse/reopen/new-reply isolation, independent family retention, authoritative snapshot while collapsed, finite no-hidden-request inspection and reopen. The entire actual case now passes, including the original collapse assertion, direct reopen admission, old/new held-reply isolation, family retention, collapsed snapshot and final reopen. The existing highest-frontier actor control also passes. Fresh final-head gates/builds are running before the last exact-binary rerun.
  • Theme/intake/conformance pass. Rebased onto merged PR316 with feature bytes unchanged. Final-head 1356 default tests and strict Clippy pass; normal app build is running. Snapshot/final exact actor proof and independent candidate acceptance remain required before merge, followed by fresh merged proof.
  • Formatting stays RED under the explicit exception. No epoch/cache, suppression, timing constant or protocol change.
  • Synthetic fixtures do not prove live transport/restarts, real AppKit Input/AX or performance. Local code is updated for the same invariant; this first actor case is scoped, not a separate local runtime claim.

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

Reopen regression proof

The first extended runtime attempt hit the toolkit parking ceiling because reopen never dispatched the retained wanted page. Diagnostic-only markers located that await. A direct test-only Pending assertion then failed immediately (Ready != Pending) before any fix. The reviewed two-function correction passes the entire unchanged held-reply/snapshot tail and existing frontier control. No timeout increase, forced Shell event, wanted-depth reset, extra cache/epoch or relaxed assertion. #318 is a separate admitted-page grant-refusal test and is not included here.

@rynfar

rynfar commented Nov 6, 2026

Copy link
Copy Markdown
Owner Author

Rebased candidate 6bde78810eda42be1d40f4e342678531e9c18a50, tree 2767afa4b4813ecbfed223cc26e251e4005078b1, is independently exact-head source-approved against merged PR316 (c372e55c0431bdd555823bcbfa0bde4e68f9d3aaa3bf912c8f7775bfe2960520). The two feature files are byte-identical to the earlier approved candidate; only inherited base context changed.

Required 1356 default tests, strict workspace/all-target Clippy and theme/intake/conformance pass. Normal app build is running. Snapshot build and compiler-selected whole actual collapse/held-reply/snapshot/reopen case have not run yet; no runtime GREEN is claimed. The intended baseline mount failure remains recorded.

No merge until those pass and independent final candidate acceptance, then fresh meaningful merged proof. SB-SECTIONS stays partial; no D abandoned-Pending, scope-tail or separate local-runtime credit. No constants changed; formatting RED exception remains.

@rynfar

rynfar commented Nov 6, 2026

Copy link
Copy Markdown
Owner Author

All required candidate gates and both app builds pass at 6bde78810eda42be1d40f4e342678531e9c18a50. However, the selected actual whole collapse/held-reply/snapshot/reopen case exits 101 at GPUI's existing 15-second parking ceiling, without an assertion trace. That is not runtime GREEN and not the intended baseline assertion RED.

Merge is blocked. The next step is diagnostic-only markers around the test's existing positive milestones to locate the missing wake/await; no production patch, timeout increase or relaxed assertion is authorized from this result. Exact compiler artifact, source hashes, binary hashes and actual JOIN are retained. #318 is a separate test-first current-grant/Pending regression and does not justify changing this test.

SB-SECTIONS remains partial; sidebar stays 9/16. No constants changed.

@rynfar

rynfar commented Nov 6, 2026

Copy link
Copy Markdown
Owner Author

The diagnostic localized the earlier parking failure to the first reopen admission, not collapse cleanup. The real full page and original collapse mount-None assertion pass; after reopen, wanted depth is retained but grow returns false because the depth was already requested, and the app dispatches only when grow increases it.

A test-only assertion before the existing request await now produces the intended immediate failure: omitted_rows.rs:537, Ready != Pending, one test exit 101 with no timeout. Existing production code was unchanged for that run. Exact compiler/hash/source custody and independent design review are retained.

The next narrowly released proposal separates increasing wanted depth from dispatching already-wanted work in the existing local/scoped growth paths. It must preserve shared-highest-frontier eligibility, current grants, collapse cancellation and the whole held-old-reply/snapshot/reopen tail. No production fix has been applied yet; merge remains blocked. No timeout or constant changes.

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

rynfar commented Nov 6, 2026

Copy link
Copy Markdown
Owner Author

Matched-SHA squash merge completed: candidate 6aff23d20b617611ae9bdb1f1ede229e7d98b7d6 → merged ee66f1000d6474b34336afd2c39b7e31b00af27c, exact tree 9ce88df9d988f25527462d543c9a6b8f79ecf749. Independent final candidate approval SHA256 e0c53f3a64d262e4b7b2ef0604b75055743f85b9c882ecd1a77cd52630803c3b verified required 1356 tests, strict Clippy, both builds, all node checks, exact whole collapse/reopen case and shared-frontier control.

Fresh merged snapshot build is running. Compiler-selected fresh merged whole collapse/held-reply/snapshot/reopen proof and frontier control, new binary/source custody and independent final review are still required before formal finite closure. SB-SECTIONS stays partial; sidebar stays 9/16. No #318/Pending, scope-tail, inbox/attention, local-runtime or wire-cancellation claims. No constants changed.

@rynfar

rynfar commented Nov 6, 2026

Copy link
Copy Markdown
Owner Author

Finite #314 accepted after matched-SHA squash: 6aff23d20b617611ae9bdb1f1ede229e7d98b7d6 → ee66f1000d6474b34336afd2c39b7e31b00af27c, exact tree 9ce88df9d988f25527462d543c9a6b8f79ecf749. Required candidate 1356 tests, strict Clippy, normal/snapshot builds, theme/intake/conformance, and whole actual C314 + existing shared-frontier actor control passed. Fresh merged build and compiler-selected same two actual cases each passed, with stable source hashes and clean main.

This proves the page consumer releases its loaded page mount on collapse, retained wanted depth dispatches on reopen, cancelled/held old replies do not affect the fresh page, another family mount survives, an authoritative snapshot while collapsed does not replay the hidden page, and the final reopen succeeds. Reopen proof includes a separate intended immediate Ready != Pending regression failure before the minimal two-function fix; no timeout increase or forced Shell event was used.

Final merged independent approval SHA256 a31fc3d71130891d285bafb27c78c96a9474291db9df7b418d8942c7bb2fcbc7 includes both present main and exact selected libtest rehashes, actual one-pass selectors and full source/tree checks. Historical hashes remain evidence after the explicitly recorded owned cleanup.

SB-SECTIONS remains partial; sidebar remains 9/16. This does not claim scope/filter invalidation, #318 abandoned Pending, inbox/attention projection, local shelf runtime, cancellation of an already-spawned wire RPC, AppKit/AX/live-provider/performance behavior. No constants changed. Proof: /private/tmp/native301-external-proof-01a1af49/sections-collapse314-pr317-merged-green-receipt.json.

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