Files
gbrain/test
Garry TanandClaude Opus 5 ba1aedd100 fix(sources): narrow #2928 fix to the read path — keep tier 5.5 write routing
CI (test/sync-sole-non-default-routing.test.ts) caught that excluding
explicitly-isolated sources from pickSoleNonDefaultSource redirected
unqualified WRITES (sync/import) to 'default' — silent data misplacement,
worse than the read bug. --no-federated governs read mixing, not write
routing.

Reverted tier 5.5 to master behavior. The fix now lives in
localFederatedSourceIds only: an explicitly isolated resolved source
(config.federated === false) is never widened into the federated set, so
unqualified reads anchored on it stay scalar — its pages are not mixed
with 'default' and vice versa. That helper feeds federatedSearchScope
exclusively (reads); writes never touch it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-28 13:26:53 -07:00
..