GeezerVison is showing github.com — bench(atlas): embed-storage economics — vectors+hash+metadata in Turso, raw content content-addressed (feeds #9084) · Issue #9098 · developing-today/code
bench(atlas): embed-storage economics — vectors+hash+metadata in Turso, raw content content-addressed (feeds #9084) #9098DescriptionWorkstream F — Embed-storage economics: vectors in Turso, raw content content-addressed
Parent program: #8983 · Proto design §F · References, does not restate: #9084 (content-addressed plane — its reference-vs-copy-vs-hybrid evaluation and GC design own the general question; this workstream is the Atlas-specific measurement feeding it) and #3125 (Atlas provenance registry / content-addressed extracts — prior art in-domain).
The question (Drew, 2026-11-12)
Can Turso store the embeddings + a content-addressed hash of the value + per-embed metadata, while the raw content lives in the R2 / RustFS / Drive content-addressed system — saving Turso space without R2 costing more than the saving, and without unacceptable latency? This must be tested and confirmed with measurements, not argued.
Context numbers (verified 2026-11-12)
Scope
- Composition audit: where the atlas DBs' bytes actually are (vectors / chunk text / messages / FTS / indexes), per store (monolith, 29 topic shards, secret tier).
- Prototype + measurement: a representative corpus slice served both ways (content-in-Turso vs hash+reference to R2) — storage delta, $ delta both sides, and latency delta on hydration-heavy queries (get-chunk, expand, with-message), including the hot-cache variant.
- Consistency rules: what an embed record may assume about its content reference (immutability, GC interplay — resolved WITH design(pm-stack): content-addressed media/data plane — R2 dedup, reference-based access, GC when the last reference drops #9084's GC design, not independently), and the failure mode when content is unreachable (degraded result vs error).
- Verdict + migration shape: adopt / adopt-for-cold-only / reject, with the numbers; if adopt, the migration is staged per shard class and never a flag day.
Acceptance
Activitydeveloping-today commented on Nov 12, 2026 dezren39 commented on Nov 17, 2026
Agent note — triaged, task 18846 for issue #9098 (lane any-e)
- State: triaged (inline, 2026-11-17). Verdict: real and current — a measurement workstream (Atlas program workstream F, parent epic: Atlas program — unified search and memory index over every corpus #8983), not a lane fix. Work kind: kind/feature (already on the issue). Priority: priority/normal. Effort: effort/l.
- Fresh verification: issue bench(atlas): embed-storage economics — vectors+hash+metadata in Turso, raw content content-addressed (feeds #9084) #9098 is OPEN, no hard-stop labels, no prior triage note. Its constraint premise is consistent with tonight's record (Turso storage is a hard cap with overages off; the atlas monolith and shard layout it cites match the live program state).
- Route: a bench/research session under parent program epic: Atlas program — unified search and memory index over every corpus #8983 (proto design §F), in the issue's own scope order: (1) composition audit of the atlas DBs' bytes per store (monolith, 29 topic shards, secret tier) — vectors vs chunk text vs messages vs FTS vs indexes; (2) both-ways prototype on a representative corpus slice (content-in-Turso vs hash+reference to R2, plus the hot-cache variant) measuring storage delta, $ delta both sides, and hydration latency (get-chunk, expand, with-message); (3) consistency rules resolved WITH design(pm-stack): content-addressed media/data plane — R2 dedup, reference-based access, GC when the last reference drops #9084's GC design, not independently; (4) verdict (adopt / adopt-for-cold-only / reject) with the numbers, commented onto design(pm-stack): content-addressed media/data plane — R2 dedup, reference-based access, GC when the last reference drops #9084 as its Atlas input, and granular implementation issues filed if adopt.
- First concrete step: the composition audit — it is measurable today against the live stores and it gates every savings claim in the later steps (the issue's own warning: account for what fraction of the 7.3 GB is vectors vs raw content vs FTS before claiming savings).
- Acceptance check (from the issue): research/bench doc merged under doc/ with the audit and both-ways measurements; verdict recorded with evidence and cross-posted to design(pm-stack): content-addressed media/data plane — R2 dedup, reference-based access, GC when the last reference drops #9084; design(pm-stack): content-addressed media/data plane — R2 dedup, reference-based access, GC when the last reference drops #9084's general reference-vs-copy question explicitly NOT settled here.
- Why no queue packet: the queue validator has no research/bench packet kind; the tracked next action is the bench intake named above under epic: Atlas program — unified search and memory index over every corpus #8983. Labels: status/triaged + priority/normal + effort/l added.
dezren39 commented on Nov 17, 2026
🤖 Agent note · triaged — task 20297 (lane any-o)
dezren39 commented on Nov 24, 2026
Agent note — second pass, task 21954 (lane any-n, 2026-11-24)
- Verdict: real and current, not resolved. bench(atlas): embed-storage economics — vectors+hash+metadata in Turso, raw content content-addressed (feeds #9084) #9098 is OPEN (
kind/feature priority/normal effort/l status/triaged epic/atlas-program), acceptance checkboxes unchecked, no bench/composition doc merged under doc/. Fresh triage notes (tasks 18846/20297) still describe the live state.
- Duplicate sweep: no other actionable queue item references bench(atlas): embed-storage economics — vectors+hash+metadata in Turso, raw content content-addressed (feeds #9084) #9098 (repo-health-code-pilot queued/claimed/parked/blocked + code, code-pilot, nix/openchamber/opencode pilot queues checked). This task is the only coverage.
- Dependency check: design(pm-stack): content-addressed media/data plane — R2 dedup, reference-based access, GC when the last reference drops #9084 (content-addressed plane) is OPEN
status:in-review with its design doc merged (doc/2026-11-23T03-04-00Z_design_content-addressed-media-data-plane/), so the audit slice can reference it; the both-ways prototype and GC-consistency rules stay later slices. Parent epic epic: Atlas program — unified search and memory index over every corpus #8983 OPEN.
- Routed: feature_slice S1 — task 22915 (
repo-health-code-pilot, band 70): per-store byte-composition audit (monolith, 29 topic shards, secret tier — vectors / chunk text / messages / FTS / indexes) merged as a bench doc stating the vector-vs-content-vs-FTS fractions with traceable methods. Both-ways prototype + verdict to be routed after S1 lands.
- Tracking: Queue reprioritization programme 2026-11-24: full census, reorder, unblock #14158 (coverage reconciliation pass 2).
dezren39 commented on Nov 25, 2026
Progress — #9098 slice 1 merged: PR #15064 landed at 79602ed85e114f690c64f6f00512cbe3a9312e13. The audit report and aggregate measurements cover the live monolith, all 29 topic stores, and both tier content stores. The monolith has 7,278,391,296 allocated bytes; measured vector and vector-index payload is 6,329,625,792 bytes (86.96%), chunk and message text 639,187,867 bytes (8.78%), measured FTS payload 64,704,278 bytes (0.89% lower bound), with 244,873,359 bytes (3.36%) left as residual pages. B-tree index page allocation is not exposed separately by the hosted SQL interface, so the report does not guess an index-only number.
The parent acceptance item remains open for the later two-way prototype and storage, cost, and hydration-latency measurements. Next slice after this PR: compare content-in-Turso with hash-and-reference-to-R2 on a representative corpus slice, include the hot-cache variant, and report the results as input to #9084 without settling its general reference-versus-copy question. developing-today commented on Nov 27, 2026
Triage follow-up: #9098 remains open with the two-way hydration benchmark still outstanding.
The composition census from PR #15064 is followed by the storage-bound slice in PR #15832, merged as 1d7a6b1a5fc4b45b170de59e3b485d465771d75e. From the measured raw-text columns, offloading every copy could free up to 1,277,693,028 bytes in Turso. The R2 unique-object upper bound is 1.278 GB. At the current Standard rate, that rounds to 2 GB-months and $0.03/month if the free tier is exhausted; with the full 10 GB-month allowance available, storage cost is $0. Under the issue's 11 GB / 24 GB snapshot and overages-off setting, this frees capacity and does not reduce the monthly invoice.
Fleet run 45920501158 ran the slice check on main 1589e68d4349d307c739ca092d3ae8fb5173716e: 3 tests passed and the calculator produced the report result. No raw content was read; this slice does not measure hash deduplication, R2 request costs, or hydration latency.
Task #25795 is queued for the next slice: compare Turso with the R2 reference path on a fixed sample and report storage, request cost, and p50/p95 for get-chunk, expand, and with-message, including the hot-cache path. The general reference-versus-copy decision remains with #9084.
queue/queued matches task #25795; #9098 remains open for the benchmark and final evidence-backed verdict.
developing-today-fleet commented on Nov 27, 2026
Progress — #9098 live hydration benchmark revalidated: PR #15927 remains open and provides the synthetic harness, but the live comparison cannot run through the available Fleet runner yet. The current Fleet secret inventory has no designated read-only token for the Atlas database. The R2 account has no disposable test bucket; atlas-ledger-snapshots is the only Atlas bucket and is not suitable for benchmark writes. Fleet Actions dispatch has no secure runtime secret injection option, and Fleet reports laptop and Codespace targets unreachable. I did not read Atlas rows or modify any bucket.
Task #25795 is parked until a Fleet-compatible execution path can receive a designated read-only Turso credential and access a disposable non-production R2 test binding or bucket. Resume with the existing synthetic harness and measure the fixed sample, recording hashes, byte counts, operation counts and timings only. Keep #9084's general reference-versus-copy decision unchanged. developing-today-fleet commented on Nov 27, 2026
Revalidation (2026-11-27): The synthetic hydration harness and report contract are now merged in PR #15927 (merge commit on the #9098 issue thread). Its report is explicitly synthetic; it does not claim live Turso/R2 measurements. The live benchmark remains unrun: current Fleet targets still report laptop and Codespace unreachable, the secret inventory has no credential designated for read-only Atlas benchmark access, and there is no designated disposable non-production R2 test bucket/binding. I did not read Atlas rows, create or write to any bucket, or expose credentials.
Task 25795 is parked until a Fleet-compatible runtime can use a designated read-only Turso credential and isolated non-production R2 test binding/bucket. Then resume the existing merged harness for the fixed sample, recording only hashes, byte counts, operation counts, and timings. #9084's reference-versus-copy decision remains unchanged. developing-today-fleet commented on Nov 27, 2026
agent-note:v1
state: parked
task: 25795 · lane: oc-code-03 · worker: repo-worker-code
origin: openchamber-scheduled-lane
Revalidated 2026-11-27 ~08:00Z: synthetic harness merged (PR #15927, merged 05:40Z; report doc confirms process-local timings only, no live claims). Live venue still absent: secret inventory has Turso/R2 names but none designated read-only-for-benchmark, no disposable non-production R2 test bucket (atlas-ledger-snapshots is the only Atlas bucket, unsuitable), and this lane has no Fleet-compatible secure runtime injection for either. No Atlas rows read, no bucket touched, no credentials exposed.
Parked with resume condition (venue, not a person): designated read-only Turso credential + disposable non-production R2 test binding/bucket in a Fleet-compatible runtime. Then resume with the merged harness on the fixed sample, hashes/counts/timings only. developing-today-fleet commented on Nov 27, 2026
agent-note:v1
state: parked
task: 25795 · lane: code-j · worker: repo-worker-code
origin: openchamber-scheduled-lane
Revalidated 2026-11-27 ~08:50Z: #9098 still OPEN, no activity since the 07:57Z parked note; harness PR #15927 still merged (in main, absent from stale local checkout). Live venue still absent: names-only secrets check shows no designated read-only Turso test credential and no disposable non-production R2 test binding (existing Turso/R2 names are production/internal-scoped and must not be used); Actions exec documents only its own outbox R2 egress, no benchmark secret injection; laptop shell leg unreachable at enroll. No prod data touched, no implementation. developing-today-fleet commented on Nov 27, 2026 code-g re-verify 15:55Z (task 25795): live venue still absent — names-only secrets check shows no designated read-only Turso test credential and no disposable non-production R2 test binding (Turso names all internal-scoped, R2 names production/backup-scoped). Synthetic evidence refreshed at main tip b4d27b8: done_check exit=0 (sample 128, runs 30, cache both, local in-memory harness, no prod touch) and hash-equivalence oracle 5/5 pass. No implementation, no prod data touched. Re-parking on venue.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|