GeezerVison is showing github.com — design(fleet): component C — fleet tool Workers/TS equivalent: hosted stamping/query, session provenance, sync tools (#9081) by dezren39 · Pull Request #12593 · developing-today/code
Conversation
dezren39
commented
Nov 22, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Problem
Component C of epic #9078 (hosted editions program): the fleet tool's capabilities — Metadata stamping/query, session provenance, sync tools — exist only as laptop-world designs (#9060 §§12–16) with open native implementation issues (#9073–#9076, #9016). Hosted and agent workflows off the laptop have no fleet surface at all. #9081 asks for the design: capability inventory vs the native fleet surface, the hosted stamp set, the auth model, and the queue answer.
Design (this PR)
doc/2026-11-22T14-28-45Z_design_fleet-tool-workers-edition/ — docs-only, following the component-E record's form. Grounded in the shipped native surface (pkgs/fleet/docs/verbs.md), the #9060 Metadata model, and two measured facts: the queue core already lives in a Turso database behind the broker protocol (#6741), and the bridge domain already runs a hosted front door through a Cloudflare Worker.
The four open questions, answered:
- Split of duties — one Worker (fleet-hosted) is the only stamping authority: server-side stamp + DB insert + fleet App rotation held server-side. A thin TS CLI carries session context and renders; it holds 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 field-by-field. 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: design(pm-stack): one identity across the stack — SSO propagation from the public entry into every layer, roles replace asserted authorship #1253 agent-role credentials per 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 auth. Non-forgeability in three layers: server-side sourcing of every fleet-owned field, a signature over the canonical provenance, and insert authority limited to the two editions — a forged body block diverges from the DB row and gains nothing (§15 rule).
- Queue semantics — one queue. No second queue and no laptop-only queue: a hosted broker front door (a peer of the native broker) on the existing fleet-queue Turso DB, same
repo-task/v1 schema, same event stream; atomicity stays in libSQL where it already lives.
Framing per the epic doctrine throughout: dual tier-1, parity + deliberate divergence (each divergence named in place: no hosted raw-gh passthrough, no hosted secrets/shell/proxy), self-hosted and hosted nodes as peer participant kinds. Deferrals are explicit with owner + trigger (transport framing → G #9085; signature algorithm/key custody → fleet CA line + #9073; DB physical topology → #9074; token flows → H #9086; TS gh library → #9016).
Implementation issues filed under #9081
Native sub-issues of #9081 (verified by read-back):
- impl(fleet-hosted): service skeleton — Worker route modules, RP-token auth validation, tenancy mapping, health/capabilities #12583 service skeleton — Worker route modules, RP-token auth, tenancy mapping
- impl(fleet-hosted): session registry — server-minted session ids, resolution-order parity with #9075 #12584 session registry — server-minted session ids, impl(fleet): session state — session id in env + worktree pwd-file #9075 resolution parity
- impl(fleet-hosted): create-path stamping endpoint — Metadata parse/stamp/DB insert, fleet App rotation server-side (#9073 hosted) #12585 create-path stamping endpoint (impl(fleet): fleet gh Metadata superset — create-path stamping + DB insert (extends #9016) #9073 hosted)
- impl(fleet): stamp signature — sign/verify canonical provenance (stamp_sig, stamped_by, auth_subject), both editions #12586 stamp signature — both editions, cross-linked to impl(fleet): fleet gh Metadata superset — create-path stamping + DB insert (extends #9016) #9073
- impl(fleet-hosted): Metadata query surface — REST + CLI filters over the metadata DB (#9074 hosted) #12587 Metadata query surface (impl(fleet): metadata database + fleet Metadata query surface #9074 hosted)
- impl(fleet-hosted): thin TS CLI — session carriage, create/query/intake verbs, no local stamping authority #12588 thin TS CLI
- impl(fleet-hosted): queue front door — broker protocol over hosted transports on the existing fleet-queue Turso DB #12589 queue front door on the existing fleet-queue Turso DB
- impl(fleet-hosted): ingestion receiver — GitHub webhook route + scheduled-Worker sweeper (#9076 hosted) #12590 ingestion receiver — webhook route + scheduled sweeper (impl(fleet): dual ingestion — webhook listener + interval sweeper, Metadata backfill, retroactive completion #9076 hosted)
- impl(fleet-hosted): sync-tool verbs — project sync + queue/GitHub sync endpoints (#9016 hosted) #12591 sync-tool verbs (fleet gh step 2: higher-level sync tools on the token rotation #9016 hosted)
- impl(fleet-hosted): direct-Turso Metadata read path — scoped read-only tenancy tokens, prudence conformance #12592 direct-Turso Metadata read path + prudence conformance
Evidence / verification
- Design inputs re-checked 2026-11-22: impl(fleet): fleet gh Metadata superset — create-path stamping + DB insert (extends #9016) #9073, impl(fleet): metadata database + fleet Metadata query surface #9074, impl(fleet): session state — session id in env + worktree pwd-file #9075, impl(fleet): dual ingestion — webhook listener + interval sweeper, Metadata backfill, retroactive completion #9076, SSO for fleet services: GitHub/Google/Microsoft login gated to Drew + devtoday OIDC provider with roles + account linking #9077, fleet gh step 2: higher-level sync tools on the token rotation #9016, design(pm-stack): PM service, Workers edition — TypeScript equivalent of aggregator/dashboard/reconcile as one hosted service #9079, design(id): ID service, Workers edition — close the gaps on the #5524/#5681 serverless line to a workable hosted equivalent #9080, design(fleet): second version in TypeScript — scope, WASM evaluation, transports (REST/WebSocket), and direct-Turso prudence rules #9085 all OPEN; component E's tenancy design (merged 2026-11-17) consumed as settled.
- Native capability inventory read from
pkgs/fleet/docs/verbs.md + crates, not from design docs; V1 section (§1) separates what is shipped from what is specified-only.
- Docs-only change; no code, no builds.
What remains

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
chatgpt-codex-connector[bot] reacted with thumbs up emoji
Hosted Metadata stamping/query, session provenance, sync tools for
epic #9078. Answers #9081's four open questions: service-side stamping
authority + thin TS CLI + read-only direct Turso; stamp set parity with
workspace_ref/auth_subject/stamped_by/stamp_sig additions; #9077 RP-token
auth with three-layer non-forgeability; one queue — a hosted broker
front door on the existing fleet-queue Turso DB, same repo-task/v1
schema. Implementation issues #12583-#12592 filed under #9081.
Warning
Review limit reached
You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.
Next included review available in 37 minutes.
Check out review usage here.
View limit details
-
Limit details: You’ve used the included review currently available.
Learn how review limits work.
Review configuration:
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
78a94a33-1b00-4d50-a990-b36b95d237be
Commits
-
Reviewing files that changed from the base of the PR and between cd9e579 and d69c499.
Files selected for processing: 1
-
doc/2026-11-22T14-28-45Z_design_fleet-tool-workers-edition/2026-11-22T14-28-45Z_design_fleet-tool-workers-edition.md
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
| Review |
Status |
Commit |
Review trigger |
| 📝 Code Review |
✅ Completed 2026-11-22T14:34:15.244609Z |
d69c499 |
PR opened |
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review" or "@codex security review".
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 22, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|