Skip to content

atlas core consumer wiring: fleet atlas-search fan-out over the TursoDB shard core (tier ceilings, merge, --expand hydration) #5755

Open

Description

@dezren39

Consumer 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:

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).}

Acceptance criteria

Activity

  1. developing-today commented on Nov 5, 2026

    @developing-today
    Contributor
  2. added
    queue/queued
    task/triage
    work/assigned
    queue/claimed
    status/in-progress
    and removed
    queue/queued
    on Nov 5, 2026
  3. dezren39 commented on Nov 5, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done (triage)

    Triage findings (verified fresh 2026-11-05):

    1. 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.
    2. 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.
    3. 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.

  4. added
    queue/queued
    and removed
    status/in-progress
    queue/claimed
    work/assigned
    on Nov 5, 2026
  5. dezren39 commented on Nov 5, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · state: handed off

  6. removed
    queue/queued
    on Nov 5, 2026
  7. 126 remaining items

  8. developing-today-fleet commented on Nov 26, 2026

    @developing-today-fleet
    Contributor

    🤖 Triage — 2026-11-26 (task 24852, lane any-o)

    #5755 closes only after #11213's remaining stages satisfy their acceptance.

  9. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    Contributor

    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):

    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)

  10. added
    epic/atlas-program
    primary-parent/atlas-program
    stray-work
    on Nov 27, 2026
  11. added
    priority/normal
    kind/feature
    on Nov 29, 2026
  12. dezren39 commented on Nov 29, 2026

    @dezren39
    MemberAuthor

    🤖 Census note — 2026-11-29 (lane CEN-C04, full-census pass)

    Verdict: blocked on its sole remainder. Rechecked firsthand. Landed: slice 1 fan-out/merge/ShardedBackend (PR #6661); follow-ups #6662, #6664, #6665, #5668 CLOSED; #6666 serve/snapshot wiring merged via PR #11216 except slice 3. Sole remaining scope / blocker: #11213 (persistent embedded replicas) — integration shape decided (PR #12868: engine-matched Turso pull-only path, single sync owner, secret-tier refusal pre-network) and staged spike → transport → discovery → live verification; #11213 itself currently carries status/blocked. This parent closes when #11213 lands.

    Census actions: added labels priority/normal, kind/feature.

  13. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Census 2026-11-29 (Felix):

  14. added
    status/triaged
    effort/m
    area/infra
    on Nov 29, 2026
  15. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29

    Gaps found: no standard status/* label (only the legacy status:to-do marker), no effort/, no app//area/* label, and no acceptance criteria section.
    Strengths: the wiring task is grounded in the restore record — the core exists as 29 TursoDB scan shards + 2 content stores (#5669 holds the authoritative map) and nothing reads them yet; coordination boundaries with #5668 and #5604 are stated up front.
    Actions: added labels status/triaged, effort/m, area/infra; appended a ## Acceptance criteria section derived from the body's own ask (original text untouched). Priority unchanged (normal).

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

    area/infraeffort/mepic/atlas-programkind/featureprimary-parent/atlas-programpriority/normalstatus/triagedstatus:to-dostray-worktask/triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions