Skip to content

fix(native): forward chosen project scope in older search - #332

Merged
rynfar merged 1 commit into
nativefrom
nw/329-search-scope
Nov 7, 2026
Merged

rynfar merged 1 commit into
nativefrom
nw/329-search-scope

Conversation

@rynfar

@rynfar rynfar commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

Problem

Sidebar search drops the chosen project IDs when requesting older-settled rows. The shared request helper already follows the web/server contract; the caller was passing None.

Fix

The scoped caller resolves the effective chosen groups once and passes the same sorted raw project-ID array to every already-admitted ready owner. Distinct environment-local references may share a raw ID; those values are preserved. The existing helper includes project IDs only when an older-settled cut exists. Base message search is not project-filtered.

The no-ready-owner fallback, read permissions, fanout, debounce, request lifetime and core helper stay unchanged. Same-query scope re-planning and stale reply handling remain separate work.

Closes #329. Parent #242. SB-SEARCH remains partial, sidebar 9/16.

Verification

  • Tests first: one exact actual GPUI/ClientFixture case failed on recorded projectIds: null versus ["checkout-a", "checkout-b"], after scope, method, query and cut checks. Independent RED/artifact review 2c61b39ea348480715c442b9e6963f1883722647ad4c872a6665aa4eee6f7fc1.
  • GREEN response/task/content/current-owner/cleanup path passed unchanged (one pass, 124 filtered), independently reviewed with exact native artifact custody (6ebdb858). Candidate 91c58c75ba0eeea245d690fbb9014f04d21240c3 passed independent exact-head source/context review (d8797c18). All 1,356 core/client tests, strict workspace/all-target Clippy, normal and snapshot builds, theme, intake, conformance and diff checks passed. Candidate compiler-selected runtime controls also passed: seven exact core cases (one pass each, 1,249 filtered) and seven exact native cases (one pass each, 124 filtered), each native case in a separate empty owned home. Independent candidate final review passed (374c8e54). Matched-head merge is 0c8a93cbf3c227166efb2bf0d6eded1090cdeb2c with the exact reviewed tree. Fresh merged snapshot/core7/native7 passed again; independent merged final review (e17e5cba) confirmed all three exact artifacts present before the next build. This finite fix is accepted. Whole SEARCH remains partial.
  • No constants or assertions changed. No physical AppKit/AX/input, real-provider or performance claim.
  • vp run check:changed fails before checks at desktop task-graph UserTaskDefinition parsing. This is NOT GREEN; no dependency install or unrelated repair was made. The approved formatting exception remains separate.

Model and harness: inherited worker/reviewer models through Prime Agent; independent Sol/Codex review.

@rynfar

rynfar commented Nov 7, 2026

Copy link
Copy Markdown
Owner Author

Independent exact-head source/context review approved 91c58c75ba0eeea245d690fbb9014f04d21240c3 / tree ff87263edd3509d958feabac5e3e2cde44afeaf6 with no findings (d8797c18688bec7271e0a9a97eab281d29d8efe3241e5aed887a6e0c5e09a203). The tests-first RED and unchanged full actor GREEN both have independent artifact custody recorded. Theme, intake, conformance and diff checks passed. Core/client tests are running; strict Clippy, both builds, candidate runtime controls and final artifact review remain.

vp run check:changed did not run its checks: task-graph bootstrap fails in apps/desktop on UserTaskDefinition, as previously reproduced unchanged. This is not green. No dependency install, tooling repair, formatting sweep or permission change was made.

@rynfar

rynfar commented Nov 7, 2026

Copy link
Copy Markdown
Owner Author

PR #332 matched-head merged as 0c8a93cbf3c227166efb2bf0d6eded1090cdeb2c. Merged main has the exact reviewed tree ff87263edd3509d958feabac5e3e2cde44afeaf6, all 572 Rust source hashes and the partial ledger hash. Independent candidate final review 374c8e5464b480f707e07958beb9156bfdbb3fbc6e34e6263074a1bdb966cefd confirmed all three artifacts present before the owned-package clean. A clean merged-main snapshot build is running; fresh core/native runtime proof and independent merged artifact confirmation remain required before finite acceptance. Sidebar remains 9/16.

@rynfar

rynfar commented Nov 7, 2026

Copy link
Copy Markdown
Owner Author

Fresh merged-main proof passed: seven exact core cases (one pass each, 1,249 filtered) and seven exact native cases (one pass each, 124 filtered), including the full search actor and selection/paging controls. Every native case used its own initially empty owned home. The clean snapshot build passed, source/ledger hashes stayed stable and main is clean. Independent merged artifact confirmation is pending before finite acceptance. SB-SEARCH remains partial; sidebar9/16. No constants changed.

@rynfar

rynfar commented Nov 7, 2026

Copy link
Copy Markdown
Owner Author

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.

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