GeezerVison is showing github.com — Design: fleet kv — namespaced key-value store (local + global), blob offload to content-addressed R2 · Issue #10359 · developing-today/code
Design: fleet kv — namespaced key-value store (local + global), blob offload to content-addressed R2 #10359Closed 1 / 31 of 3 issues completedClosed 1 / 31 of 3 issues completed DescriptionDesign: fleet kv — a namespaced key-value store (local + global), blob offload to content-addressed R2
Origin: Drew, 2026-11-14. This is the fleet-tooling face of the ID
project's data plane — coordinate with #9107 (ID core epic:
namespaces, ID shapes), #9120 (content-addressed namespace spec), and
#9084 (content-addressed media/data plane: R2 dedup, reference-based
access) so this lands as one system, not a parallel one.
What Drew asked for
- A KV verb family in the fleet binary (
fleet kv get/set/list,
namespaced) for arbitrary data — explicitly not the secrets
store, though nothing forbids a short-lived secret from landing
there; the secrets verb remains the proper home for credentials.
- Local + global stores. Each host has a local store (which is
backed up). There is also a global (central) store. Read path:
local first; on a miss, fall back to global. A local value
overrides the same key in global. An explicit global operation
(fleet kv --global …, exact surface TBD) always addresses the
central store directly.
- Namespaces. Keys live in namespaces; a "global namespace" is
just a namespace designated global — no separate mechanism.
Namespaces map to the ID project's namespace concept (epic(id): Part A — ID core: namespaces, ID shapes, triples, user attributes #9107 /
design(id): content-addressed namespace (core a) spec #9120), not a fleet-private reinvention.
- Session partitions + sweep. A session's local partition does
not evaporate at disconnect: a sweeper pushes it into the central
store keyed under the owning user id (+ context id — see the
context-propagation design filed the same day), so work product
survives the session.
- Per-group databases. Every fleet-launched session — and other
partitions/groupings (a repo, the fleet project itself, the mcpx
namespace) — can be handed its own small database, likely Turso.
The embedded-replica model is the attraction: fast local reads,
automatic sync. Open question the design must answer with a
workload sketch: five agents concurrently pulling (and writing?)
a shared mid-size namespace — replica sync semantics, writer
topology, and conflict behaviour must be stated, not assumed.
- Values of any size, blobs out of the database. Values are
arbitrary bytes. Above a configurable threshold (Drew named 250 KB
/ 500 KB / 1 MB / 1 GB as the shape of the knob), a push keeps the
blob local-working as usual but, on sync to the central side,
routes the bytes through a trusted Cloudflare endpoint into
the content-addressed R2 bucket; the database row stores key,
namespace, name, and the content hash + bucket link instead of the
bytes (design(pm-stack): content-addressed media/data plane — R2 dedup, reference-based access, GC when the last reference drops #9084's reference-based pattern). Later expansion: lists and
tables on the same substrate — design the key/value layer so they
are additive.
Non-goals for v1
- Replacing the secrets verb or its broker.
- A general SQL surface (per-group Turso DBs in item 5 are handed
out as-is; fleet kv itself stays KV-shaped).
- Public/anonymous access — everything rides the existing fleet
auth (broker tokens, context ids).
Questions the design must answer
- Local store technology per host (embedded libSQL replica vs
SQLite file vs the host's Turso DB) and its backup story —
"sandbox has their own local store that maybe we back up and
merge" (Drew).
- Merge semantics for the disconnect sweep: last-writer-wins per
key, or versioned? What does the central store do with two
sessions sweeping the same key?
- The threshold knob: per namespace? per push flag? both?
- How the trusted Cloudflare endpoint authenticates a pusher and
who may read a blob back by hash (reference-based access, design(pm-stack): content-addressed media/data plane — R2 dedup, reference-based access, GC when the last reference drops #9084).
Acceptance (design phase)
- Decision record: store layout (local/global/namespace),
read/override/sweep semantics, blob threshold + R2 reference
format, and the five-agent shared-namespace sync answer.
- Build issues split out:
fleet kv verbs + local store first;
global sync + sweep second; blob offload third.
Design delivery — 2026-11-23, lane any-n
- Reviewed decision record: fleet kv design at verified source SHA. Source is agent-preliminary; defaults are in effect, not human-confirmed.
- Consolidation PR: docs(fleet): settle namespaced KV storage, sweep and blob design (#10359) #13294 — open, not merged. Parent lane any-n owns diff verification, any merge to main, and task 21123 / parent 20571 terminal disposition. The checked boxes record produced design artifacts, not an already-merged implementation.
- Phase 1: Build: fleet kv phase 1 — local verbs, scoped SQLite and backup #13314 — local verbs, fully scoped SQLite overlays, working files and backup; pilot task 21316.
- Phase 2: Build: fleet kv phase 2 — central CAS, shared namespaces and session sweep #13316 — central CAS/history/idempotency, scope grants, five-agent correctness, sweep and inline archive; blocked by Build: fleet kv phase 1 — local verbs, scoped SQLite and backup #13314; pilot task 21317.
- Phase 3: Build: fleet kv phase 3 — authenticated blob offload and reference-safe GC #13318 — authenticated streaming blob offload, shared ID references and fenced GC; blocked by Build: fleet kv phase 2 — central CAS, shared namespaces and session sweep #13316; pilot task 21318. Lists/tables remain later expansion, not Phase 3 scope.
- All three are attached sub-issues with concrete acceptance, named PBT/MBT oracles and executable future done checks. Each requires design PR docs(fleet): settle namespaced KV storage, sweep and blob design (#10359) #13294 to merge before phase implementation. Filed and enqueued in the same pass in
repo-health-code-pilot.
- Fresh independent compatibility research, Turso primary-source checks, design review, decision challenge/investigation and final re-challenge completed. Final design reviewer: Must fix: none at the pinned source SHA; human-review sheet: None.
- Design validation: workflow/link/profile check passed; documentation-only diff. No KV implementation, provisioning, deployment, or runtime test result is claimed. Offline/unarchived disk-loss window is explicitly unbounded; the 15-minute archive interval is an online successful-checkpoint target, not an unconditional RPO.
Sub-issuesCollapse Sub-issuesSub-issues1 of 31 of 3 Issues completedLoading 3 sub-issues Activitydeveloping-today commented on Nov 14, 2026 dezren39 commented on Nov 17, 2026
🤖 Agent note · picked up + triaged
- Agent: queue worker (repo-worker-code), lane any-g
- Session / ID: task 19238
- Found via: repo-health-code-pilot atomic claim (unfiltered, lane any-g); execution-lane assignment: direct (fix(queue): single-session by default — launch-on-handoff, lane works, inline triage (reverses #8097 Rule 3) #8187)
- Task: Triage issue Design: fleet kv — namespaced key-value store (local + global), blob offload to content-addressed R2 #10359: Design: fleet kv — namespaced key-value store (local + global), blob offload to content-addressed R2
- Fresh verification (2026-11-17): issue Design: fleet kv — namespaced key-value store (local + global), blob offload to content-addressed R2 #10359 OPEN; labels were kind/design, epic/fleet-orchestration (never triaged; one Kaneo-link comment). No hard-stop labels. Nothing exists yet: fresh greps find no
fleet kv surface in the fleet crates on origin/main and no fleet-kv design doc under doc/ — the design phase the issue's acceptance describes is genuinely unstarted.
- Verdict: work kind
kind/design (kept) · priority/normal · effort/l (labels applied this run, plus status/triaged and queue/queued for the follow-on). No task/ label: the repo's packet kinds have no design kind, and the repo's own design label carries the work kind here (the follow-on packet's kind is a schema constraint, named in its body).
- Priority why: no expedite/next-up label (Drew's set untouched); a Drew-origin fleet-tooling design under the infrastructure weight — ordinary band.
- Routing: design-mill pattern — one summit session owns the decision record: store layout + per-host backup story, local-first/override/--global read semantics, session-partition sweep + merge semantics (including two sessions sweeping the same key), the five-agent shared-namespace workload answer (sync semantics, writer topology, conflicts — stated, not assumed), the blob threshold knob and R2 reference format with the trusted endpoint's auth, and the explicit coordination with epic(id): Part A — ID core: namespaces, ID shapes, triples, user attributes #9107/design(id): content-addressed namespace (core a) spec #9120 (namespace concepts) and design(pm-stack): content-addressed media/data plane — R2 dedup, reference-based access, GC when the last reference drops #9084 (content plane) so this lands as one system with the ID data plane. The follow-on also files the three phased build issues (verbs + local store; global sync + sweep; blob offload) under this issue.
- Design packet:
repo-health:v1:fix:developing-today/code:issue:10359 → enqueued as task 20571 (queue repo-health-code-pilot, status queued, priority 30; packet file hidden_files/19238-design-packet-10359.json).
dezren39 commented on Nov 18, 2026
Picked up — design #10359 (task 20571, lane oc-code-01).
Revalidating prior parked reason: #10359 is a design-mill item. Its decision record must settle store layout, sweep/merge semantics, the five-agent shared-namespace sync answer, blob authorization/reference format, and ID namespace alignment, then split three phased build issues. This requires one summit owner and is not unattended lane work. dezren39 commented on Nov 18, 2026
Parked — design #10359 (task 20571, lane oc-code-01).
Design-mill item requiring a summit owner to settle storage topology, merge/sweep semantics, the five-agent shared-namespace sync answer, blob authorization/reference format, and ID namespace alignment before filing the three phased build issues. Not unattended lane work. Resume when an explicit summit-route owner handoff/reroute is recorded. dezren39 commented on Nov 18, 2026 agent-note:v1
state: parked
task: 20571
lane: oc-code-01 (OpenChamber scheduled lane, worker repo-worker-code)
stage: fresh_revalidation -> parked
Fresh 2026-11-18 verification: #10359 remains OPEN, assigned to dezren39, labeled queue/queued + effort/l, with no matching PR and no sub-issues. No design decision record or phase issue set is recorded in the recent issue history; no explicit Summit-route owner handoff/reroute exists. This is a 45-minute design-mill deliverable spanning storage topology, sweep/merge semantics, concurrent sync, blob authorization, ID namespace coordination, and three implementation phases; it requires one summit owner, not unattended lane execution. No edits or artifacts started. Park task and sync issue labels; resume only after explicit owner handoff/reroute, then revalidate.
backlog_updated: false dezren39 commented on Nov 23, 2026
Stand-down (xaltha, 2026-11-23 ~12:50Z): queue task 20571 re-served to this workhorse lane and re-parked. #10359 is a design-mill item requiring one Summit-route owner end-to-end; a workhorse lane cannot take it (same disposition as the 2026-11-18 park and today's stand-downs by Lanes KX, LT, MV, NU, code-g).
New since the last note: Summit task 21123 is now claimed and in progress (summit_design_in_progress, checkpoint 12:43:10Z, worker repo-worker-code) — the design work is owned. Task 20571 stays parked until 21123 reaches a terminal outcome; no design work started here. dezren39 commented on Nov 23, 2026 Progress — lane any-n, task 21123: draft consolidation PR #13294 is open at #13294. Compatibility exploration and official Turso replica-vs-Sync research are complete. A fresh spec review and D001–D013 challenge ran; the sole writer is repairing concrete findings (backup durability, scope/override semantics, CAS receipts/history, supported auth, placement ceiling, GC fencing). Four challenged choices are under independent investigation. No implementation has begun. Parent lane any-n will verify the final diff and perform any merge to main; this executor leaves the PR open. dezren39 commented on Nov 23, 2026 Design deliverables produced — lane any-n, task 21123 / parent 20571. Acceptance updated in the issue body with reviewed record SHA 5ac3ddc, open consolidation PR #13294, and three phased build sub-issues #13314 / #13316 / #13318. Same-pass pilot coverage: tasks 21316 / 21317 / 21318. GitHub blocked-by edges: #13316 -> #13314; #13318 -> #13316. Fresh final spec reviewer reports Must fix: none; challenge/re-challenge settled defaults; human-review None. Published-issue zero-context reader reports blocking questions NONE, source links and executable future done checks verified. No phases implemented. PR stays open for parent lane any-n verification/merge and queue terminal disposition; full final SHA-gate evidence follows on the PR. dezren39 commented on Nov 23, 2026 Live queue-coverage update at final handoff (lane any-n): the same-pass triage tasks 21316 (#13314) and 21317 (#13316) were completed by other lanes during this design run and replaced by live build successors 21319 (parked, #13314) and 21320 (parked, #13316). Task 21318 remains blocked for #13318. All three open phase issues therefore retain LIVE pilot coverage; the original task IDs in the creation/delivery note are historical triage IDs. PR #13294 is now ready/non-draft, OPEN and MERGEABLE/CLEAN at head 7926080, base 5774307. Final SHA-gate/validation evidence is on the PR. No phase implemented; parent any-n owns merge and queue task terminal disposition.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|