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.

Activity

  1. developing-today commented on Nov 5, 2026

    @developing-today
    Contributor
  2. added
    task/triageQueue packet kind: verify, reproduce, and route this item
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed 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 and removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 5, 2026
  5. dezren39 commented on Nov 5, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · state: handed off

  6. 110 remaining items

  7. dezren39 commented on Nov 7, 2026

    @dezren39
    MemberAuthor

    Agent note: fleet session ses_e5e4c6d3d79ffehw1ILUq4TQbr started slice 1 on branch fw/atlas5755-consumer-wiring (worktree wt-fw-atlas5755). Plan: new atlas-core::shards module — manifest-fan-out discovery (name convention + atlas_manifest self-description; lister = Turso platform API / static / local dir), tier-ceiling selection (physical: no connect/credential for tiers above ceiling), parallel exact-cosine fan-out + merge (internal first on ties), and a BranchPoolExecutor that takes the vector pool from shards while FTS stays on the monolith. Tests use local SQLite shard fixtures with a registered vector_distance_cos (no live secrets). --expand/hydration, CLI/service flag, cache snapshot id wiring (#5668) are follow-ups.

  8. dezren39 commented on Nov 7, 2026

    @dezren39
    MemberAuthor

    Slice 1 landed as PR #6661 (shard discovery by manifest fan-out, physical tier ceilings, parallel exact-cosine fan-out + merge, ShardedBackend, hidden default-off --shards). Local tests green without live secrets (whole pkgs/atlas-search workspace). Follow-ups: #6662 (live verification), #6664 (--expand hydration), #6665 (filters/FTS), #6666 (serve mode + #5668 snapshot id).

  9. added a commit that references this issue on Nov 7, 2026
  10. dezren39 commented on Nov 7, 2026

    @dezren39
    MemberAuthor

    Completion (session ses_e5e4c6d3d79ffehw1ILUq4TQbr): slice 1 merged — PR #6661 (merge commit 207e612). Full local cargo test over pkgs/atlas-search green (atlas-core 40 unit + 11 shard integration + 5 parity; atlas-search cli_parity 6 incl. 2 new shard e2e). Registry-of-record decision: manifest fan-out at startup (rationale in PR). #5755 stays open; follow-ups: #6662 (live verification/parity/latency/tier tokens), #6664 (--expand hydration; shipped semantics untouched), #6665 (filters + FTS answer), #6666 (serve mode + #5668 snapshot id). No open questions needing an answer; defaults chosen: hidden default-off --shards, tier tokens via ATLAS_TURSO_TOKEN_{PUBLIC,INTERNAL,SECRET}, TURSO_API_TOKEN for listing.

  11. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    Reopened by the 90-day closed-item review (batch 71).

    This issue was closed as completed on 2026-11-07T01:45:45Z by developing-today[bot] (closure event verified via gh api: actor developing-today[bot], commit_id null). That closure contradicts the issue's own record:

    No closing keyword, decision record or successor covers the parent. Live remainder: the #6666 serve-mode slice (and the parent's tracking role until all four follow-ups are dispositioned).

  12. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged — live remainder is exactly follow-up #6666; parent stays open as tracker

  13. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

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

    Task 19886 completes as triaged.

  14. removed their assignment
    on Nov 20, 2026
  15. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

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

    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.

  16. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

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

    #5755 stays open as the parent tracker until #11213 stage 4 (live verification) closes the last remainder. No other consumer-wiring scope is outstanding.

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

    status:to-dotask/triageQueue packet kind: verify, reproduce, and route this item

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions