Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ The package version runs on its own semver; the schema it is generated from is `

## Unreleased

## 0.155.0 (2026-11-26)

- **The schema pin is v0.34.1-dist.148** (canonical 00.34.01 unchanged). The folder format is 0.3.25, so `FORMAT_VERSION` and a new folder's `format_version` say `0.3.25`; the vendored folder check counts depth itself, the same on every Python, and refuses a `world.json` past 200 levels. The `.owworld` set holds 120 archives, nine new for the depth rule, every one read as its verdict says.
- **`date_labels` is never sent by `push`.** The MCP server on onlyworlds.com gives a date in the words of the world's calendar as `date_labels` beside the numbers, and a write that carries the key is refused (422); a body copied from it into a folder now pushes as if the key were not there.
- **Depth is counted in a file's text, before the parse** (folder format, serial 148), as the npm SDK counts it. Text this package did not write is past 200 levels when it opens an object or array deeper than 200, so each value of a repeated key counts and a file past the line is refused as nested too deep whatever else is wrong with it. Brackets inside a string are not counted, and a string left open runs to the end of the text. Before, the depth was read from the parsed value: a repeated key's plain value hid a deep one, and a file broken and deep was refused as not JSON.

## 0.154.1 (2026-11-26)

- **A calendar's era walk is linear in its eras**, as the npm SDK's is. Each era's domain looked for the next up era in a slice of the rest of the sorted list, so the walk was quadratic: one `format_step` label took 331 ms under 15,000 eras; now 101 ms, the same labels.
Expand Down
19 changes: 14 additions & 5 deletions codegen/schema-dist/MANIFEST.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@
"fixtures/owworld/fail-OW-23-share-carries-twin.owworld": "3d14536c777e1b9b53832479d4b6aee06036063f70aa590279e0afe5200cb566",
"fixtures/owworld/fail-OW-23-share-carries-unread.owworld": "3f1b2e7f7ca3e411f519e869c1ae3a8849ff2bdd7626ee28c55f09be68b205e9",
"fixtures/owworld/fail-OW-23-share-carries-untyped.owworld": "8a4ea219edac7fc018cb14d82f5457a0f5c2e77367d0b456eb33f388530adb0f",
"fixtures/owworld/fail-OW-25-world-json-too-deep.owworld": "cf8aae17d3080df240b06c89f58e84078c7fab26d6d3438fc9e16c3ab463f8a4",
"fixtures/owworld/fail-OW-3-array.owworld": "6cededb313e38bb73474890587d10cda608440030eef5ad27f487060fa638ff6",
"fixtures/owworld/fail-OW-3-blank-id.owworld": "19189cba558889eba5c5f7d5b7133668ec845d08b7dcea3cd6b26e0b027fbb0c",
"fixtures/owworld/fail-OW-3-no-id.owworld": "0c26aca58f7f89f41b5c466de544b4f0a06d52b3eee94e325f901b1df60883b6",
Expand All @@ -125,7 +126,7 @@
"fixtures/owworld/fail-OW-8-producer-meta-dropped.owworld": "4fa8e3a1f0ba92f38db1e29223ae1bd3c6df5346c34bb6b6eb1e4cf1a8d20259",
"fixtures/owworld/fail-OW-8-records-missing.owworld": "128fff91a82385acca5a23eb7dcc7605d19aac1a4349bfcb7134e3136aa69e32",
"fixtures/owworld/fail-OW-8-records-reencoded.owworld": "128261249c08c26ea19a54872c02c313d8492ca17586f295e83fb40e9126a96c",
"fixtures/owworld/generate.py": "329e386406a90cd2da11b04788e2b67722e9214dd87bf57839cd9d5b763a72b5",
"fixtures/owworld/generate.py": "e118a05b58e7c48dd4f5c75e10a2967d6206ea1df7827dff6784d559a43fa557",
"fixtures/owworld/pass-good.owworld": "11a577b054b87cc8e7d66f8070d791d413f3ab7527d4de82a9d19abbf5d1e856",
"fixtures/owworld/pass-OW-1-renamed.zip": "11a577b054b87cc8e7d66f8070d791d413f3ab7527d4de82a9d19abbf5d1e856",
"fixtures/owworld/pass-OW-10-api.owworld": "2304fcdaeb1ce7cbcc9aec2222716ba1219f347296d87d26df3e02273955fe1a",
Expand All @@ -142,6 +143,14 @@
"fixtures/owworld/pass-OW-23-share-leaves-unread-out.owworld": "11a577b054b87cc8e7d66f8070d791d413f3ab7527d4de82a9d19abbf5d1e856",
"fixtures/owworld/pass-OW-24-spatial-type-case.owworld": "51e50436e02ccd8bd2978380fb64ea5688da32ee7fc697fc7adb480ab39e5be1",
"fixtures/owworld/pass-OW-24-spatial-untyped.owworld": "cc39ecd74848be036925a5aeb12bfa0390b470525baf0a7d87cf3b6fc160379d",
"fixtures/owworld/pass-OW-25-brackets-in-string-read.owworld": "1869a10b261c7d605389358cbd198a7ded58080a57763adc0814fba95e972369",
"fixtures/owworld/pass-OW-25-depth-200-read.owworld": "faabbd23cbcd4bf4502ef10b438e36566f97e43244e9d2f91b7e6d0986b99c5d",
"fixtures/owworld/pass-OW-25-depth-201-left-out.owworld": "a5dffe6d0f68f5ab277176b330388030fed7210c69422a5ecbd340fe5d53f6a4",
"fixtures/owworld/pass-OW-25-dup-key-deep-first-left-out.owworld": "9784b98f18dd4e855e81b5b35d26d8aeade6b96b0ffab5cf1178f3b6f8cb42fd",
"fixtures/owworld/pass-OW-25-dup-key-deep-last-left-out.owworld": "683857a8d8d073f1613b90438d356d9095292a6af03fc72daa4c4649a41105bb",
"fixtures/owworld/pass-OW-25-empty-array-at-201-left-out.owworld": "7d2c9d67ac769610b7ccccd8b0f140b6caec9f0fabd9601b881941b3949a4136",
"fixtures/owworld/pass-OW-25-empty-object-at-201-left-out.owworld": "def2a965df80ef83e3913accfd18306bc418bda27569ac314e38d8509143d6f8",
"fixtures/owworld/pass-OW-25-escaped-backslash-then-deep-left-out.owworld": "f0f2edf04efc91e36d75fd09b427b4392db2bb2840f93390fd78aa08204ef138",
"fixtures/owworld/pass-OW-4-archive-junk.owworld": "b7ca25bda4354a71dfaf5202dfea97dec3079167b31622a343a55fad372bcde2",
"fixtures/owworld/pass-OW-4-readme.owworld": "8985f68a3336787042eb61127507f5fa41c95fa8188c39c1769ee7ce2860667b",
"fixtures/owworld/pass-OW-4-tool-folder.owworld": "424b5f898d0db6b38d73abca6e03bbf7d8e74f707af7f0096b11c04f86c5b315",
Expand All @@ -154,7 +163,7 @@
"fixtures/owworld/pass-OW-9-roundtrip.owworld": "ea5a1087df2b0006aa7230ca75de69f491238bff3a565114e0037ad8eb6d5c2f",
"fixtures/owworld/pass-OW-9-unknown.owworld": "f220915504a75e7f8f644188d8868c6b7ce05834e24b6f47cea24890b9159eca",
"fixtures/owworld/UnicodeData-15.1.0.txt": "2fc713e6a31a87c4850a37fe2caffa4218180fadb5de86b43a143ddb4581fb86",
"fixtures/owworld/verdicts.json": "c21b4ec6c355902a9cde1c45bd7f057e9833e31a3c6032a963cec9b801961693",
"fixtures/owworld/verdicts.json": "282fcf2162b16cde398d8f877b12bef3dc5d7a18a66aeae58b93258f0e069a04",
"LICENSE": "3235f6ccc2b72375c517c1fdeef87954e8bfda17c5b1b485b98b5c2b4a1026d1",
"pairs.json": "18a9918a2a3581a09c584b02aa418c926a613bc1c75d526b6bc9a4ad0cd89021",
"presentation.json": "af84662c29628b6e90b923c9541f68f5924563adce397cebbadfdbf0f06e5f18",
Expand Down Expand Up @@ -198,7 +207,7 @@
"profiles/spine.md": "6bd367c3f4b101878fbc54a3c8c806630b7760173f24fef995db801b6103d92e",
"profiles/strand.fixture.json": "7bc2d2dae11c0722b1db987c070b249ddcbc55b81683c4bfa26900c7ffe0fc53",
"profiles/strand.md": "2a9bd36814a0de80a68180d2d75d3ef9d2539b9dcd52165f20b8ef0821575488",
"README.md": "e186fda7a396568825d31c2b45bf43657eb4f402bc72fed7c7140b2ede2a8fc3",
"README.md": "a396419a8556d7b343a43742bb411e082413a6f9ae93462dd1d9740001c8d120",
"schema/ability.yaml": "af185b2d22a5985ac323e6227a95df287fffaae0e5fca502976a02c2754f71b2",
"schema/base_properties.yaml": "ec3724ceb2faca973e431a2e2ff946e55bfb55b6b8d78689b6b22d0cfb7c9a2e",
"schema/character.yaml": "dc291b206121bd23c69cb89e01a0523eb2f71b4a247116dd6a1fa4bc227ff145",
Expand All @@ -225,10 +234,10 @@
"schema/zone.yaml": "cca04ee498fb813fa18b96f1ac99816e7f1a8ae1fb9e21c48b37620dbb674856",
"schema.json": "581dc7b5e890acc06b1c89b0d7bdcc2f20f54f52d5a3b4af8c5a184e1e6fd48c",
"SECURITY.md": "939ee364b06f0b749bdd4cbe66b2fe49322c95abe732650ec4ef062a0c03820a",
"VERSION": "c8b12547293e2ef371d2e669607c8beef4ad4760116d921aa8644faa7770bc2b",
"VERSION": "8fc2b957179cd0ccdc2cda9f3f51187091764c1a8d556d28083a0ac987923603",
"views.fixture.json": "f9a2713b26639d1cb2c792b9f28f95c57e576f8e6c123b5ad3eac2a2507dfcf8",
"views.json": "f4d06ee16bd6c66fc28cf27146b8d199c85164e5deecabafc23af53408746fe0",
"walk/lint_folder.py": "2c456cb917d692e3199f87bc6f7918bb20b91d6943d33feb0db0ac99519e1e87",
"walk/lint_folder.py": "ddd7d28e7fbc5e8fb4494c2b2eda23daefc1b3708840a93b6cdffe12a3af88bd",
"walk/rulings.yaml": "1fb87ce4012d160b809e0aac50688c62405d2a5e6e303a57df84b98c249374ca",
"walk/schema_walk.py": "e4a490dda5133e3961252cd8675eb39e5b214df68f6a661fa8601ccd69e6aed0"
}
Expand Down
8 changes: 5 additions & 3 deletions codegen/schema-dist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Each serial (one numbered publication of these files, tagged `v<schema version>-
| `walk/schema_walk.py` | the reference decoder, in Python: reads the YAML and returns each type's fields. `schema.json` is its output. One module; its only dependency is PyYAML |
| `walk/rulings.yaml` | rulings the YAML cannot carry (nullability, empty strings, extension fields). Code in any language should follow these rows |
| `walk/lint_folder.py` | the folder check: run it on a world folder and it names every key that is not a field of its type, every link that does not resolve or points at the wrong type, every value of the wrong shape, and a `world.json` that carries an `api` block while git tracks it (a linked folder is never committed, folder spec 4.6 d). The example world passes it at every publish |
| `fixtures/owworld/` | the `.owworld` conformance set (folder spec 4.7): 111 zips, one per check and one cause each, with `verdicts.json` saying what a reader must answer for every one (accept, or refuse with its cause from the one list) and what a writer may emit. A world-file reader in any language runs the set and compares. `generate.py` rewrites every zip byte for byte (`python fixtures/owworld/generate.py --out fixtures/owworld`); `CaseFolding-15.1.0.txt` is Unicode's file as published, the C and S rows every reader folds names by, never a runtime's own fold |
| `fixtures/owworld/` | the `.owworld` conformance set (folder spec 4.7): 120 zips, one per check and one cause each, with `verdicts.json` saying what a reader must answer for every one (accept, or refuse with its cause from the one list, and for some the files it leaves out of the world it reads, by reason, in `left_out`) and what a writer may emit. A world-file reader in any language runs the set and compares. `generate.py` rewrites every zip byte for byte (`python fixtures/owworld/generate.py --out fixtures/owworld`); `CaseFolding-15.1.0.txt` is Unicode's file as published, the C and S rows every reader folds names by, never a runtime's own fold |
| `fixtures/file-names.fixture.json` | how a writer makes the name part of an element's file name, the rule under "The example world": 38 element names and the name part each gives (`""` where a name leaves none, so the file is named by the full id). A writer in any language runs them and compares |
| `VERSION` | three `key: value` lines: the canonical schema version, the dist serial, the publish date |
| `MANIFEST.json` | the sha256 of every file above (not of itself) |
Expand All @@ -47,7 +47,9 @@ Only `id` and `name` are required. Element bodies read from the API also carry k

## The example world

`example/hyperion/` is a world folder: `world.json` for the world, and one JSON file per element at `elements/<type>/<name>--<id tail>.json`. The `id` inside a file is the element's identity; the filename is only for people. Its name part is made one way, so that two writers give an element the same name part: the element's name is put in Unicode's NFKD form; every code point from U+0300 to U+036F is dropped, and no other mark; the rest is lowercased by Unicode's default case mapping, in no locale; every run of characters outside `a` to `z` and `0` to `9` becomes one hyphen; hyphens at the start and the end are dropped; a name part longer than 40 characters is cut at 40, and hyphens at its new end are dropped; the forms and the case mapping are those of Unicode 11.0, and a code point Unicode assigned after 11.0 is promised nothing. A name that leaves nothing gives a file named by the full id (`<id>.json`). A reader never leans on any of it: it reads the `id`. `fixtures/file-names.fixture.json` holds the cases. It needs no account or key: load it, check it against `schema.json`, and you have tested your reader on real data. The format is described at [World Folders](https://onlyworlds.github.io/docs/schema/folders). The folder format is at 0.3.24 (the spec's own version line); a folder stamps `format_version` from it.
`example/hyperion/` is a world folder: `world.json` for the world, and one JSON file per element at `elements/<type>/<name>--<id tail>.json`. The `id` inside a file is the element's identity; the filename is only for people. Its name part is made one way, so that two writers give an element the same name part: the element's name is put in Unicode's NFKD form; every code point from U+0300 to U+036F is dropped, and no other mark; the rest is lowercased by Unicode's default case mapping, in no locale; every run of characters outside `a` to `z` and `0` to `9` becomes one hyphen; hyphens at the start and the end are dropped; a name part longer than 40 characters is cut at 40, and hyphens at its new end are dropped; the forms and the case mapping are those of Unicode 11.0, and a code point Unicode assigned after 11.0 is promised nothing. A name that leaves nothing gives a file named by the full id (`<id>.json`). A reader never leans on any of it: it reads the `id`. `fixtures/file-names.fixture.json` holds the cases. It needs no account or key: load it, check it against `schema.json`, and you have tested your reader on real data. The format is described at [World Folders](https://onlyworlds.github.io/docs/schema/folders). The folder format is at 0.3.25 (the spec's own version line); a folder stamps `format_version` from it.

An element file, in a world folder or in a world file (`.owworld`), in which an object or array sits more than 200 levels deep is not read. The count is made in the file's text, as each object or array opens: objects and arrays both count, an empty one too, the file's top object is level 1, a plain value inside an object or array at level 200 is read, and a key written twice counts with each of its values. A reader leaves such a file out of the world it reads, for the reason `too_deep`, and names it where it names the files it left out; the rest of the world is read as it stands. If the file is also broken in another way, it is still left out, and the reader may name either fault. The world's own `world.json` is counted the same way, and one past 200 is a `world.json` the reader cannot read (a world file holding one is refused, `not_a_world`). A file at 200 levels or fewer is not left out for depth. `fixtures/owworld/` holds the cases (OW-25).

## Using the walk (Python)

Expand Down Expand Up @@ -77,7 +79,7 @@ Pass a `note` sink. A field type the walk does not know is skipped, and with the
python walk/lint_folder.py path/to/world-folder
```

One line per problem (`elements/creature/x.json: `characters` is not a field of creature`), then the count of the element files it checked, a file not read not among them. A file is not read when the Python running the check cannot hold its JSON (nested too deep, or a number too long for it): it gets one line saying so, and the check goes on. A link to an element in a file not read is still reported as not in the folder. Exit 0 when clean, 1 with problems, 2 when the path is not a world folder, 3 when nothing it read has a problem and some files were not read; which files go unread can change with the Python running it. Server keys, the folder format's own keys (`local_updated_at`, `server_updated_at`, `image_media_id`) and extension prefixes pass; any other undeclared key does not. A string may be null on disk (read as the unset string). It decodes the YAML through the walk beside it, so its view of the schema is the walk's; `--schema DIR` points it at another copy.
One line per problem (`elements/creature/x.json: `characters` is not a field of creature`), then the count of the element files it checked, a file not read not among them. An element file is not read when an object or array in it sits more than 200 levels deep, counted as under "The example world" (its line says `too_deep`), and a file, `world.json` among them, when it holds a number too long for the Python running the check: it gets one line saying so, and the check goes on. A `world.json` that deep is a problem, in the same words. A link to an element in a file not read is still reported as not in the folder. Exit 0 when clean, 1 with problems, 2 when the path is not a world folder, 3 when nothing it read has a problem and some files were not read; which files go unread for a long number can change with the Python running it, and which go unread for depth cannot. Server keys, the folder format's own keys (`local_updated_at`, `server_updated_at`, `image_media_id`) and extension prefixes pass; any other undeclared key does not. A string may be null on disk (read as the unset string). It decodes the YAML through the walk beside it, so its view of the schema is the walk's; `--schema DIR` points it at another copy.

## Versions

Expand Down
4 changes: 2 additions & 2 deletions codegen/schema-dist/VERSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
canonical: 00.34.01
serial: 147
published: 2026-11-25
serial: 148
published: 2026-11-26
Binary file not shown.
Loading
Loading