From b77dcf327f6c012ed3eeb6459d0a31acee1e2021 Mon Sep 17 00:00:00 2001 From: Archer Date: Tue, 24 Nov 2026 08:51:58 -0600 Subject: [PATCH] =?UTF-8?q?docs(books):=20daily=20spot-check=202026-11-24?= =?UTF-8?q?=20=E2=80=94=20fleet=20census=2019/22/16,=20atlas=2038=20module?= =?UTF-8?q?s,=20id=20crate=20entries?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/atlas-search/book/library/atlas-core.md | 7 +++- pkgs/atlas-search/book/library/crates.md | 2 +- pkgs/fleet/book/concepts/architecture.md | 10 +++-- .../book/development/register-a-domain.md | 10 ++--- pkgs/fleet/book/getting-started/shape.md | 15 +++---- pkgs/fleet/book/index.md | 9 ++++- pkgs/fleet/book/library/crates.md | 39 +++++++++++++++++-- .../fleet/book/library/registry-and-config.md | 12 +++--- pkgs/fleet/book/operations/glossary.md | 2 +- pkgs/fleet/book/reference/builtins.md | 6 +-- pkgs/fleet/book/reference/queue-lifecycle.md | 23 +++++++++++ pkgs/id/book/concepts/capabilities.md | 2 +- pkgs/id/book/library/crates.md | 8 ++-- pkgs/id/book/library/worlds-and-caps.md | 2 +- pkgs/id/book/reference/hosted-worker.md | 1 + 15 files changed, 110 insertions(+), 38 deletions(-) diff --git a/pkgs/atlas-search/book/library/atlas-core.md b/pkgs/atlas-search/book/library/atlas-core.md index 4dcd672ad3..ab3dbe07c1 100644 --- a/pkgs/atlas-search/book/library/atlas-core.md +++ b/pkgs/atlas-search/book/library/atlas-core.md @@ -28,9 +28,9 @@ JSON shapes, field order, note placement and fatal messages mirror the Python, and the parity tests diff rendered envelopes and SQL strings against fixtures recorded from the production Python module. -## The 33 public modules, grouped by job +## The 38 public modules, grouped by job -`lib.rs` declares 33 public modules. Grouped by the job they do: +`lib.rs` declares 38 public modules. Grouped by the job they do: ### Retrieval @@ -57,6 +57,7 @@ fixtures recorded from the production Python module. | `local` | The local backend: a SQLite publish file, schema-normalising temporary views, and vector side stores joined by content hash with an in-process cosine scan | | `backend` | The `SearchBackend` seam both backends implement: branch pools, chunk details, neighbours and message reads, with the ceiling enforced inside branch construction | | `manifest` | The classification manifest: schema, validation and loader for the table that declares the filterable dimensions, with the built-in manifest as fallback and validation reference | +| `source_registry` | The provenance source registry (#3125): stable source-root and source-locator registration. The read side is `occurrences`, which resolves chunk occurrences by canonical hash back to every place the content was found | | `boundary` | Source-boundary-safe embed splitting: the splitter and the classifier share source offsets, every declared boundary splits, and uncertain text becomes one secret-bearing chunk | | `disclosure` | Disclosure contexts: the destination-side half of the classification model. The caller ceiling and the destination context's ceiling intersect; neither widens the other, and enforcement happens at the final output boundary in `search` | @@ -66,6 +67,8 @@ fixtures recorded from the production Python module. | ----------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `stage` | Staging databases and the staging-unit registry: provisioning, staged artifacts, classified staging, and the promotion transition | | `gate` | The staging-shard ingest gate's durable record and state machine: five ordered stages (write, classify, dedup, provenance check, publish), enumerated reason codes, and a strike limit of 3 per reason before a batch needs review | +| `attestation` | One in-toto-shaped attestation statement per ingest batch (#6045): the statement bytes are embedded verbatim as the claim body, with the statement hash as the claim's subject — no transcoding | +| `id_projection` | The Atlas-to-ID attestation projector (#11183): one `attestation.claim` per batch digest, projecting ingest attestations and batch runs to ID | | `sweep` | The source sweep: candidate filtering, guardrails, headroom, state, locking and run reporting for periodic ingest scheduling | | `github_comments` | GitHub comments as a corpus source: comment documents, provenance marks and watermarks | | `trace_ingest` | Query traces as a searchable corpus source, plus trace retention and compaction | diff --git a/pkgs/atlas-search/book/library/crates.md b/pkgs/atlas-search/book/library/crates.md index 39cc3351a0..f90c22d775 100644 --- a/pkgs/atlas-search/book/library/crates.md +++ b/pkgs/atlas-search/book/library/crates.md @@ -59,7 +59,7 @@ differently ordered accumulation. See ## atlas-core -The large crate: 33 public modules and about 26,000 lines in `src/`, +The large crate: 38 public modules and about 26,000 lines in `src/`, including the shard subpackage. It is a semantics-exact port of the Python reference implementation — see [atlas_search.py: the Python reference implementation](../reference/python-implementation.md) diff --git a/pkgs/fleet/book/concepts/architecture.md b/pkgs/fleet/book/concepts/architecture.md index 146cb201d5..7504481e17 100644 --- a/pkgs/fleet/book/concepts/architecture.md +++ b/pkgs/fleet/book/concepts/architecture.md @@ -11,12 +11,12 @@ of 2 MiB, stripped. Source: https://github.com/developing-today/code/blob/main/pkgs/fleet/Cargo.toml -## The crates map: 13 crates +## The crates map: 16 crates | Crate | Owns | | --------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `fleet` (the bin) | The multicall entrypoint (`src/main.rs`), root built-ins, dispatch and the stub machinery, plus the domains that live in the bin crate itself: `secrets` verbs (over `fleet-secrets`), and `gh` with its cache, closure, guard, and metadata modules. | -| `fleet-registry` | The domain registry: the 15 capability atoms, the three variants and their capability sets, the 12 domain entries (name, summary, capabilities, primary capability, aliases, subcommand inventory), and the argv0 alias map. Dependency-free; compiled into every variant so help is always complete. | +| `fleet-registry` | The domain registry: the 22 capability atoms, the three variants and their capability sets, the 19 domain entries (name, summary, capabilities, primary capability, aliases, subcommand inventory), and the argv0 alias map. Dependency-free; compiled into every variant so help is always complete. | | `fleet-config` | The one place config resolves: `fleet.toml` (default `${XDG_CONFIG_HOME:-~/.config}/fleet/fleet.toml`, overridable with `FLEET_CONFIG`), the `[domains]` switches, `[proxy]`, `[secrets]`, `[queue-broker]`, `[secrets-broker]`, `[dispatch]`, `[host]` sections, and the fleet's path/port/socket constants. Resolution order is environment → config file → compiled-in defaults. A missing file is not an error; a malformed file — including unknown sections or keys — is a loud error on every path, never a silent fallback. | | `fleet-secrets` | The secret resolver library: the broker-first, Bitwarden-fallback chain, by name only. Every domain that needs a secret resolves it through this crate; no domain shells out to `bws` or reads a token file on its own. | | `fleet-proxy-proto` | The session-broker wire protocol: 8-byte big-endian length-prefixed JSON frames, the hello/capability handshake, and the protocol version window (current and previous major, plus legacy proto 0). | @@ -29,12 +29,16 @@ Source: https://github.com/developing-today/code/blob/main/pkgs/fleet/Cargo.toml | `fleet-bridge` | The `bridge` domain: the mailbox client for the message bridge (send/agents/log for central; hello/inbox/post/ack/health for agents). | | `fleet-agent` | The `agent` and `shell` domains: kinds, enrolment, doctor, the intake ladder (`next`), the shortlist, and the shell target planner. It links only `fleet-config`: it runs the other domains' verbs through this same binary rather than linking them. | +| `fleet-kv` | Identity-scoped local SQLite storage: the local store other fleet surfaces build on. | +| `fleet-cert` | The `cert` domain: PKI/X.509 roots, issuers, leaves, chains and bundles over a library-first Rust API, plus the OCSP verb group. | +| `fleet-orgs` | The `orgs` domain: the Turso-backed org/App registry, synced from each GitHub App's own JWT. | + Domain ownership, one line each: `queue` → `fleet-queue`; `serve` → bin-crate glue over `fleet-queue` / `fleet-search` / `fleet-proxy`; `proxy` → `fleet-proxy` (+ `fleet-proxy-proto`); `dispatch` → `fleet-dispatch`; `dispatch-test` → `fleet-dispatch-test`; `secrets` → the bin crate over `fleet-secrets`; `gh` → the bin crate; `bridge` → `fleet-bridge`; `agent` and -`shell` → `fleet-agent`; `search` → `fleet-search`; `laptop-agent` → +`shell` → `fleet-agent`; `search` → `fleet-search`; `orgs` → `fleet-orgs`; `cert` → `fleet-cert`; `laptop-agent` → `fleet-laptop-agent`. ## The brokers and their ports and sockets diff --git a/pkgs/fleet/book/development/register-a-domain.md b/pkgs/fleet/book/development/register-a-domain.md index 18df190571..abe8779281 100644 --- a/pkgs/fleet/book/development/register-a-domain.md +++ b/pkgs/fleet/book/development/register-a-domain.md @@ -8,7 +8,7 @@ A domain exists in fleet because three things agree: the registry names it, a Ca ### Domains -`pub const DOMAINS: &[Domain]` is the full registry, in help order, with 12 entries: `queue`, `serve`, `proxy`, `dispatch`, `dispatch-test`, `secrets`, `gh`, `bridge`, `agent`, `shell`, `search`, `laptop-agent`. `pub fn domain(name)` is a linear find over it. +`pub const DOMAINS: &[Domain]` is the full registry, in help order, with 19 entries: `queue`, `serve`, `proxy`, `dispatch`, `dispatch-test`, `secrets`, `gh`, `bridge`, `orgs`, `agent`, `shell`, `search`, `cert`, `laptop-agent`, `commander`, `http`, `ssh`, `laptop`, `actions`. `pub fn domain(name)` is a linear find over it. `struct Domain` is the unit that help lists, stubs name, and config disables: @@ -23,15 +23,15 @@ A domain exists in fleet because three things agree: the registry names it, a Ca `struct AliasRoute { domain, implied_arg }` and `pub fn alias_route(argv0)` define the argv0 map. The shipped aliases are: `repo-queue` → `queue`; `queue-broker` → `serve` with implied arg `queue-broker`; `secrets-broker` → `serve` with implied arg `secrets-broker`; `laptop-agent-broker` → `proxy` with implied arg `serve`; `atlas-search` → `search`; `laptop-agent` → `laptop-agent`. An argv0 that is none of {`fleet`, a variant name, an alias} is a usage error at exit 2 naming the expected names. `is_known_invocation_name(name)` is `fleet` ∨ variant name ∨ alias. -### Capabilities: the 15 atoms +### Capabilities: the 22 atoms -`enum Capability` has 15 variants with stable string ids (`Capability::id`, `Capability::ALL`): +`enum Capability` has 22 variants with stable string ids (`Capability::id`, `Capability::ALL`): -`proxy-connect`, `proxy-serve`, `proxy-raw-splice`, `queue`, `queue-broker`, `secrets-broker`, `search`, `search-serve`, `dispatch`, `dispatch-test`, `laptop-agent`, `secrets`, `gh`, `bridge`, `agent`. +`proxy-connect`, `proxy-serve`, `proxy-raw-splice`, `queue`, `queue-broker`, `secrets-broker`, `search`, `search-serve`, `dispatch`, `dispatch-test`, `laptop-agent`, `secrets`, `gh`, `bridge`, `agent`, `commander`, `laptop-http`, `laptop-ssh`, `laptop`, `cert`, `actions`, `orgs`. Note there is no `shell` capability atom: the `shell` domain rides on the `agent` capability. -`CapabilitySet` is a `BTreeSet`, built with `capability_set(&[…])`. Named sets: `full_capabilities()` (all 15), `serve_capabilities()` = {ProxyConnect, ProxyServe, ProxyRawSplice, QueueBroker, SecretsBroker, SearchServe, Secrets}, and `connect_capabilities()` = {ProxyConnect, ProxyRawSplice}. +`CapabilitySet` is a `BTreeSet`, built with `capability_set(&[…])`. Named sets: `full_capabilities()` (all 22), `serve_capabilities()` = {ProxyConnect, ProxyServe, ProxyRawSplice, QueueBroker, SecretsBroker, SearchServe, Secrets}, and `connect_capabilities()` = {ProxyConnect, ProxyRawSplice}. ### `CapState`: the four availability states diff --git a/pkgs/fleet/book/getting-started/shape.md b/pkgs/fleet/book/getting-started/shape.md index 449b0094c8..e2e278ac23 100644 --- a/pkgs/fleet/book/getting-started/shape.md +++ b/pkgs/fleet/book/getting-started/shape.md @@ -52,9 +52,9 @@ registry — every build knows every domain" on every variant, and why domain help never stubs — help is registry data and renders identically everywhere, with unavailable domains marked inline. -The twelve domains, in registry (help) order, are `queue`, `serve`, `proxy`, -`dispatch`, `dispatch-test`, `secrets`, `gh`, `bridge`, `agent`, `shell`, -`search`, and `laptop-agent`. Their purposes are tabulated in the +The nineteen domains, in registry (help) order, are `queue`, `serve`, `proxy`, `dispatch`, `dispatch-test`, `secrets`, +`gh`, `bridge`, `orgs`, `agent`, `shell`, `search`, `cert`, +`laptop-agent`, `commander`, `http`, `ssh`, `laptop`, `actions`. Their purposes are tabulated in the [introduction](../index.md#the-domain-map). Each domain declares a _primary capability_ — the capability its headline @@ -63,15 +63,16 @@ availability keys on. One consequence worth knowing: on the serve build the search _client_, even though the `search-serve` capability exists in that build under the `serve` domain. -## Capabilities: the 15 +## Capabilities: the 22 A _capability_ is an atom of function that a build can include or omit. -There are 15, in registry order: +There are 22, in registry order: ``` proxy-connect, proxy-serve, proxy-raw-splice, queue, queue-broker, secrets-broker, search, search-serve, dispatch, dispatch-test, -laptop-agent, secrets, gh, bridge, agent +laptop-agent, secrets, gh, bridge, agent, commander, laptop-http, +laptop-ssh, laptop, cert, actions, orgs ``` Notes: @@ -103,7 +104,7 @@ invocation profiles above. | Variant | Installed name | Compiled capabilities | | ------- | --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| Full | `fleet` | all 15 | +| Full | `fleet` | all 22 | | Serve | `fleet-serve` | `proxy-connect`, `proxy-serve`, `proxy-raw-splice`, `queue-broker`, `secrets-broker`, `search-serve`, `secrets` (7) — daemon roles plus proxy, no working-seat clients | | Connect | `fleet-connect` | `proxy-connect`, `proxy-raw-splice` (2) | diff --git a/pkgs/fleet/book/index.md b/pkgs/fleet/book/index.md index da22b7ccec..3267eeb9f7 100644 --- a/pkgs/fleet/book/index.md +++ b/pkgs/fleet/book/index.md @@ -3,7 +3,7 @@ `fleet` is one multicall binary for the fleet's tools. A _multicall binary_ is a single executable that behaves as many different programs depending on the name it is invoked under and the first argument it is given. The fleet binary is -version `0.1.0`. Invoked as `fleet`, it dispatches to one of twelve _domains_ — +version `0.1.0`. Invoked as `fleet`, it dispatches to one of nineteen _domains_ — a domain is a named tool area, such as the work queue or the secrets resolver — and invoked under one of its alias names (`repo-queue`, `queue-broker`, `secrets-broker`, `laptop-agent-broker`, `atlas-search`, `laptop-agent`) it @@ -78,10 +78,17 @@ answers with a stub message and exit code 69. The full mechanics are in | `secrets` | Resolve secrets by name: the secrets broker first, Bitwarden as fallback. | | `gh` | The real `gh` CLI, passed through under a rotating fleet token (the fleet's GitHub Apps, then personal last); rate-limit and permission failures fail over to the next token. | | `bridge` | Fleet messaging through the message bridge: central sends messages or commands to an agent, a group, or all; agents read their mailbox, answer, and ack. | +| `orgs` | Turso-backed GitHub org, App and installation registry. | | `agent` | The agent's front door: enrol an agent of any kind, check what this seat reaches, and take the next piece of work down the intake ladder. | | `shell` | Run a command, or open a shell, where builds belong: the laptop, a codespace, or here. | | `search` | Atlas corpus search over the session history (hybrid full-text plus vector search). Alias: `atlas-search`. | +| `cert` | PKI/X.509: root and issuer CAs, leaf certificates, chains and bundles. Alias: `pki`. | | `laptop-agent` | Client for the laptop-agent daemon: run and manage jobs on the laptop. Alias: `laptop-agent`. | +| `commander` | Tier T1 (commander/fleet) of the laptop route forms: run commands on the laptop through the Desktop Commander MCP endpoint. | +| `http` | Tier T2 (http/fleet) of the laptop route forms: the laptop-agent daemon HTTP API as a fleet subcommand (HTTP legs only; never ssh). | +| `ssh` | Tier T3 (ssh/fleet) of the laptop route forms: real SSH to the laptop under a binary-owned client contract. | +| `laptop` | Tier T0 (tiered/fleet) of the laptop route forms: the generic tiered command — walks T1 → T2 → T3 and reports the serving tier. | +| `actions` | Live short-lived exec sessions inside GitHub Actions runners: start a session in a runner, run commands in it, stream its IO, renew or extend its lease, close it. | Alongside the domains there are five built-in commands that are not domains: `init` (autostart this host's roles per the host manifest), `session bind` diff --git a/pkgs/fleet/book/library/crates.md b/pkgs/fleet/book/library/crates.md index 3c63784cf3..dfd6741528 100644 --- a/pkgs/fleet/book/library/crates.md +++ b/pkgs/fleet/book/library/crates.md @@ -1,7 +1,7 @@ # The crates -The fleet binary is one Rust workspace, `pkgs/fleet/`, with 13 crates: -12 library crates and the one binary crate that assembles them. The +The fleet binary is one Rust workspace, `pkgs/fleet/`, with 16 crates: +15 library crates and the one binary crate that assembles them. The workspace is self-contained — its own `Cargo.toml`, `Cargo.lock` and `rust-toolchain.toml`, no workspace relationship to the repository root — at version `0.1.0`, edition 2024, rust-version 1.85, licensed @@ -20,7 +20,7 @@ embedder touches most: [The queue client](queue-client.md), [Placement and surfaces as data](placement.md), and [Registry, config and capabilities](registry-and-config.md). -## The 13 crates +## The 16 crates ### `fleet` @@ -56,6 +56,16 @@ tests: the mailbox client for the bridge service, with the two token classes (owner token for central verbs, fleet token for agent verbs) resolved by name through `fleet-secrets`. +### `fleet-cert` + +> "The `fleet cert` domain: PKI/X.509 roots, issuers, leaves, chains and bundles over a library-first Rust API (developing-today/code#9157, spec doc/2026-11-13T01-34-11Z_design_fleet_ca_credentials_secrets)." + +Owns the `cert` domain (`fleet cert`, alias `fleet pki`), entry point +`fleet_cert::run`, with the domain's own usage text in `fleet_cert::cli`. +The verb surface covers roots, issuers, leaves, chains, bundles and +profiles; the OCSP verb group (sign, inspect, test) and the +`ocsp-responder` profile landed in #13722. + ### `fleet-config` > "fleet configuration: ~/.config/fleet/fleet.toml + env resolution, the [domains] enable/disable table, and state-dir paths." @@ -87,6 +97,13 @@ Owns the `dispatch-test` domain (`scan`, `submit`, `status`). Nothing in it is trigger-driven: every verb runs only when a caller invokes it, and `submit` dispatches a `workflow_dispatch` run explicitly. +### `fleet-kv` + +> "Identity-scoped local SQLite storage for fleet-kv." + +A platform crate, not a domain: the identity-scoped SQLite storage core +(#13362) that other fleet surfaces build on. + ### `fleet-laptop-agent` > "The fleet laptop-agent domain: the transport ladder (broker, Cloudflare, Tailscale, SSH) and the verbs over the laptop-agent daemon (epic developing-today/code#5412, issue #10796)." @@ -97,6 +114,18 @@ Owns the `laptop-agent` domain (`health`, `jobs`, `kill`, `exec`, and an SSH leg that exists in the ordering as a stub and never carries traffic in this build. +### `fleet-orgs` + +> "The `fleet orgs` domain: the Turso-backed org/App registry, synced from each GitHub App's own JWT (developing-today/code#8884)." + +Owns the `orgs` domain, entry point `fleet_orgs::run`. The registry +tables are `sync_runs`, `apps`, `orgs` and `installations`, with +idempotent upserts; sync uses each App's JWT against `GET /app` and +`GET /app/installations`. `fleet orgs list` prints the table or +`--json`, with `--app`, `--org` and `--permission` filters, and shows +the last successful sync time. The Turso URL comes from +`FLEET_ORGS_TURSO_URL`; its token is the secret `turso.fleet-orgs-token`. + ### `fleet-proxy` > "The fleet session proxy domain: `proxy serve` (the broker) and `proxy connect`/`init` (the client) — design note §4, epic developing-today/code#5412." @@ -141,7 +170,7 @@ broker surface, and the feature gates between them — is the subject of A platform crate with a hard constraint: **dependency-free** (std only, strings and tables, no I/O), so it can be compiled into _every_ variant — including the size-gated connect build — and `--help` is always -complete. It owns the 15 capability atoms, the 12 domains, the three +complete. It owns the 22 capability atoms, the 19 domains, the three build variants and the argv0 alias map. Covered in depth in [Registry, config and capabilities](registry-and-config.md). @@ -217,6 +246,8 @@ variant unconditionally. | `shell` | `agent` | `fleet-agent` | `fleet_agent::run_shell` | | `search` | `search` | `fleet-search` | `fleet_search::run` | | `laptop-agent` | `laptop-agent` | `fleet-laptop-agent` | `fleet_laptop_agent::cli::run` | +| `orgs` | `orgs` | `fleet-orgs` | `fleet_orgs::run` | +| `cert` | `cert` | `fleet-cert` | `fleet_cert::run` | Note the two irregular rows, because embedders trip on both: `shell` has **no capability atom of its own** — it rides the `agent` capability diff --git a/pkgs/fleet/book/library/registry-and-config.md b/pkgs/fleet/book/library/registry-and-config.md index 60a58b6702..54dccbbaea 100644 --- a/pkgs/fleet/book/library/registry-and-config.md +++ b/pkgs/fleet/book/library/registry-and-config.md @@ -17,7 +17,7 @@ For the crate map, see [The crates](crates.md). I/O — and is compiled into **every** variant, including the size-gated connect build, so `--help` is always complete. It owns four things. -### The 15 capabilities +### The 22 capabilities `enum Capability`, with stable string ids in `Capability::ALL`, in registry order: @@ -25,7 +25,8 @@ registry order: ```text proxy-connect, proxy-serve, proxy-raw-splice, queue, queue-broker, secrets-broker, search, search-serve, dispatch, dispatch-test, -laptop-agent, secrets, gh, bridge, agent +laptop-agent, secrets, gh, bridge, agent, commander, laptop-http, +laptop-ssh, laptop, cert, actions, orgs ``` `CapabilitySet` is a `BTreeSet`, built with @@ -33,11 +34,12 @@ laptop-agent, secrets, gh, bridge, agent `serve_capabilities()` and `connect_capabilities()` for the three variant sets below. -### The 12 domains +### The 19 domains `pub const DOMAINS: &[Domain]` — the full registry in help order: `queue`, `serve`, `proxy`, `dispatch`, `dispatch-test`, `secrets`, -`gh`, `bridge`, `agent`, `shell`, `search`, `laptop-agent`. +`gh`, `bridge`, `orgs`, `agent`, `shell`, `search`, `cert`, +`laptop-agent`, `commander`, `http`, `ssh`, `laptop`, `actions`. `struct Domain` is the unit that help lists, stubs name, and config disables: @@ -68,7 +70,7 @@ whose names double as invocation profiles: | Variant | Installed name | Compiled capabilities | | --------- | --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Full` | `fleet` | All 15 | +| `Full` | `fleet` | All 22 | | `Serve` | `fleet-serve` | `proxy-connect`, `proxy-serve`, `proxy-raw-splice`, `queue-broker`, `secrets-broker`, `search-serve`, `secrets` (7) — daemon roles plus proxy, no working-seat clients | | `Connect` | `fleet-connect` | `proxy-connect`, `proxy-raw-splice` (2) | diff --git a/pkgs/fleet/book/operations/glossary.md b/pkgs/fleet/book/operations/glossary.md index 2f9b5cc038..6e44fe94de 100644 --- a/pkgs/fleet/book/operations/glossary.md +++ b/pkgs/fleet/book/operations/glossary.md @@ -4,7 +4,7 @@ One-to-three sentence definitions, alphabetised. Chapters use these terms in the **broker** — A resident fleet service that other components ask over a socket or HTTP: the queue-broker owns queue state, the secrets-broker owns the secrets cache, and the session broker (the session proxy's server half) owns laptop-channel connections. Brokers are the stateful centre; clients are replaceable. -**capability** — One of the 15 compile-time atoms in `fleet-registry` (`queue`, `proxy-connect`, `search-serve`, and so on) that decide what a build can do. A domain's availability is derived from its capabilities, the invocation's profile, and config, as one of four `CapState` values. +**capability** — One of the 22 compile-time atoms in `fleet-registry` (`queue`, `proxy-connect`, `search-serve`, and so on) that decide what a build can do. A domain's availability is derived from its capabilities, the invocation's profile, and config, as one of four `CapState` values. **disposition** — The verified account of what actually happened to a task's issue and its linked pull requests, read back live from GitHub by `verify-disposition`. A completion that requires one must carry the record, and the broker's gate checks it before the task may close. diff --git a/pkgs/fleet/book/reference/builtins.md b/pkgs/fleet/book/reference/builtins.md index 1fa9fd8a9d..12f4c4a7b5 100644 --- a/pkgs/fleet/book/reference/builtins.md +++ b/pkgs/fleet/book/reference/builtins.md @@ -104,7 +104,7 @@ Enabled capabilities: proxy-connect, proxy-serve, … (usable set, registry orde The fields are: the workspace **version**; the **build** name — `fleet`, `fleet-serve`, or `fleet-connect`, derived by matching the _compiled_ capability set against the variant sets (an unrecognised compiled set falls back to the plain build name) — with the profile annotation when the invocation name narrowed the surface; the **derived version** (the `0.1.0-dev+g` form); the **source rev** (the full commit SHA the build was cut from); and the **enabled capabilities** — the _usable_ set (compiled ∩ profile ∩ `[domains]` enables), comma-joined in registry order, or `none`. The values above are the reference build's, as captured in the capabilities dump. -There are 15 capability atoms, in registry order: `proxy-connect, proxy-serve, proxy-raw-splice, queue, queue-broker, secrets-broker, search, search-serve, dispatch, dispatch-test, laptop-agent, secrets, gh, bridge, agent`. `proxy-connect` is unconditional — present in every variant. The three build variants are: Full (`fleet`, all 15), Serve (`fleet-serve`: `proxy-connect, proxy-serve, proxy-raw-splice, queue-broker, secrets-broker, search-serve, secrets` — daemon roles plus proxy, no working-seat clients), and Connect (`fleet-connect`: `proxy-connect, proxy-raw-splice` only). Invoking the binary under a hyphenated name selects that profile as a ceiling; profiles can only narrow, never widen. An unknown invocation name is a usage error, exit 2, naming the expected names. +There are 22 capability atoms, in registry order: `proxy-connect, proxy-serve, proxy-raw-splice, queue, queue-broker, secrets-broker, search, search-serve, dispatch, dispatch-test, laptop-agent, secrets, gh, bridge, agent, commander, laptop-http, laptop-ssh, laptop, cert, actions, orgs`. `proxy-connect` is unconditional — present in every variant. The three build variants are: Full (`fleet`, all 22), Serve (`fleet-serve`: `proxy-connect, proxy-serve, proxy-raw-splice, queue-broker, secrets-broker, search-serve, secrets` — daemon roles plus proxy, no working-seat clients), and Connect (`fleet-connect`: `proxy-connect, proxy-raw-splice` only). Invoking the binary under a hyphenated name selects that profile as a ceiling; profiles can only narrow, never widen. An unknown invocation name is a usage error, exit 2, naming the expected names. Exit codes: 0 ok · 2 usage error (any argument, including `--help`). @@ -145,7 +145,7 @@ Usage: fleet capabilities } ``` -Per-domain `state` is one of `available`, `not-in-build`, `narrowed-by-name`, `disabled-by-config` (the four reason classes behind the exit-69 stub), and `available` is exactly `state == "available"`. Note the two distinct capability lists: `capabilities` is what this _invocation_ can use; `compiled_capabilities` is what the _binary_ was built with — their difference is the profile/config narrowing. In the reference build both are the full 15 and every domain is `available`. One registry quirk: the `shell` domain's capability list is `["agent"]` — there is no `shell` capability atom; shell rides on the agent capability. +Per-domain `state` is one of `available`, `not-in-build`, `narrowed-by-name`, `disabled-by-config` (the four reason classes behind the exit-69 stub), and `available` is exactly `state == "available"`. Note the two distinct capability lists: `capabilities` is what this _invocation_ can use; `compiled_capabilities` is what the _binary_ was built with — their difference is the profile/config narrowing. In the reference build both are the full 22 and every domain is `available`. One registry quirk: the `shell` domain's capability list is `["agent"]` — there is no `shell` capability atom; shell rides on the agent capability. Exit codes: 0 ok · 2 usage error (any argument, including `--help`). @@ -178,7 +178,7 @@ Usage: fleet help [domain] | ----------------------- | ----------- | ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `` (positional) | domain name | full registry | With no argument, prints the full registry help (identical to `fleet --help`). With one domain name, prints that domain's help. A second argument is rejected. `fleet help --help` is an error: there is no domain named `--help`. | -**Behaviour.** `fleet help` with no argument prints the full registry: `fleet 0.1.0 — one multicall binary for the fleet's tools`, the usage lines, all 12 domains with summaries and argv0 aliases, the five built-in commands, and the note that a domain this invocation cannot use answers with a stub and exit code 69. `fleet help ` prints the domain's registry help: summary line, `Usage: fleet [args...]`, argv0 aliases, the command list, and a status line whose wording is per-domain and capability-aware. An unknown name is a usage error: `error: no domain named '' — run 'fleet --help' for the registry`, exit 2. Domain help is registry data and renders identically on every build, with unavailable domains marked — help never stubs. +**Behaviour.** `fleet help` with no argument prints the full registry: `fleet 0.1.0 — one multicall binary for the fleet's tools`, the usage lines, all 19 domains with summaries and argv0 aliases, the five built-in commands, and the note that a domain this invocation cannot use answers with a stub and exit code 69. `fleet help ` prints the domain's registry help: summary line, `Usage: fleet [args...]`, argv0 aliases, the command list, and a status line whose wording is per-domain and capability-aware. An unknown name is a usage error: `error: no domain named '' — run 'fleet --help' for the registry`, exit 2. Domain help is registry data and renders identically on every build, with unavailable domains marked — help never stubs. Exit codes: 0 ok · 2 unknown domain name or extra argument. diff --git a/pkgs/fleet/book/reference/queue-lifecycle.md b/pkgs/fleet/book/reference/queue-lifecycle.md index fb4a71a74d..519728fb04 100644 --- a/pkgs/fleet/book/reference/queue-lifecycle.md +++ b/pkgs/fleet/book/reference/queue-lifecycle.md @@ -468,3 +468,26 @@ $ fleet queue verify-disposition 13165 --repo developing-today/code --json {"checked_at": "2026-11-23T04:24:00Z", "source": "github-readback", "issue": {"number": 13165, "state": "open", "state_reason": null, "closed_at": null, "closed_by": null}, "pulls": [], "verdict": "invalid_no_work", "follow_up": null} (exit 1 — no merged pull and no follow-up on record; a completion carrying this record would be rejected) ``` + +## fleet queue reprioritize + +```text +usage: repo-queue reprioritize [--reason ] [--worker ] +``` + +| Flag | Argument | Default | Meaning | +| ---------------------- | --------------- | -------- | ---------------------------------------------------------------------------------------------------------- | +| `` (positional) | task id | required | The queued task whose priority changes. | +| `` (positional) | priority value | required | A number, or a category name the validator maps to one (`validate::resolve_priority`). Missing or unresolvable → exit 2. | +| `--reason` | text | unset | Why the priority changed; recorded with the change. | +| `--worker` | worker id | the authenticated caller identity | The acting worker. The actor is the authenticated caller identity presented over the broker's token channel; no free-form actor string is accepted. | + +**Behaviour.** Calls the broker's `POST /reprioritize`; the broker +applies the new priority in the Turso queue store and syncs the task's +GitHub category to match. Prints the served task row as JSON. Landed in +#14100 (PR #14203). Note: the verb is a client/broker verb — it is not +in the registry's subcommand inventory, so domain help does not list it +(situation at 2026-11-24). + +Exit codes: 0 success · 2 usage (including a missing or unresolvable +priority). diff --git a/pkgs/id/book/concepts/capabilities.md b/pkgs/id/book/concepts/capabilities.md index 52de18f54f..aafdf0de1e 100644 --- a/pkgs/id/book/concepts/capabilities.md +++ b/pkgs/id/book/concepts/capabilities.md @@ -4,7 +4,7 @@ A guest program holds no ambient authority. Every effect it can cause is a named capability, resolved by a provider on the host side (or, for `client.` capabilities, on the client side), and allowed only when three tests pass: the capability exists in the catalog, the world holds a grant for it, and the grant fits inside the ceilings that bind the world. A request that fails any test returns a refusal event to the guest. The guest learns of the refusal through the same `update` path as a success; see [Worlds and the Roc guest runtime](worlds.md). -The catalog, limits and manifest live in the crate `id-caps` (capability catalog, execution limits and world manifest, split step 1, #4403). Its 18 public modules include `world_caps` (the catalog), `world_limits`, `world_manifest`, `world_scopes`, `cap_baseline`, `cap_class`, `cap_diff`, `used_caps`, `declaration`, `agent_delegation`, the four Roc library gate modules (`library_manifest`, `library_resolution`, `library_gate`, `library_attach`) and the MCP pair (`mcp_bridge`, `mcp_policy`). Disagreement LIB-14: the `id-caps` lib.rs doc still describes only the original three moved modules. The module list in this chapter follows the code. +The catalog, limits and manifest live in the crate `id-caps` (capability catalog, execution limits and world manifest, split step 1, #4403). Its 22 public modules include `world_caps` (the catalog), `world_limits`, `world_manifest`, `world_scopes`, `cap_baseline`, `cap_class`, `cap_diff`, `used_caps`, `declaration`, `agent_delegation`, the four Roc library gate modules (`library_manifest`, `library_resolution`, `library_gate`, `library_attach`) and the MCP pair (`mcp_bridge`, `mcp_policy`), plus the November additions `account_quota`, `agent_quota_ledger`, `cap_notice` and `role_config`. Disagreement LIB-14: the `id-caps` lib.rs doc still describes only the original three moved modules. The module list in this chapter follows the code. ## The catalog diff --git a/pkgs/id/book/library/crates.md b/pkgs/id/book/library/crates.md index 12c1b7436c..dd9ef5ad59 100644 --- a/pkgs/id/book/library/crates.md +++ b/pkgs/id/book/library/crates.md @@ -26,7 +26,7 @@ Production `[dependencies]` edges only; dev-dependencies are named where they ma **`id-core` — 58 public modules.** Purpose: foundation leaf modules (Phase 1 of the split, #3447); everything depends on these modules and they depend on almost nothing. Key types and functions: the constants `KEY_FILE = ".iroh-key"`, `CLIENT_KEY_FILE = ".iroh-key-client"`, `SERVE_LOCK = ".iroh-serve.lock"`; `discovery` (`PeerDiscovery`, `PeerInfo`, `PeerAnnouncement`); `tuple`, `canonical_cbor`, `frames` (`MAX_FRAME_BYTES`), `membership`, `holders`, `signed_envelope`, and the `graph` record model. Features: `default = ["world", "sandbox"]`, plus `web`, `test-utils`, and `test-provider`. Dependents: all ten production consumers in the workspace. Full treatment: [The data crates](data-crates.md). -**`id-caps` — 18 public modules.** Purpose: the capability catalog, execution limits, and the declarative world manifest (split step 1, #4403). Key types and functions: the provider catalog in `world_caps` (entries include `time.now`, `chat.say`, `kv.get`, `blob.put`, `http.fetch`); `world_limits` (`RuntimeLimits`); `agent_delegation` (`AgentId`, `Role`, `Delegation`, `JoinGrant`, `verify_join`); the Roc library-import gate family (`library_manifest`, `library_resolution`, `library_gate`, `library_attach`); and `mcp_bridge` / `mcp_policy`. Features: `default = ["sandbox"]`, plus the test-only `test-provider`. Dependents: the facade, `id-cli`, `id-directory`, `id-web`, and `id-worlds`. Full treatment: [Worlds and capabilities as a library](worlds-and-caps.md). +**`id-caps` — 22 public modules.** Purpose: the capability catalog, execution limits, and the declarative world manifest (split step 1, #4403). Key types and functions: the provider catalog in `world_caps` (entries include `time.now`, `chat.say`, `kv.get`, `blob.put`, `http.fetch`); `world_limits` (`RuntimeLimits`); `agent_delegation` (`AgentId`, `Role`, `Delegation`, `JoinGrant`, `verify_join`); the Roc library-import gate family (`library_manifest`, `library_resolution`, `library_gate`, `library_attach`); and `mcp_bridge` / `mcp_policy`. The November additions are `account_quota` (per-account quota policy and fuel-rate ledger, F12.10), `agent_quota_ledger` (the per-(agent, world) quota ledger core, #8301), `cap_notice` (capability-change notices, #12921) and `role_config` (role definitions as first-class versioned world config, #8299). Features: `default = ["sandbox"]`, plus the test-only `test-provider`. Dependents: the facade, `id-cli`, `id-directory`, `id-web`, and `id-worlds`. Full treatment: [Worlds and capabilities as a library](worlds-and-caps.md). **`id-store` — 26 public modules.** Purpose: the store layer — store traits, blob store, event headers, documents, tags, and search (split step 2a, #4405). Key types and functions: `store::{StoreType, open_store, load_or_create_keypair}` with `STORE_PATH = ".iroh-store"`; `chain::{ChainExt, Event, sign}`; `tags`, `tag_index`, and `tag_claims`; `documents::{DocumentRef, DOCUMENT_KIND}`; and `search`. Features: none beyond `default = []`. Dependents: the facade, `id-cli`, `id-events`, `id-groups`, `id-sync`, `id-web`, and `id-worlds`. Full treatment: [The data crates](data-crates.md). @@ -40,17 +40,17 @@ Production `[dependencies]` edges only; dev-dependencies are named where they ma **`id-worlds` — 31 public modules.** Purpose: the world runtime, sessions, sandbox, and cross-world authority (split step 5, #4408); at 75 `.rs` files it is the largest crate in the workspace. Key types and functions: `sandbox::{Sandbox, WorldInstance, GuestCall, CallStats, CallMetrics}`; `world::{WorldCore, WorldHandle}`; `shell_contract`; `program_bundle`; `guest_burn`; and `account_charge::{WorldChargeConfig, WorldAccountRegistry, ChargeMode}`. Features: `default = []`, plus `sandbox` (adds wasmtime), `ssh`, and `test-utils`. Dependents: the facade, `id-cli`, and `id-web` in production; both shells dev-depend on it. Full treatment: [Worlds and capabilities as a library](worlds-and-caps.md). -**`id-web` — 2 public modules.** Purpose: the web layer — HTTP and WebSocket server, routes, templates, and markdown (split step 6c, #4409). Only `gallery` and `world_ws` are declared `pub mod`; the rest of the surface is private modules behind curated re-exports. Key types and functions: `create_router`, `create_router_for_app`, `create_program_router`, `WebInterface`, `WebMode`, `WebSecurity`, `SeitanState`, and `PublicationMounts`. Features: `default = []`, plus `sandbox`. Dependents: the facade (optional, under the facade `web` feature, re-exported as `id::web`) and `id-cli` (optional, under its `web` feature). +**`id-web` — 3 public modules.** Purpose: the web layer — HTTP and WebSocket server, routes, templates, and markdown (split step 6c, #4409). Only `gallery`, `world_ws` and `wss_https` (the WebSocket/WSS + HTTPS fallback adapter, #8215) are declared `pub mod`; the rest of the surface is private modules behind curated re-exports. Key types and functions: `create_router`, `create_router_for_app`, `create_program_router`, `WebInterface`, `WebMode`, `WebSecurity`, `SeitanState`, and `PublicationMounts`. Features: `default = []`, plus `sandbox`. Dependents: the facade (optional, under the facade `web` feature, re-exported as `id::web`) and `id-cli` (optional, under its `web` feature). **`id-cli` — 19 public modules plus 3 bridge modules.** Purpose: the command-line application layer (split step 7b, #4411): `cli` (argument parsing), `commands` (subcommand implementations), `repl`, and `server_config`, plus shared support modules. Key types and functions: `Cli`, `Command`, `KeyCommand`, `KeysetCommand`, `TagCommand`; the `cmd_*` functions; option structs `ServeOptions`, `ServeInfo`, `PeekOptions`, `PeersOptions`, `SearchOptions`, `ReplContext`; `MetaClient` (the local-versus-remote chooser, defined at `crates/id-cli/src/meta_client.rs:31`); `MetaProtocol`, `MetaRequest`, `MetaResponse`, `FindMatch`, `TaggedMatch`, `MatchKind`; and `run_repl`. Features: `default = ["sandbox", "world"]`, plus `world`, `sandbox`, `ssh`, `web`, and `dht`. Dependents: the facade only. The command surface itself is documented in [The id command line](../reference/cli.md). -**`id-config` — 1 public module.** Purpose: the versioned configuration contract and its hard invariants (slice 9111-01, #10178). Public modules: `resolve` only, re-exporting `resolve::{LayerOverride, ResolutionInput, ResolveError, ResolvedLayers, resolve}`; everything else is defined at the crate root. Key types and functions: `CONFIG_SCHEMA_VERSION = 1`; `FIXED_GATE_IDS` (the 5 ids `signature-verification`, `validation`, `replay-protection`, `authorization`, `tenant-scope`); `ConfigDocument` (`parse`, `validate`, `resolve`); `ResolvedConfig` (`canonical_json`); `ConfigError` (12 variants); `Mode`, `SyncScope`, `Tier`, `Ceilings`, and `field_class`. The doctrine in the crate header is literal: the five fixed admission gates can never be disabled by configuration, ceilings only narrow, validation is fail-closed, and resolution is deterministic. Features: none. Dependents: none in production; the facade dev-depends on it only. One further disagreement: `crates/id-config/src/negotiation.rs` exists on disk but is never declared in the crate's `lib.rs`, so the published crate does not contain it; its only compilation is by path from the facade's `tests/config_downgrade.rs` (disagreement LIB-5). The configuration surface is documented in [Configuration and environment](../reference/configuration.md). +**`id-config` — 2 public modules.** Purpose: the versioned configuration contract and its hard invariants (slice 9111-01, #10178). Public modules: `resolve` (re-exporting `resolve::{LayerOverride, ResolutionInput, ResolveError, ResolvedLayers, resolve}`) and `rollout` (staged config activation and rollback by revision, slice 9111-05, #10217); everything else is defined at the crate root. Key types and functions: `CONFIG_SCHEMA_VERSION = 1`; `FIXED_GATE_IDS` (the 5 ids `signature-verification`, `validation`, `replay-protection`, `authorization`, `tenant-scope`); `ConfigDocument` (`parse`, `validate`, `resolve`); `ResolvedConfig` (`canonical_json`); `ConfigError` (12 variants); `Mode`, `SyncScope`, `Tier`, `Ceilings`, and `field_class`. The doctrine in the crate header is literal: the five fixed admission gates can never be disabled by configuration, ceilings only narrow, validation is fail-closed, and resolution is deterministic. Features: none. Dependents: none in production; the facade dev-depends on it only. One further disagreement: `crates/id-config/src/negotiation.rs` exists on disk but is never declared in the crate's `lib.rs`, so the published crate does not contain it; its only compilation is by path from the facade's `tests/config_downgrade.rs` (disagreement LIB-5). The configuration surface is documented in [Configuration and environment](../reference/configuration.md). **`id-currency-registry` — 5 public modules.** Purpose: the currency control-plane registry (F1 of #2062, #2317; account factory F2, #2318): the Postgres schema and migrations for `ledger_allocation`, `currency`, `currency_issuer`, and `account`, plus the monotonic, never-recycled ledger-`u32` allocator. Public modules: `allocator`, `factory`, `grants`, `registry`, `store`. Key types and functions: `Allocator` and `AllocError`; `Registry`, `RegistryError`, `CurrencyRecord`, `CurrencyStatus`, `SupplyPolicy`; `Factory`, `FactoryError`, `CurrencyAccounts`, `AccountCluster`, `AccountSpec`, `AccountKind`, `CreateOutcome`; the `Store` trait with `InMemoryStore`; and the `MIGRATION_0001_UP` / `MIGRATION_0001_DOWN` constants. The ratified split is `0x00000001..=0x000FFFFF` for tenancy and system, `0x00100000..` for currencies; ledger 0 is never allocated. Features: `default = []` only. Dependents: the facade only, which composes it in `pkgs/id/src/currency/gateway_poc.rs`. **`id-render` — 10 public modules.** Purpose: the rendering pipeline compiler core (#7918): parse and vocabulary validation of semantic markup, then a five-stage pipeline over one target-neutral intermediate representation — parse, validate, compose, lower per target, emit artefact plus coverage report. Public modules: `assertion_vocabulary`, `compose`, `gui_table`, `lower`, `lower_gui`, `lower_native`, `native_table`, `tooling`, `vocabulary`, `web_table`; `parse` and `validate` are private modules whose functions are wrapped at the crate root. Key types and functions: `Document`, `Element`, `Node`, `Span`, `BuildError`; `parse`, `validate`, `parse_and_validate`, `compose_document`, `lower_document`, `lower_document_native`, `lower_document_gui`. Features: none. Dependents: none; it is a default member with six integration test files. -**`id-import-notion` — 0 public modules.** Purpose: Notion importer manifest and inventory primitives (slice 1, #8419): durable inventory and resume primitives, with the API transport injected by callers. The whole crate is one `src/lib.rs` of 1,241 lines. Key types and functions: `NOTION_API_VERSION`; the `NotionApi` transport trait; `crawl_inventory`; `Inventory`, `InventoryObject`, `Stage`, `Outcome`; and `Manifest` (`new`, `verify_resume_identity`, `record_progress`, `validate_inventory_reconciles`, `save_atomic`, `load`). A bearer token is never accepted by or serialized from `Manifest`. Features: none. Dependents: none; it is a default member with its own integration test, `crates/id-import-notion/tests/recorded_inventory.rs`. +**`id-import-notion` — 4 public modules.** Purpose: the Notion importer (slice 1, #8419, and the slices that followed): manifest and inventory primitives, page/block content, database rows, and comments, with the API transport injected by callers. Public modules: `comments`, `content`, `databases`, `rows`, over a `src/lib.rs` of 1,393 lines. Key types and functions: `NOTION_API_VERSION`; the `NotionApi` transport trait; `crawl_inventory`; `Inventory`, `InventoryObject`, `Stage`, `Outcome`; and `Manifest` (`new`, `verify_resume_identity`, `record_progress`, `validate_inventory_reconciles`, `save_atomic`, `load`). A bearer token is never accepted by or serialized from `Manifest`. Features: none. Dependents: none; it is a default member with its own integration tests (`recorded_inventory.rs`, `recorded_content.rs`, `recorded_databases.rs`, `recorded_rows.rs`, `recorded_comments.rs`). **`id-native-shell` — 7 public modules.** Purpose: the native reference shell (F13.6, design #788): a Bevy desktop client speaking the F13.1 shell contract. Public modules: `audio`, `events`, `form`, `providers`, `render`, `scene`, `widget`, plus a private `session` module whose surface is re-exported at the crate root. Features: none. Production dependency: the facade with `features = ["world"]`, plus Bevy 0.19 and iroh. Dependents: none; not a default member. Full treatment: [Guest apps and shells as consumers](guests-and-shells.md). diff --git a/pkgs/id/book/library/worlds-and-caps.md b/pkgs/id/book/library/worlds-and-caps.md index 9307f4bbcf..b91d55f479 100644 --- a/pkgs/id/book/library/worlds-and-caps.md +++ b/pkgs/id/book/library/worlds-and-caps.md @@ -47,7 +47,7 @@ instance.restore(&genesis_bytes)?; Purpose (from its `Cargo.toml`): "Capability catalog, execution limits and world manifest of the id crate (pkgs/id crate split step 1, #4403)". Its `lib.rs` describes the crate as the capability data model of `id`: the capability catalog, execution limits, and the declarative world manifest. It depends on `id-core` for `id_core::json_unique` only. -The `lib.rs` doc header is stale in the same pattern as the facade's: it describes only the original three moved modules — `world_caps` and `world_limits` from `id-core`, `world_manifest` from the facade package. The crate publishes 18 public modules, not three (disagreement LIB-14). +The `lib.rs` doc header is stale in the same pattern as the facade's: it describes only the original three moved modules — `world_caps` and `world_limits` from `id-core`, `world_manifest` from the facade package. The crate publishes 22 public modules, not three (disagreement LIB-14). ### Public modules diff --git a/pkgs/id/book/reference/hosted-worker.md b/pkgs/id/book/reference/hosted-worker.md index 2e0236e2c8..aeea966f3b 100644 --- a/pkgs/id/book/reference/hosted-worker.md +++ b/pkgs/id/book/reference/hosted-worker.md @@ -133,6 +133,7 @@ These modules exist in the package but are not routed by `worker.ts`: | `src/provisioning.ts`, `src/provisioning-surface.ts` | The provisioning surface. | | `src/tenant-ops.ts` | `TenantOpsDO`, the tenancy provisioning state machine (see TenantOpsDO routes above). Exported and bound, but driven by the tenancy Worker, not the front door. | | `src/account-directory.ts` | Account directory. | +| `src/identity-link.ts` | SSO relying-party identity links (H2 of #9086, #14260): the link/unlink API over the tenancy `identity_link` table (migration `0002_identity_link.sql`). One row per linked login door, keyed by the provider's subject at that door; email never appears in the table. | | `src/admission-gate.ts` | Admission gate. | | `src/export.ts` | Export support behind `/v1/bridge/export`. | | `src/currency/{gateway,ledger,relay,crypto}.ts` | A currency gateway proof of concept. Its own documentation states it is "not the permanent currency service": an in-process ledger stub modelled on TigerBeetle, gateway-signed balance snapshots, and a UserDO relay that reconciles by request-ID lookup. |