From aa43762ff5fb0d036d8a42a416eb8a2ba0d64547 Mon Sep 17 00:00:00 2001 From: Drewry Pope Date: Mon, 23 Nov 2026 19:27:27 -0600 Subject: [PATCH 1/2] docs(fleet-book): hosted edition, queue watchdog, dispatch-jobs store, Actions exec, compile coordinator, Lab cross-links Programme #13900, lane FLEET-SIDELINE-2. Six new concept chapters in pkgs/fleet/book, registered in SUMMARY.md (H1 == entry text): - The hosted edition: fleet-hosted (implemented, never deployed) - The queue watchdog: queue-transport-alert (live, in service) - The dispatch-test jobs store: fleet-dispatch-jobs (DB as subject; operational coverage stays in the dispatch chapters) - Temporary builds and custom connections (Actions exec #13774: handoff, leases, tiered extension policy, exec.security.cab as a tunnel ingress, not a Worker) - The central compile coordinator (#13765: designed, not built as of 2026-11-23; task 21517 parked; singular fallback is the live path) - Cross-links: automation, Cloudflare pipes and DNS (Lab Book programme #13905 owns the primary coverage; links only real targets) Plus a dated addendum to operations/program-issue-map.md with the prioritised working order and dependency map for the added items. Survey disagreements D30-D35 came with the FLEET-GAPS-SURVEY lane; D36-D38 from this lane are filed as #13977. Verification: mdbook build exit 0, zero warnings (twice, before and after treefmt); nix build .#fleet-docs green (/nix/store/3hm1x1dv625yfc021iwifzcn4fdcfgjg-fleet-docs). --- pkgs/fleet/book/SUMMARY.md | 7 + .../book/concepts/compile-coordinator.md | 182 +++++++++++++ .../book/concepts/dispatch-jobs-store.md | 158 ++++++++++++ pkgs/fleet/book/concepts/fleet-hosted.md | 241 ++++++++++++++++++ pkgs/fleet/book/concepts/lab-cross-links.md | 107 ++++++++ .../book/concepts/queue-transport-alert.md | 185 ++++++++++++++ pkgs/fleet/book/concepts/temporary-builds.md | 234 +++++++++++++++++ .../book/operations/program-issue-map.md | 79 ++++++ 8 files changed, 1193 insertions(+) create mode 100644 pkgs/fleet/book/concepts/compile-coordinator.md create mode 100644 pkgs/fleet/book/concepts/dispatch-jobs-store.md create mode 100644 pkgs/fleet/book/concepts/fleet-hosted.md create mode 100644 pkgs/fleet/book/concepts/lab-cross-links.md create mode 100644 pkgs/fleet/book/concepts/queue-transport-alert.md create mode 100644 pkgs/fleet/book/concepts/temporary-builds.md diff --git a/pkgs/fleet/book/SUMMARY.md b/pkgs/fleet/book/SUMMARY.md index 5d8ac3681..da28116bb 100644 --- a/pkgs/fleet/book/SUMMARY.md +++ b/pkgs/fleet/book/SUMMARY.md @@ -20,6 +20,13 @@ - [The gh passthrough](concepts/gh.md) - [Dispatch and dispatch-test](concepts/dispatch.md) +- [The hosted edition: fleet-hosted](concepts/fleet-hosted.md) +- [The queue watchdog: queue-transport-alert](concepts/queue-transport-alert.md) +- [The dispatch-test jobs store: fleet-dispatch-jobs](concepts/dispatch-jobs-store.md) +- [Temporary builds and custom connections](concepts/temporary-builds.md) +- [The central compile coordinator](concepts/compile-coordinator.md) +- [Cross-links: automation, Cloudflare pipes and DNS](concepts/lab-cross-links.md) + - [Built-in commands](reference/builtins.md) - [fleet queue: core verbs](reference/queue-core.md) - [fleet queue: lifecycle verbs](reference/queue-lifecycle.md) diff --git a/pkgs/fleet/book/concepts/compile-coordinator.md b/pkgs/fleet/book/concepts/compile-coordinator.md new file mode 100644 index 000000000..efe62b3e2 --- /dev/null +++ b/pkgs/fleet/book/concepts/compile-coordinator.md @@ -0,0 +1,182 @@ +# The central compile coordinator + + + +Placement today is a per-seat decision: `fleet queue dispatch` runs +`decide()` in `crates/fleet-queue/src/placement.rs`, reads the load +its own seat can see, picks the least-loaded surface, and dispatches. +The central compile coordinator (#13765) is the designed replacement +for the decision's _admission_ half: a coordinator living in the +queue broker that claims slots atomically, holds one true load view, +enforces budgets globally, and queues jobs fairly across seats — with +the existing singular per-seat dispatch kept, by contract, as the +fallback whenever the coordinator does not answer. + +This chapter is written from the fleet side: what the coordinator +coordinates, where its state lives, and how the fallback works. +[Placement and remote dispatch](placement.md) covers the engine the +coordinator sits under; it stays accurate for the singular path, +which is still the only path that runs. + +**Designed versus built, as of 2026-11-23 — stated once, plainly:** +the design is complete and of record on #13765 (Drew's order, +2026-11-23 15:09 CST); the build has not landed. There is no +`placement_coord` module and no coordinator tables in the code on +main (grep-verified for this chapter, 2026-11-23). The build was +routed as queue task 21517 to a laptop OpenCode session after the +first build attempt stopped on a platform execution-risk flag, and +task 21517 was then **parked** — its record states the four-slice +build was too large for one unattended run, that no code changed, and +that the next step is a dedicated slice-1 task (backend verbs, DDL, +tests 1–3). The one piece of the design already in the shipped code +is the client-side claim attempt inside Actions exec (below). Every +statement in this chapter about coordinator behaviour is a statement +about the design, dated here, not about running software. + +## The four reasons + +The design answers four defects of per-seat placement, each with a +named proof in the issue's proof bar: + +1. **Atomic slots.** Read-then-dispatch is racy: two seats see the + same least-loaded pool and both pile in. The observed case in the + design record: 62 active org jobs against a cap of 20 — caps + steer, they do not gate. The coordinator claims slots atomically. + _Proof:_ two simultaneous claims for the last slot — exactly one + wins. +2. **One true load view.** Load is read per runner-host repo with the + seat's own tokens; a repo the seat has no token for counts as 0 + running. (#13611 made the decision logic treat unread load as + unknown, but the seat's view is still only its own.) The + coordinator holds the true cross-owner load view, and admission + uses it. _Proof:_ a seat with zero coverage for an owner is + refused or queued when the coordinator's view shows the owner + full, admitted when it shows room, and `/placement-load` returns + the true counts to any seat. +3. **Global budgets.** The Blacksmith budget in the surface registry + (`fleet-org-blacksmith`: `budget.free_minutes_monthly = 3000`, + `paid_cap_minutes = 0`) is settled today from each seat's local + store — a per-seat honour system. The coordinator enforces it + fleet-wide and atomically: reserve at claim, settle at completion. + _Proof:_ reservations past the fleet-wide free-minute budget are + refused; settle converts a reservation to actual use. +4. **Cross-seat visibility and queueing.** Sessions become visible to + every seat natively, and when all pools saturate, jobs wait in a + real queue with fairness — FIFO per owner — instead of every seat + dispatching into the pile. _Proof:_ jobs queue, drain in fair + order as slots free, and a claim or session made on one seat + resolves from another. + +Plus the fallback proof: coordinator down — dispatch still succeeds +via singular handling, and the output reports the fallback. + +## What it coordinates: the three tables + +The coordinator's home is the queue broker's store — the +`fleet-queue` Turso database, already the fleet's coordination point, +where `placement_sessions` (#13146) already lives as a best-effort +visibility mirror. The design adds three tables there, named in the +#13844 Turso audit as "designed to be added to" that store: + +| Table | What it holds | +| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `placement_owner_state` | The coordinator's per-owner state: the true load view rows and the active-claim counters admission checks against the owner's cap (caps from the surface registry: developing-today 20 concurrent jobs, developing-today-forks 20, dezren39 40, macOS 5 each) | +| `placement_claims` | One row per claim: the atomic admission record for a session's slot on a surface, from grant through confirm to release, including waitlisted claims waiting for capacity | +| `placement_budgets` | The global budget ledger: reservations taken at claim time and settled to actual use at completion, per budget-bearing surface | + +Admission is the house atomicity pattern — the single conditional +UPDATE whose affected-row count decides the winner, the same pattern +as task claim in `turso_queue/claim.rs` — applied to the owner +counter in `placement_owner_state`, with the Blacksmith budget +reservation taken in the same flow. + +## The verbs and the sweep + +The backend verbs are designed as a new module, +`turso_queue/placement_coord.rs`, routed in `turso_queue::dispatch` +beside the Actions exec verbs: + +| Verb | Job | +| ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `/placement-claim` | Atomic admission: conditional owner-counter UPDATE against the cap, using the coordinator's load rows plus active claims; budget reservation in the same flow | +| `/placement-confirm` | Confirm a granted claim with its dispatched run id | +| `/placement-release` | Release a claim, with budget settle | +| `/placement-claim-status` | Read a claim's state — including from a different seat than the one that made it | +| `/placement-load` | The true load view, readable by any seat | + +Behind the verbs, a coordinator sweep — a background thread in the +queue broker, on the #12247 startup-thread pattern — refreshes the +true load view from GitHub on an interval (broker-side reads, the +same host-repo counts `build_ctx` makes, from the seat with full +token coverage), expires stale claims and grants, settles confirmed +claims whose runs finished, recomputes the active-claim counters from +the claims table (self-healing), and grants the waitlist fairly as +capacity appears. + +The client contract leaves the command surface unchanged. `fleet +queue dispatch` asks the coordinator for a claim on the decided +surface before dispatching, in a bounded roundtrip with the same +discipline as the #13146 mirror. Granted: dispatch as today, then +confirm with the run id. Saturated: the session is committed in state +`queued` with its claim id and full job record — the shape the +all-tiers-exhausted path already writes — and `fleet queue session +status` completes the dispatch when the claim is granted. + +## The fallback: singular per-seat dispatch + +The fallback is a contract, not an accident. When the coordinator is +unreachable or times out, the command proceeds with today's singular +per-seat dispatch and **says so in its output**: `placement_path` +names `coordinator` or `singular-fallback`, per the estate's +route-visibility doctrine. A down coordinator never hard-fails a +build. Scope is the compile/dispatch path only; the agent task queue +is untouched, and the two coordinate through the shared broker store. + +One consumer already runs this contract. Actions exec +([Temporary builds and custom connections](temporary-builds.md)) +attempts the coordinator claim first, in +`pkgs/fleet/crates/fleet-queue/src/client/actions_exec.rs`: +`ae_placement_claim` posts to `/placement-claim` and returns granted +only when a coordinator actually answers; every other outcome — the +verbs not live, an error, an `ok:false` — proceeds on the singular +path, named via `placement_path`. Until the coordinator lands, that +is the path every Actions exec session takes. + +## Dependency map and working order + +Prioritised, in the order the build itself must go: + +1. **Slice 1 — backend verbs, DDL, proofs 1–3.** The + `placement_coord` module, the three tables, and the concurrency, + load-view and budget tests. This is the dedicated task the parked + task 21517 names as its next step. +2. **Slice 2 — the coordinator sweep.** Load refresh, claim expiry, + settle, counter recompute, fair waitlist grants. +3. **Slice 3 — client integration.** The claim attempt inside + `fleet queue dispatch`, the `queued`-session completion through + `fleet queue session status`, and `placement_path` in the output. +4. **Slice 4 — the saturation and fallback proofs.** Queueing drains + FIFO per owner; coordinator down dispatches singular and reports + it. + +Dependencies: the broker store and its conditional-UPDATE pattern +(landed, #13146); the surface registry's caps and budgets (landed); +broker-side GitHub reads (landed, #8276's dep probe is the precedent). +Nothing in the coordinator blocks Actions exec, which composes with +the verbs when they answer and proceeds singular when they do not. +A design-review note stands on #13765 (AUDIT-7, #13876, +2026-11-24T00:11:05Z): the design is strong, and one record gap is +named — the design of record lives only in the issue body, where +comparable programmes keep a dated record under `doc/`. + +## Sources + +Issue #13765 (Drew's order, premise, architecture, proof bar; the +COMPILE-COORD flag stop, the task-21517 routing and parking records, +the AUDIT-7 review); the #13844 Turso audit's coordinator-table +lines; `pkgs/fleet/crates/fleet-queue/src/placement.rs`; +`pkgs/fleet/crates/fleet-queue/src/client/actions_exec.rs`; +[Placement and remote dispatch](placement.md). State verified against +main on 2026-11-23: no `placement_coord` module, no +`placement_owner_state` / `placement_claims` / `placement_budgets` +DDL in code — the tables appear only in the audit doc as designed. diff --git a/pkgs/fleet/book/concepts/dispatch-jobs-store.md b/pkgs/fleet/book/concepts/dispatch-jobs-store.md new file mode 100644 index 000000000..42e8c1ceb --- /dev/null +++ b/pkgs/fleet/book/concepts/dispatch-jobs-store.md @@ -0,0 +1,158 @@ +# The dispatch-test jobs store: fleet-dispatch-jobs + + + +`fleet-dispatch-jobs` is a Turso (libSQL) database whose single table, +`jobs`, is the stored record of the explicit-dispatch CI test jobs +submitted by `fleet dispatch-test`. The operational story — how +`submit`, `scan` and `status` behave — lives in +[Dispatch and dispatch-test](dispatch.md) and the +[fleet dispatch-test](../reference/dispatch-test.md) reference. This +chapter treats the database itself as the subject: its connection by +name, its schema and provenance, its two writers, and its place in +the estate. + +Three different things share the word "dispatch", and only one of +them touches this database: + +| Name | What it is | Touches `fleet-dispatch-jobs`? | +| ----------------------- | ------------------------------------------------------------ | --------------------------------- | +| The **dispatch** domain | A thin client over the pm-dispatch service | No | +| **pm-dispatch** | The laptop service (`pkgs/pm-dispatch`, `pm-stack/dispatch`) | No | +| **dispatch-test** | The `fleet dispatch-test` domain (design #6580) | Yes — its sole owner in this repo | + +**Status (2026-11-23): live, small and current.** The #13844 Turso +audit read the store on 2026-11-23 and counted `jobs`, 6 rows. The +owner crate is in the fleet binary's workspace, and its phase-2 +migration runs idempotently on every submit and status, so the schema +below is the schema the code maintains today. + +## Connection by name + +The connection names are verified in +`pkgs/fleet/crates/fleet-config/src/lib.rs`: + +- The default URL constant `DEFAULT_DISPATCH_TEST_TURSO_URL` is + `https://fleet-dispatch-jobs-dezren39.aws-us-east-1.turso.io` — + config key `[dispatch-test] turso_url`. The database's name is the + URL's subdomain. +- The Turso token is resolved **by name only** through fleet-secrets: + the default name is `turso.fleet-dispatch-jobs-token` — config key + `[dispatch-test] turso_token_name`. The GitHub token for the same + domain defaults to the name `github.ghcr-classic-pat`. +- Token values enter exactly one `Authorization` header per request + and are never printed, logged or stored. Requests are + `POST {url}/v2/pipeline` — hrana over HTTP v2, one execute and one + close per call. + +## The jobs table + +The table has 14 columns: `id`, `created_at`, `name`, `target_repo`, +`target_ref`, `script`, `status`, `run_id`, `run_url`, `exit_code`, +`output_tail`, `updated_at`, `submodule` and `commands`. + +Phase 2 (#6595) gave two of those columns their current meaning: +`target_ref` carries the _submodule_ ref (empty means the umbrella's +recorded SHA), and `script` mirrors `commands` so MVP-era readers +still see the payload. Job ids are generated client-side in the form +`dt--<4 hex chars>`. + +### Schema provenance: the migration that is not a creation + +No `CREATE TABLE` for `jobs` exists anywhere in the searched repo — +not in `pkgs/fleet`, `pkgs/pm-dispatch`, `pm-stack/dispatch`, `home/` +or `pkgs/fleet/migrations/` (those migrations belong to the +`fleet-queue` database, not this one). The table predates the crate: +it is an MVP-era artifact created outside the repo's recorded +history. The only DDL the code runs is the idempotent phase-2 +migration in `ensure_schema()` — `ALTER TABLE jobs ADD COLUMN +submodule TEXT` and `ALTER TABLE jobs ADD COLUMN commands TEXT` — +applied by `submit` and `status`, where a "duplicate column" error +means already-migrated and is ignored. The schema above is the schema +the code maintains; no repo migration creates the table, and this +chapter does not imply one (disagreement D34). + +## The write path + +The store has exactly two writers. + +**The client crate** (`pkgs/fleet/crates/fleet-dispatch-test/src/lib.rs`, +verbs `scan` / `submit` / `status`) writes in the load-bearing #6598 +order: + +1. `INSERT` the row with `status='queued'`, `target_repo=NULL` and + `run_id`/`run_url`/`exit_code`/`output_tail` all NULL. +2. `UPDATE` the row's `target_repo` to the execution-home copy of the + fleet repo (`dezren39/fleet` or a fork) picked for its free GitHub + Actions capacity. +3. Dispatch the generic workflow `fleet-dispatch-test.yml` in that + copy, with the job id as its only input. +4. Only then, `UPDATE` the row to `status='dispatched'`. + +The order is the failure semantics: a failed dispatch leaves the row +`queued` with its target repo recorded, and "no eligible scope" is a +transport error (exit 3) with the row left queued — never a dispatched +row pointing at nothing. + +**The generic workflow** — `fleet-dispatch-test.yml` in the fleet +repos (`dezren39/fleet` and its copies, not in this repo) — is the +second writer. Per the dispatch chapters' description, it writes +`status='running'` with `run_id` and `run_url` when it fetches the +job, and the terminal status with `exit_code` and `output_tail` at +the end — always, even on failure. A cancelled run is best-effort and +may leave the row `running`. No code for that write-back exists in +developing-today/code to verify it against, and this chapter says so +rather than presenting the workflow's behaviour as surveyed here. + +## Reads + +`fleet dispatch-test status ` is the only in-repo reader: a +`SELECT` of all 14 columns `WHERE id = ?`. An unknown id is HTTP 404, +exit 4. Status reads the store only, never GitHub — it reports the +stored row, not live workflow state, which is why a cancelled run's +row can honestly read `running`. + +`scan` never opens the store at all. Capacity counting is GitHub-only: +active means jobs `in_progress` or `queued` across `in_progress` runs, +paginated at 100 per page to a 100-page bound, plus queued runs +counted as one active unit each from `total_count`; a scope is +eligible when the workflow is present and its active count is under +the threshold (default 40). + +## Failure shapes + +The domain's exit codes are 0 ok, 2 usage, 3 transport (credentials +unresolved, store unreachable, no eligible scope) and 4 for an HTTP +status from GitHub or Turso, including the unknown-job-id 404. The +Turso-specific shapes: a non-2xx response is exit 4 with the first +300 body characters; a top-level `{"error": …}` or a per-request +`results[i].type != "ok"` is a transport error, never an empty +result; a non-JSON body is a transport error. `--threshold 0` is a +usage error, and `[dispatch-test] threshold = 0` is a config +validation error (#6603). + +## Estate position + +The #13844 Turso-to-D1 audit grouped this database under §G8 as +MOVE-CLEAN, alongside small product stores. The facts behind that +grouping — one table, 6 rows, tiny, join-free — are not in dispute; +the classification is. The database's sole owner is fleet-plane CI +infrastructure, configured from the fleet binary's own +`[dispatch-test]` section, not a product surface, and this chapter +does not inherit the product-store framing (disagreement D33). +MOVE-CLEAN is a recommendation only: nothing in the code moves the +store, and it stays Turso-shaped — hrana pipeline, typed cells, the +pipeline failure shapes above — until a programme decides otherwise. + +Earlier coverage note: the dispatch chapters already named this +store's endpoint, token name, table and row lifecycle before this +chapter existed; what was missing was the database treated as a +subject in its own right (disagreement D30). + +## Sources + +Owner crate `pkgs/fleet/crates/fleet-dispatch-test/src/lib.rs`; +config `pkgs/fleet/crates/fleet-config/src/lib.rs` +(`DispatchTestConfig`); design #6580; issues #6589, #6595, #6598, +#6603, #6605, #6622, #6623, #13844. Survey: programme #13900, lane +FLEET-GAPS-SURVEY, 2026-11-23 (disagreements D30, D33, D34). diff --git a/pkgs/fleet/book/concepts/fleet-hosted.md b/pkgs/fleet/book/concepts/fleet-hosted.md new file mode 100644 index 000000000..3cb982454 --- /dev/null +++ b/pkgs/fleet/book/concepts/fleet-hosted.md @@ -0,0 +1,241 @@ +# The hosted edition: fleet-hosted + + + +`fleet-hosted` is a Cloudflare Worker (`pkgs/fleet/hosted-worker/`, +TypeScript, package name `fleet-hosted`, version `0.1.0`) that is the +hosted peer of the native fleet binary. It is component C of the +hosted-editions epic #9078, designed in #9081 (design record +`doc/2026-11-22T14-28-45Z_design_fleet-tool-workers-edition`, §3.1). One +Worker puts five front doors — **stamping, query, queue, ingestion, +sync** — plus a session registry over one shared auth/tenancy plumbing +layer. Work enqueued at the hosted queue door is claimed at the native +door and vice versa, because both editions speak the same broker +protocol over (backends intended to be) the same stores. + +The edition-parity rule runs through the whole package: the same +checks, the same envelopes and the same id formats in both editions. +Where the hosted edition deliberately diverges, the divergence is +named in the code and in this chapter — the queue door's refusal of +anonymous claims is the one deliberate case. + +**Status, stated plainly (2026-11-23): implemented and tested, never +deployed — local-only.** The package's own `wrangler.toml` header says +the config is for `wrangler dev` and tests and authorises no +account-level deployment; the platform registry +(`pm-stack/platform/workers.json`) records `state: "not deployed"`, +`deploy: "none"`, `address: null`. The package documentation's phrase +"every door is live" is true of the code — `/capabilities` reports all +five doors `state: "live"` and an in-process smoke run answers the +acceptance checks end to end — and false of the service, which has +never run in production. This chapter follows the code and the config, +not the shorter phrase (disagreement D35 in the survey record for +programme #13900). + +## The plumbing layer + +Every non-public route runs the same pipeline, in this order: route +match (an unmatched path is a 404 that advertises nothing) → +authenticate (401/403/503) → caller-tenancy assertion (a cross-tenant +assertion is a 403) → service-token route scope (403) → handler. + +Three caller kinds share one Bearer credential form: + +| Caller kind | Credential | What caps it | +| ----------- | ----------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | +| `rp` | A #9077 relying-party token: a JWS validated against the provider JWKS (WebCrypto, RS256/ES256), then issuer, audience and lifetime | The tenancy mapping for its subject | +| `agent` | An RP token carrying the #1253 agent role | Its lane and session claims are required, and cap what the caller may assert | +| `service` | An opaque per-caller service token recorded in the tenancy plane, looked up by SHA-256 | The named doors its scope lists | + +A validated subject maps to a tenancy account keyed by its minted +`binding_id` — 32 lowercase hex characters, the component E / #2258 +contract — never by an email address or a provider subject. An +unmapped or inactive subject fails closed. An `x-binding-id` or +`x-tenancy-binding` header that disagrees with the credential is +refused as a cross-tenant attempt. A per-user Turso database +credential (the libsql access-claim shape) presented as service auth +is refused with its own code, `data_plane_credential_refused` — design +§3.3 rule 3: a data-plane credential is never a service credential. + +Configuration is by name only. The environment names are verified in +`src/config.ts` (`HostedEnv`): `RP_ISSUER`, `RP_AUDIENCE` (the one +`[vars]` entry in `wrangler.toml`, value `fleet-hosted`), `RP_JWKS_URI`, +`TENANCY_FIXTURE_JSON`, `STAMP_SIGNING_KEY_PKCS8`, +`STAMP_SIGNING_KEY_ID`, `STAMP_VERIFY_KEYS_JSON`, `GITHUB_APP_ID`, +`GITHUB_APP_PRIVATE_KEY_PKCS8`, `GITHUB_APP_INSTALLATION_IDS`, +`GITHUB_WEBHOOK_SECRET`, `INGESTION_REPOS`, `METADATA_DB_ID`, +`QUEUE_DB_ID`, `DIRECT_READ_SIGNING_KEY_PKCS8`, +`DIRECT_READ_SIGNING_KEY_ID`, `DIRECT_READ_VERIFY_KEYS_JSON` and +`DIRECT_READ_MAX_TTL_SECONDS` (default 3600). Malformed key material +parses to null and the dependent path fails closed; it never falls +open. + +## The five doors + +### Stamping — the hosted world's only stamping authority + +`POST /v1/stamps` (#12585) parses the caller's pm-metadata block — a +malformed block refuses the create — stamps every fleet-owned +provenance field from service sources only, signs the provenance +(#12586, Ed25519), creates the GitHub item through the App +installation-token rotation point, and inserts the full record in the +same request. Signing is refused _before_ any GitHub write when the +signing material is unconfigured (503). A create whose database insert +failed is not failed back to the caller: the response reports +`metadata_inserted: false`, and the ingestion check below heals it. + +GitHub writes go through the fleet App installation-token rotation +(`AppRotationGitHubWriter`, #12585) when App material is configured: +a rate-limit or permission refusal fails over to the next +installation, the native #8887 rule. Without App material, writes go +through a fixture writer — one of the seams listed below. + +### Query + +The query door (#12587) answers `GET|POST /v1/query`: it lists and +filters issues and pull requests by Metadata fields from the metadata +store, tenancy-scoped. GitHub is the fallback for fields an item has +not been ingested with yet; the fallback scan is bounded at 10 pages +of 100 per repo. Where the stored record and the item body diverge, +the divergence is reported and the body wins. + +### Queue + +The queue door (#12589) answers 25 verb routes under +`POST /v1/queue/` — validate, enqueue, claim, lane, bind, +heartbeat, checkpoint, park, release, wake, block, unblock, +dep-recheck, cancel, fail, complete, list, show, timeline, health, +revive, events-append, events-seen, events-count, events-prune — plus +four fallback-claim routes under `POST /v1/queue/fallback/` +(status, claim, heartbeat, release). It answers the broker envelope +at HTTP 200 exactly as the native broker does, and stamps the caller's +credential-resolved `binding_id` into every event detail as claim +provenance. The one deliberate divergence from the native broker: the +hosted door requires authentication and refuses anonymous claims. + +### Ingestion — one check, two triggers + +The ingestion door (#12590; design §7.3, #9060 §16) is the hosted half +of ingestion; native ingestion (#9076) is the peer, and both run _the +same check_. The check reads the item fresh through the GitHub item +source — never the delivery payload's copy — parses its pm-metadata +block, and inserts or refreshes the database record keyed on the item +under the block's own stamped tenancy. A block-less item gets an +ascertained block (its parent taken from its `primary-parent/` +label, its provenance signed when the service holds stamp material), +stored and written back where the fleet has write access. Metadata +that stays insufficient is forwarded as one deduped repo-task/v1 +triage packet per item. + +Two triggers run that one check: + +1. **The webhook route.** `POST /v1/ingestion/github` is public at the + router — GitHub deliveries carry no fleet credential — and the + handler authenticates each delivery itself, by the + `X-Hub-Signature-256` HMAC-SHA256 over the raw body, before any + parsing. An unconfigured webhook secret is a 503 and an unverified + signature a 401, both before parsing; out-of-scope events are + acknowledged 200 as ignored. +2. **The sweeper.** `POST /v1/ingestion/sweep` behind the normal + plumbing, and the Worker's `scheduled` handler on its one cron + trigger (`*/15 * * * *`), re-scan the configured repo scope + (`INGESTION_REPOS`) to catch listener misses. + +The check is idempotent by construction: duplicate deliveries +converge on one database row and at most one triage task, and a create +that reported `metadata_inserted: false` at the stamping door is +healed by the first check that sees the item. + +### Sync + +The sync door (#12591) answers `POST /v1/sync/project` and +`POST /v1/sync/queue-github`: it hosts project-reconcile's write set +and the named queue/GitHub flows, as marker-checked posts and serial +operations. The package README's skeleton-era table still describes +these routes as stubs answering `501 not_implemented`; the code +disagrees — `src/capabilities.ts` marks the door live and +`src/routes/sync.ts` implements it — and this chapter follows the +code (disagreement D31). + +## Sessions and the CLI + +The session registry (#12584) answers +`POST /v1/sessions{,/resume,/resolve,/close}`. Session ids are +server-minted in the native #9075 format: `ses_` plus 128 bits in hex. +The CLI's session resolution order is explicit argument > +`FLEET_SESSION_ID` > `OPENCODE_SESSION_ID` > per-workspace stored +state, with a parity test transcribed from the native resolver's own +tests. Another tenancy's session answers identically to an unknown +one (404 `session_unknown`) — there is no existence oracle — and a +closed session is a 409 `session_closed`. + +The package also carries a thin TypeScript CLI (`cli.ts` / +`src/cli.ts`, #12588) whose verb set is a fixed, caller-owned +allowlist, and the two public routes `GET /health` and +`GET /capabilities`; `/capabilities` mirrors the native +`fleet capabilities` JSON shape. + +## The direct-read path + +The direct-read mint (#12592) issues scoped, expiring, read-only +libsql tokens bound to the metadata database only. The token claims +are `a: "read-only"`, `id`, `binding_id` and `exp`, and the package +ships a scope inspector beside the mint. The queue database is +refused: the mint is for the metadata store, not the broker's store. +The wiring today is **library only** — no HTTP route and no CLI verb +expose the mint (grep-verified in the survey). + +## Seams: why implemented is not deployed + +`src/worker.ts` wires fixture, in-memory, module-scope +implementations of every store interface: + +| Seam in the Worker | Production home | +| ------------------------------------------------------ | ------------------------------------------------------------------------------- | +| `FixtureSessionRegistry` | The session registry's production store | +| `FixtureMetadataStore` | The #9074 metadata database | +| `FixtureQueueStore` | The existing `fleet-queue` Turso database (#6741), behind a libSQL `QueueStore` | +| The fixture tenancy directory (`TENANCY_FIXTURE_JSON`) | Component E's tenancy database, which does not exist yet | + +`wrangler.toml` declares no bindings at all — no D1, KV, R2, Durable +Objects or queues — and `INGESTION_REPOS` is commented out, so the +scheduled sweep currently has nothing to scan. A later component-C +issue owns the production deployment; neither `wrangler.toml` nor the +README names its number, and this chapter does not invent one. + +Verification is in-package: there is no GitHub Actions workflow for +fleet-hosted. `npm test` runs node --test over 18 test files with no +network and no wrangler, `npm run smoke` runs the acceptance checks +end to end in-process, and `npm run typecheck` covers the types. + +## Failure shapes + +Every refusal is a `FailClosed` rendered as +`{ "error": , "message": ... }`: + +| Shape | Meaning | +| ------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | +| 404 `not_found` | Unmatched path; the Worker advertises nothing | +| 401 `missing_token` | No credential on a route that requires one | +| 403 | Cross-tenant assertion, or a service token outside its door scope | +| 503 | One row per unconfigured dependency: auth, stamp signing (refused before any GitHub write), session registry, metadata store, queue store, webhook secret | +| 500 `{error: "internal"}` | An unhandled error | + +Door-specific shapes sit on top of the plumbing ones: sessions add +404 `session_unknown`, 409 `session_closed` and 400 +`invalid_session_id`, and an agent lane beyond the caller's credential +is refused; stamping reports `metadata_inserted: false` instead of +failing the create; queue verbs answer `{ok:false, exit, error}` +envelopes at HTTP 200 while plumbing refusals stay 400/503, and +fallback-claim answers 200/409/400/502 by failure class. The rule that +runs through every door: unconfigured means fail closed, never fall +open. + +## Sources + +Package `pkgs/fleet/hosted-worker/` (`wrangler.toml`, `src/config.ts`, +`src/router.ts`, `src/routes/`, `src/auth.ts`, `src/jwt.ts`, +`src/tenancy.ts`, `src/capabilities.ts`, `src/worker.ts`); design +#9081; issues #9078, #12583–#12593; platform registry +`pm-stack/platform/workers.json`. Survey: programme #13900, lane +FLEET-GAPS-SURVEY, 2026-11-23 (disagreements D31 and D35). diff --git a/pkgs/fleet/book/concepts/lab-cross-links.md b/pkgs/fleet/book/concepts/lab-cross-links.md new file mode 100644 index 000000000..00fdc6829 --- /dev/null +++ b/pkgs/fleet/book/concepts/lab-cross-links.md @@ -0,0 +1,107 @@ +# Cross-links: automation, Cloudflare pipes and DNS + + + +Three topics sit on the fleet's border, with their primary coverage +owned by the Lab Book — the book of the Code Book + Lab Book +programme (#13905), covering the physical lab, the cluster programme +and the network around both. This chapter does not duplicate that +coverage. It states, for each topic, what the fleet side is, where +the primary coverage lives, and what state that coverage is in — +checked against the repo and the issue record on 2026-11-23. Where a +target does not exist yet, this chapter names the topic and its +owning programme instead of inventing a link. + +The one Lab target that exists today is the Code Book's chapter +[The Lab](https://developing-today.github.io/code/code/systems/lab.html), +which summarises the lab, its cluster programme and its trackers. The +Lab Book itself has **not landed yet**: no Lab Book sources exist in +this repo and no deploy staging carries it (checked 2026-11-23). Its +sources and chapter map are being settled by the Lab Book lane under +#13905. The fleet-side halves of all three topics are covered in this +book and linked below; the lab-side halves belong to that programme. + +## Automation and automated scale-up / scale-down + +**Primary coverage: the Lab Book (programme #13905) — not yet +landed.** The lab's automation story is the cluster programme: Talos +Linux bootstrapped declaratively with TALM, running Cozystack with +FluxCD, on the basement machines of the cluster epic #1817 and the +bootstrap epic #1086. The programme's own seed list in #13905 names +the scale behaviours directly: "Talos cluster live and accepting +data on Cozystack", "servers auto-connecting and presenting to the +cluster on boot", and "containerised build/compile in the cluster". +The Code Book's Lab chapter records the honest state beneath those +items: as of its latest status record (2026-10-27) nothing in the +current cluster programme has been built yet, by design — the +machines have no operating system installed, and the build target is +the 3–5 best machines first, gated on basement power (#1104, #1105). + +The fleet side of scale is a different mechanism, and it is covered +here, not there: the fleet scales _work_, not machines. Placement +decides where a build runs ([Placement and remote +dispatch](placement.md)); the central compile coordinator is +designed to admit, queue and drain that work against global caps and +budgets ([The central compile coordinator](compile-coordinator.md)); +and temporary capacity is borrowed as short-lived Actions runners +that scale to zero when their lease ends ([Temporary builds and +custom connections](temporary-builds.md)). When the Lab Book lands, +its automation chapters are the primary home for cluster scale-up +and scale-down; this section is the pointer, and the fleet chapters +above stay the primary home for dispatch-side scaling. + +## The pipes into Cloudflare and externally + +**Primary coverage: split, and stated as such.** The fleet's own +doors and tunnels are covered in this book and the PM book, because +they are fleet machinery: the Commander door +([The Commander door: Desktop Commander over MCP](commander.md)), +the bridge, the hosted edition's doors +([The hosted edition: fleet-hosted](fleet-hosted.md)), the exec +door's tunnel ingress +([Temporary builds and custom connections](temporary-builds.md)) and +the queue watchdog that probes one of those pipes from outside +([The queue watchdog: queue-transport-alert](queue-transport-alert.md)). + +The lab-side and estate-wide halves belong to the Lab Book programme +and the Turso + Cloudflare integration epic: the first lab +Cloudflare Tunnel, live 2026-11-06 on the laptop with the seed +ingress `lab.security.cab` (#6455, closed; connector and watchdog +#6456, #8933, closed); the cluster egress strategy for the 2 Gbps +home fiber — budgets, tunnel topology, failure matrix — designed in +#5030 (open); and the estate-wide integration of Turso and +Cloudflare across databases, edge, gateway and DNS, epic #8987 +(open), with its design record in #8870 and the follow-on record +#13912 (both open). No single landed chapter covers "the pipes" as +one subject yet; until the Lab Book or the #8987 programme lands one, +the trackers above are the record, and this section is the map to +them. + +## DNS management + +**Primary coverage: the Lab Book (programme #13905) for the estate +view — not yet landed; the working machinery is in this repo today.** +DNS is managed as code under `infra/dns/`: a Terraform configuration +driven by `dns_config.yaml`, with its apply scripts beside it. The +standing items around it are open and named: the dns-registry work — +a recurring DNS backup job, renewal and cost tracking, and a +dashboard view of the domain register (#902); the registrar and DNS +classification for Drew's domains, with Porkbun as the default layer +(#8808); and an apply window with a recorded gate — clearing a +phantom state entry and deciding nine unmanaged +developing-today.com records needs Drew's go-ahead (#4989). The +estate view of DNS also sits inside the Turso + Cloudflare epic +#8987 above. The fleet book's own DNS surface is deliberately nil: +fleet consumes names (the security.cab doors, the broker's public +route) and manages none of them, so this pointer is the whole fleet +chapter on the subject. + +## Sources + +Programme #13905 (Code Book + Lab Book programme; deliverables and +seed items); the Code Book, `pkgs/code-book/book/systems/lab.md` and +its SUMMARY (checked 2026-11-23: no Lab Book sources or deploy +staging in the repo); cluster epics #1817 and #1086; lab tunnel +#6455, #6456, #8933; egress design #5030; Turso + Cloudflare epic +#8987 with #8870 and #13912; `infra/dns/`; DNS items #902, #8808, +#4989. diff --git a/pkgs/fleet/book/concepts/queue-transport-alert.md b/pkgs/fleet/book/concepts/queue-transport-alert.md new file mode 100644 index 000000000..23335c2e4 --- /dev/null +++ b/pkgs/fleet/book/concepts/queue-transport-alert.md @@ -0,0 +1,185 @@ +# The queue watchdog: queue-transport-alert + + + +`queue-transport-alert` is a Cloudflare Worker +(`pkgs/queue-transport-alert/worker/`, plain JavaScript, #6369) that +watches the repo-queue broker **from off the broker's own host**. It +exists because of a blind spot: when the queue broker's transport is +down, every worker lane exits silently at its Step 0 health gate, so +a total queue outage produced no signal. Issue #5708 (2026-11-04) was +filed by hand; the 2026-11-18 outage — tailscaled stopped during a +rebuild — was noticed only from lane reports. The Worker closes that +hole: every 10 minutes it probes the broker's public route through +Cloudflare Access, and on a confirmed outage it files or comments a +GitHub incident, pushes to the phone, and — once the broker is back — +enqueues one triage task into the queue it watches. + +**Status (2026-11-23): live and in service.** The platform registry +(`pm-stack/platform/workers.json`) records `state: "in service"` with +the address `https://queue-transport-alert.developing-today.workers.dev`, +and the Worker has filed a real incident (#12414, 2026-11-22, closed). + +## The probe + +The probe is `GET {BROKER_URL}/healthz`, where `BROKER_URL` is +`https://queue-broker.security.cab`, sent with the Cloudflare Access +service-token headers `CF-Access-Client-Id` and +`CF-Access-Client-Secret`, `redirect: "manual"` and a 10-second +timeout (`PROBE_TIMEOUT_MS=10000`). That route is the tunnel to the +broker's Tailscale listener, so the probe fails when the laptop is +off, when tailscaled is stopped, or when the broker itself is down. +A probe is healthy only on HTTP 200 with a JSON body of +`{"ok": true}` (`classifyHealthz`). + +The failure class is the diagnosis, and the probe carries it in its +detail string: + +| Probe result | What it means | +| ----------------------------------------- | --------------------------------------------------------------------- | +| 301/302/303/307/401/403 | "Cloudflare Access refused the probe's service token, or it is unset" | +| 502/503/504/530 | "The tunnel could not reach the broker" | +| 200 with a non-`ok:true` or non-JSON body | The body itself, clipped to 200 characters | +| Timeout | The URL and the timeout, named | + +When the Access secrets are missing, the probe returns `skipped` and +the pass only logs. A watchdog that cannot authenticate its own probe +does not alert — that posture is deliberate. + +## The state machine + +All state lives in one Durable Object: the binding `TRANSPORT_STATE` +(class `TransportState`, SQLite storage, migration tag `v1` with +`new_sqlite_classes`). A single instance (`idFromName("broker")`) +holds everything, so passes never race. Its keys are `state`, +`push_subs`, `last_push` and `vapid` — the VAPID P-256 key pair is +generated once inside the Durable Object and never leaves it. + +The machine (`src/logic.js` and `src/run.js`, a direct port of the +local script below) is small: + +- `THRESHOLD` (2) consecutive failed probes open an alert window. + Below the threshold, a failing window stays quiet. +- One alert per outage window: the Worker finds an open issue titled + with the prefix `Queue transport incident:` and comments on it, or + files one titled `Queue transport incident: repo-queue broker +unreachable since ` with labels `kind/bug`, + `priority/high`, `area/infra` and `source/fleet-monitor`. +- The first healthy probe after an alerted window posts exactly one + recovery comment carrying the outage span. +- The Worker **never closes** the incident. There is deliberately no + `close()` in `src/github.js` — rule #10136. + +## The three side-effect channels + +Alert and recovery each fan out to the same channels, under one retry +discipline: notifications and the recovery enqueue ride a `pending` +list in Durable Object state (capped at 20) and retry on later ticks. +A failed GitHub write leaves the window un-alerted, so the next tick +retries it rather than losing the incident. + +1. **GitHub.** Find-or-file by the title prefix, with the labels + above. This is the durable record of the outage. +2. **Web Push.** Payload-free: the push carries no incident text; the + service worker reads the current state from `/status.json`'s + `last_push` field. Push endpoints the push service reports gone + (404/410) are dropped, and at most 20 devices may subscribe. +3. **Telegram.** One message per alert and per recovery, through the + existing OpenClaw bot; the chat id is the `TELEGRAM_CHAT_ID` + variable in the Worker config. + +The master switch is `APPLY`: the deployed value is `true`, which +files, comments, pushes and enqueues. Any other value — or a missing +`GITHUB_TOKEN`, `TELEGRAM_BOT_TOKEN` or `BROKER_AGENT_TOKEN` — +degrades that one side effect to log-only, independently of the +others. + +## The recovery triage task + +On recovery the Worker also enqueues one triage task into the queue +it watches (`src/queue.js`): a `POST {BROKER_URL}/enqueue` with the +broker's `X-Agent-Token` header plus the Access headers, carrying a +repo-task/v1 `triage` packet anchored to the incident issue, on queue +`QUEUE` (`repo-health-code-pilot`) at priority 20, with dedupe key +`repo-health:v1:triage::issue:`. A dedupe error from the +broker counts as success — the task already exists, which is the +point. The enqueue is only attempted while the broker answers, which +is precisely why it is filed on recovery and not during the outage: +the queue that would carry the triage is the thing that was down. + +## The status surface + +| Route | What it serves | +| ----------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| `GET /` | The status page: PWA-installable, auto-refreshing every 60 seconds | +| `GET /status`, `GET /status.json` | The same view as JSON, CORS-open | +| `GET /sw.js`, `/manifest.webmanifest`, `/icon.svg`, `/vapid.json` | The PWA and push plumbing | +| `POST /subscribe`, `POST /unsubscribe` | Device push registration | +| `POST /test-push` | A push to that device only, at most once per 30 seconds | +| `POST /admin/test-push` | A push to all devices; `X-Admin-Token` must equal the Access client secret, compared in constant time | + +The status values are `up`, `degraded`, `down`, `stale` (no probe in +25 minutes) and `unknown`, with `last_check`, `last_ok`, +`failing_since`, `consecutive_failures`, `last_failure`, `incident`, +`last_outage` (start, end, duration, incident), `pending_deliveries`, +`last_errors`, `last_push` and `issue_title_prefix`. The status +surface carries no secrets. + +HTTP edges: a subscribe body over 2048 bytes is a 413; an invalid +push endpoint a 400; the 21st device a 409; a test-push from an +unsubscribed device a 404 and a repeat within 30 seconds a 429; a bad +or missing admin token a 403; other POSTs and methods a 405; an +unknown GET a 404. + +## Two implementations, one contract + +The Worker is a port of the local script +`scripts/fleet/queue-transport-alert/check_transport.py`, which still +exists with its systemd units. The two share one contract and one +incident title, and dedupe onto the same GitHub issue when both run — +the find-by-title-prefix step is what makes the overlap safe. + +## Configuration, deploy and rollback + +The deploy source of truth is `cloudflare.config.ts` (the cf versions +flow); `wrangler.jsonc` mirrors it for `wrangler dev`, and +`test/config.test.mjs` keeps the two in step. Name +`queue-transport-alert`, main `src/index.js`, +`compatibility_date = "2026-10-25"`, observability on, cron +`*/10 * * * *`. The plain variables are `BROKER_URL`, `REPO` +(`developing-today/code`), `THRESHOLD`, `PROBE_TIMEOUT_MS`, `QUEUE`, +`TELEGRAM_CHAT_ID`, `PUBLIC_URL` and `APPLY`. The secrets are named +here and never written in any config file; `deploy.mjs` uploads them +per version from Bitwarden: `ACCESS_CLIENT_ID` and +`ACCESS_CLIENT_SECRET` (the Access service token for the broker +route), `GITHUB_TOKEN`, `TELEGRAM_BOT_TOKEN` and `BROKER_AGENT_TOKEN` +(the broker's `X-Agent-Token`). + +The primary operator path is `nix run .#queue-transport-alert-deploy`: +upload a version tagged `git-` with its secrets piped in, +deploy it at 100%, apply the triggers, and verify the serving version +and `/status.json`. Passing `--deploy-version ` rolls back to an +older version as it was. An optional, manual-only GitHub Actions +release also exists (`.github/workflows/queue-transport-alert-deploy.yml`): +main-only, behind the `cloudflare-queue-transport-alert` environment +with an independent required reviewer, no self-review and an +admin-bypass attestation checked by a verify-environment job, with +upload and promote as separate dispatches and no automatic rollback. +Tests are `node --test test/*.test.mjs`, also run in the flake +package's `checkPhase`. The Worker is registered in the deploy +registry as `queue-transport-alert`. + +One record lags the code: the platform registry still describes this +Worker's deployment as "by hand" with Actions deployment as future +work. The workflow exists and #12550 (deploy through trusted GitHub +Actions) is closed; this chapter follows the repo (disagreement D32). + +## Sources + +Package `pkgs/queue-transport-alert/worker/` (`cloudflare.config.ts`, +`wrangler.jsonc`, `src/index.js`, `src/logic.js`, `src/run.js`, +`src/github.js`, `src/queue.js`); local peer +`scripts/fleet/queue-transport-alert/check_transport.py`; issues #6369, +#10136, #12006–#12026, #12414, #12550; platform registry +`pm-stack/platform/workers.json`. Survey: programme #13900, lane +FLEET-GAPS-SURVEY, 2026-11-23 (disagreement D32). diff --git a/pkgs/fleet/book/concepts/temporary-builds.md b/pkgs/fleet/book/concepts/temporary-builds.md new file mode 100644 index 000000000..dbc202fde --- /dev/null +++ b/pkgs/fleet/book/concepts/temporary-builds.md @@ -0,0 +1,234 @@ +# Temporary builds and custom connections + + + +A temporary build is a machine the fleet does not own, borrowed for +minutes: a GitHub Actions runner, started for one session, reached +through a connection built for that session alone, and gone when the +lease ends. The machinery is `fleet actions exec` (#13774): live, +short-lived exec sessions inside Actions runners, in the +#13717 route-family shape — a timeout required by construction, and +the serving form named in the output. The verb-by-verb reference is +[fleet actions](../reference/actions.md); this chapter is the design: +the handoff, the two clocks, the tiered extension policy, and the +door the runner dials in through. + +Drew's order (2026-11-23 15:17 CST) was for an alternate exec mode +that may become the primary: agents connect into Actions runners and +exec commands themselves, temporary and short-lived like the +commander and route subcommand family, with the central coordinator +(#13765) establishing the connection handoff and the fleet command +background-watching the run after handoff. + +## Why the runner dials out + +The design was chosen under one hard filter: most off-the-shelf +runner-access methods print SSH or connection information into the +run log, and in a public repo the log is world-readable. Any method +whose connection material can appear in logs is disqualified, however +convenient. The survey in #13774 records the verdicts: tmate and +upterm rejected on exactly that leak; the Tailscale GitHub Action +viable but not picked (it couples runner access to tailnet enrolment +for every caller, and the transport design #13752 is moving away from +Tailscale-only reach); cloudflared with Access kept as door +technology, not as the session protocol; an iroh endpoint on the +runner the right long-term transport, but not the v1 session protocol. + +The chosen shape inverts the connection: **the runner-side agent +dials out to the coordinator.** The workflow starts a small agent — +a mode of the fleet binary, `fleet actions agent`, invoked by the +`fleet-exec-session` composite action in dezren39/fleet. The agent +proves it is inside the run with the job's GitHub OIDC token, fetched +from the Actions runtime and never logged; it registers with the +queue broker and holds an outbound long-poll. Commands flow +requester → broker → agent; IO flows back the same way. No inbound +path is needed, nothing connection-shaped ever exists outside the two +endpoints, and the session handle is a public identifier — safe in +logs, safe on the run page. Workflow inputs carry only the handle +and non-secret parameters, never a token: inputs are visible on the +run page. + +Three pieces make one flow: + +1. **The action** — dezren39/fleet `.github/actions/fleet-exec-session` + (composite): sets up the pinned fleet binary, runs + `fleet actions agent` for the session, and ships the egress helper + `fleet-exec-put` on the session PATH. +2. **The workflow** — dezren39/fleet `.github/workflows/fleet-exec.yml` + (`workflow_dispatch`; inputs are the handle, an optional target + repo/ref checkout, the runner, the lease and max seconds, and the + hide-logs flag; `permissions: id-token: write`; the job timeout is + the max lifespan plus grace). +3. **The subcommand** — the `actions` domain in the fleet binary: + `fleet actions exec start / run / attach / watch / renew / extend / +decide / close`, plus `fleet actions put ` for egress. + +## The handoff: workflow id, run attempt, handle + +The handoff is the triple a requester keeps: the **session handle**, +the portable **`OWNER/REPO#RUN_ID`** form, and the **run attempt**. +`fleet actions exec start` asks the coordinator to claim a slot for +the session's host surface and create the session row — composing +with #13765's design, never forking it: when the coordinator's +`/placement-claim` answers granted, the session proceeds on the +coordinator path; when it does not answer, the session proceeds on +the singular per-seat path and the output names which happened via +`placement_path`. The subcommand then dispatches `fleet-exec.yml` +with the handle, and binds the resulting run id and attempt to the +session row (`/actions-exec-bind`). Sessions are recorded in the +local store under the state dir, so the portable form resolves later, +from any seat. + +On the runner side, registration is the mirror image of the bind: +the broker verifies the agent's OIDC JWT against GitHub's JWKS and +checks its `repository`, `job_workflow_ref`, `run_id` and +`run_attempt` claims against the session row created at dispatch. +Requester-side auth is the existing broker seat auth. The broker +surface is twelve verbs in +`crates/fleet-queue/src/turso_queue/actions_exec.rs`, routed beside +placement's: seat-side `/actions-exec-open`, `-bind`, `-command`, +`-stream`, `-renew`, `-extend-request`, `-extend-decide` and `-close` +under the broker token; agent-side `/actions-exec-register`, `-poll`, +`-io` and `-result` under OIDC. Session state lives in the +`actions_exec_sessions`, `actions_exec_commands` and +`actions_exec_io` tables, and every transition is a conditional +UPDATE, so two actors racing a session resolve to exactly one winner. + +Disconnect tolerance follows from the broker being the transport: a +requester disconnect is a non-event (the broker holds the commands, +the IO and the lease), agent network blips retry with backoff against +the long-poll, and reconnecting is re-attaching with the same handle. +Files leave through `fleet actions put`: into the session outbox, +uploaded as the run's `fleet-exec-out` artifact, and — when the +workflow populated the `FLEET_EXEC_R2_*` environment from masked repo +secrets — PUT to R2 under `fleet-exec//` with a SigV4 +signature, skipping quietly when the credentials are absent. + +Log visibility is a choice, not a leak: by default the agent echoes +command IO to its own stdout, so it lands in the public Actions run +log; `start --hide-logs` turns the echo off. Either way the broker's +IO chunk store is the cache of record. The OIDC token and the R2 +credentials are never written to any log, and reading the produced +public logs end to end for connection material is part of the mode's +acceptance bar. + +## The door: exec.security.cab is a tunnel ingress, not a Worker + +The agent's verbs need a public route to the broker, which lives on +the laptop. That route is `exec.security.cab` — and it is **not** a +Cloudflare Worker. The WORKER-EVIDENCE survey for programme #13900 +settled this first-hand: of the security.cab doors, only +`commander.security.cab` and `mcpx.security.cab` are Workers, each +with a wrangler config in the repo. The exec door has no wrangler +config, no OAuth front door and no Access app, because there is no +Worker to configure: the sandbox-link tunnel is remotely managed, so +its ingress lives in Cloudflare, not in the repo. + +What the door is, as deployed (recorded on #13774, Slice 5, +2026-11-23T22:10:06Z): the sandbox-link tunnel (id beginning +`722f72ba-`), at config version 6, gained one ingress rule — +`exec.security.cab` with path +`^/actions-exec-(register|poll|io|result|close)$` forwarded straight +to the laptop queue broker at `100.99.113.103:4801` — inserted before +the catch-all with every existing rule preserved, plus a proxied DNS +CNAME for `exec.security.cab` in the security.cab zone. There is no +Access app in front **by design**: the runner job's GitHub OIDC token +is the authentication, verified at the broker. The path scoping is +enforced at the tunnel and was verified from outside: a tokenless +`POST /actions-exec-poll` returned the broker's own +`401 {"error":"unauthorized"}`, while `POST /claim` and `GET /` on +the same host returned 404. In code, the door is a broker URL and +nothing more: `pkgs/fleet/crates/fleet/src/actions.rs` carries +`const DEFAULT_BROKER_URL: &str = "https://exec.security.cab";`. + +## Two clocks: the lease and the max lifespan + +Every session carries two clocks, both enforced by the broker and by +the runner-side agent, which exits at expiry even if partitioned from +the broker, after a final IO and egress flush: + +- The **lease** — set by `start --timeout`, required, with no + default. Renewable through the coordinator (`exec renew`), clamped + at the max. +- The **max lifespan** — `--max-lifespan`, default 30 minutes, + ceiling 2 hours, the fleet leg cap. Renewals move `lease_until` up + to the max and no further; past it, only an extension helps. + +## The tiered extension policy + +Extensions past the max are governed by the tiered policy Drew set on +2026-11-23 (~17:06 CST), recorded on #13774 before implementation and +landed by PR #13854 (merged `f56dc7f713ef`, published as +`fleet-static-f56dc7f`, ACTIONS-EXEC-3 complete 2026-11-24T00:39:36Z). +Evaluation happens in `/actions-exec-extend-request` from the +session's extension count, its cumulative approved extension seconds, +and the raw ask. The tunables are named constants in +`turso_queue::actions_exec`: + +| Tunable | Default | Meaning | +| ---------------------- | ------------- | ------------------------------------------------------------------------------------------------------- | +| `EXT_AUTO_SIZE_CAP_S` | 1800 (30 min) | The largest single ask the auto tiers may grant; a raw ask above it is tier 3 even as a first extension | +| `EXT_TIER1_MAX_COUNT` | 1 | Extension #1 of a session is tier 1 | +| `EXT_TIER2_MAX_COUNT` | 2 | Extension #2 is tier 2, subject to the caps; #3 and beyond are tier 3 | +| `EXT_AUTO_TOTAL_CAP_S` | 3600 (60 min) | Cumulative approved extension seconds the auto tiers may grant over a session's life | +| `EXT_DENY_WINDOW_S` | 600 (10 min) | Tier 2's deny window: silence at window end approves | +| `EXTENSION_GRACE_S` | 300 | The decision grace past the lease while an extension pends | + +- **Tier 1 — auto + notify.** The first extension, within the caps, + is applied inside the request itself and recorded + `ext_state = 'auto-approved'`. One notification-only push goes out: + a plain PM alert with no needs-drew choice block. +- **Tier 2 — notify + deny window.** The second extension pends for + the 10-minute deny window. The session's hard deadline covers the + window — `max(lease, decide_after) + EXTENSION_GRACE_S` — so the + agent is not killed mid-window. A deny through + `/actions-exec-extend-decide` ends the extension at once; an approve + applies it immediately; **silence approves at window end**, settled + lazily by the next verb that touches the session (in practice the + agent's poll), recorded `ext_state = 'silence-approved'`. Exactly + one push per request: the deny-window warning is the push. +- **Tier 3 — manual only.** The original flow: the request pends with + a 300-second grace past the lease, the broker raises a needs-drew + alert (source `fleet-actions-exec`), and Drew's approve or deny + returns through `exec decide`, adding up to +30 minutes to the max + and the lease on approval. + +The count and total increment on **every** approval — auto, silence +or manual — and never on a deny, so the ladder measures what was +actually granted. Every tier's push carries the detail Drew required: +the session handle and its recorded context link, the requesting +seat, the host repo, the workflow, run id and run attempt with a +click-through run URL, the agent's stated reason, the lease state, +the ask, the cumulative extensions before and after, the tier, and +what deny or timeout does at that tier. Alert keys carry the +extension ordinal (`actions-exec-ext::`) so successive +extensions never dedupe-suppress each other's pushes. The named gap, +unchanged from v1 and stated plainly in the design: the phone tap +does not write back to the broker yet — tier-2 denies and tier-3 +answers land via a seat running `exec decide` on Drew's recorded +answer, and the 10-minute window is sized with that relay in mind. + +## State of the build, 2026-11-23 + +Landed and deployed: the action and workflow in dezren39/fleet +(Slice 2, PR #112 there); the broker verbs, the typed client and the +subcommand (PR #13800, merged `5e4107076821`); the public door and the +R2 provisioning (Slice 5); publication as `fleet-static-5e41070` with +its bootstrap pin (PR #13817); and the tiered extension policy +(PR #13854). The lane's in-vivo proof battery halted at the Action's +agent-install step when reading the failed run's log tripped a +platform execution-risk check; that stop is recorded on #13774 +(2026-11-23T22:57:46Z) with the exact slice state, and the end-to-end +live proof — exec on the runner, file out to both the artifact and +R2, disconnect/reconnect, renewal, and a short-lease session dying at +its cap — remains the open item this chapter does not claim. + +## Sources + +Issue #13774 (design of record, method survey, slice records, the +tiered-extension amendment at comment 7116645799, the ACTIONS-EXEC-3 +completion record); `pkgs/fleet/crates/fleet/src/actions.rs`; +`pkgs/fleet/crates/fleet-queue/src/turso_queue/actions_exec.rs`; +`pkgs/fleet/crates/fleet-queue/src/client/actions_exec.rs`; +[the fleet actions reference](../reference/actions.md); WORKER-EVIDENCE +survey, programme #13900 (the exec door verdict). diff --git a/pkgs/fleet/book/operations/program-issue-map.md b/pkgs/fleet/book/operations/program-issue-map.md index 334ae7c50..5e7e42ba7 100644 --- a/pkgs/fleet/book/operations/program-issue-map.md +++ b/pkgs/fleet/book/operations/program-issue-map.md @@ -233,3 +233,82 @@ An open-only search omitted these keys. The all-state issue body contains the ex 2. Inspect issue_dependencies_summary for each result. When total_blocked_by is nonzero, fetch the issue’s dependencies/blocked_by endpoint to the final page. Check open and total counts against the search row. 3. Resolve normalized hard prerequisites, appended hard-edge statements and shared-file sequencing keys in the PM slice bodies through an [all-state search of the design series](https://github.com/search?q=repo%3Adeveloping-today%2Fcode+is%3Aissue+in%3Atitle+%22design%28pm-orchestration%29%22&type=issues). Match exact body markers. Check the comments for operational gates and corrections. Treat container membership and runtime-only references separately from hard design edges. 4. Topologically order the open graph. Verify that every mapped predecessor comes before its consumer. The November 23 read returned 70 native lists with historical edges and 15 comment threads for blocked labels with zero open native blockers. Dependency reads completed at 18:00:17 UTC. Search and individual reads are separate snapshots. Re-read changed issues before acting. + +## Additions after the census (2026-11-23) + +The census table above is a snapshot. The items below were added to +this book's coverage after it was taken — the hosted edition, the +queue watchdog, the dispatch-test jobs store, Actions exec, the +compile coordinator and the bridge notes surface — in working order, +with their live dependencies. Each names the chapter that carries it. + +### Working order + +1. [#13765](https://github.com/developing-today/code/issues/13765) + — the central compile coordinator's slice-1 build (backend verbs, + the `placement_owner_state` / `placement_claims` / + `placement_budgets` tables, proofs 1–3). Queue task 21517, which + carried the whole four-slice build, is parked; its record names + this slice as the next step. Everything coordinator-shaped waits + on it, and nothing else does: dispatch and Actions exec both run + the singular fallback today. Chapter: + [The central compile coordinator](../concepts/compile-coordinator.md). +2. [#13774](https://github.com/developing-today/code/issues/13774) + — the Actions exec live proof battery, halted at the Action's + agent-install step on a platform execution-risk flag and recorded + on the issue with its exact slice state. The machinery, the door + and the tiered extension policy are landed and deployed; the + end-to-end proof is the remainder. Chapter: + [Temporary builds and custom connections](../concepts/temporary-builds.md). +3. [#13907](https://github.com/developing-today/code/issues/13907) + — the `fleet bridge` notes family (get/send/receive/watch for + class/name notes, #13895), replacing ad-hoc bridge access. The + mailbox subcommand exists and is covered in + [fleet bridge](../reference/bridge.md); this family is the + follow-up, not a missing subcommand. +4. The hosted edition's production deployment — **no issue number + exists yet.** `fleet-hosted` is implemented over fixture stores; + its production wiring waits on the #9074 metadata database, a + libSQL queue store over `fleet-queue` (#6741) and component E's + tenancy database, and the deployment issue itself is unnumbered + in both `wrangler.toml` and the package README. Filing and + numbering it is the next action. Chapter: + [The hosted edition: fleet-hosted](../concepts/fleet-hosted.md). +5. [#6369](https://github.com/developing-today/code/issues/6369) + — the queue-transport-alert founding issue, still open above at + order 10; the Worker it asked for is live and in service, and the + remaining work is the follow-ons (#13493, deploying the + hand-deployed Workers from Actions; #13503, folding the queue's + alert into the PM console). Chapter: + [The queue watchdog: queue-transport-alert](../concepts/queue-transport-alert.md). +6. [#13905](https://github.com/developing-today/code/issues/13905) + — the Lab Book, owning the primary coverage this book only + cross-links: cluster automation and scale, the lab-side + Cloudflare pipes, and the estate view of DNS. Chapter: + [Cross-links: automation, Cloudflare pipes and DNS](../concepts/lab-cross-links.md). + +### Dependency map + +- The compile coordinator (item 1) depends on landed work only: the + broker store and its conditional-UPDATE claim pattern (#13146), + the surface registry's caps and budgets, and broker-side GitHub + reads (#8276). Actions exec (item 2) depends on the coordinator + for its first-choice path only; its singular fallback is the + dependency-free path it already runs. +- The hosted deployment (item 4) depends on #9074 (metadata + database), #6741 (the `fleet-queue` store) and component E's + tenancy database; the direct-read mint's wiring depends on the + same deployment. +- The bridge notes family (item 3) depends on #13895's bridge-side + notes surface landing first; the fleet subcommand family follows + it, never precedes it. +- The watchdog follow-ons (item 5) depend on nothing in this list; + #13503 depends on the PM console's programme, not on this book. +- The Lab Book cross-links (item 6) depend on the Lab Book lane + under #13905 for their primary targets; the fleet-side chapters + they point from are landed with this addendum. +- The dispatch-test jobs store carries no open dependency: it is + live, its owner is `fleet dispatch-test`, and the #13844 audit's + MOVE-CLEAN recommendation is a programme decision, not a blocker. + Chapter: + [The dispatch-test jobs store: fleet-dispatch-jobs](../concepts/dispatch-jobs-store.md). From 98dd481c7834a4944733ac0b4793a563edd3bc27 Mon Sep 17 00:00:00 2001 From: Drewry Pope Date: Mon, 23 Nov 2026 19:29:09 -0600 Subject: [PATCH 2/2] =?UTF-8?q?docs(fleet-book):=20Lab=20Book=20part=201?= =?UTF-8?q?=20landed=20mid-lane=20(PR=20#13968)=20=E2=80=94=20cross-links?= =?UTF-8?q?=20chapter=20now=20links=20its=20real=20chapters?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/fleet/book/concepts/lab-cross-links.md | 147 ++++++++++-------- .../book/operations/program-issue-map.md | 7 +- 2 files changed, 85 insertions(+), 69 deletions(-) diff --git a/pkgs/fleet/book/concepts/lab-cross-links.md b/pkgs/fleet/book/concepts/lab-cross-links.md index 00fdc6829..7beda4dd1 100644 --- a/pkgs/fleet/book/concepts/lab-cross-links.md +++ b/pkgs/fleet/book/concepts/lab-cross-links.md @@ -5,37 +5,49 @@ Three topics sit on the fleet's border, with their primary coverage owned by the Lab Book — the book of the Code Book + Lab Book programme (#13905), covering the physical lab, the cluster programme -and the network around both. This chapter does not duplicate that -coverage. It states, for each topic, what the fleet side is, where -the primary coverage lives, and what state that coverage is in — -checked against the repo and the issue record on 2026-11-23. Where a -target does not exist yet, this chapter names the topic and its -owning programme instead of inventing a link. - -The one Lab target that exists today is the Code Book's chapter +and the network around both, published at +[developing-today.github.io/code/lab/](https://developing-today.github.io/code/lab/). +This chapter does not duplicate that coverage. It states, for each +topic, what the fleet side is and where the primary coverage lives, +linking only targets that exist — checked against the repo on +2026-11-23. + +A note on timing, because it changed mid-lane: the Lab Book's part 1 +landed while this chapter was being written (PR #13968, merged +2026-11-23 19:25 CST), with sources at `pkgs/lab/book/`. Part 1 +covers the site, the hardware, the cluster programme, the network +switches, the ESP32 line and the roadmap. The three topics below map +onto it unevenly, and this chapter says which is which: automation +has real chapters to link; the pipes are covered inside other +chapters, with no dedicated chapter yet; DNS has no Lab Book chapter +yet, and its owning programme is named instead of a link invented. +The Code Book's summary chapter, [The Lab](https://developing-today.github.io/code/code/systems/lab.html), -which summarises the lab, its cluster programme and its trackers. The -Lab Book itself has **not landed yet**: no Lab Book sources exist in -this repo and no deploy staging carries it (checked 2026-11-23). Its -sources and chapter map are being settled by the Lab Book lane under -#13905. The fleet-side halves of all three topics are covered in this -book and linked below; the lab-side halves belong to that programme. +remains the one-page overview of the whole lab programme. ## Automation and automated scale-up / scale-down -**Primary coverage: the Lab Book (programme #13905) — not yet -landed.** The lab's automation story is the cluster programme: Talos -Linux bootstrapped declaratively with TALM, running Cozystack with -FluxCD, on the basement machines of the cluster epic #1817 and the -bootstrap epic #1086. The programme's own seed list in #13905 names -the scale behaviours directly: "Talos cluster live and accepting -data on Cozystack", "servers auto-connecting and presenting to the -cluster on boot", and "containerised build/compile in the cluster". -The Code Book's Lab chapter records the honest state beneath those -items: as of its latest status record (2026-10-27) nothing in the -current cluster programme has been built yet, by design — the -machines have no operating system installed, and the build target is -the 3–5 best machines first, gated on basement power (#1104, #1105). +**Primary coverage: the Lab Book — landed in part 1.** The lab's +automation story is the cluster programme: Talos Linux bootstrapped +declaratively with TALM, running Cozystack with FluxCD, on the +basement machines of the cluster epic #1817 and the bootstrap epic +#1086. Its scale behaviours are the Lab Book's own chapters: + +- [Boot and auto-join](https://developing-today.github.io/code/lab/cluster/boot-and-auto-join.html) + — merged priority item 5: all servers online, auto-connecting and + presenting to the cluster on boot; no hand-built machine that just + exists forever. +- [Talos and Cozystack](https://developing-today.github.io/code/lab/cluster/talos-and-cozystack.html) + and [The cluster programme](https://developing-today.github.io/code/lab/cluster/the-cluster-programme.html) + — the platform the machines join, and the programme state around + it, including "containerised build/compile in the cluster" from + #13905's seed list. + +The state those chapters record is the honest one: as of the Lab +Book's latest status record (2026-10-27) nothing in the current +cluster programme has been built yet, by design — the machines have +no operating system installed, and the build target is the 3–5 best +machines first, gated on basement power (#1104, #1105). The fleet side of scale is a different mechanism, and it is covered here, not there: the fleet scales _work_, not machines. Placement @@ -45,10 +57,7 @@ designed to admit, queue and drain that work against global caps and budgets ([The central compile coordinator](compile-coordinator.md)); and temporary capacity is borrowed as short-lived Actions runners that scale to zero when their lease ends ([Temporary builds and -custom connections](temporary-builds.md)). When the Lab Book lands, -its automation chapters are the primary home for cluster scale-up -and scale-down; this section is the pointer, and the fleet chapters -above stay the primary home for dispatch-side scaling. +custom connections](temporary-builds.md)). ## The pipes into Cloudflare and externally @@ -63,45 +72,51 @@ door's tunnel ingress the queue watchdog that probes one of those pipes from outside ([The queue watchdog: queue-transport-alert](queue-transport-alert.md)). -The lab-side and estate-wide halves belong to the Lab Book programme -and the Turso + Cloudflare integration epic: the first lab -Cloudflare Tunnel, live 2026-11-06 on the laptop with the seed -ingress `lab.security.cab` (#6455, closed; connector and watchdog -#6456, #8933, closed); the cluster egress strategy for the 2 Gbps -home fiber — budgets, tunnel topology, failure matrix — designed in -#5030 (open); and the estate-wide integration of Turso and -Cloudflare across databases, edge, gateway and DNS, epic #8987 -(open), with its design record in #8870 and the follow-on record -#13912 (both open). No single landed chapter covers "the pipes" as -one subject yet; until the Lab Book or the #8987 programme lands one, -the trackers above are the record, and this section is the map to -them. +The lab-side half sits inside the Lab Book's part 1 rather than in a +chapter of its own: [The cluster +programme](https://developing-today.github.io/code/lab/cluster/the-cluster-programme.html) +carries the first lab Cloudflare Tunnel (live 2026-11-06 on the +laptop, seed ingress `lab.security.cab`, #6455) as the programme's +one live artefact, lists the Cloudflare tunnel among the day-one +platform services (epic #1088), and holds the egress section — the +strategy for the 2 Gbps home fiber, designed in #5030 (open): +tunnel or shunt bulk traffic to cheap-or-free-egress services, +compress aggressively. [Switches](https://developing-today.github.io/code/lab/network/switches.html) +covers the physical network the pipes land on. No dedicated +pipes chapter exists in either book yet. The estate-wide half — +Turso and Cloudflare across databases, edge, gateway and DNS — is +epic #8987 (open), with its design record in #8870 and the follow-on +record #13912 (both open); until that programme lands its coverage, +those trackers are the record and this section is the map to them. ## DNS management -**Primary coverage: the Lab Book (programme #13905) for the estate -view — not yet landed; the working machinery is in this repo today.** -DNS is managed as code under `infra/dns/`: a Terraform configuration -driven by `dns_config.yaml`, with its apply scripts beside it. The -standing items around it are open and named: the dns-registry work — -a recurring DNS backup job, renewal and cost tracking, and a -dashboard view of the domain register (#902); the registrar and DNS -classification for Drew's domains, with Porkbun as the default layer -(#8808); and an apply window with a recorded gate — clearing a -phantom state entry and deciding nine unmanaged -developing-today.com records needs Drew's go-ahead (#4989). The -estate view of DNS also sits inside the Turso + Cloudflare epic -#8987 above. The fleet book's own DNS surface is deliberately nil: -fleet consumes names (the security.cab doors, the broker's public -route) and manages none of them, so this pointer is the whole fleet -chapter on the subject. +**Primary coverage: the Lab Book programme (#13905) for the estate +view — no chapter yet; the working machinery is in this repo today.** +The Lab Book's part 1 SUMMARY (checked 2026-11-23) has no DNS +chapter, and this section names the topic and its owner rather than +linking a page that does not exist. DNS is managed as code under +`infra/dns/`: a Terraform configuration driven by `dns_config.yaml`, +with its apply scripts beside it. The standing items around it are +open and named: the dns-registry work — a recurring DNS backup job, +renewal and cost tracking, and a dashboard view of the domain +register (#902); the registrar and DNS classification for Drew's +domains, with Porkbun as the default layer (#8808); and an apply +window with a recorded gate — clearing a phantom state entry and +deciding nine unmanaged developing-today.com records needs Drew's +go-ahead (#4989). The estate view of DNS also sits inside the Turso + +- Cloudflare epic #8987 above. The fleet book's own DNS surface is + deliberately nil: fleet consumes names (the security.cab doors, the + broker's public route) and manages none of them, so this pointer is + the whole fleet chapter on the subject. ## Sources Programme #13905 (Code Book + Lab Book programme; deliverables and -seed items); the Code Book, `pkgs/code-book/book/systems/lab.md` and -its SUMMARY (checked 2026-11-23: no Lab Book sources or deploy -staging in the repo); cluster epics #1817 and #1086; lab tunnel -#6455, #6456, #8933; egress design #5030; Turso + Cloudflare epic -#8987 with #8870 and #13912; `infra/dns/`; DNS items #902, #8808, -#4989. +seed items); the Lab Book, `pkgs/lab/book/` (part 1, PR #13968, +merged 2026-11-23) and its deploying chapter (published under +`/lab/`); the Code Book, `pkgs/code-book/book/systems/lab.md`; +cluster epics #1817, #1086 and #1088; lab tunnel #6455, #6456, +#8933; egress design #5030; Turso + Cloudflare epic #8987 with #8870 +and #13912; `infra/dns/`; DNS items #902, #8808, #4989. diff --git a/pkgs/fleet/book/operations/program-issue-map.md b/pkgs/fleet/book/operations/program-issue-map.md index 5e7e42ba7..bc1eff800 100644 --- a/pkgs/fleet/book/operations/program-issue-map.md +++ b/pkgs/fleet/book/operations/program-issue-map.md @@ -304,9 +304,10 @@ with their live dependencies. Each names the chapter that carries it. it, never precedes it. - The watchdog follow-ons (item 5) depend on nothing in this list; #13503 depends on the PM console's programme, not on this book. -- The Lab Book cross-links (item 6) depend on the Lab Book lane - under #13905 for their primary targets; the fleet-side chapters - they point from are landed with this addendum. +- The Lab Book cross-links (item 6) pointed at an unlanded book + when drafted; part 1 landed mid-lane (PR #13968, 2026-11-23), + and the chapter links its real chapters where they exist and + names #13905 where they do not (DNS). - The dispatch-test jobs store carries no open dependency: it is live, its owner is `fleet dispatch-test`, and the #13844 audit's MOVE-CLEAN recommendation is a programme decision, not a blocker.