Skip to content

fix(native): scope cut-present sidebar search to chosen projects #329

Closed

Description

@rynfar

Problem

The native sidebar search caller does not pass the chosen project ids when searching below the older-settled cut. The existing shared request helper already follows the current web/server contract and must stay unchanged.

Finite scope

Prove the actual SidebarPane / SearchState request through ClientFixture with a real chosen project group and an older-settled cut. Check method, query and cut before the projectIds assertion. Then forward the effective common raw project-id array from the caller. Keep all admitted ready-owner fanout; do not replace it with per-owner scope arrays.

projectIds only scopes older-row enrichment. The server does not use it to scope base message matches, and the no-cut query-only payload is correct.

Tests first, independent exact source review, required native gates, matched-head merge and fresh merged proof. Same-query scope refresh, stale replies and whole SEARCH acceptance remain separate follow-up work. Parent #242. Sidebar remains 9/16. No constants changed.

Activity

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

    @rynfar
    OwnerAuthor

    The tests-first caller witness compiled and reproduced the intended defect in an actual recorded SEARCH_THREADS request: projectIds was null instead of ["checkout-a", "checkout-b"]. The actual selected-scope, method, query and older-settled cut checks passed before the failing assertion. Exactly one test failed (124 filtered), using a fresh empty owned sandbox home. No Root/native-window/input bridge workaround was used. Independent actual-failure classification and artifact custody are pending before the production fix. Core request-helper and server behavior remain unchanged. SB-SEARCH remains partial, 9/16 overall. No constants changed.

  3. rynfar commented on Nov 7, 2026

    @rynfar
    OwnerAuthor

    Independent review accepted the intended caller failure and confirmed the exact native artifact present before changes. The minimal fleet caller production proposal is now released. It must use the same effective chosen raw project-id array for every admitted ready owner; the shared helper, no-cut payload behavior, owner admission and request lifetime remain unchanged. Response/task/current-owner cleanup still needs the GREEN run. Separate explicit-scope anchor cleanup is tracked in #331. Whole SEARCH/SELECT remain partial, 9/16 overall.

  4. rynfar commented on Nov 7, 2026

    @rynfar
    OwnerAuthor

    The unchanged actual search case now passes end to end after the reviewed caller-only fix. It records the chosen project IDs, sends a normal reply, joins the owned consumer task, checks exact owner content/query and unchanged route, then completes fixture/app/runtime cleanup. Exactly one test passed (124 filtered) in a fresh empty owned home. Source and ledger hashes stayed stable. Independent GREEN/artifact review is pending before candidate gates. No same-query/fanout/fallback or whole SEARCH acceptance is claimed.

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

    @rynfar
    OwnerAuthor

    Finite cut-present search caller fix #329 / PR #332 is accepted after independent merged artifact confirmation (e17e5cba455e4aebae436b6e82b160b83ac8a907a7c150ba46be62b32b5e074d), with all three exact artifacts independently present before the next build. Matched merge 0c8a93cbf3c227166efb2bf0d6eded1090cdeb2c has exact reviewed tree ff87263edd3509d958feabac5e3e2cde44afeaf6. Candidate required native gates passed, including 1,356 tests and strict Clippy. Fresh merged snapshot, seven exact core cases and seven exact native cases passed. Every native case used a distinct empty owned home.

    Tests first reproduced the actual request payload missing chosen project IDs after method/query/cut/scope controls. The unchanged full actor case now proves payload, normal reply, consumer task completion, exact owner content/query, unchanged route and cleanup. The fix forwards one common effective chosen raw-ID array to every already-admitted ready owner; the helper emits it only with an older cut. Core helper/server/no-cut/legacy fallback/request lifetime stay unchanged. This is one-owner payload proof, not multi-owner fanout, same-query replan, stale reply or whole SEARCH acceptance.

    SB-SEARCH stays partial; sidebar9/16. No constants or assertions changed. No physical AppKit/AX/input, live-provider, restart or performance claim. check:changed bootstrap failure and the approved formatting exception remain separate, not green.

  7. removed
    status:review
    on Nov 7, 2026
  8. rynfar commented on Nov 7, 2026

    @rynfar
    OwnerAuthor

    Closing this finite fix after accepted PR #332, matched merge 0c8a93cbf3c227166efb2bf0d6eded1090cdeb2c and independent fresh merged proof e17e5cba. The acceptance comment above records the evidence and limits. The broader sidebar row remains partial under #242; closing this issue does not add whole-row credit. Constants changed: none.

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