GeezerVison is showing github.com — atlas shard consumer: --expand hydration from tier content stores (follow-up of #5755 slice 1) · Issue #6664 · developing-today/code
atlas shard consumer: --expand hydration from tier content stores (follow-up of #5755 slice 1) #6664DescriptionHydrate top-N hits from the caller's tier content store (atlas-core-<tier>-content: messages + sessions by chunk message_id), per design #5667 §3.3/§4.2. NOTE: shipped CLI --expand semantics (N neighbor chunks) are unchanged per Drew's ruling 2026-11-06 — this needs a new flag/protocol field or a ruling on mapping; coordinate with #5668. Slice 1 hydrates from the wrapped (monolith) backend, so this is a content-store connector + ceiling check (content store of a tier above the ceiling is never connected, same mechanism as scan shards). Refs #5755.
Acceptance criteria
Activitydeveloping-today commented on Nov 7, 2026 dezren39 commented on Nov 7, 2026 Intake review
Related: linked from the issue body and title where applicable; see notes. No merged PR was found that explicitly resolves this issue (checked the 300 most recent merged PRs for a fixes/closes/resolves reference) — it is still live.
Notes: Follow-up slice of issue #5755; design in issue #5667 sections 3.3/4.2. Hard coordination point with issue #5668: Drew's 2026-11-06 ruling keeps shipped --expand semantics, so hydration needs a new flag/protocol field or an explicit mapping ruling.
Risks: Silently redefining --expand would break existing consumers; the tier-ceiling check is a confidentiality boundary, not a nicety — it needs a negative test.
Suggested approach: Add the content-store connector behind the existing ceiling mechanism first, wire hydration behind a new flag, and pin the ceiling with a cross-tier refusal test.
Labels normalized at intake: kind/enhancement, status/needs-triage, priority/normal, effort/m, app/atlas-search; effort class per the fleet taxonomy. Acceptance criteria appended to the body (original text preserved verbatim above).
— fleet monitor, intake pass 2026-11-07 dezren39 commented on Nov 8, 2026
🤖 Agent note · triage complete (task 11249, lane code-a)
- Agent: repo queue worker, Lane A (repo-worker-code-a)
- Session / ID: cron repo-queue-worker-shift, run 2026-11-07 18:00 CST; queue task 11249
- Verdict: CONFIRMED not implemented — the follow-up is real work, correctly scoped, and not superseded.
- Evidence (fresh this run, laptop, origin/main @7c8fb3e1ee):
- Issue atlas shard consumer: --expand hydration from tier content stores (follow-up of #5755 slice 1) #6664 is OPEN, no hard-stop labels. Predecessor slice 1, issue atlas core consumer wiring: fleet atlas-search fan-out over the TursoDB shard core (tier ceilings, merge, --expand hydration) #5755, is CLOSED; design docs: Scaler-era Atlas/Turso data architecture revision #5667 is MERGED; coordination issue atlas-search service: query-embedding + snapshot result caching, --no-cache/--wait/--expand/--raw flags #5668 is still OPEN with no ruling recorded on it or here mapping hydration onto a flag/protocol field.
- The shard layer never touches content stores today:
pkgs/atlas-search/crates/atlas-core/src/shards/mod.rs:156 — "Content stores (atlas-core-<tier>-content) and anything else do not parse: they are not scan shards", and discovery tests (mod.rs:783-784, :815-820) list atlas-core-internal-content / atlas-core-secret-content as rejected names.
- Hydration for shard-ranked hits is delegated to the wrapped monolith backend by design:
shards/scan.rs:151 (ShardedBackend doc: "the monolith hydrates what the shards ranked"; FTS, details, neighbors, messages all delegate to the wrapped backend), and the CLI says the same at crates/atlas-search/src/main.rs:207 ("FTS, details and --expand stay on the backend (issue atlas core consumer wiring: fleet atlas-search fan-out over the TursoDB shard core (tier ceilings, merge, --expand hydration) #5755)").
- Shipped
--expand keeps its neighbor-chunks semantics (main.rs:201, validated 0–100 at :586/:795-802) — unchanged, per Drew's 2026-11-06 ruling recorded in this issue.
- The ceiling mechanism the fix must reuse already exists:
Tier::admits (mod.rs ~:149, tier.level() <= ceiling.level()), the same check scan-shard discovery uses.
- Routing: follow-up fix task enqueued (kind small_fix, dedupe
repo-health:v1:fix:developing-today/code:issue:6664): add a content-store connector to the shard layer (connect atlas-core-<tier>-content only when the caller's tier ceiling admits that tier, tested), hydrate messages + sessions by chunk message_id for shard-served hits behind a successor flag/protocol field (not a change to --expand semantics), coordinated with open issue atlas-search service: query-embedding + snapshot result caching, --no-cache/--wait/--expand/--raw flags #5668.
- Issue state: left OPEN with
queue/queued for the follow-up task.
dezren39 commented on Nov 8, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 11, 2026 🤖 Agent note · picked up
- Agent: queue worker (repo-worker-code), lane code-v
- Session / ID: task 11377
- Found via: queue claim
- Task: Implementing issue atlas shard consumer: --expand hydration from tier content stores (follow-up of #5755 slice 1) #6664 (triage-confirmed by task 11249): a tier content-store connector for the atlas shard consumer —
discover_content_stores in a new shards/content.rs reuses the scan shards' physical ceiling (above-ceiling or credential-less tier stores are never connected; unreadable stores are recorded rejections), and ShardedBackend::with_content_stores(.., enabled) is the successor switch that serves chunk details / neighbors / message from the caller's tier content store (atlas-core-<tier>-content, messages + sessions by chunk message_id, the monolith's own details SQL) instead of the wrapped monolith. Shipped --expand semantics untouched; the service-side protocol field that flips the switch is the coordination item on issue atlas-search service: query-embedding + snapshot result caching, --no-cache/--wait/--expand/--raw flags #5668.
- Expectation: local tests first (new
tests/content_stores.rs: hydration, ceiling-never-connects, no-credential rejection, explicit degradation, backend switch on/off), then PR; merge when CI clears, closing issue atlas shard consumer: --expand hydration from tier content stores (follow-up of #5755 slice 1) #6664.
- Links: issue atlas shard consumer: --expand hydration from tier content stores (follow-up of #5755 slice 1) #6664, issue atlas-search service: query-embedding + snapshot result caching, --no-cache/--wait/--expand/--raw flags #5668, issue atlas core consumer wiring: fleet atlas-search fan-out over the TursoDB shard core (tier ceilings, merge, --expand hydration) #5755, task 11377
dezren39 commented on Nov 11, 2026 agent-note:v1
- transition: parked
- task: 11377
- worker: repo-worker-code
- lane: any-n
- note: PR feat(atlas): hydrate shard hits from tier content stores (#6664) #8396 head 3db7873 has nine CI checks pending. Review also found with_content_stores has no production caller or successor protocol field; assess acceptance and per-caller ceiling safety before merging or closing this issue. Parked 20 minutes for CI; resume with these checks.
dezren39 commented on Nov 11, 2026 🤖 Agent note · fixed and merged — PR #8396 (task 11377, lane code-a)
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|