GeezerVison is showing github.com — fleet search serve role: rehome the atlas service into fleet serve search + re-point the atlas user unit · Issue #5604 · developing-today/code
fleet search serve role: rehome the atlas service into fleet serve search + re-point the atlas user unit #5604DescriptionResidual scope from #5433, split out when step 5 landed the search client surface (PR #5601, merged 18f0aa1a6): fleet search / get-chunk now run over the live Atlas service contract, but the service itself still runs as the standalone atlas-search artifact.
What remains
- Rehome the atlas-search bin crate's serve half as the fleet-search serve role, so
fleet serve search runs the Atlas service (one shared embedder per process, read-only Turso token — the service stays mechanically incapable of production writes, the async job queue, per-client recovery listing, dedupe keyed by the effective request). atlas-core / atlas-embed / atlas-proto stay untouched and consumed as-is.
- Re-point the atlas user unit at
fleet serve search. The flip must stay reversible to the standalone atlas-search artifact in a single re-point (the standalone name keeps working via the argv0 map from the same workspace).
- Gates before the flip:
fleet serve search passes the Atlas step 4: serve mode — job protocol, worker pool, in-memory temp store #5354 protocol gates under the fleet binary; the atlas release rule applies — any fleet release touching the search domain re-runs the atlas gates (embedder bit-parity, golden parity) before the tag.
Why this is separate
Step 5's gate was the #5350 step-6 cutover; destabilizing a just-landed service by rehousing its server in the same step that added its client surface is exactly what the epic's sequencing (§7: search joins last, at a natural seam) argues against. The client surface shipped and is proven live (parity + ceiling canary on #5433); the serve rehome is a packaging move with its own risk profile and should be scheduled on its own evidence. Activitydezren39 commented on Nov 5, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 5, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 5, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 5, 2026
🤖 Agent note · state: handed off
dezren39 commented on Nov 5, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 8, 2026 Partial verification — staying open (2026-11-07 done-task-only audit, tracking: #7016).
Queue task(s) [10085] were marked done, and some work did land:
No merged change closes this issue's full scope, so the done status is not treated as completion. Remainder re-queued as triage task 11720. developing-today commented on Nov 8, 2026 ContributorAuthor More actions 🤖 Agent note · done
- Agent: queue worker (repo-worker-code), lane code-b
- Session / ID: task 12231
- Found via: queue claim (direct lane)
- Task: Triage verdict for issue fleet search serve role: rehome the atlas service into fleet serve search + re-point the atlas user unit #5604: REAL AND CURRENT, remainder precisely scoped. Landed: PR fleet: fleet serve search — rehome the atlas service as the search serve role (#5604) #6674 (merged 2026-11-07T01:47:31Z) rehomed the atlas service as the fleet serve search role, PR feat(atlas-core): shard discovery, tier ceilings and parallel fan-out over the core scan shards (#5755 slice 1) #6661 landed the atlas-core shard work, and the nix-declared atlas-search.service ExecStarts the fleet 0.1.0 binary serve search. NOT in effect: drop-in ~/.config/systemd/user/atlas-search.service.d/6788-embed-endpoint.conf (created 2026-11-06 23:02 during the issue atlas search worker: Cloudflare Worker + per-query Durable Object embedding/result cache over the shard fan-out (successor surface for #5755) #6788 work) resets ExecStart to the standalone /home/user/.local/bin/atlas-search-6788 serve (+ ATLAS_ORT_LIB), and the running process (MainPID 475282, started 2026-11-07 21:01:38 CST) exe-verifies as that standalone build — fleet serve search is not actually serving. Source parity for the Workers dependency holds at current main: POST /v1/embed exists in both server.rs copies (atlas-search and fleet-search). Remainder converted to fix task 12736 (small_fix): verify the deployed fleet binary against the issue Atlas step 4: serve mode — job protocol, worker pool, in-memory temp store #5354 protocol gates incl. /v1/embed parity, retire the drop-in reversibly, restart onto fleet serve search, verify the Worker miss/hit path, then close this issue on that evidence.
- Expectation: task 12736 performs the gated flip; this triage completes as triaged.
- Links: issue fleet search serve role: rehome the atlas service into fleet serve search + re-point the atlas user unit #5604, PR fleet: fleet serve search — rehome the atlas service as the search serve role (#5604) #6674, issue atlas search worker: Cloudflare Worker + per-query Durable Object embedding/result cache over the shard fan-out (successor surface for #5755) #6788, issue Atlas step 4: serve mode — job protocol, worker pool, in-memory temp store #5354, task 12736
dezren39 commented on Nov 8, 2026 Flip complete — atlas-search.service now runs fleet serve search (2026-11-08)
Queue task 12736 (lane ec118cad-0fd3-4652-91c4-27432f2f2efd, worker repo-worker-code). The #6788 drop-in is retired and the unit serves from the nix-declared fleet binary. No rebuild or re-release was needed: the deployed fleet 0.1.0 passed every gate.
1. #5354 gates on the deployed binary (pre-flip, isolated instance on 127.0.0.1:18761)
Ran the deployed /nix/store/rhr8qp1fq9bdpkimk85d2x8nhl8qy756-fleet-0.1.0/bin/fleet serve search side by side with the standalone atlas-search-6788 on :18760, same service.json. 12/12 gates pass:
| Gate |
Result |
GET /health unauthenticated |
200, {"status":"ok",...} |
POST /v1/search one-shot |
200, 10 results; parity with standalone (job_id excluded — per-request by design), effective_ceiling personal/personal |
POST /v1/embed (issue #6788 dependency) |
200 on both; byte-identical, sha256 f74a166219dea7cb, model Snowflake/snowflake-arctic-embed-m-v2.0, dims 768 |
/v1/embed unauthenticated |
401 |
job submit POST /v1/search/jobs |
202 + job_id + job_token |
| job status → terminal |
status: done |
results paging ?cursor=&limit=2 |
5 pages, 10 items |
| page concat == one-shot results |
equal (10/10) |
DELETE /v1/search/jobs/{id} |
200 |
ceiling cap: personal token requesting secret-bearing |
capped to personal |
| unknown job id |
404 |
No ATLAS_ORT_LIB was needed: the fleet binary resolves ONNX Runtime from its own closure (the embedder produced real 768-dim vectors with the variable unset).
2. Drop-in retired (reversible in one step)
~/.config/systemd/user/atlas-search.service.d/6788-embed-endpoint.conf
-> 6788-embed-endpoint.conf.disabled-2026-11-08
Renamed in place, not deleted — systemd only loads *.conf, so re-pointing is mv back + daemon-reload + restart. systemctl --user cat atlas-search.service now shows only the nix unit's ExecStart=/nix/store/rhr8qp1fq9bdpkimk85d2x8nhl8qy756-fleet-0.1.0/bin/fleet serve search with no ExecStart= reset and no ATLAS_ORT_LIB.
3. Post-flip live verification on :18760
systemctl --user status: active (running), Main PID: 2151441 (fleet), exe readback /nix/store/rhr8qp1fq9bdpkimk85d2x8nhl8qy756-fleet-0.1.0/bin/fleet; log line atlas-search: serving on http://127.0.0.1:18760.
GET /health → 200 {"status":"ok","embedder_state":"cold",...}.
POST /v1/search → 200, backend: turso, real results.
POST /v1/embed → 200, 768-dim vector in the pinned Snowflake space.
4. Worker path through atlas-search.security.cab (the #6788 surface)
Query fleet serve search flip verification 1794120305, k=3, via https://atlas-search.developing-today.workers.dev (Access service token, gate bearer):
- Miss: 200,
cache: "miss", 5.90 s wall (embed_ms 479 + search_ms 4443), 3 results, DO created 2026-11-08T06:45:06.618Z, key b67764a2f50d510401cc3bc074bcc3e45677d2ecf4d60a6840dda5401cef8ea0, 768-dim embedding persisted.
- Hit (identical query): 200,
cache: "hit", 0.54 s, same key, hit_count: 1, result byte-identical (sha256 40d58af1ac35f2b3).
GET /v1/cache/inspect: has_embedding: true, embedding_dims: 768, embedding_valid: true, has_result: true, result_bytes: 10255, hit_count: 1.
The Worker's miss path embeds through the fleet binary's /v1/embed and caches normally — the one behaviour the drop-in was protecting is intact on fleet serve search.
Notes
init (client table) and fetch-model remain on the standalone atlas-search artifact by design (the fleet binary's own --help says so); the service.json client table is unchanged and service.json.bak-6788 is untouched.
- Rollback:
mv 6788-embed-endpoint.conf.disabled-2026-11-08 6788-embed-endpoint.conf && systemctl --user daemon-reload && systemctl --user restart atlas-search.service.
Closing as done — no closing keyword, per the task brief. dezren39 commented on Nov 8, 2026 agent-note: v1
agent: openchamber-scheduled-lane
worker: repo-worker-code
lane: ec118cad-0fd3-4652-91c4-27432f2f2efd
task: 12736
transition: done
at: 2026-11-08T06:45:46Z
Picked up → verified → implemented → done in queue task 12736.
- Verified: deployed
fleet 0.1.0 serve search passed 12/12 Atlas step 4: serve mode — job protocol, worker pool, in-memory temp store #5354 gates on an isolated instance (127.0.0.1:18761), including /v1/embed byte-identical parity with the standalone build (sha256 f74a166219dea7cb).
- Implemented:
6788-embed-endpoint.conf → 6788-embed-endpoint.conf.disabled-2026-11-08 (kept on disk, one-mv rollback); daemon-reload; restart. MainPID 2151441 now exe /nix/store/rhr8qp1fq9bdpkimk85d2x8nhl8qy756-fleet-0.1.0/bin/fleet.
- Proven live: Worker path through
atlas-search.security.cab — miss 5.90 s → hit 0.54 s, byte-identical result, hit_count 1, 768-dim embedding persisted.
- Labels cleared (
status/*, queue/*, work/*); issue closed with the evidence comment.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|