Skip to content

docs(id): the id book — 67 chapters at /code/id/ (#13332) - #13358

Merged
dezren39 merged 3 commits into
mainfrom
id-book-13332
Nov 23, 2026
Merged

dezren39 merged 3 commits into
mainfrom
id-book-13332

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

The id book (#13332)

A complete documentation book for the ID platform, built the house way (bookwright): surveyed from the shipped code first, written against the survey, coverage proven mechanically. It joins the existing GitHub Pages site at /code/id/ in the same combined deploy as the mcpx, fleet and atlas books — no standalone deploy.

67 chapters, ~126,700 words, under pkgs/id/book/:

  • Getting started (3) and concepts (12): identity, worlds, objects, sync, capabilities, residency, currency, events, programs, the hosted edition.
  • Reference (16): the full CLI in five chapters (113 leaf commands), the REPL (20 command groups), the native shell, the web UI (54 paths), WebSockets, the hosted Worker, the MCP bridge (8 tools, translator-only — stated plainly), configuration (66 env names, both config files), data stores and schemas.
  • Library (5): the 17 packages / facade, events-sync-directory, the Plaza ABI and Roc guests (9 shipped apps), rendering and the native shell.
  • Tutorials (4), design (14) — including the roadmap chapter whose index accounts for all 408 ID design records exactly once (set-diffed against the survey inventory) — development (6) and operations (6).

Honesty notes the surveys established and the book states plainly: the hosted Worker is a local-only scaffold that fails closed (not deployed); there is no MCP server or mcpx wiring for ID; the #3404 migration-control core landed 2026-11-23 (PR #13347) as library code with no surface wired yet.

Wiring

  • pkgs/id/docs.nix + pkgs/id/book.toml; idDocs/id-docs in lib/default.nix (mirrors the atlas wiring).
  • mcpx-docs.yml: builds the book with siteUrl /code/id/ and stages it under site/id in the single Pages deploy.
  • id-docs.yml: build-only check, mirroring atlas-docs.yml.
  • pkgs/id/README.md: a "The book" section and the DOC-01 operator/contributor docs-sync contract naming the book.

Verification

  • nix build .#id-docs and the deploy-variant override build (siteUrl = "/code/id/"): both succeed with zero mdBook warnings; 70 HTML pages emitted.
  • Mechanical audits: 67 SUMMARY entries = 67 files; every chapter H1 equals its SUMMARY title; all 438 internal links resolve and their text equals the target chapter's title; leaf commands, flags, ID_* env names, crates and Roc apps set-diffed against the surveys (remaining diffs hand-checked: list-form gallery verbs, one stale doc route spelling the book deliberately omits); design-record index 408/408 set-identical to the survey inventory.

Survey disagreements (56 items across CLI help, crate docs, web docs and the design archive) are filed as grouped issues after this merges, following the Atlas pattern.

Closes #13332.

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-23T14:12:04Z",
    "session_id": null,
    "lane": null,
    "host": "amd",
    "worktree": "/home/user/wt-id-book",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/user/wt-id-book",
      "repo": "developing-today/code",
      "branch": "id-book-13332",
      "sha": "08c0f9bbd00446a32b63571141860d4f0728eebc"
    },
    "auth_subject": "agent-next-21-local",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Get evidence
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

A complete mdBook for the ID platform, surveyed from the shipped code: getting-started, concepts, the full CLI/REPL/web/MCP reference, the library (crates, Plaza/Roc guests, native shell), tutorials, the design chapters with the 408-record index, development and operations. Built by pkgs/id/docs.nix as the id-docs flake package; zero-warning build.
mcpx-docs.yml builds the id book with siteUrl /code/id/ and stages it under site/id in the same single deploy as the mcpx, fleet and atlas books. id-docs.yml is the build-only check, mirroring atlas-docs.yml.
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 53 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ab9dde34-6953-4773-9dca-122053919e38
Commits

Reviewing files that changed from the base of the PR and between c83e441 and 08c0f9b.

Files selected for processing: 74

  • .github/workflows/id-docs.yml
  • .github/workflows/mcpx-docs.yml
  • lib/default.nix
  • pkgs/id/README.md
  • pkgs/id/book.toml
  • pkgs/id/book/SUMMARY.md
  • pkgs/id/book/concepts/architecture.md
  • pkgs/id/book/concepts/capabilities.md
  • pkgs/id/book/concepts/currency.md
  • pkgs/id/book/concepts/events.md
  • pkgs/id/book/concepts/file-core.md
  • pkgs/id/book/concepts/hosted.md
  • pkgs/id/book/concepts/identity-directory.md
  • pkgs/id/book/concepts/mcp-and-agents.md
  • pkgs/id/book/concepts/residency.md
  • pkgs/id/book/concepts/shells.md
  • pkgs/id/book/concepts/sync.md
  • pkgs/id/book/concepts/worlds.md
  • pkgs/id/book/design/agents-mcp.md
  • pkgs/id/book/design/capabilities-providers.md
  • pkgs/id/book/design/currency-metering.md
  • pkgs/id/book/design/first-apps.md
  • pkgs/id/book/design/foundations.md
  • pkgs/id/book/design/hosted-editions.md
  • pkgs/id/book/design/identity-directory-groups.md
  • pkgs/id/book/design/knowledge-layer.md
  • pkgs/id/book/design/residency-jurisdiction.md
  • pkgs/id/book/design/roadmap-and-issue-map.md
  • pkgs/id/book/design/scale-hardening.md
  • pkgs/id/book/design/shells-surfaces.md
  • pkgs/id/book/design/sync-fileops.md
  • pkgs/id/book/design/worlds-runtime.md
  • pkgs/id/book/development/add-a-guest.md
  • pkgs/id/book/development/add-a-verb.md
  • pkgs/id/book/development/building.md
  • pkgs/id/book/development/keeping-this-book-current.md
  • pkgs/id/book/development/layout.md
  • pkgs/id/book/development/release-and-rollout.md
  • pkgs/id/book/getting-started/installation.md
  • pkgs/id/book/getting-started/quickstart.md
  • pkgs/id/book/getting-started/shape.md
  • pkgs/id/book/index.md
  • pkgs/id/book/library/crates.md
  • pkgs/id/book/library/data-crates.md
  • pkgs/id/book/library/facade.md
  • pkgs/id/book/library/guests-and-shells.md
  • pkgs/id/book/library/worlds-and-caps.md
  • pkgs/id/book/operations/backup-and-restore.md
  • pkgs/id/book/operations/deploying-this-book.md
  • pkgs/id/book/operations/faq.md
  • pkgs/id/book/operations/glossary.md
  • pkgs/id/book/operations/services.md
  • pkgs/id/book/operations/troubleshooting.md
  • pkgs/id/book/reference/cli-files.md
  • pkgs/id/book/reference/cli-gallery-walk.md
  • pkgs/id/book/reference/cli-groups-identity.md
  • pkgs/id/book/reference/cli-serve.md
  • pkgs/id/book/reference/cli-tags.md
  • pkgs/id/book/reference/cli-worlds-admin.md
  • pkgs/id/book/reference/cli-worlds.md
  • pkgs/id/book/reference/cli.md
  • pkgs/id/book/reference/configuration.md
  • pkgs/id/book/reference/data-stores.md
  • pkgs/id/book/reference/hosted-worker.md
  • pkgs/id/book/reference/mcp.md
  • pkgs/id/book/reference/native-shell.md
  • pkgs/id/book/reference/repl.md
  • pkgs/id/book/reference/web-ui.md
  • pkgs/id/book/reference/websockets.md
  • pkgs/id/book/tutorials/edit-together.md
  • pkgs/id/book/tutorials/join-a-world.md
  • pkgs/id/book/tutorials/organise-with-tags.md
  • pkgs/id/book/tutorials/share-a-file.md
  • pkgs/id/docs.nix
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T14:18:09.842777Z 08c0f9b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39
dezren39 merged commit 0d91923 into main Nov 23, 2026
2 checks passed
@dezren39
dezren39 deleted the id-book-13332 branch November 23, 2026 14:13

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 08c0f9bbd0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +20 to +21
push:
branches: [main]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Run the build-only docs workflow nightly instead of on push

This new build-only workflow runs on every push to main, contrary to .github/ci-policy.md's nightly-only CI policy. The policy explicitly reserves push triggers for deployments, and this workflow explicitly never deploys; publication already happens in mcpx-docs.yml. Adding another unconditional per-commit build recreates the CI queue pressure that motivated the policy. Use the nightly schedule plus manual dispatch instead.

AGENTS.md reference: AGENTS.md:L29-L30

Useful? React with 👍 / 👎.

Comment on lines +12 to +13
printf 'hello from node a\n' > notes.txt
id --new node-a put notes.txt

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Resolve input files before switching into the new data directory

Following this example from a fresh directory fails immediately: notes.txt is created in the caller's directory, but src/main.rs changes into .iroh/node-a/ before dispatching the command, and cmd_put_local_file reads the relative path unchanged. Consequently, put cannot find the file and the rest of the tutorial has no stored content. Pass an absolute input path or create the file inside the node directory. Apply the same correction to Step 5's second.txt and the initial put example in organise-with-tags.md.

Useful? React with 👍 / 👎.

id --data-dir .iroh/node-b cat notes.txt
```

The first command prints `hello from node a`. The list now shows `notes.txt` in node B's own store: a successful `get` stores the blob locally, it does not stream it on every read. `id cat` is `get` forced to stdout, and prints the same line from node B's store.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Explicitly import the downloaded file before checking the local store

Even after correcting the input paths, the advertised local-store checks fail. cmd_get_one_remote in crates/id-cli/src/commands/get.rs calls open_store(true), which creates an ephemeral MemStore, exports the downloaded bytes to the output file, and shuts that store down without registering a local name. Therefore node B's list remains empty and its subsequent cat notes.txt fails. Explain that remote get exports a file, and add an explicit local put before promising persistent storage or offline named reads.

Useful? React with 👍 / 👎.

```sh
printf 'second file\n' > second.txt
id --data-dir .iroh/node-a put second.txt
id send `<NODE_A_ID>` second.txt --to `<NODE_B_ID>`

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Start and authorize the destination server before sending

Step 5 cannot perform the promised transfer even after the preceding file-path problems are fixed: the tutorial starts serve only for node A, while every node B command is a short-lived client invocation. The send implementation documents its contract as copying “from one running server to another,” and id-sync's transfer path connects to B's metadata protocol. Start B's server with permission for A to write, and run the request using an identity authorized by A; merely printing B's node ID does not make it a reachable transfer destination.

Useful? React with 👍 / 👎.

Comment on lines +231 to +233
[[groups.members]]
user = "alice"
role = "admin"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Make the worked server configuration pass startup validation

An operator copying this worked configuration cannot start the server: ServerConfig::parse in crates/id-cli/src/server_config/parse.rs rejects a group whose members explicitly include its creator with CreatorListed, because the creator already becomes Admin automatically. After removing this redundant member, the example still fails with EmptyCreate, since its [create] table specifies only min_role without any allowed users or groups. Remove the creator's member entry and name an allowed group such as toy-club in [create].groups so the example actually provisions the advertised configuration.

Useful? React with 👍 / 👎.


```sh
id --data-dir .iroh/library tag search kind:list
id --data-dir .iroh/library tag search kind:list topic:books

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Use a supported single-tag conjunction in the search tutorial

With the tags created in Step 2, this command returns (no matching tags), not the promised reading.txt. TagStore::search_by_query in crates/id-store/src/tags.rs intersects complete (subject, key, value) tuples, so every term must match the same tag; separate kind:list and topic:books tags on one file cannot satisfy this conjunction. The new reference/cli-tags.md already explains this limitation correctly. Replace the example with a supported conjunction, such as topic:books reading, and describe the single-tag matching rule rather than promising cross-tag filtering.

Useful? React with 👍 / 👎.


| Name | Effect |
|---|---|
| `ID_SHELL_FILE_READ_ROOT` | When set, configures an additional restriction on the native shell's file-read root. When unset, the file-read root is not additionally restricted or configured by environment. |

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Describe the file-read variable as an opt-in permission grant

A user setting this variable to add the advertised restriction instead enables access that is disabled by default. In crates/id-native-shell/src/main.rs, the adapter starts without grants or executors; setting ID_SHELL_FILE_READ_ROOT calls grant_file_read(..., true), granting the connected world client.file.read under that directory and acknowledging that returned bytes become durable world-journal data visible to the host/operator and journal readers. Document this enabling grant and disclosure explicitly, and state that leaving the variable unset disables file reads. Correct the matching descriptions in reference/configuration.md and concepts/shells.md as well.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

audit:complete PR fully implemented spawning issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Book: complete documentation book for the ID platform (pkgs/id), published at /code/id/

1 participant