Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions pkgs/id/book/reference/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ ID has five distinct configuration surfaces, and they are not interchangeable:

| Surface | Form | Who reads it |
| -------------------------------- | --------------------------------------- | -------------------------------------------------- |
| Environment variables | Process environment, 71 named variables | The `id` binary, its crates, benches and tests |
| Environment variables | Process environment, 77 named variables | The `id` binary, its crates, benches and tests |
| The `id-config` v1 document | JSON, parsed in memory | The `id-config` crate; no file location, no loader |
| The server-config file | TOML, operator-chosen path | `id serve --server-config <path>` |
| Embedded `defaults.json` | JSON, compiled into the binary | Serve/peers discovery and web bindings |
| `[interfaces.web]` in `app.toml` | TOML, per app | The web layer, for one app's route and socket |

## Environment variables: the complete table

72 named variables are read across the tree: **33 production/build**, **21 bench**, **18 test**. The production set is given in full below, with read site and the behaviour when the variable is unset. Bench and test variables are summarised by family. A further six hosted-Worker bindings, one dynamic credential scheme, and six variables the process _writes_ follow the tables; none of those are counted in the 72.
77 named variables are read across the tree: **33 production/build**, **21 bench**, **23 test**. The production set is given in full below, with read site and the behaviour when the variable is unset. Bench and test variables are summarised by family. A further six hosted-Worker bindings, one dynamic credential scheme, and six variables the process _writes_ follow the tables; none of those are counted in the 77.

### Production and build variables (33)

Expand Down Expand Up @@ -67,7 +67,7 @@ All are read only by `benches/world_bench.rs`.
| Many-worlds | `ID_BENCH_MW_IDLE_WORLDS` (`1000`), `ID_BENCH_MW_ACTIVE_WORLDS` (`100`), `ID_BENCH_MW_EVENTS_PER_SECOND` (`20`), `ID_BENCH_MW_DURATION_SECS` (`10`), `ID_BENCH_MW_JOURNAL_ACK_MODE` (`sync` default; `batched`, `async` — read in `src/bench_ack_mode.rs`, used only by the bench) | Parsed by one helper with the stated literal defaults. |
| Stress | `ID_BENCH_STRESS_TIER`, `ID_BENCH_STRESS_SEED`, `ID_BENCH_STRESS_OUT`, `ID_BENCH_STRESS_MEM_PART` (`all`), `ID_BENCH_STRESS_IDLE_WORLDS`, `ID_BENCH_STRESS_ACTIVE_WORLDS`, `ID_BENCH_STRESS_ACTIVE_EVENTS`, `ID_BENCH_STRESS_HOT_EVENTS`, `ID_BENCH_STRESS_HOT_MEMBERS` | Parsed by one helper with a per-tier default. |

### Test variables (18), by family
### Test variables (23), by family

Read only in tests, test helpers, or test configuration. None affects a production run.

Expand All @@ -82,12 +82,16 @@ Read only in tests, test helpers, or test configuration. None affects a producti
| `TERRITORY_WASM` | `id-worlds` sandbox test; unset means the test module is not loaded. |
| `ORBIT_WASM` | `id-worlds` Orbit Arcade host test (ignored by default); it names the built `rust-orbit` module. |
| `COLONY_WASM` | `id-worlds` Colony host test (ignored by default); it names the built `rust-colony` module. |
| `ID_PARTITION_RELATIVE_TEST` | `id-worlds` world-store partition-fence test; set by the test itself on its re-exec'd child process, which runs the bare-relative-path leg and returns. |
| `ID_IDENTITY_PROBE_PATH` | `id-web` identity tests; unset means the probe is not run. |
| `WORKER_POC_REFERENCE_OUT` | Worker PoC reference test; unset means the reference JSONL is not written. |
| `UPDATE_GOLDEN` | Shared-worlds spike golden test (`tests/shared_worlds_spike.rs`); set (any value) means the golden fixture is re-blessed instead of compared. |
| `PROPTEST_CASES`, `PROPTEST_RNG_SEED` | Property tests; unset means the proptest default case count and a random seed. |
| `ID_BINARY`, `ID_TEST_EXAMPLES_DIR`, `ID_TEST_APPS_DIR` | CLI integration tests; unset means the built binary path and the in-tree examples/apps directories. |
| `ID_TUPLE_FUZZ_CASES` | Tuple property tests; unset means the default case count. |
| `ID_E2E_WORLD_ADMIN_TOKEN` | Playwright config (TypeScript); unset means the config-file fallback token. |
| `ID_E2E_BIN` | Playwright specs (`e2e/tests/`); unset means `../target/debug/id`. |
| `CHROMIUM_BIN` | IndexedDB conformance test (`browser/test/`, TypeScript); the first Chromium candidate tried — unset means `chromium`, `chromium-browser`, `google-chrome`, `google-chrome-stable` on `PATH`, and none found is a hard failure. |
| `UPDATE_EXPORT_FIXTURE` | Hosted-worker export test (TypeScript); unset means the fixture is not regenerated. |
| Playwright runner variables: `TEST_PORT` (`4173`), `NIX_BUILD_TOP`, `PLAYWRIGHT_VM_TEST`, `CHROMIUM_BASE_URL`, `FIREFOX_BASE_URL`, `CI` | Read by `e2e/playwright.config.ts`, as coded there. |

Expand Down