Skip to content

fix(native): preserve scoped shelves through watched thread navigation #333

Closed

Description

@rynfar

Problem

Switching to an already-watched thread in another environment replaces the sidebar controller. The fleet model/history survive, but shelf expansion and the settled-tail scope/depth do not. Current web keeps shelf expansion and resets the tail only when effective project scope changes.

Tests-first finite scope

Use one focused window-free actor case in existing scoped_route_tests.rs. No existing safe case covers watched-thread navigation: the project case tests a different route, and the existing thread case includes input controls that must not be removed. The new case has explicit root authorization and independent source preflight.

Install actual owned A/B environments and a real loaded 35-row settled tail. Establish the effective chosen logical scope, current grants and exact target. Call actual navigate_scoped(B, Thread), prove admission/pending identity and unchanged scope before the first shelf assertion. GREEN must consume actual Activated/Selection, preserve all shelves/tail35, drain the normal destination visit, and prove a genuinely different project scope still resets tail10.

Only preserve sidebar fields required for this fleet continuity; do not preserve unrelated local controller/client/selection state. No InputState, Root, window/native bridge, new public helpers, timers, server/protocol or constants changes. Actual intended RED and independent artifact custody are required before a production proposal. Parent #242; SB-SECTIONS stays partial, sidebar9/16. Required native gates, independent exact-head review, matched-head merge and fresh meaningful merged proof remain mandatory.

Activity

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

    @rynfar
    OwnerAuthor

    Tests-first progress: the actual window-free watched-thread test failed at the intended unchanged-scope Settled expansion assertion (scoped_route_tests.rs:239, false vs true). The real actor, owners, current READ destination, chosen scope, and expanded 35-row setup passed first. Independent review 7caee5fbdf242122710a0e9c6916a48ddf0340a436dfcf7799424652ab0d07d8 recorded the selected native artifact CURRENT/PRESENT before further builds.

    The later tail, activation/Selection/visit, changed-scope reset, FIFO teardown and no-extra-command assertions have not run yet. They remain required.

    A minimal two-file production proposal preserves shelf state together with its effective scope key during connection switching. The existing genuine scope-change reset remains unchanged. Independent source review is pending before application. No constants or assertions changed. Whole SB-SECTIONS remains partial; sidebar stays 9/16. check:changed bootstrap remains NOT GREEN.

  3. rynfar commented on Nov 7, 2026

    @rynfar
    OwnerAuthor

    The reviewed production fix reached the end of the full test, but the run is NOT GREEN. Shelf continuity, actual activation/Selection, the destination visit request and reply, and genuine scope-change tail reset passed. The final background-fixture empty-command assertion failed; the test did not print the remaining commands, so their identity is unknown.

    Independent failure review e7e1ce13feda0d765e70a05c1a6d1532bfc1fea9b2e82af305e1b4aebccaf9e7 recorded the current selected native artifact before any overwrite. No unchanged retry or acceptance followed. A diagnostic-only test change is proposed to print the command list while keeping the same predicate and all assertions. It needs source review before running.

    The production fix and constants remain unchanged. Whole SB-SECTIONS stays partial and sidebar stays 9/16. check:changed bootstrap remains NOT GREEN.

  4. rynfar commented on Nov 7, 2026

    @rynfar
    OwnerAuthor

    Diagnostic-only run confirmed one remaining command: open-thread. Source review shows selection queues thread.visit synchronously, then opens the selected subscription. The fixture's request reader returns the visit and leaves that following control command queued.

    Independent review 1c85e67821775de17bf1fffb83f37dfec38d07a89aed1ba691182cf38562a950 recorded the diagnostic artifact CURRENT/PRESENT and approved the test correction: require exactly one open-thread, not an empty queue. This changes the expected value; it does not ignore or filter extra commands. The fixture reports command kinds, so this assertion does not prove the subscription's thread ID or global wire silence. The test separately asserts the actual selected route and visit payload.

    All other assertions and production files are unchanged. The corrected native build is running. No GREEN or acceptance claim yet. Sidebar remains 9/16; no constants changed.

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

    @rynfar
    OwnerAuthor

    Finite #333 / PR #336 accepted after independent fresh merged proof.

    Matched candidate b8f5dec2f112c113728752c2a075cb9522d9f21d merged as 4412b37c9264243d32f4482ea9f7123d8af06299, tree 258bb27de855af9dbd79534dc39f3f77a76dfe23, parent 7060b3d610dd61a12066892709690b674521d9fa. MAIN has matching 572 Rust source hashes and ledger 45932f950386be0dabc513a0d59798500c7d6d46f907cede61e0c5d4ce0f70fe and is clean.

    Tests first and corrected whole actor test: see the PR's recorded failure/correction history. Candidate required gates all passed; check:changed bootstrap is explicitly NOT GREEN. Fresh merged proof followed independent candidate CURRENT artifact custody and an owned three-crate clean: snapshot build, fresh=false compiler JSON for MAIN core/native, 7 core and 8 native exact controls all passed once, with distinct initially empty native homes.

    Independent fresh merged FINAL 61373ac8161a533a9b1558a0b4a33043339c377189db285b6e42baaca0c38486 accepted the finite fix with all three current artifacts directly hashed twice, exact merged identity/source/ledger, all current logs, and meaningful fresh controls. No blocking findings. The finite issue may close; whole SB-SECTIONS stays partial.

    No whole SECTIONS credit; sidebar 9/16. No constants changed.

  7. removed
    status:review
    on Nov 7, 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