GeezerVison is showing github.com — atlas core consumer wiring: fleet atlas-search fan-out over the TursoDB shard core (tier ceilings, merge, --expand hydration) · Issue #5755 · developing-today/code
atlas core consumer wiring: fleet atlas-search fan-out over the TursoDB shard core (tier ceilings, merge, --expand hydration) #5755DescriptionConsumer wiring for the restored atlas core tier (restore record: #5669, 2026-11-04). The core now exists as 29 TursoDB scan shards + 2 TursoDB content stores; nothing reads them yet — production search still runs against the monolith atlas (libSQL). This issue wires the consumer side. (Serve-role home for the service itself: #5604. Cache + flags: #5668 — coordinate, don’t duplicate.)
Shard layout (authoritative map on #5669): atlas-core-<tier>-<topic>-<nn> scan stores (chunks + vec F32_BLOB(768) + atlas_manifest), tier ∈ {internal (28 shards, 107,001 chunks), secret (1 shard, 638 chunks)}; content stores atlas-core-internal-content / atlas-core-secret-content (messages + sessions for --expand hydration). Public tier: no corpora yet.
Scope:
- Shard discovery: consumer resolves the shard set from a registry (each shard’s
atlas_manifest is the self-description; decide the registry of record — candidates: the atlas staging tier: versioned schema, registry, aggregator with merge-on-close promotion into three-level core #5669 registry DB, or manifest fan-out at startup). New shards must join without code changes.
- Query path: fan out an exact-cosine scan (
vector_distance_cos(vec, ?), top-k per shard) across the caller’s shards in parallel, merge by distance. Scoped queries (one topic) touch only that topic’s shards. Metric is cosine for this corpus; TursoDB also offers dot product, L2, and Jaccard for future corpora.
- Tier ceiling is physical: a client fans out only to tiers its credentials open. Secret is never in a default fan-out; it requires a secret-capable token, explicitly.
--expand hydration from the caller’s tier content store (message/session rows by chunk message_id).
- Result-cache snapshot id (§3.2 of docs: Scaler-era Atlas/Turso data architecture revision #5667) must incorporate the shard set + per-shard counts so a re-shard invalidates correctly (with atlas-search service: query-embedding + snapshot result caching, --no-cache/--wait/--expand/--raw flags #5668).
Known gaps / data:
- FTS: TursoDB rejects virtual tables in MVCC mode — the shards have no
chunks_fts. Keyword search needs an answer (keep serving FTS from the libSQL monolith until cutover, or a dedicated FTS store). Decide here or spin out.
- Latency (measured at restore, sandbox → us-east-1 HTTPS, network-inclusive): per-shard top-10 scan 1.1–1.9 s at 3.5–4.5k rows — above the §5.2 250 ms server-side budget assumption for libSQL. Re-measure from the laptop consumer path; §5.5 embedded replicas for internal/public stores are the standing lever (secret is never replicated).
- Cutover criteria: fan-out parity vs monolith exact scan is proven at restore time (7/7 held-out queries, exact top-10). Re-run the parity harness against the wired consumer before any default switch; monolith stays untouched until then.
Related: #8229 (cold catalog implementation merged in PR #14604; the consumer follow-up may use this catalog for cold-tier addressing).} Activitydeveloping-today commented on Nov 5, 2026 dezren39 commented on Nov 5, 2026 🤖 Agent note · done (triage)
- Agent: queue worker (repo-worker-code), lane code-t
- Session / ID: task 10164
- Found via: queue claim
- Task: triaged issue atlas core consumer wiring: fleet atlas-search fan-out over the TursoDB shard core (tier ceilings, merge, --expand hydration) #5755; coordination refs verified, implementation scoped into follow-up task 10489
- Expectation: done = issue atlas core consumer wiring: fleet atlas-search fan-out over the TursoDB shard core (tier ceilings, merge, --expand hydration) #5755 routed with evidence; the wiring proceeds as task 10489
- Links: task 10489 (follow-up small_fix), issue atlas staging tier: versioned schema, registry, aggregator with merge-on-close promotion into three-level core #5669, issue atlas-search service: query-embedding + snapshot result caching, --no-cache/--wait/--expand/--raw flags #5668, issue fleet search serve role: rehome the atlas service into fleet serve search + re-point the atlas user unit #5604
Triage findings (verified fresh 2026-11-05):
- Nothing contradicts the issue's premise. The restored core (29 scan shards + 2 content stores per the issue atlas staging tier: versioned schema, registry, aggregator with merge-on-close promotion into three-level core #5669 restore record) still has no consumer; this issue is the consumer wiring, and it is implementation work, not a design question.
- Coordination set verified OPEN: issue atlas staging tier: versioned schema, registry, aggregator with merge-on-close promotion into three-level core #5669 (atlas staging tier / registry / restore record), issue fleet search serve role: rehome the atlas service into fleet serve search + re-point the atlas user unit #5604 (fleet serve search role — the serve home), issue atlas-search service: query-embedding + snapshot result caching, --no-cache/--wait/--expand/--raw flags #5668 (query-embedding + snapshot result caching + flags). Task 10489 is scoped to coordinate with issue atlas-search service: query-embedding + snapshot result caching, --no-cache/--wait/--expand/--raw flags #5668 (snapshot id must incorporate shard set + per-shard counts) and issue fleet search serve role: rehome the atlas service into fleet serve search + re-point the atlas user unit #5604, and to duplicate neither.
- Ordering gates recorded for the follow-up: parity harness must be re-run against the wired consumer before any default switch; the monolith stays default and untouched in this task; the FTS gap (no
chunks_fts in MVCC shards) must be decided or spun out, not dropped; latency must be re-measured from the laptop consumer path (the 1.1–1.9 s figures are sandbox→us-east-1 network-inclusive).
Disposition: follow-up small_fix task 10489 enqueued (queue repo-health-code-pilot), flag-gated wiring with physical tier ceilings and --expand hydration per the acceptance list. Issue #5755 stays open for task 10489.
dezren39 commented on Nov 5, 2026 🤖 Agent note · state: handed off
dezren39 commented on Nov 17, 2026 🤖 Agent note · triaged — live remainder is exactly follow-up #6666; parent stays open as tracker
- Agent: repo-worker-code (Muse lane any-b)
- Session / ID: queue task 18358
- Found via: atomic unfiltered claim from the one fleet queue (stream repo-health-code-pilot)
- State of record: slice 1 of the consumer wiring landed as PR feat(atlas-core): shard discovery, tier ceilings and parallel fan-out over the core scan shards (#5755 slice 1) #6661 (manifest fan-out discovery, physical tier ceilings, parallel exact-cosine fan-out + merge, ShardedBackend, hidden default-off --shards; local cargo tests green without live secrets). The premature 2026-11-07 bot closure was already caught and reversed by the 90-day closed-item review, whose remainder analysis this triage re-verified rather than redid.
- Fresh follow-up map this shift (2026-11-17): atlas shard consumer: live verification — parity, latency, token minting (follow-up of #5755 slice 1) #6662 (live verification) CLOSED, atlas shard consumer: --expand hydration from tier content stores (follow-up of #5755 slice 1) #6664 (--expand hydration) CLOSED, atlas shard consumer: classification/date filters and FTS answer for shard fan-out (follow-up of #5755 slice 1) #6665 (filters/FTS) CLOSED, atlas shard consumer: serve-mode (fleet serve search role) and #5668 snapshot-id integration (follow-up of #5755 slice 1) #6666 (serve mode + atlas-search service: query-embedding + snapshot result caching, --no-cache/--wait/--expand/--raw flags #5668 snapshot-id integration) still OPEN — precisely the live remainder the review named.
- Routing: no new packet. atlas shard consumer: serve-mode (fleet serve search role) and #5668 snapshot-id integration (follow-up of #5755 slice 1) #6666 is the remaining slice and carries its own follow-up ownership; atlas core consumer wiring: fleet atlas-search fan-out over the TursoDB shard core (tier ceilings, merge, --expand hydration) #5755 stays OPEN in its tracking role until atlas shard consumer: serve-mode (fleet serve search role) and #5668 snapshot-id integration (follow-up of #5755 slice 1) #6666 is dispositioned, then it can close. Nothing here needs Drew.
dezren39 commented on Nov 17, 2026 🤖 Agent note · state: triaged (duplicate follow-on — triage of record stands)
- Agent: queue worker (repo-worker-code), lane any-e
- Session / ID: task 19886
- Found via: queue claim (unfiltered one-queue claim; triage follow-on from task 18358)
Triage verdict for task 19886, issue #5755 — triaged; no new packet.
Re-verified fresh this shift (2026-11-17):
- Issue atlas core consumer wiring: fleet atlas-search fan-out over the TursoDB shard core (tier ceilings, merge, --expand hydration) #5755 is OPEN with no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit absent).
- Triage of record: task 18358 (lane any-b, 2026-11-17T03:00Z) — slice 1 landed as PR feat(atlas-core): shard discovery, tier ceilings and parallel fan-out over the core scan shards (#5755 slice 1) #6661; the premature 2026-11-07 bot closure was reversed by the 90-day closed-item review.
- Follow-up map re-verified fresh this shift: atlas shard consumer: live verification — parity, latency, token minting (follow-up of #5755 slice 1) #6662 CLOSED, atlas shard consumer: --expand hydration from tier content stores (follow-up of #5755 slice 1) #6664 CLOSED, atlas shard consumer: classification/date filters and FTS answer for shard fan-out (follow-up of #5755 slice 1) #6665 CLOSED, atlas shard consumer: serve-mode (fleet serve search role) and #5668 snapshot-id integration (follow-up of #5755 slice 1) #6666 (serve mode + atlas-search service: query-embedding + snapshot result caching, --no-cache/--wait/--expand/--raw flags #5668 snapshot-id integration) OPEN — exactly the live remainder, carrying its own follow-up ownership.
- Issue atlas core consumer wiring: fleet atlas-search fan-out over the TursoDB shard core (tier ceilings, merge, --expand hydration) #5755 stays OPEN in its tracking role until atlas shard consumer: serve-mode (fleet serve search role) and #5668 snapshot-id integration (follow-up of #5755 slice 1) #6666 is dispositioned. Nothing here needs Drew, and no duplicate follow-on packet is created.
Task 19886 completes as triaged.
dezren39 commented on Nov 23, 2026 agent-note:v1
state: in-progress (Lane DU — reconciliation + #11213 decision-record slice)
task: shortlist rank 6 via fleet agent next (archer)
worker: Muse lane DU
Fresh verification (2026-11-22 ~22:05 CST):
- atlas core consumer wiring: fleet atlas-search fan-out over the TursoDB shard core (tier ceilings, merge, --expand hydration) #5755 OPEN; slice 1 landed (PR feat(atlas-core): shard discovery, tier ceilings and parallel fan-out over the core scan shards (#5755 slice 1) #6661). Follow-ups: atlas shard consumer: live verification — parity, latency, token minting (follow-up of #5755 slice 1) #6662 closed, atlas shard consumer: --expand hydration from tier content stores (follow-up of #5755 slice 1) #6664 closed, atlas shard consumer: classification/date filters and FTS answer for shard fan-out (follow-up of #5755 slice 1) #6665 closed, atlas-search service: query-embedding + snapshot result caching, --no-cache/--wait/--expand/--raw flags #5668 closed. Sole live remainder is atlas shard consumer: serve-mode (fleet serve search role) and #5668 snapshot-id integration (follow-up of #5755 slice 1) #6666.
- atlas shard consumer: serve-mode (fleet serve search role) and #5668 snapshot-id integration (follow-up of #5755 slice 1) #6666: slice 1 (serve wiring + re-discovery) MERGED via PR feat(atlas): serve-mode shard fan-out with re-discovery (#6666 slice 1) #11216; slice 2 (snapshot_id → cache key) done via atlas-search service: query-embedding + snapshot result caching, --no-cache/--wait/--expand/--raw flags #5668 slices. Only remainder = slice 3, filed as atlas(#6666 slice 3): persistent embedded replicas for internal/public (libsql local-copy, design 5.5) #11213.
- atlas(#6666 slice 3): persistent embedded replicas for internal/public (libsql local-copy, design 5.5) #11213: OPEN, no live claim (last notes are capacity/defect parks, latest 2026-11-22T02:33Z). Its scope item 1 — decide and record the integration shape — is the landable slice.
This lane: (1) reconcile #5755's state here; (2) land the #11213 scope-item-1 decision record as a doc PR after inspecting the current transport seam on main; (3) post a staged breakdown on #11213 so the remaining scope is lane-sized. No live-sync or dependency work in this lane. dezren39 commented on Nov 23, 2026 agent-note:v1
state: reconciled — one remainder left, staged on #11213
task: shortlist rank 6 via fleet agent next (archer, Lane DU)
worker: Muse lane DU
Fresh reconciliation of #5755 against current main (2026-11-22 ~22:20 CST):
- Slice 1 (discovery, physical tier ceilings, parallel fan-out + merge, ShardedBackend,
--shards): landed, PR feat(atlas-core): shard discovery, tier ceilings and parallel fan-out over the core scan shards (#5755 slice 1) #6661.
- Follow-ups: atlas shard consumer: live verification — parity, latency, token minting (follow-up of #5755 slice 1) #6662 (live verification) closed, atlas shard consumer: --expand hydration from tier content stores (follow-up of #5755 slice 1) #6664 (--hydrate; --expand semantics preserved per the 2026-11-06 ruling) closed, atlas shard consumer: classification/date filters and FTS answer for shard fan-out (follow-up of #5755 slice 1) #6665 (filters/FTS answer) closed, atlas-search service: query-embedding + snapshot result caching, --no-cache/--wait/--expand/--raw flags #5668 (cache + snapshot id) closed.
- atlas shard consumer: serve-mode (fleet serve search role) and #5668 snapshot-id integration (follow-up of #5755 slice 1) #6666: slice 1 (serve wiring + re-discovery) merged via PR feat(atlas): serve-mode shard fan-out with re-discovery (#6666 slice 1) #11216; slice 2 (snapshot_id → cache key) done via the atlas-search service: query-embedding + snapshot result caching, --no-cache/--wait/--expand/--raw flags #5668 slices. Only slice 3 remains, as atlas(#6666 slice 3): persistent embedded replicas for internal/public (libsql local-copy, design 5.5) #11213.
- atlas(#6666 slice 3): persistent embedded replicas for internal/public (libsql local-copy, design 5.5) #11213: scope item 1 (integration shape) is now decided and recorded — PR doc(atlas): decision record — embedded-replica integration shape (#11213 scope 1) #12868 merged (
bf322f9a4e), decision doc doc/2026-11-23T04-10-00Z_decision_atlas_embedded_replica_integration/. Headline: engine-matched crate (turso pull by default; libsql only on spike proof), single sync owner, no second-process reads of a syncing replica file. The rest of atlas(#6666 slice 3): persistent embedded replicas for internal/public (libsql local-copy, design 5.5) #11213 is staged 1–4 on that issue; next slice = the stage-1 spike.
#5755 stays open as the parent tracker until #11213 stage 4 (live verification) closes the last remainder. No other consumer-wiring scope is outstanding. dezren39 commented on Nov 24, 2026 🤖 Agent note · verify-and-route pass (queue 21842, lane code-f, 2026-11-24)
- Verdict: substantially landed. Slice 1 (discovery, tier ceilings, fan-out and merge, ShardedBackend, --shards) merged via PR feat(atlas-core): shard discovery, tier ceilings and parallel fan-out over the core scan shards (#5755 slice 1) #6661. Follow-ups atlas shard consumer: live verification — parity, latency, token minting (follow-up of #5755 slice 1) #6662, atlas shard consumer: --expand hydration from tier content stores (follow-up of #5755 slice 1) #6664, atlas shard consumer: classification/date filters and FTS answer for shard fan-out (follow-up of #5755 slice 1) #6665 and atlas-search service: query-embedding + snapshot result caching, --no-cache/--wait/--expand/--raw flags #5668 are closed. atlas shard consumer: serve-mode (fleet serve search role) and #5668 snapshot-id integration (follow-up of #5755 slice 1) #6666 is merged via PR feat(atlas): serve-mode shard fan-out with re-discovery (#6666 slice 1) #11216 except its slice 3.
- Remainder: slice 3 is filed as atlas(#6666 slice 3): persistent embedded replicas for internal/public (libsql local-copy, design 5.5) #11213, with no live claim. The 2026-11-23 reconciliation above names it as the landable slice.
- Routing: already routed to atlas(#6666 slice 3): persistent embedded replicas for internal/public (libsql local-copy, design 5.5) #11213. No new packet. No code changed in this pass.
developing-today-fleet commented on Nov 26, 2026 🤖 Triage — 2026-11-26 (task 24852, lane any-o)
- Disposition: keep atlas core consumer wiring: fleet atlas-search fan-out over the TursoDB shard core (tier ceilings, merge, --expand hydration) #5755 open as the parent tracker. PR feat(atlas-core): shard discovery, tier ceilings and parallel fan-out over the core scan shards (#5755 slice 1) #6661 and follow-ups atlas shard consumer: live verification — parity, latency, token minting (follow-up of #5755 slice 1) #6662/atlas shard consumer: --expand hydration from tier content stores (follow-up of #5755 slice 1) #6664/atlas shard consumer: classification/date filters and FTS answer for shard fan-out (follow-up of #5755 slice 1) #6665/atlas-search service: query-embedding + snapshot result caching, --no-cache/--wait/--expand/--raw flags #5668 are recorded complete; atlas shard consumer: serve-mode (fleet serve search role) and #5668 snapshot-id integration (follow-up of #5755 slice 1) #6666 serve/snapshot wiring is merged via feat(atlas): serve-mode shard fan-out with re-discovery (#6666 slice 1) #11216. The sole remaining consumer-wiring scope is atlas(#6666 slice 3): persistent embedded replicas for internal/public (libsql local-copy, design 5.5) #11213, persistent embedded replicas.
- Important update since the prior triage: atlas(#6666 slice 3): persistent embedded replicas for internal/public (libsql local-copy, design 5.5) #11213's integration shape is now decided and merged in PR doc(atlas): decision record — embedded-replica integration shape (#11213 scope 1) #12868 (engine-matched Turso pull-only path; single sync owner; secret-tier refusal pre-network). Its 2026-11-23 comment stages the remaining work into spike, transport, discovery, and live verification. The old oversized task 20734 is canceled; triage task 21694 is done.
- I queued task 25392 for only stage 1: validate crate/contract and, if possible without production mutation or secret-tier data, measure one internal-shard sync and budget. Later stages remain open and must not be inferred complete. No code or production configuration changed.
#5755 closes only after #11213's remaining stages satisfy their acceptance. developing-today-fleet commented on Nov 27, 2026 Triage re-verify — lane 1837-M, queue task 25448 (2026-11-26)
Verdict: substantially landed; sole remainder already routed — keep #5755 open as parent tracker.
Fresh verification (1837-M, 2026-11-27T00:5xZ):
- Slice 1 LANDED: PR feat(atlas-core): shard discovery, tier ceilings and parallel fan-out over the core scan shards (#5755 slice 1) #6661 feat(atlas-core): shard discovery, tier ceilings and parallel fan-out over the core scan shards (#5755 slice 1) #6661 MERGED — shard discovery (manifest fan-out), physical tier ceilings, parallel exact-cosine fan-out + merge, ShardedBackend, hidden default-off
--shards; --expand semantics preserved.
- Follow-ups CLOSED: atlas shard consumer: live verification — parity, latency, token minting (follow-up of #5755 slice 1) #6662 (live verification), atlas shard consumer: --expand hydration from tier content stores (follow-up of #5755 slice 1) #6664 (--expand hydration, PR feat(atlas): hydrate shard hits from tier content stores (#6664) #8396 merged), atlas shard consumer: classification/date filters and FTS answer for shard fan-out (follow-up of #5755 slice 1) #6665 (filters/FTS), atlas-search service: query-embedding + snapshot result caching, --no-cache/--wait/--expand/--raw flags #5668 (cache + snapshot id). atlas shard consumer: serve-mode (fleet serve search role) and #5668 snapshot-id integration (follow-up of #5755 slice 1) #6666 serve/snapshot wiring merged via PR feat(atlas): serve-mode shard fan-out with re-discovery (#6666 slice 1) #11216 except slice 3.
- Sole live remainder: atlas(#6666 slice 3): persistent embedded replicas for internal/public (libsql local-copy, design 5.5) #11213 atlas(#6666 slice 3): persistent embedded replicas for internal/public (libsql local-copy, design 5.5) #11213 (embedded replicas, atlas shard consumer: serve-mode (fleet serve search role) and #5668 snapshot-id integration (follow-up of #5755 slice 1) #6666 slice 3) — OPEN, integration shape decided in PR doc(atlas): decision record — embedded-replica integration shape (#11213 scope 1) #12868 (merged), remaining work staged spike → transport → discovery → live verification. atlas(#6666 slice 3): persistent embedded replicas for internal/public (libsql local-copy, design 5.5) #11213 currently carries status/blocked + queue/blocked labels.
- Remainder already queued: the 2026-11-26 triage (task 24852) queued task 25392 for atlas(#6666 slice 3): persistent embedded replicas for internal/public (libsql local-copy, design 5.5) #11213 stage 1 only (crate/contract validation + one internal-shard sync measurement); task 25392 is still
queued, unclaimed — no new packet from this lane, no duplication.
- No held/user label on atlas core consumer wiring: fleet atlas-search fan-out over the TursoDB shard core (tier ceilings, merge, --expand hydration) #5755 (status:to-do + task/triage only); no competing live claim on atlas core consumer wiring: fleet atlas-search fan-out over the TursoDB shard core (tier ceilings, merge, --expand hydration) #5755 itself.
Disposition for task 25448: triage complete. #5755 closes only after #11213's remaining stages satisfy their acceptance.
🤖 Agent note · triage · lane 1837-M · task 25448 · outcome: follow_up_already_routed (#11213 via queued task 25392; slice 1 merged #6661)
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|