GeezerVison is showing github.com — design(fleet): fleet tool, Workers/TypeScript equivalent — hosted Metadata stamping/query, session provenance, sync tools · Issue #9081 · developing-today/code
design(fleet): fleet tool, Workers/TypeScript equivalent — hosted Metadata stamping/query, session provenance, sync tools #9081Done 8 / 108 of 10 issues completedDone 8 / 108 of 10 issues completed DescriptionComponent C of epic #9078 (hosted editions program). Design first (design mill, under #9078).
What
The fleet-tool capabilities the hosted world needs, available as a TypeScript service/CLI against the hosted backends (Workers + Turso): creating issues/PRs with Metadata stamping, Metadata query/filter, session provenance, and the higher-level sync tools — so hosted and agent workflows get the same guarantees the native fleet binary gives the laptop world.
Builds on / relations
Open design questions
- Split of duties: what lives in the hosted service (server-side stamping authority, DB insert) vs a thin TS CLI vs direct Turso access (component G's prudence rules)?
- Stamping parity: the full native stamp set (queue id, scheduled start, pickup/work-start times, worktree/host, session id, model, lane-start issue set) — which fields exist in the hosted world, and what replaces the ones that don't (no worktree on a Worker)?
- Auth: how does the hosted fleet surface authenticate callers — SSO for fleet services: GitHub/Google/Microsoft login gated to Drew + devtoday OIDC provider with roles + account linking #9077 relying-party tokens, per-user DB credentials, or service tokens — and how are stamps made non-forgeable?
- Queue semantics: does the hosted world get its own queue (Turso-backed, same packet schema repo-task/v1) or does the laptop queue remain the only queue?
Acceptance
Sub-issuesCollapse Sub-issuesSub-issues8 of 108 of 10 Issues completedLoading 10 sub-issues Activitydeveloping-today commented on Nov 12, 2026 dezren39 commented on Nov 17, 2026
🤖 Agent note · picked up + triaged
- Agent: queue worker (repo-worker-code), lane any-g
- Session / ID: task 18831
- 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): fleet tool, Workers/TypeScript equivalent — hosted Metadata stamping/query, session provenance, sync tools #9081: design(fleet): fleet tool, Workers/TypeScript equivalent — hosted Metadata stamping/query, session provenance, sync tools
- Fresh verification (2026-11-17): issue design(fleet): fleet tool, Workers/TypeScript equivalent — hosted Metadata stamping/query, session provenance, sync tools #9081 OPEN; labels were app/pm-stack, epic/pm-stack only (never triaged; one Kaneo-link comment). It blocks design(pm-orchestration): Hosted PM/Fleet projection parity #9477 and design(pm-orchestration): Cross-target fixture and canonical order hash. Owns Rust contract fixtures in pkgs/fleet/crates/fleet-queue/src/work/distribution.rs and existing hosted adapter test surfaces #9456. No hard-stop labels.
- Verdict: work kind
kind/design · 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); the hosted-editions epic sits under the infrastructure-independence program (priorities brief line 4), ordinary band.
- Key finding — the epic's design phase never actually ran: epic epic: hosted editions — PM service, ID service, and fleet tool as workable Cloudflare Workers equivalents (multi-tenant Turso/R2 architecture) #9078's design-mill intake (2026-11-12) merged only a scaffold (PR design(intake): hosted editions program scaffold (#9078) #9088,
doc/2026-11-12T23-10-00Z_design_hosted-editions-workers/) and its summit queue item (task 15339) completed already_done against the epic's erroneous closure that same day; the reconciliation (task 15340) also closed on the parent's state while components design(pm-stack): PM service, Workers edition — TypeScript equivalent of aggregator/dashboard/reconcile as one hosted service #9079–design(pm-stack): self-hosted tier — Kubernetes cluster with multi-TB tiered storage as the largest central store; RustFS/NATS adapter primitives #9087 stayed open. Epic epic: hosted editions — PM service, ID service, and fleet tool as workable Cloudflare Workers equivalents (multi-tenant Turso/R2 architecture) #9078 is OPEN again today (fresh read: closedAt null, status:to-do), and every sibling component (design(pm-stack): PM service, Workers edition — TypeScript equivalent of aggregator/dashboard/reconcile as one hosted service #9079 A, design(id): ID service, Workers edition — close the gaps on the #5524/#5681 serverless line to a workable hosted equivalent #9080 B, design(id): store abstraction — Turso/SQLite-over-HTTP beside redb, IndexedDB evaluated (one interface, pluggable backends) #9082, design(pm-stack): tenancy architecture — per-user Turso databases + central tenancy DB, served by Workers and Durable Objects #9083) is OPEN and untriaged — component C is not behind a sibling; the build-out is simply unstarted. This triage restarts it for component C.
- Routing: design-mill pattern — one summit session owns the component's design; the deliverable is a design merged under doc/ within epic: hosted editions — PM service, ID service, and fleet tool as workable Cloudflare Workers equivalents (multi-tenant Turso/R2 architecture) #9078's build-out (capability inventory vs the native fleet surface, hosted stamp set, auth model, queue answer — the issue's four open questions) plus granular implementation issues filed under design(fleet): fleet tool, Workers/TypeScript equivalent — hosted Metadata stamping/query, session provenance, sync tools #9081. Framing per the epic's recorded doctrine: Cloudflare+Turso and the Rust binaries are both tier 1 (parity + deliberate divergence, never "port down"); a self-hosted server is a peer participant kind.
- Design inputs: native counterparts impl(fleet): fleet gh Metadata superset — create-path stamping + DB insert (extends #9016) #9073 (Metadata superset), impl(fleet): metadata database + fleet Metadata query surface #9074 (metadata DB + query), impl(fleet): session state — session id in env + worktree pwd-file #9075 (session state/provenance), fleet gh step 2: higher-level sync tools on the token rotation #9016 (sync tools) — all OPEN, all fresh-read this run; their specs are the semantics source and the packet requires re-checking them before the stamp set is finalized. Consumers: design(pm-stack): PM service, Workers edition — TypeScript equivalent of aggregator/dashboard/reconcile as one hosted service #9079 (A), design(id): ID service, Workers edition — close the gaps on the #5524/#5681 serverless line to a workable hosted equivalent #9080 (B); ingestion interplay impl(fleet): dual ingestion — webhook listener + interval sweeper, Metadata backfill, retroactive completion #9076; auth SSO for fleet services: GitHub/Google/Microsoft login gated to Drew + devtoday OIDC provider with roles + account linking #9077.
- Design packet:
repo-health:v1:fix:developing-today/code:issue:9081 → enqueued as task 20284 (queue repo-health-code-pilot, status queued, priority 30; packet file hidden_files/18831-design-packet-9081.json).
added effort/lLarge: multi-day or open-ended; expect staged check-ins kind/designA design proposal (design-architect): multi-step, phased, decision-bearing and removed on Nov 17, 2026dezren39 commented on Nov 22, 2026
Progress from felix: still working dezren39 commented on Nov 22, 2026 agent-note:v1
event: progress — component C design build-out landed as PR, implementation issues filed
by: agent felix (kind muse, Muse sandbox seat; queue task 20284, fallback claim worker felix)
at: 2026-11-22
Design PR: #12593 — doc/2026-11-22T14-28-45Z_design_fleet-tool-workers-edition/ (docs-only, awaiting Felix's review/merge; not merged by this lane).
The four open questions, answered in the design:
- Split of duties — one Worker (fleet-hosted) is the only stamping authority: server-side Metadata stamp + DB insert, fleet App rotation held server-side. The TS CLI is thin: session carriage + rendering, no authority. Direct Turso is read-only, metadata DB only, under component E's scoped expiring tokens — never the stamp path, never the queue DB.
- Stamping parity — the native
provenance set (§12 of the pm stack: multi-board hierarchy + full task genealogy #9060 design) mapped field-by-field: queue fields read from the queue record, times from the service clock, session from a server-side registry. worktree gains a named replacement workspace_ref for callers with no checkout; additive fields auth_subject, stamped_by, stamp_sig; the block stays pm_meta: 1.
- Auth — SSO for fleet services: GitHub/Google/Microsoft login gated to Drew + devtoday OIDC provider with roles + account linking #9077 relying-party tokens; agents authenticate as design(pm-stack): one identity across the stack — SSO propagation from the public entry into every layer, roles replace asserted authorship #1253's agent role (flows owned by H design(pm-stack): SSO relying-party integration — hosted editions consume #9077; tenancy accounts aligned with #1253 roles #9086). Per-user DB credentials are explicitly not service authentication. Non-forgeability in three layers: server-side sourcing of every fleet-owned field, a signature over the canonical provenance, and DB insert authority limited to the two editions — a forged body block diverges from the DB row and is reported (§15 rule).
- Queue semantics — ONE queue. Measured fact: the queue core already lives in a Turso database behind the broker protocol (Turso replacement for the queue core: dedicated muse-queue DB + fleet queue-broker Turso backend #6741); the laptop broker is a process location, not the data's home. The hosted world gets a second, peer front door on that same DB with the same
repo-task/v1 schema and event stream — not a second queue.
Deferrals (owner + trigger, design §8): broker transport framing → G #9085; signature algorithm/key custody → fleet CA line + #9073; metadata DB physical topology → #9074; per-surface token flows → H #9086; standalone TS gh library → #9016.
Granular implementation issues filed (native sub-issues of this issue, verified by read-back): #12583 service skeleton · #12584 session registry · #12585 create-path stamping endpoint · #12586 stamp signature (both editions) · #12587 Metadata query surface · #12588 thin TS CLI · #12589 queue front door · #12590 ingestion receiver · #12591 sync-tool verbs · #12592 direct-Turso read path.
Acceptance state: design merged — pending PR #12593 review; implementation issues filed — done. Claim stays held under felix until the PR lands. dezren39 commented on Nov 22, 2026 agent-note:v1
event: merged — component C design landed; acceptance met
by: agent felix (kind muse, Muse sandbox seat; queue task 20284, worker felix)
at: 2026-11-22
The component C design is merged: #12593
(doc/2026-11-22T14-28-45Z_design_fleet-tool-workers-edition/)
Done check against this issue's acceptance:
- Design merged under doc/ covering the capability inventory vs the native fleet surface, the hosted stamp set (with workspace_ref replacing worktree for checkout-less callers), the auth model with three-layer non-forgeability, and the queue answer (one queue: a second peer front door on the existing fleet-queue Turso DB, same repo-task/v1 schema) — yes, sections 2-7.
- The four open questions each answered, or deferred with a named owner and trigger — yes, section 8 (five deferrals: G design(fleet): second version in TypeScript — scope, WASM evaluation, transports (REST/WebSocket), and direct-Turso prudence rules #9085, the fleet CA line + impl(fleet): fleet gh Metadata superset — create-path stamping + DB insert (extends #9016) #9073, impl(fleet): metadata database + fleet Metadata query surface #9074, H design(pm-stack): SSO relying-party integration — hosted editions consume #9077; tenancy accounts aligned with #1253 roles #9086, fleet gh step 2: higher-level sync tools on the token rotation #9016).
- Granular implementation issues filed under design(fleet): fleet tool, Workers/TypeScript equivalent — hosted Metadata stamping/query, session provenance, sync tools #9081 — yes: impl(fleet-hosted): service skeleton — Worker route modules, RP-token auth validation, tenancy mapping, health/capabilities #12583-impl(fleet-hosted): direct-Turso Metadata read path — scoped read-only tenancy tokens, prudence conformance #12592, native sub-issues, verified by read-back.
- Framing matches the epic: hosted editions — PM service, ID service, and fleet tool as workable Cloudflare Workers equivalents (multi-tenant Turso/R2 architecture) #9078 doctrine (dual tier-1, parity + deliberate divergence, self-hosted as peer) — yes.
The issue stays open as the component's tracking node while the build proceeds under its sub-issues. The queue claim is released outcome=done: the design-mill deliverable for this item is complete. dezren39 commented on Nov 22, 2026
Released by felix (outcome: done). Component C design merged via PR #12593; ten implementation sub-issues filed (#12583-#12592). Acceptance met; issue left open as the component tracking node.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|