Title: pkgs/id: .id-worlds/
Open Graph Title: pkgs/id: .id-worlds/
X Title: pkgs/id: .id-worlds/
Description: Finding pkgs/id durable worlds live in a CWD-relative .id-worlds/
Open Graph Description: Finding pkgs/id durable worlds live in a CWD-relative .id-worlds/
X Description: Finding pkgs/id durable worlds live in a CWD-relative .id-worlds/<NAME>/ directory that is gitignored nowhere. Running id serve with a world from inside a repo checkout creates .id-worlds/<...
Opengraph URL: https://github.com/developing-today/code/issues/439
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"pkgs/id: .id-worlds/\u003cname>/ world directory gitignored nowhere — journal, directory, petnames, outbox and modules one git add -A from commit","articleBody":"## Finding\n\n`pkgs/id` durable worlds live in a CWD-relative `.id-worlds/\u003cNAME>/` directory that is gitignored nowhere. Running `id serve` with a world from inside a repo checkout creates `.id-worlds/\u003cname>/` in the checkout, and most of its contents — the world's journal, directory, petnames, mail outbox, installed modules and records namespace — show up in `git status`, one `git add -A` from being committed. This is the same failure #420 and #432 fixed for the identity DB and for `events.redb`/`groups.jsonl`; the world directory as a whole was missed, and only two of its files happen to be covered by those basename fixes.\n\n## Evidence (verified on current main `d3bba2d3`)\n\n- `pkgs/id/src/commands/serve.rs:408,416-418`: `pub const WORLDS_DIR: &str = \".id-worlds\";` and `world_dir(name)` returns `PathBuf::from(WORLDS_DIR).join(name)` — relative, no data-dir prefix of its own.\n- `pkgs/id/src/main.rs:82-87` (comment + code): all data paths are CWD-relative; the process only changes directory when `--data-dir` or `--new` is given. A plain `id serve` from a checkout therefore writes `.id-worlds/` into the checkout. `pkgs/id/src/cli.rs:387` documents: \"The world's files live in `.id-worlds/\u003cNAME>/`.\"\n- World directory contents: `pkgs/id/src/world_store.rs:321-346` opens `journal.jsonl`, `directory.jsonl`, `petnames.jsonl`, `outbox.jsonl` and `modules/\u003cblake3>.wasm` under the world dir; `pkgs/id/src/artifact.rs:50` puts `artifacts.jsonl` beside `directory.jsonl`; `serve.rs` (~line 574) adds `records.namespace`; the event store and group log add `events.redb` / `groups.jsonl`.\n- `git check-ignore` on main `d3bba2d3` — none of these is ignored:\n - `.id-worlds/lobby/journal.jsonl` -> NOT IGNORED\n - `.id-worlds/lobby/directory.jsonl` -> NOT IGNORED\n - `.id-worlds/lobby/artifacts.jsonl` -> NOT IGNORED\n - `.id-worlds/lobby/petnames.jsonl` / `outbox.jsonl` -> NOT IGNORED\n - `.id-worlds/lobby/records.namespace` -> NOT IGNORED\n - `.id-worlds/lobby/modules/abc.wasm` -> NOT IGNORED\n - Only `events.redb` (root `.gitignore:120`) and `groups.jsonl` (`:122`) are covered, by the repo-wide basename rules from #432. Root `.gitignore:117-122` has `.iroh*`, `.identity.db`, `.identity.redb`, `events.redb`, `events.redb.tmp`, `groups.jsonl` — no `.id-worlds`.\n- Dedup: `gh search issues \"id-worlds\"` returns nothing; #420/#432 cover different files and are closed.\n\n## Why it matters\n\nA world's journal and directory are the world's durable state (inputs, installs, directory records, petnames, queued mail). Committing them by accident leaks that state into git history and bloats the repo with append-only logs and wasm modules — exactly the accident class #372/#420/#432 already had to clean up for the identity DB and event store. The partial coverage is worse than none in one way: `git status` still shows the directory, so the remaining files look deliberately tracked.\n\n## Acceptance criteria\n\n- [ ] Root `.gitignore` ignores `.id-worlds/` at any depth (mirroring the repo-wide `.iroh*` / `events.redb` entries from #420/#432), so `git check-ignore .id-worlds/\u003cany>/journal.jsonl` (and `directory.jsonl`, `artifacts.jsonl`, `petnames.jsonl`, `outbox.jsonl`, `records.namespace`, `modules/*.wasm`) succeeds.\n- [ ] No tracked file lives under a `.id-worlds/` path (verify with `git ls-files | grep id-worlds` — expected empty), so no `git rm --cached` is needed; if one exists, remove it from tracking in the same change.\n- [ ] The existing id entries (`.identity.db`, `.identity.redb`, `events.redb`, `groups.jsonl`) are unchanged.\n\nSuggested fix: add `.id-worlds/` to the root `.gitignore` id block next to `.iroh*`.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-20T20:14:01Z","url":"https://github.com/developing-today/code/issues/439"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7e04bbea-6456-9a55-90ed-29c9f73317ed |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B9A4:259026:BF4A44:F8B7C0:6B06411A |
| html-safe-nonce | 7a408fb4f028aa9ee25231cf505c2f51826bbe263711442eab8c3382e25e2796 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOUE0OjI1OTAyNjpCRjRBNDQ6RjhCN0MwOjZCMDY0MTFBIiwidmlzaXRvcl9pZCI6IjY5NTAxMDEwNTIwOTIyMDMyOTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3dfab80b28681158a82ab5f1aff349c6e4745b3859093b50ce49d3925c780a3b |
| hovercard-subject-tag | issue:5948903719 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/439/issue_layout |
| twitter:image | https://opengraph.githubassets.com/07a7ad9957c62d96fdb9c1e2c59fb1244fb6a69c9f50020dfd58c7a6c3b7a6ab/developing-today/code/issues/439 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/07a7ad9957c62d96fdb9c1e2c59fb1244fb6a69c9f50020dfd58c7a6c3b7a6ab/developing-today/code/issues/439 |
| og:image:alt | Finding pkgs/id durable worlds live in a CWD-relative .id-worlds/ |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1bff4f6bfaa96dc9c42cacf315424c24ebb548b06142ced5e3aaccb2a42dd652 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ac613d3698d3d8565651455086e1f74da07bf277 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width