From caeaf1211ae696843a75a94d1a27b40806ffc528 Mon Sep 17 00:00:00 2001 From: Titus Date: Mon, 23 Nov 2026 18:22:38 +0100 Subject: [PATCH] Python 0.142.0 followed: the doctor names what it could not read The Check a world section says what the report lists first on a folder (a file the reader did not read as an element, with why), that any such file makes the exit code 1, and that a value nested more than 200 deep or a number of more than 4,300 digits is read the same way. One changelog line. Co-Authored-By: Claude Fable 5.2 --- src/content/docs/docs/changelog.md | 1 + src/content/docs/docs/development/python.md | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/content/docs/docs/changelog.md b/src/content/docs/docs/changelog.md index 85f5f0e3..499aee9a 100644 --- a/src/content/docs/docs/changelog.md +++ b/src/content/docs/docs/changelog.md @@ -9,6 +9,7 @@ What changed on onlyworlds.com for everyone is on its own [Changelog](https://ww ## 2026-11-23 +- **[Python](/docs/development/python#check-a-world) 0.142.0: the doctor names what it could not read.** On a folder, the report now lists first each file it did not read as an element, with why (not JSON, no `id`, a second file of one id), and exits 1 when there is one. Until now it said nothing: with one element file cut off mid-write it reported the rest as the whole world and listed every link to the unread element as a link to a missing one. A file holding a value nested more than 200 deep is skipped the same way; on some platforms it used to stop the doctor and `pack` with a traceback. - **Every page names [llms.txt](https://onlyworlds.github.io/llms.txt) in its footer.** Until now no page pointed at the site's index for AI agents, so an agent that read one page as text could not learn it exists. Each page's Markdown copy stays where it was, in the page's menu. - **[TypeScript](/docs/development/typescript#deprecated-names): every deprecated name in one table.** The reference now lists each name the package's declarations mark as deprecated, 21 in 4.194.0, with the version it leaves in and the mark's own comment (what to use in its place, where there is one). The table is read from the pinned package at every build, so it follows each release, and the build stops on a mark it cannot put a name to. - **[Stability and deprecation](/docs/development/api/stability#the-standard-the-packages-and-this-site): how a change to the standard reaches the API.** A motion that drops or renames a field falls under the same rule as any removal: the API keeps answering the old field until its removal has been announced six months ahead. A field a motion adds arrives without notice. diff --git a/src/content/docs/docs/development/python.md b/src/content/docs/docs/development/python.md index 3c5ddfca..7f482986 100644 --- a/src/content/docs/docs/development/python.md +++ b/src/content/docs/docs/development/python.md @@ -146,6 +146,8 @@ python -m onlyworlds.doctor PATH --packet # the findings as work What it checks: a link to an element that is not there; an Event ending before it starts; an element with no links in or out; two elements whose names collide once folded (within one type); a known-of stub never filled, and an element with no text in any of its type's text fields (a Law's text is in `declaration` and `purpose`, a Narrative's in `story`, so `description` alone is never read); a charter untouched after many changes (through the API); the world's own house rules (since 0.24.0: the [checks profile](/docs/schema/profiles#checks), `x_checks_rules` on the Charter: each rule's sentence with how many elements it scoped and which fall short, and a rule the doctor cannot apply named as not checked, never passed; only the world's Charter counts: since 0.82.0 the newest marked Charter (the [charter profile](/docs/schema/profiles#charter)), through the API the one keel names in [`front_door`](/docs/development/api/members#the-front-door), and every other marked Charter is reported with its rules not applied; only a keeper sets the mark, so a seat cannot write the rules it is judged by); a world that maps a software ecosystem (since 0.45.0, on a world whose elements carry `x_spine_` keys: each element read under the [spine profile](https://github.com/OnlyWorlds/schema-dist/blob/main/profiles/spine.md), an off-list kind, a value the reader left out and a probe off the probe form named, then each row kept by exactly one Seat through the Title's field for the row's own type, every `x_spine_depends_on` id in the world, a `legacy` or `provenance` row named by an Event with supertype `Retirement` in `x_spine_retires` and linked through its typed field where the type has one (a Law by the key alone, since 0.48.0), a row still at `gone`, and no two rows of one type sharing a name once folded; on a projection, a World carrying `x_spine_projection` (its `source` a world's UUID, its `at` an ISO time), only the projection's checks run: `x_spine_owner` on every row and nothing hidden; whether a probe passes is named as not checked); and, on a folder, a stale `format_version` and a key committed in a tracked `world.json`. Each flag says how much it could compare, and a flag that cannot run on that door is listed with its reason, never counted as clean. Findings on messages and room things are listed apart and kept out of the headline count: a message by the [message profile](/docs/schema/profiles), a room element by the room profile's type and supertype pairs (`Work item`, `Report`, `Board` and the like) together with its mark `x_room_of` (since 0.118.0). A room pair without the mark is read as lore by every tool, so a finding on it counts with the rest; a house rule that asks for the mark lists each element made without it. Exit code 0 when clean, 1 with findings, 2 when nothing could be read. The judgement half, re-reading a claim against its source, is a separate recipe that takes the doctor's findings as its targets. +On a folder, the report first names what it could not read as an element (since 0.142.0; `unread` in `--json`, each entry a `file` and a `why`): a file that is not JSON, is not an object or has no `id`, a second file of one id, a directory that is no type's. Every check ran on the rest, so an element in such a file counts as not there and a link to it is listed as a link to a missing element. Any unread file makes the exit code 1. Two kinds of file that are JSON by the grammar are read the same way, on every platform: one holding a value nested more than 200 deep, and one holding a number of more than 4,300 digits. + The lint (since 0.51.0) checks a world folder's shape rather than what it says: a file outside the 22 type folders, a missing or duplicate `id`, a key that is not a field of its type, a value of the wrong shape, a link that does not resolve inside the folder or points at the wrong type. ```bash