GeezerVison is showing github.com — design(pm-stack): self-hosted tier — Kubernetes cluster with multi-TB tiered storage as the largest central store; RustFS/NATS adapter primitives · Issue #9087 · developing-today/code
design(pm-stack): self-hosted tier — Kubernetes cluster with multi-TB tiered storage as the largest central store; RustFS/NATS adapter primitives #9087DescriptionComponent I of epic #9078 (hosted editions program), added by Drew's architecture amendment (2026-11-12 17:03 CST). Design first (design mill, under #9078). This is the LONGER-TERM tier: design the primitives and adapter interfaces NOW; the cluster itself is the later build.
What
A self-hosted Kubernetes cluster with multi-TB disk arrays as our largest central storage — the capacity tier behind the hosted editions. Component F's storage/content primitives (content addressing, references, dedup, GC) must be adapter-friendly toward:
- RustFS — S3-compatible object storage as the self-hosted counterpart of R2.
- NATS — streams/messaging as the self-hosted counterpart of the hosted sync/transport plumbing.
- Tiered storage architecture — multiple disks/storage classes with different latency and bandwidth capabilities, retention policies per tier, and placement/movement of content between tiers.
Peer principle (amendment point 4 — binding)
A self-hosted server (the ID server) is a peer, not a special case: identical participant in the protocol/architecture as a hosted-CF node or a Rust-binary node, differing only in (a) its much more complex backend (this tier) and (b) potentially advanced clustering of ID services for scalability. No protocol special-casing for 'ours' anywhere in the tenancy/sync/content designs (#9083, #9084, #9085 apply this too).
Open design questions
- Adapter interfaces: what do F's primitives assume about an object store (R2 vs RustFS/S3 semantics — consistency, multipart, presigned access) and a stream/messaging layer (hosted queues/DO vs NATS JetStream) so both backends are honest implementations?
- Tier model: storage classes (hot/warm/cold), placement rules (by size, sensitivity, reference count, age), movement/promotion/demotion mechanics, and retention per tier — who decides, and is it policy in the tenancy DB (design(pm-stack): tenancy architecture — per-user Turso databases + central tenancy DB, served by Workers and Durable Objects #9083)?
- ID service clustering: state partitioning/replication across ID nodes against the tiered backend; what the store abstraction (design(id): store abstraction — Turso/SQLite-over-HTTP beside redb, IndexedDB evaluated (one interface, pluggable backends) #9082) must expose for it.
- Relationship to the lab-cluster program (Clustered-Computing / code lab epics): is this cluster that hardware program's tenant, a separate build, or the same thing seen from the software side?
Acceptance
Activitydeveloping-today commented on Nov 12, 2026 dezren39 commented on Nov 17, 2026 🤖 Agent note · triaged
- Agent: queue worker (repo-worker-code), lane any-h
- Session / ID: task 18837
- Found via: queue claim
- Verdict: component I of epic epic: hosted editions — PM service, ID service, and fleet tool as workable Cloudflare Workers equivalents (multi-tenant Turso/R2 architecture) #9078 is design-mill work (adapter primitives and interfaces now; the cluster build is explicitly later), routed as a scoped design packet. Sibling components verified open in parallel — no dependency gates this design.
- Enqueued: task 20288 (dedupe key repo-health:v1:fix:developing-today/code:issue:9087). The packet binds: the deliverable is the adapter-interface design — RustFS as the S3/R2 counterpart, NATS as the sync/transport counterpart, and the tiered-storage model (storage classes, per-tier retention, placement/movement of content between tiers); the interface requirements this places on component F (design(pm-stack): content-addressed media/data plane — R2 dedup, reference-based access, GC when the last reference drops #9084) must be stated and cross-linked; and the peer principle (amendment point 4) is an acceptance check — no protocol special-casing for self-hosted nodes anywhere, backend-only asymmetry named as such. Cluster provisioning is explicitly out of scope.
- Labels: app/pm-stack, epic/pm-stack stand; task/small-fix added for the routed packet.
dezren39 commented on Nov 18, 2026 Fresh revalidation — 2026-11-18: #9087 remains OPEN; parent #9078 remains OPEN; no matching open PR found. This component is explicitly design-mill work, and its acceptance requires a design under doc/ plus cross-links to sibling component designs #9084/#9083. It needs a dedicated design-authoring session/worktree, so this OpenChamber scheduled queue lane is parking task 20288 rather than starting the design. The parent epic's mill ownership remains separate; no duplicate follow-on created. backlog_updated: false. dezren39 commented on Nov 18, 2026 Agent note (oc-code-05 scheduled lane, task 20288): the self-hosted tier adapter design is blocked for Drew's decision. The issue is assigned to dezren39 and has no open PR. I did not start the design without a release. Needed: an owner release or reroute. No changes made. dezren39 commented on Nov 22, 2026 [agent-note:v1]
Agent: repo-worker-code
Lane: code-g
Task: 20288
State: picked_up
Verdict: Issue #9087 and parent #9078 are open; no matching open PR or held/user-owned/do-not-auto-edit label. Prior owner-release comment is not a hold under queue policy; proceeding with the scoped design.
Next: inspect existing design artifacts, create/resume laptop worktree, deliver design and sibling cross-links.
[/agent-note:v1] dezren39 commented on Nov 22, 2026 [agent-note:v1]
Agent: repo-worker-code
Lane: code-g
Task: 20288
State: pr_opened
Verdict: Design artifact committed and cross-linked from E/F; PR #12392 is open. git diff --check passes; acceptance reviewed against adapter contracts, placement/retention, peer principle, cluster relationship, and issue questions. CI/merge verification remains.
PR: #12392
Next: verify PR checks and state; if checks remain pending, park with resume condition.
[/agent-note:v1]
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|