Skip to content

Epic: Atlas as a Rust binary + multi-client search service (b+c) #5350

Open
6 of 6 issues completed
Open

Description

@dezren39

Program epic. Drew ruled "b and c" on 2026-11-04 (dezren39/hatch-personal#21): Atlas search ships as (b) a Rust binary vendored from this repo and (c) a multi-client search service built on that binary.

Design of record: doc/2026-11-04T08-07-13Z_design_atlas_binary_service/ (PR #5348, merged 9c5976340). Read it before working any step — the decisions below are summaries, the note is the authority.

Headline decisions

  • One Rust binary (atlas-search, pkgs/atlas-search/), two modes: standalone-capable one-shot CLI + serve. Never thin-client-only.
  • Service protocol: HTTP+JSON jobs; branch workers concurrent; fused rankings in an in-memory TTL temp store behind per-job capability tokens; fetch-to-fill escalation lives inside the vector branch, paging slices an immutable ranking.
  • Auth: per-client bearer tokens in ~/.local/state/atlas-search/service.json, each carrying a maximum sensitivity ceiling the server clamps to. Named clients only; Aster is not a v1 client. Loopback + tailscale serve (MagicDNS), never public.
  • Vector backend is a pluggable strategy (scan / index-fill / index-fixed); the golden-311 A/B running on the Python decides the default (design Gate C).
  • The Python CLI stays the eval reference permanently and the runtime fallback through cutover. Migration is additive-first; there is no data migration (the system is read-only end to end).

Program gates (design §5): Gate A embedder bit-identity on the probe set; Gate B golden-311 tie vs the Python production path on the production corpus (hits@10 ±2, MRR ±0.005, no category regression > 0.01); Gate C A/B winner as implemented default.

Non-goals (design §6): no writes to the production atlas DB (service holds a read-only token only), no corpus re-embedding, no publish-schema changes, no client ceiling widening, no public exposure.

Steps (sub-issues of this epic):

  1. Embedder parity spike (atlas-embed) — Gate A
  2. Core search library (atlas-core)
  3. CLI mode (one-shot commands)
  4. Serve mode (job protocol, worker pool, temp store)
  5. Nix packaging + amd deploy
  6. Golden-parity gate + cutover

Open questions for Drew live in design §7 (Q1 model provisioning, Q2 ceiling caps, Q3 sandbox CLI default flip) — they gate steps 5/6 decisions, not steps 1–4 work.

Acceptance criteria

  • Steps 1–6 are attached as native sub-issues of this epic (filed as issues Atlas step 1: embedder parity spike (atlas-embed) — Gate A #5351–Atlas step 6: golden-parity gate (Gate B) + cutover #5356) and their states roll up here.
  • Gate A (embedder bit-identity), Gate B (golden-311 tie vs the Python production path) and Gate C (A/B winner as default) results are recorded on the epic or the owning step issue.
  • atlas-search builds and is packaged via nix (step 5); the Python CLI remains the eval reference and runtime fallback through cutover.
  • The service binds loopback/tailscale only, enforces per-client sensitivity ceilings server-side, and holds a read-only token only — no writes to the production atlas DB, no corpus re-embedding.
  • The cutover decision is recorded with Gate B/C evidence; open questions in design §7 are answered or explicitly deferred before steps 5/6 complete.

Related exploration

Consolidates exploratory tracker #12900: its parallel-branch thread landed in PR #13039, and its service and binary/Nix threads are represented by this programme and its steps. #12900 is closed as superseded by this active epic.

Refs #12900

Sub-issues

Sub-issues

6 of 6 Issues completed
Loading 6 sub-issues

Activity

  1. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    DESIGN APPROVED + OPEN QUESTIONS RULED (Drew, 2026-11-04 02:31 CST, via the Token usage tracking chat):

    • The design (note merged via PR Design: Atlas as a Rust binary + multi-client search service (b+c) #5348) is APPROVED as written. Implementation proceeds through the step issues in order.
    • Q1 (model provisioning): STATE-DIR PINNED FETCH — the Snowflake model is fetched at a pinned revision into ~/.local/state/atlas-search/model// with the sha256 recorded in the repo. Not a nix-store FOD. (Gates #5355s shape.)
    • Q2 (ceilings above personal): ONLY Drews own CLI holds a cap above personal in v1. OpenChamber/fork sessions and sandbox scripts are capped at personal. Agent searches being thinner than Drews own is accepted until revisited.
    • Q3 (sandbox CLI default at cutover): YES — the sandbox CLI defaults to --via-service with loud standalone fallback. The laptop CLI keeps its standalone default. (Gates #5356s later phases.)

    Steps 1-4 were already unblocked; steps 5-6 are now unblocked when reached.

  2. added
    priority/high
    effort/l
    status/needs-triage
    source/human
    meta/epic
    meta/enriched
    on Nov 4, 2026
  3. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    Intake review

    Related: PR #5348 (design of record, merged); PR #5367 (step 1, issue #5351 — already open, the program is moving); issues #5351–#5356 (the six steps).
    Notes: Program epic ruled by Drew today ("b and c", hatch-personal#21). Filed with no labels at all — normalized in this pass. Still live: step 1 has an open PR; steps 2–6 have no PRs yet.
    Risks: Gate B is the hard gate — a golden-311 regression blocks cutover regardless of build progress. Per-client ceiling enforcement is a security property, not a feature: it needs a test, not just code review.
    Suggested approach: Keep the epic as the rollup only; work flows through the step issues. First monitor follow-up: confirm the steps are attached as native sub-issues (protocol §11) — they were filed as a set today, so the attach should be verified, not assumed.

    🤖 Agent note · filed

    • Agent: fleet monitor (repo-fleet-monitor)
    • Session / ID: repo-fleet-monitor run 2026-11-04 02:12 CST
    • Found via: monitor reconciliation (intake enrichment, protocol §5)
    • Task: intake pass — acceptance criteria appended, labels normalized, this review posted
    • Expectation: done looks like the criteria section above; no queue state changed by this pass
  4. 75 remaining items

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

    @developing-today-fleet
    Contributor

    Verified park (lane oc-code-08, 2026-11-27): epic rollup; no lane-executable slice — keep open.

    Fresh checks this draw (priority rung, no queue task id; this note is the disposition of record):

    • Steps Atlas step 1: embedder parity spike (atlas-embed) — Gate A #5351–Atlas step 6: golden-parity gate (Gate B) + cutover #5356: all CLOSED (re-checked live via gh API).
    • Gate C still deferred: external blocker dezren39/hatch-personal#20 ("Atlas production: writer stall + Snowflake vector index not searchable") verified still OPEN.
    • Code spot-check on origin/main: pkgs/atlas-search/ present (Cargo/flake/default.nix + atlas_search.py fallback); serve mode loopback-only (main.rs:75,220) with per-client ceilings (main.rs:767,974); default vector backend still scan pending Gate C.
    • Concurs with standing triage and today's prior slice checks. No code changed, no duplicate follow-up filed.
  6. developing-today-fleet commented on Nov 28, 2026

    @developing-today-fleet
    Contributor

    Verified park (lane code-f, 2026-11-28 ~00:05Z): epic rollup; no lane-executable slice — keep open.

    Fresh checks this draw (priority rung, no queue task id; this note is the disposition of record):

  7. developing-today-fleet commented on Nov 28, 2026

    @developing-today-fleet
    Contributor

    Verified park (lane oc-code-04, 2026-11-28 ~04:15Z): epic rollup; no lane-executable slice — keep open.

    Fresh checks this draw (priority rung, no queue task id; this note is the disposition of record):

    • Steps Atlas step 1: embedder parity spike (atlas-embed) — Gate A #5351–Atlas step 6: golden-parity gate (Gate B) + cutover #5356: all CLOSED (re-checked live via gh API just now).
    • Gate C (index-backend default) still deferred: external blocker dezren39/hatch-personal#20 ("Atlas production: writer stall + Snowflake vector index not searchable") verified still OPEN (updated 2026-11-12).
    • Code spot-check on local checkout: serve mode loopback-only (main.rs:75,220), default vector backend still Scan (search.rs:111) pending Gate C.
    • Concurs with standing triage (task 12726) and prior slice checks (code-i, 0052-C, oc-code-05/08, code-f, 0322-B).

    No code changed, no duplicate follow-up filed. Wake: hatch-personal#20 resolves / Gate C A/B evidence lands, then select the winner against the Gate B oracle.

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

    @developing-today-fleet
    Contributor

    0952-D verified park — agent work loop SUSTAIN (bravo), 2026-11-28 09:52 CST

    Drawn via fleet agent next — rung: shortlist rank 3 (queue rung down: session proxy missing; no queue task id issued, so this note is the disposition of record).

    Premise + ownership check firsthand: read issue body + ALL 38 comments. Fresh verification this run (gh api): steps #5351–#5356 all CLOSED; Gate C blocker dezren39/hatch-personal#20 still OPEN ("Atlas production: writer stall + Snowflake vector index not searchable").

    Verdict: programme epic / rollup with no lane-executable slice. Gates A/B and cutover recorded; only remainder is Gate C index-backend default, deferred on the external blocker above. Concurs with standing triage (task 12726) and repeated prior verified-parks (most recently oc-code-04, 2026-11-28T04:14Z). No code changed, no duplicate follow-up filed.

    Wake condition: hatch-personal#20 resolves / Gate C paired backend A/B results publish.

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

    @developing-today-fleet
    Contributor

    1622-L verified park — delta PRESS queue-draw-2 (continuation), 2026-11-28 ~22:41Z. Drawn via fleet agent next — rung: shortlist rank 3 (push empty, queue rung: no task claimable). No queue task id issued, so this note is the disposition of record.

    Premise + ownership check firsthand: issue + ALL 39 comments read. No live claim, no held/user labels. Fresh verification this draw: steps #5351–#5356 all CLOSED (re-checked live via gh api). Epic rollup; Gate C remains deferred per the prior verified parks (code-i, 0052-C, oc-code-05, 0322-B, oc-code-08, code-f, oc-code-04, 0952-D — newest 2026-11-28T15:59:35Z, state identical since). No lane-executable slice exists in the epic itself — keep open; slices land under their own child issues.

  10. dezren39 commented on Nov 29, 2026

    @dezren39
    MemberAuthor

    1907-D verified park — charlie ADVANCE shortlist draw, 2026-11-28 ~19:52 CST. Drawn via fleet agent next — rung: shortlist rank 3 (push empty, queue rung: no task claimable). No queue task id issued, so this note is the disposition of record.

    Premise + ownership check firsthand: issue + ALL 40 comments read. No live claim, no held/user labels. Fresh verification this draw: steps #5351–#5356 all CLOSED (each re-checked live via gh api this lane: 5351 closed, 5352 closed, 5353 closed, 5354 closed, 5355 closed, 5356 closed). Epic rollup; Gate C remains deferred per the prior verified parks (newest: lane 1622-L at 2026-11-28T22:41:39Z, ~1h ago, state identical since). No lane-executable slice exists in the epic itself — keep open; slices land under their own child issues.

    No claim, no PR, no duplicate work by this lane.

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

    @developing-today-fleet
    Contributor

    Verified park (felix lane, 2026-11-29 ~02:20 CST): premise collapse on draw — no lane-executable slice.

    Drawn via fleet agent next (priority rung). Read the issue + latest comments: steps #5351–#5356 all CLOSED; the only remainder is Gate C (index-backend default), deferred on external blocker dezren39/hatch-personal#20, still OPEN. Concurs with the long line of prior verified-parks (newest 2026-11-29T01:28Z). No claim, no code changed. Lane pulls its next item per standing continuous-operation rule.

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

    @developing-today-fleet
    Contributor

    Verified park — lane oc-code-08 (2026-11-29): no lane-executable slice remains on this epic. Rechecked #5351–#5356: all CLOSED. Gate C remains explicitly deferred pending paired index-backend A/B evidence from dezren39/hatch-personal#20, which is still OPEN (last updated 2026-11-12). The recorded Gate A/B evidence and cutover remain unchanged; the current Scan default should not be flipped without those measurements. No code change or duplicate follow-up filed. Resume when #20 publishes the paired results; then select the winner and verify against the Gate B oracle on #5356.

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

    @developing-today-fleet
    Contributor

    Verified park (lane code-i, 2026-11-29 ~05:40 CST): epic rollup; no lane-executable slice — keep open.

    Fresh checks this draw (gh API): steps #5351–#5356 all CLOSED (re-checked live). Gate C (index-backend default) still deferred on external blocker dezren39/hatch-personal#20, verified OPEN ("Atlas production: writer stall + Snowflake vector index not searchable"). Concurs with standing triage (task 12726) and prior slice checks (oc-code-08, 0052-C, oc-code-05, code-f, 0322-B, oc-code-04, 0952-D, 1622-L, 1907-D, felix — newest 2026-11-29T09:32Z). Nothing startable until Gate C external dependency lands or a new child issue is filed. No code changed, no duplicate follow-up filed.

  14. dezren39 commented on Nov 29, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · census 2026-11-29 (lane CEN-C03)

    Census verified: programme epic; design of record (PR #5348) merged, Gates A/B/C defined, headline decisions in the body. Blocker: none — steps proceed per the design note. Priority: high (unchanged).

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

    @developing-today-fleet
    Contributor

    Census 2026-11-29 (Felix):

  16. added
    status/triaged
    area/infra
    on Nov 29, 2026
  17. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29

    Gaps found: no lifecycle label (no status//queue//work/) and no app//area/* label on an otherwise well-formed epic (kind/enhancement, priority/high, effort/l, source/human, meta/epic all present).
    Strengths: ## Acceptance criteria present; epic structure is explicit (Atlas as a Rust binary + multi-client search service, b+c shape), design label attached (design/atlas-rust-binary).
    Actions: added labels status/triaged and area/infra. Priority unchanged (high — flagship Atlas program epic). No other changes.

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

    @developing-today-fleet
    Contributor

    Triage re-verification (Felix lane 0640-BY, 2026-11-29, drawn via fleet agent next): concur with the standing verdict — epic rollup, no lane-executable slice. Fresh live checks this pass: steps #5351–#5356 all CLOSED (re-read via API); Gates A/B and cutover evidence already recorded. Gate C (index-backend default) remains deferred on dezren39/hatch-personal#20, verified OPEN this pass — its remediation sequence is live production Turso operations (probe write on the production primary, DROP/recreate of the production vector index), which is a genuine stop for a lane, not a code slice. No code changed, no PR, no duplicate follow-up filed. Priority/high left untouched (Drewry-set band).

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/infradesign/atlas-rust-binaryeffort/lepic/atlasepic/atlas-programkind/enhancementmeta/enrichedmeta/epicpriority/highsource/humanstatus/triagedtask/triage

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions