Skip to content

fix(native): retire a refused Settled page attempt #318

Closed

Description

@rynfar

Problem

An admitted scoped Settled page can remain Pending after current read authorization changes and the page consumer refuses its reply. The shelf stays open, and restoring authorization on the same owner cannot resume because Pending still owns the cursor. This is a source-backed candidate, not yet an executed failure.

Finite scope

Exercise one real already-sent page reply refused after current read grant revocation. Preserve exact owner/shell generation/scope/cursor identity, discard the refused rows, retire only that admitted attempt as Failed and allow an explicit resume after authorization returns. This is separate from #314 collapse cancellation. Resolve/preflight refusal, scope-tail reset, inbox history, attention rollup and whole SB-SECTIONS acceptance are not automatically covered.

Required proof

  • Add the fewest failing cases at the actual page consumer layer. A separate adjacent test is justified because collapsing the shelf would reset Pending and mask this bug.
  • Actual actor install/open shelf → real page25 request held → real grant-watch publication with same owner → retain and await the existing owned consumer Task after returning the real reply → intended not-Pending assertion failure. No polling, arbitrary delay, missing-event wait or new test hook.
  • Only after actual RED, implement the smallest exact-attempt retirement. Do not clear a newer attempt or another owner/scope. No epoch/cache/registry, timer or automatic retry.
  • Restore grants through the real actor publication, assert Failed still holds so publication did not auto-retry, explicitly resume, receive/apply a fresh real page and prove refused rows never mount.
  • Independent exact-head review, required native gates, matched merge and fresh meaningful merged proof. SB-SECTIONS stays partial until all applicable criteria pass.

Boundaries

Native-only; unmodified server, no live writes/providers/auth operations, no AppKit/AX/clipboard/performance claim. Formatting RED exception remains. No constants change is proposed.

Activity

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

    @rynfar
    OwnerAuthor

    The test-only current-grant refusal case now produces its intended immediate failure: one actual test exits 101 at omitted_rows.rs:643, Pending != Pending. No timeout, compiler failure or zero-test run is counted as the regression.

    It reached a real page-25 request, captured the exact owner, awaited the published denied read grant, retained (did not cancel) the exact page consumer task, sent its held reply, and awaited that consumer outside the entity borrow. The finished consumer leaves its admitted attempt Pending. The later restored-grant/explicit-retry tail has not run yet.

    An external minimal proposal is now released for review: retire only the same captured generation/cursor/project-scope attempt to Failed through the existing page reducer. Keep collapse/reopen behavior, wanted depth, earlier reads/frontier and unrelated mounts. Do not silently reset Ready or auto-retry on grant restoration. No fix has been applied and no resolve/preflight branch is claimed. Sidebar remains 9/16, SB-SECTIONS partial; no constants changed.

  3. added
    status:review
    and removed
    status:in-progress
    on Nov 6, 2026
  4. rynfar commented on Nov 6, 2026

    @rynfar
    OwnerAuthor

    Finite #318 accepted via matched-head squash 24f0a4fc73a8ff185b11dbf8cc67ef3faa9d6405 → ae60a6d53906dffbee9465b2eb9f9a8a4106dca6, exact reviewed tree e6508f8b62004f2ded1d7f7653867bdeb39840eb. Required 1356 tests, strict Clippy, normal/snapshot builds, theme/intake/conformance and the three exact candidate runtime cases passed. Candidate independent final approval SHA256 9c16838c72cdef1252d2af35b42c3ddd2e6021870c2a9f1da5b1fb9a55a2af79.

    Fresh merged snapshot build, compiler-selected actual whole grant-refusal/retry case, entire collapse/reopen case and shared-frontier handoff each pass with source/tree/hash custody. Final independent merged review SHA256 b759ac26c6dba1541128ad9b323d1a2025f00404087bf2b543578cc0ba92470b verifies all three actual selectors, exact source/tree and both present main/libtest hashes. These hashes become historical evidence only after the separately recorded owned cleanup.

    The finite proof covers a real held page reply refused by an explicitly denied current read grant, exact consumer completion, Failed retirement, unchanged cursor/scope/reads/mounts, real restored-grant publication without automatic retry, and explicit retry with fresh reply excluding refused rows. Resolve/preflight abandonment and scope/filter-tail changes are not claimed. SB-SECTIONS stays partial and sidebar stays 9/16. No constants changed. Proof /private/tmp/native301-external-proof-01a1af49/sections-pending318-pr319-merged-green-receipt.json.

  5. 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