GeezerVison is showing github.com — design(fleet): second version in TypeScript — scope, WASM evaluation, transports (REST/WebSocket), and direct-Turso prudence rules · Issue #9085 · developing-today/code
design(fleet): second version in TypeScript — scope, WASM evaluation, transports (REST/WebSocket), and direct-Turso prudence rules #9085DescriptionComponent G of epic #9078 (hosted editions program). Design first (design mill, under #9078). This is the program's cross-cutting runtime/transport design; components A–C consume its verdicts.
Premise (Drew, 2026-11-12)
Workers limitations mean the hosted editions are substantially a second version written in TypeScript. The design says so plainly and scopes exactly what 'second version' covers — PM service (A), ID service (B), fleet tool (C) — and what is NOT rewritten.
Scope of the design
- Rewrite-vs-WASM per component: client-side WASM is allowed in selected areas. For each piece of Rust logic (ID crypto and store logic are the named candidates), evaluate: compile to WASM and reuse / rewrite in TypeScript / keep server-side only. Criteria: correctness risk (crypto!), maintenance divergence between two implementations of the same semantics, bundle/runtime limits.
- Transports: ALL base functions must work over REST or WebSocket transports (HTTP/2/3, QUIC where the platform provides it). Define the base-function inventory per component and the transport contract for each (request/response vs streaming vs realtime sync), including offline/reconnect behavior.
- Direct Turso access: also allowed — to the user's OWN database and to the PUBLIC database — 'when prudent'. This design defines prudent: which operations may go direct (reads? writes? sync?), under what credential scoping/expiry (from component E), and which operations must NEVER bypass the service layer (anything needing stamping, authorization beyond the DB scope, or cross-tenant access).
- Shared-semantics discipline: how the TS version and the Rust/native version keep one data model (Metadata, packets, store contracts) — shared schemas/fixtures/tests, and what happens when they diverge.
Builds on / relations
Acceptance
Implementation slice progress
- G1 shared fixture home — merged in PR test(id): share cross-language G1 fixtures #15853.
- G2 one internal TypeScript primitives package for BLAKE3 (including the streaming hasher), canonical CBOR, and encoding helpers; both Workers import it and their suites stay green.
Next slice: G2. Activitydeveloping-today commented on Nov 12, 2026 dezren39 commented on Nov 12, 2026 Amendment applied (Drew 2026-11-12 17:03, epic #9078): DUAL TIER-1 FRAMING. Both editions are primary — Cloudflare+Turso AND the Rust binaries with extended features. Scope/transport verdicts are framed as parity + deliberate divergence (extended features may be Rust-side first/only where Workers cannot), never as porting down to a reduced edition. dezren39 commented on Nov 13, 2026 INPUT from program #9106 (Drew, 2026-11-12 18:29 CST): (1) dual tier-1 reaffirmed — the TS edition is fully featured, and §0 of #9106 (#9110) requires the primitive/adapter/hook surface be designed for the full transport matrix (REST/WebSocket now; NATS-stream and others as adapters later), so transport choice in this issue is a first adapter, not the architecture. (2) Federated query transports (Part B, #9144) ride the same transports designed here. dezren39 commented on Nov 17, 2026
Agent note — triaged, task 18835 for issue #9085 (lane any-e)
- State: triaged (inline, 2026-11-17). Verdict: real and current — a design-mill item (component G of epic epic: hosted editions — PM service, ID service, and fleet tool as workable Cloudflare Workers equivalents (multi-tenant Turso/R2 architecture) #9078), not a lane fix. Work kind: design (kind/design). Priority: priority/normal. Effort: effort/l.
- Fresh verification: issue design(fleet): second version in TypeScript — scope, WASM evaluation, transports (REST/WebSocket), and direct-Turso prudence rules #9085 is OPEN, no hard-stop labels; parent epic epic: hosted editions — PM service, ID service, and fleet tool as workable Cloudflare Workers equivalents (multi-tenant Turso/R2 architecture) #9078 is OPEN. Binding inputs already on the issue: Drew's 2026-11-12 DUAL TIER-1 amendment (both editions primary; verdicts framed as parity + deliberate divergence, never a reduced edition) and the 2026-11-13 input from program epic: ID/Atlas extensible primitives, federation, namespaces — major design iteration (2026-11-12 directive) #9106 (the primitive/adapter/hook surface must be designed for the full transport matrix — REST/WebSocket now, further transports as adapters later; a transport choice here is a first adapter, not the design).
- Route (design mill, per the epic's terms): ONE summit design session owns this item under epic: hosted editions — PM service, ID service, and fleet tool as workable Cloudflare Workers equivalents (multi-tenant Turso/R2 architecture) #9078 and produces the merged design under doc/: the per-component rewrite-vs-WASM table (ID crypto/store logic named, correctness risk first), the base-function transport inventory with per-function contract (request/response vs streaming vs realtime sync, offline/reconnect), the direct-Turso prudence rules (which operations may go direct to a user's own DB or the public DB, credential scoping/expiry from component E, and what must never bypass the service layer), and the shared-semantics discipline (shared schemas/fixtures/tests; divergence handling).
- Sequencing inside the epic: components A-C consume this design's verdicts, so G's design session should run early or in parallel with A's (component A triaged this same shift as task 18829 under issue design(pm-stack): PM service, Workers edition — TypeScript equivalent of aggregator/dashboard/reconcile as one hosted service #9079); neither design should finalize transport or rewrite scope without the other's draft.
- First concrete step: design-mill intake for component G — brief the summit session with this issue's four scope sections, the two amendments above, component D's WASM question and component E's credential model as inputs, and id: design: ID transport fallback for UDP-denied networks v1 #5671 as transport prior art.
- Acceptance check (from the issue): design merged under doc/ as part of epic: hosted editions — PM service, ID service, and fleet tool as workable Cloudflare Workers equivalents (multi-tenant Turso/R2 architecture) #9078's build-out (rewrite/WASM table, transport inventory, prudence rules); granular implementation issues filed under design(fleet): second version in TypeScript — scope, WASM evaluation, transports (REST/WebSocket), and direct-Turso prudence rules #9085 or handed to the owning component issues with cross-links.
- Why no queue packet: the queue validator has no design packet kind; the tracked next action is the design-mill intake named above under epic epic: hosted editions — PM service, ID service, and fleet tool as workable Cloudflare Workers equivalents (multi-tenant Turso/R2 architecture) #9078. Labels: status/triaged + priority/normal + effort/l + kind/design added.
added effort/lLarge: multi-day or open-ended; expect staged check-ins kind/designA design proposal (design-architect): multi-step, phased, decision-bearing on Nov 17, 2026dezren39 commented on Nov 17, 2026
Agent note — picked up, task 20287 (lane code-h)
dezren39 commented on Nov 24, 2026
🤖 Agent note · second-pass verify-and-route (queue task 21949, lane code-j)
Verdict (fresh-checked 2026-11-24): STILL OPEN, premise true, already routed. The 2026-11-23 reconciliation note (archer, lane CZ) stands: no design for component G is on main, and the design is the deliverable of one summit design-mill session, not a fix lane. Issue last updated 2026-11-24T09:30Z.
Routing: no new follow-on packet filed. The design-mill intake packet on this issue is the routed work. Next concrete step: launch the summit session that owns #9085 end-to-end (brief in the 2026-11-23 note). Sequencing: §1 store rows wait on #10174/#10213 (component D); §2 ID rows coordinate with B (#9080); §3 prudence rules cite E (#9083, closed) and F (#9084, merged).
Acceptance is unchanged and not met yet: design merged under doc/, plus implementation issues filed under #9085 or cross-linked to owning components. developing-today-fleet commented on Nov 25, 2026 agent-note:v1
Agent: felix (Muse lane, 2026-11-25)
State: label correction (comment-only) — #14863 hygiene audit slice 9
This issue carries status:in-review and status/triaged at the same time. Per the newest record (second-pass verify-and-route, task 21949, 2026-11-24: premise true, already routed) the live state is in-review; status/triaged is the stale member of the pair. Flagged for the holder to drop the stale label — this lane does not edit labels. Refs #14863 dezren39 commented on Nov 26, 2026 Claimed by lane 1, 2026-11-26T02:45Z
Writing the component G design record: what the TypeScript second version covers, the WASM-or-rewrite verdict per piece of Rust logic, the transport contract for base functions, and the direct-Turso prudence rules.
Generated by Claude Code dezren39 commented on Nov 26, 2026 Lane 1: the component G design record merged in PR #15356 (5368227), at doc/2026-11-26T03-00-00Z_design_hosted-second-version-typescript-9085/.
It covers the scope of the TypeScript second version and what is not rewritten, a rewrite-or-WASM verdict per piece of Rust logic, the transport contract for each base function, and the direct-Turso prudence rules (S14). It also has alternatives, slices G1 to G12, rollout and rollback, verification, and open questions.
These questions are left for Drew:
- May the owner's own native node hold readwrite to its own tenant DB? The record recommends no.
- Should anonymous readers get public-DB read tokens?
- What is the size budget for the browser crypto WASM bundle?
- Should wasm32 builds of the id crates be added to Nix and CI?
- Should Rust-on-Workers be allowed for a hot path?
This issue stays open for the slices, which are not filed yet.
Generated by Claude Code developing-today-fleet commented on Nov 26, 2026 🤖 Agent note · triage re-verified — design landed; slice handoff remains open
Fresh readback (2026-11-26): #9085 remains OPEN. Component G’s design is now merged in PR #15356 (doc/2026-11-26T03-00-00Z_design_hosted-second-version-typescript-9085/). It covers the TypeScript edition scope, rewrite/WASM verdicts, per-function transport contracts, direct-Turso prudence, and G1–G12 slices.
The implementation handoff is not complete: the latest design note says G1–G12 are future issues and that they are not filed yet. The issue remains open for mapping those slices to new or already-existing component issues and cross-linking the accepted design. Keep implementation out of this triage task; do not create duplicate work without checking the design-mill owner’s slice map. This re-triage changes no design decisions or code. The recorded open design questions do not authorize a production or tenant-data change. developing-today commented on Nov 27, 2026 🤖 Agent note (lane code-j, 2026-11-26, triage task 25248): concur with the 23:40Z re-verification — design landed, slice mapping open, no packet.
developing-today commented on Nov 27, 2026
Decided: Take G1 as the first implementation slice: establish shared fixture files for canonical CBOR, BLAKE3, and bridge-event vectors, and make both Rust and TypeScript suites consume them.
Why: The merged design §9 orders G1 before G2 and G4; it changes no runtime behavior and has a direct oracle: removing a fixture case must fail both suites.
Undo: Revert the G1 PR; no production behavior or stored data changes.
By: agent-next-24-local
This advances the design’s unfiled slice handoff without creating a competing writer for later slices. developing-today-fleet commented on Nov 27, 2026 🤖 G1 implementation slice merged — PR #15853
G1 now uses one fixture home for 27 canonical CBOR vectors, 11 BLAKE3 vectors, and five signed bridge events. Rust bridge_fixtures (17 tests) and canonical_cbor_vectors (6 tests) passed on Fleet run #45927852102; the Node TypeScript suite (16 tests) passed on Fleet run #45925930263.
Next slice: G2. After G2, both hosted Workers import one internal TypeScript primitives package for BLAKE3, canonical CBOR, and encoding helpers, with their existing suites still passing. This is the next resumable slice. developing-today-fleet commented on Nov 27, 2026 🤖 Triage re-verified — G1 landed; G2 is next (queue task 26066, lane any-n)
Fresh verification: #9085 remains open; the component G design is merged in PR #15356. G1 has now landed in PR #15853 (shared Rust/TypeScript fixture vectors; test-only, with both suites passing per the PR evidence). The issue body already names G2 as the next slice: an internal TypeScript primitives package for BLAKE3, canonical CBOR, and encoding helpers, used by both Workers.
Verdict: valid, active implementation work remains. This claim is triage only; G2 is not a small fix. Do not create a competing slice map or implement it here. The next actionable handoff is to create/claim the G2 implementation task from the existing design and issue-body scope, with ownership/slice mapping checked before filing to avoid duplication. No code or labels changed. developing-today-fleet commented on Nov 27, 2026 G2 is now queued as Fleet task 26073 (repo-health-code-pilot), dedupe key repo-health:v1:slice:developing-today/code:issue:9085:slice-2. It is scoped to the shared TypeScript primitives package described above; this avoids creating a competing GitHub issue.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|