GeezerVison is showing github.com — atlas shard consumer: serve-mode (fleet serve search role) and #5668 snapshot-id integration (follow-up of #5755 slice 1) · Issue #6666 · developing-today/code
atlas shard consumer: serve-mode (fleet serve search role) and #5668 snapshot-id integration (follow-up of #5755 slice 1) #6666Open 0 / 20 of 2 issues completedOpen 0 / 20 of 2 issues completed DescriptionSlice 1 exposes ShardSet::snapshot_id() (sha256 over sorted shard name/tier/chunk count) and a hidden CLI --shards (standalone only; skips --via-service). Remaining: (1) wire ShardedBackend into the atlas-search serve engine (#5604) behind config, with periodic/triggered re-discovery so new shards and promotion batches are observed without restart; (2) feed snapshot_id into the #5668 result-cache key; (3) persistent embedded replicas for internal/public. Refs #5755, #5668, #5604.
Acceptance criteria
Sub-issuesCollapse Sub-issuesSub-issues0 of 20 of 2 Issues completedLoading 2 sub-issues Activitydeveloping-today commented on Nov 7, 2026 dezren39 commented on Nov 7, 2026 Intake review
- Agent: fleet monitor (repo-fleet-monitor), run 2026-11-07 04:12 CST — protocol §5 intake pass.
- Still live: verified OPEN this run; a merged-PR search for this issue number found no PR that resolves it. Follow-up of issue atlas core consumer wiring: fleet atlas-search fan-out over the TursoDB shard core (tier ceilings, merge, --expand hydration) #5755 slice 1 (ShardSet::snapshot_id + hidden --shards CLI landed); serve engine is issue fleet search serve role: rehome the atlas service into fleet serve search + re-point the atlas user unit #5604; result cache is issue atlas-search service: query-embedding + snapshot result caching, --no-cache/--wait/--expand/--raw flags #5668. No merged PR resolves this slice.
- Notes: Serve-mode re-discovery must not swap shard sets mid-query; snapshot_id in the cache key only helps if the swap is atomic per query.
- Suggested approach: Wire ShardedBackend behind config in the fleet search serve role: rehome the atlas service into fleet serve search + re-point the atlas user unit #5604 serve engine, feed snapshot_id into the atlas-search service: query-embedding + snapshot result caching, --no-cache/--wait/--expand/--raw flags #5668 cache key, and add a re-discovery test with a promoted shard batch.
- Labels normalized this pass: kind/enhancement, status/needs-triage, priority/normal, effort/m, app/atlas-search + meta/enriched. Acceptance criteria appended to the body (original text preserved verbatim above it).
dezren39 commented on Nov 8, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 23, 2026 Done check + gate disposition — lane felix, 2026-11-23, against origin/main fb07aa22e.
Criteria 1 and 2 are met on main; no reimplementation needed or made.
- Criterion 1 (serve engine runs ShardedBackend behind config, with re-discovery): PR feat(atlas): serve-mode shard fan-out with re-discovery (#6666 slice 1) #11216 merged 2026-11-17. Verified present on current main:
ServeSettings carries the optional shards spec plus shard_refresh_seconds (default 60, values < 1 refused) in pkgs/atlas-search/crates/atlas-search/src/server.rs; ShardedBackend in crates/atlas-core/src/shards/scan.rs holds the set behind an RwLock and swaps it atomically when snapshot_id() changes, keeping the previous set on discovery failure; regression test sharded_backend_refresh_swaps_in_new_shards_and_moves_the_snapshot is in crates/atlas-core/tests/shards.rs. Both serve entries (atlas-search serve, fleet serve search) use it when a spec is configured; the monolith path is unchanged without one.
- Criterion 2 (snapshot_id feeds the atlas-search service: query-embedding + snapshot result caching, --no-cache/--wait/--expand/--raw flags #5668 result-cache key):
result_cache_key(query, snapshot_id, ceiling, ...) in crates/atlas-proto/src/lib.rs hashes the snapshot id into the atlas-result-cache/v1 key, so a shard-set rotation invalidates cached results; covered by every_flag_changes_the_result_cache_key and the atlas-search: snapshot-bound result cache — per-service memory, snapshot-rotation invalidation (#5668 slice 3) #9943 snapshot-bound cache work.
- Criterion 3, standalone half: the
--shards path is unchanged and was covered by slice 1's verification.
The one remainder is gated, and the gate is #11213. Criterion 3's persistent-embedded-replica half is this issue's own sub-issue #11213. Its scope item 1 (integration shape) is decided and recorded (PR #12868, decision record doc/2026-11-23T04-10-00Z_decision_atlas_embedded_replica_integration/ — turso crate pull-only is the default candidate; reads never open a syncing replica file from a second process). Stages 2–4 remain on #11213, and stage 1 — the engine-match spike that gates the crate choice — requires a pull from a real internal shard on the laptop plus live Turso sync-budget measurements (§5.5: ~5 GB against the monthly 24 GB allowance). That is live-infrastructure work that cannot run from this seat, and #11213 is labelled queue/blocked with its own staged plan, so this lane is not building around the gate or duplicating #11213's routing.
Resume condition: #11213 stage 1 (spike) runs on a seat with the laptop shard and live Turso access; stages 2–4 follow there; #6666 closes when #11213 stage 4 (its acceptance record) lands. Claim released outcome=free with this condition. dezren39 commented on Nov 23, 2026
Released by felix (outcome: free). Done check: criteria 1-2 verified on main (PR #11216, #5668/#9943 cache key); criterion 3 replica half gated on sub-issue #11213 stages 1-4 (stage 1 spike needs laptop shard + live Turso). Resume: #11213 stage 4 lands. dezren39 commented on Nov 25, 2026 🤖 Agent note · audit against current main (no PR — criteria 1–2 already landed) · lane xaltha · 2026-11-25 hourly work-loop
Claim-check: no live lane claim found (only stale 2026-11-08/09 queue handoffs for task 11251, all evaporated/parked). Audited the three acceptance criteria against current origin/main in pkgs/atlas-search:
- ✅ Criterion 1 (serve engine runs ShardedBackend behind config, with re-discovery): landed.
crates/atlas-search/src/main.rs cmd_serve builds ShardedBackend::new(backend, set).with_refresh(spec, ceiling, settings.shard_refresh) when the service config carries a shards spec; crates/atlas-core/src/shards/scan.rs ShardRefresh/with_refresh/refresh_shard_set re-opens the set on the configured interval and swaps it atomically when the snapshot changes. Test: sharded_backend_refresh_swaps_in_new_shards_and_moves_the_snapshot in crates/atlas-core/tests/shards.rs.
- ✅ Criterion 2 (snapshot_id feeds the atlas-search service: query-embedding + snapshot result caching, --no-cache/--wait/--expand/--raw flags #5668 result-cache key): landed via atlas-search: snapshot-bound result cache — per-service memory, snapshot-rotation invalidation (#5668 slice 3) #9943.
SearchBackend::snapshot_id() in crates/atlas-core/src/backend.rs (ShardedBackend reports ShardSet::snapshot_id()), and the snapshot-bound result cache in crates/atlas-search/src/server.rs keys/GCs entries by it; test sharded_backend_reports_the_shard_set_snapshot_id.
- ⬜ Criterion 3 (persistent embedded replicas for internal/public): NOT landed.
crates/atlas-core/src/shards/local.rs still describes itself as "the seam for embedded replicas (design 5.5) later" — local-file shards exist (LocalShardTransport, DirLister) but there is no persistent embedded-replica sync/serving path for the internal/public tiers. This is the remaining slice; it is design-level (5.5), not a narrow fix, so no speculative PR was opened this run.
The standalone --shards path in cmd_search is unchanged and still works as before. Next slice = criterion 3 only. developing-today-fleet commented on Nov 26, 2026 Fresh triage (2026-11-26): criteria 1 and 2 remain satisfied on main by merged PR #11216 and #9943; the standalone --shards path remains covered. Criterion 3 is NOT complete: #11213 still tracks persistent internal/public embedded replicas and is open/blocked. Its old implementation task #20734 is cancelled after the 45-minute packet was identified as mismatched to the staged, multi-day scope; the re-packetisation triage #21694 is done, but no ready implementation slice is queued. Therefore #6666 remains open and blocked on #11213; no duplicate implementation packet filed. Resume when #11213 has a correctly scoped ready stage or closes with evidence. Evidence: #11213 comments #11213 (comment) and #issuecomment-7125109323; #6666 latest audit comment confirms criteria 1–2 landed and criterion 3 outstanding. developing-today-fleet commented on Nov 27, 2026 🤖 Agent note · 2037-J re-verified blocked · lane 2037-J · queue task 24349 · 2026-11-26 alpha DRIVE
Fresh check this run (gh, 2026-11-27T02:4xZ):
- atlas shard consumer: serve-mode (fleet serve search role) and #5668 snapshot-id integration (follow-up of #5755 slice 1) #6666 OPEN, labels queue/blocked + status/blocked — matches blocked verdict.
- Criterion 1 ✅ merged PR feat(atlas): serve-mode shard fan-out with re-discovery (#6666 slice 1) #11216; criterion 2 ✅ atlas-search: snapshot-bound result cache — per-service memory, snapshot-rotation invalidation (#5668 slice 3) #9943 / atlas-search service: query-embedding + snapshot result caching, --no-cache/--wait/--expand/--raw flags #5668 slices; standalone --shards covered (per 2026-11-26 triage comment on this issue).
- Criterion 3 ❌ not complete: 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 still OPEN, labels queue/blocked + status/blocked, updated 2026-11-24T07:32:50Z. No ready implementation slice queued (#20734 cancelled as mis-sized, #21694 triage done).
- Action: no duplicate packet filed; queue task 24349 parked with ready condition: atlas(#6666 slice 3): persistent embedded replicas for internal/public (libsql local-copy, design 5.5) #11213 has a correctly scoped ready implementation stage or is closed with evidence, then re-check atlas shard consumer: serve-mode (fleet serve search role) and #5668 snapshot-id integration (follow-up of #5755 slice 1) #6666 criterion 3.
developing-today-fleet commented on Nov 28, 2026 Triage recheck — queue task 24349 (lane code-f, 2026-11-28)
Verdict unchanged: premise VALID; NOT a small fix — criteria 1-2 covered elsewhere, criterion 3 still tracked and blocked. No code changed in this pass.
Re-verified firsthand: #6666 OPEN (queue/blocked, status/blocked, effort/m); covering work #11216 MERGED (serve-mode shard fan-out, slice 1), #9943 CLOSED (snapshot-bound cache); remaining criterion 3 tracked by #11213 OPEN (status/blocked, queue/blocked, effort/l) with no open PR. Task parks until #11213 unblocks.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|