GeezerVison is showing github.com — design(atlas): D1 tenant hot cache — admission, invalidation, Turso-hop skip · Issue #9134 · developing-today/code
design(atlas): D1 tenant hot cache — admission, invalidation, Turso-hop skip #9134Closed 0 / 20 of 2 issues completedClosed 0 / 20 of 2 issues completed DescriptionProgram #9106 (extensible primitives / federation / namespaces), Drew directive 2026-11-12 18:29 CST.
Parent: #9109.
§2 (4-6, 17). Hot cache in D1: admission by tenant tier / compute usage; recent heavy or frequent queries skip the Turso hop; invalidation/staleness vs the Turso source of truth specified — skipping is only valid inside a defined freshness bound. Acceptance: design section merged under doc/ (or folded into a named existing design by amendment with the link recorded on the parent epic); open questions recorded with chosen defaults; granular implementation issues filed for anything implementable. Sub-issuesCollapse Sub-issuesSub-issues0 of 20 of 2 Issues completedLoading 2 sub-issues Activitydeveloping-today commented on Nov 13, 2026 dezren39 commented on Nov 17, 2026
🤖 Agent note · triaged — task 18878 (lane code-b)
- Work kind: task/small-fix (design deliverable) · Priority: priority/normal (Atlas program, brief line 4/5) · Effort: effort/m
- Fresh evidence: issue design(atlas): D1 tenant hot cache — admission, invalidation, Turso-hop skip #9134 OPEN, only a Kaneo-link comment; under doc/ on main, hot cache appears only in the Atlas v1 proto note, the program note, and summit inventories — no merged D1 tenant hot-cache design.
- First concrete step: settle the freshness bound first — every other rule (admission, skip eligibility, invalidation) is defined relative to it.
- Routing: follow-on design packet enqueued as task 20325, acceptance = the issue's own (design merged under doc/, defaults recorded, implementation issues filed).
dezren39 commented on Nov 23, 2026
Lane LZ picked up #9134 from the refilled shortlist (rank 5). Premise verified fresh: issue OPEN, no merged D1 tenant hot-cache design under doc/ (only the v1 proto note and program inventory mention it), no live claim on this slice.
Scope for this pass: the design deliverable per the issue's own acceptance — a design section merged under doc/ covering the freshness bound first (per the 2026-11-17 triage note), then admission by tenant tier / compute usage, Turso-hop skip eligibility inside the bound, and invalidation vs the Turso source of truth; open questions recorded with chosen defaults; granular implementation issues filed for anything implementable. dezren39 commented on Nov 23, 2026
Design PR open: #13098 — doc/2026-11-23T08-06-00Z_design_atlas_d1_tenant_hot_cache/.
Shape, per the triage note's ordering: §1 settles the freshness bound first (per-class: A content-addressed = hash is the version; B result sets = watermark equality or 60 s TTL, first failure wins; C aggregates = 15 min + invalidation events; fail-safe narrowing, no serve-stale). Then skip eligibility (§2), admission (§3: heat 2/10 min, heavy-query immediate, tier weights 1:4:16 with 5% floor, 256 KB cap, 30 s negative TTL), invalidation (§4: watermark advance lazy-primary, events piggybacked on ingest completion records, audited operator purge), storage/eviction (§5), failure modes (§6), measurement counters for the #9098 prototype (§7), open questions with chosen defaults (§9, Q1–Q5).
On merge I will file the six §8 implementation follow-ons under this issue and complete its acceptance record. dezren39 commented on Nov 23, 2026
Done — all acceptance criteria for #9134 are met.
Design merged: PR #13098 (merge 743cb57660fc) landed doc/2026-11-23T08-06-00Z_design_atlas_d1_tenant_hot_cache/2026-11-23T08-06-00Z_design_atlas_d1_tenant_hot_cache.md under doc/, verified present on main. Current-state grounding recorded in the design: the atlas-search Worker has no D1 binding today (DO query cache + Turso-backed service), so the D1 tier is additive and Turso stays source of truth.
What the design settles: freshness bound first (§1: per-class watermark/TTL rules, fail-safe narrowing, no serve-stale), skip eligibility (§2), admission (§3: heat + heavy-query, tier weights 1:4:16 with 5% floor, 256 KB cap, negative TTL), invalidation (§4: watermark advance, tenant events on existing ingest completion records, audited purge), storage + eviction (§5), failure modes (§6), measurement counters for the #9098 prototype (§7), open questions Q1–Q5 with chosen defaults (§9).
Implementation issues filed (design §8):
- impl(atlas): D1 hot-cache schema, binding, and store module for the atlas-search Worker #13100 — schema, binding, store module
- impl(atlas): D1 hot-cache freshness evaluator — per-class watermark/TTL rules #13101 — freshness evaluator (property-test oracle: no serve outside the bound)
- impl(atlas): D1 hot-cache admission policy — heat, heavy-query, tenant quotas, eviction #13103 — admission policy + quotas + eviction
- impl(atlas): D1 hot-cache read-path integration — Turso-hop skip with skip logging #13105 — read-path skip integration + skip logging
- impl(atlas): D1 hot-cache invalidation — tenant events, Worker consumption, operator purge #13106 — invalidation events, consumption, operator purge
- impl(atlas): D1 hot-cache measurement report for the storage-economics prototype #13107 — measurement report + first tuning round
Closing as completed.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|