From 923c92098290b1e9ca060aeacc58dae8806695c1 Mon Sep 17 00:00:00 2001 From: Titus Date: Wed, 25 Nov 2026 14:36:41 +0100 Subject: [PATCH] CHANGELOG: release notes name no one inside the team and point at nothing private Team members' names and an internal decision id in 30 changelog lines become dated rulings or plain descriptions, so the public checker reports 0 findings on the file. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 60 ++++++++++++++++++++++++++-------------------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f7fe529..a767f69 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -924,7 +924,7 @@ schema-dist v0.34.1-dist.127 (canonical 00.34.01 unchanged, no schema file moved ## 0.46.0 (2026-10-24) - **Schema repinned to schema-dist `v0.33.0-dist.59`** (from dist.57, through two serials; same canonical 00.33.00, no schema file moved). Serial 58 grows the `.owworld` set to 96: two OW-14 cases whose deflate stream ends before its declared compressed size or never ends, both refused as `not_openable`, and one OW-18 pair (U+11383 against U+11382 U+113C9) that is two names at Unicode 15.1 and is accepted. It also brings the spine profile's new audit sentences (below), a new `SECURITY.md`, and a revised README and LICENSE. Serial 59 is text only: the profile pages, the checks fixture's note and the folder lint say when a rule was ruled rather than where, and the set's `generate.py` and `verdicts.json` are regenerated with the same 96 zips byte for byte. `read_world_file` agrees with all 96. -- **`read_world_file` refuses an entry whose deflate stream ends before the compressed size its headers declare** (OW-14, ruled by Skeld 2026-10-24). Bytes after the stream's end are no part of it, so the entry's declared size lies, and the file is `not_openable`; before, the reader stopped at the stream's end and read the entry. A stream that never ends was already refused. +- **`read_world_file` refuses an entry whose deflate stream ends before the compressed size its headers declare** (OW-14, ruled 2026-10-24). Bytes after the stream's end are no part of it, so the entry's declared size lies, and the file is `not_openable`; before, the reader stopped at the stream's end and read the entry. A stream that never ends was already refused. - **The doctor's flag 13 follows `profiles/spine.md` serial 58.** A row is kept by exactly one Seat, through the Title's field for the row's own type; a Title that is not a Seat neither owns nor counts toward two owners. A `legacy` or `provenance` row must be linked by an Event with supertype `Retirement` through the Event's field for the row's type (`objects`, `constructs` or `locations`), not only named in its text; a row no such Event links is a finding. That check runs only through a key that sees every element, hidden ones too, and never on a Law, since an Event has no `laws` field (the report names it as not checked). Two rows of one type whose names are one once trimmed and folded for case are a finding on the first, naming the others. `compared` carries `retiring`, the rows looked for in Retirement Events. - **Flag 13 reads a projection.** A World carrying `x_spine_projection`, `{source, at}` (the source world's id as a string, the last rebuild's time), marks a projection and makes the flag run. On a marked world every row must carry `x_spine_owner`, now the keeping Seat's name (it was an anonymous key until serial 57), and no element may be hidden; the one-Seat check does not apply there and the report says so. `x_spine_owner` on an unmarked world is a finding, and so is a mark that is not an object with a string `source` and a string `at` (a link-shaped `source`, a list or an object, included), the world then read as unmarked. - **`doctor.ListReader`**, the three reads a whole-world walk makes (`me`, `get_world`, `list_page`). `pack_api` takes one, so a reader that is not a full `Client` needs only those; the doctor's `Reader` extends it with `changes` and `world_proposals`. @@ -973,50 +973,50 @@ schema-dist v0.34.1-dist.127 (canonical 00.34.01 unchanged, no schema file moved - **`draught(..., compact=)`** (live 2026-10-23 13:30): `compact=True` leaves out every section that is an empty list or object, and `cut` when it is empty; the frame (`world`, `calendar`, `as_of`, `now`, `mode`, `policy`) and every null stay, since a null is an answer. Sent as `true` or `false`; `None` (the default) sends nothing. Anything but a bool is a `TypeError` before anything is sent, as the npm SDK's 4.69.0. The live wire test now calls `draught` with all eight policy keys, so each is checked against the document's parameters. - **A create sends the hidden mark** (live 2026-10-23 13:30; folder spec §4.8). `create`, `upsert` and `bulk` now send `hidden` as the element has it (`CREATE_FIELDS`; `sanitize_payload(..., create=True)`), so an element hidden in a folder is created hidden from its first moment, never visible for a moment. Until now the three stripped it, so such an element was created **visible**: a behaviour change. Only the owner's keys and a co-builder's may send `true`; any other key gets a 403 `hidden_not_allowed` (new `ApiError.is_hidden_not_allowed`; a bulk slot's 403) and nothing is created; a server with the hidden mark off answers 422, `param` hidden. An update never sends it: `patch`, `propose` and `push`'s patches strip it as before (keel drops it from an update, and a PUT that replaces ignores it). A create retried after a lost answer reads the element back and takes it as its own only if the mark matches. **`push` creates nothing**, so its withholding stands: an element hidden in the folder and not in the baseline is in the baseline, so on the server and visible, and keel moves an existing element's mark only by its own route (`PushResult.hidden`, unchanged; the docstring now says why). `stops_run` is unchanged: push never sends the mark, so it never meets the 403. -- **A reader that hands a world on leaves hidden elements out** (Skeld's ruling, 2026-10-23; folder spec §4.8): an element carrying `hidden: true` is hidden from whoever the world is handed to, never from its holder. `folder.is_hidden` (exported) is the one test: any value of the mark but absent, null and `false`, so a doubt leaves the element out. **The Markdown pack** leaves one out unless `hidden=True` (`--hidden`) on `build_pack`, `pack_world`, `pack_folder` and `pack_api`, counts it in `00-world.md`'s opening lines (`*1 hidden element is left out of this pack.*`), `PackReport.hidden_left_out` and the command's line; kept, it is labelled `hidden` under its id line (`pack.HIDDEN_LINE`), on its index line and on every link to it (`Cy (character, hidden)`), `PackReport.hidden_kept`. Unlike a proposed element, one left out is never named: a link to it is left out and an in-prose reference keeps only its own label (`PackReport.hidden_links_left_out`), as keel leaves a hidden element out of every answer to a reader who may not see it. A hidden element counts as hidden, never as proposed or a room element. **The OKF bundle** the same: left out unless `hidden=True` (`build_bundle`, `export_okf`, `--hidden`), no file, no index line, links to it left out (never a `urn:uuid:`), an in-prose reference its label, counted in `OkfReport.hidden_left_out` and world.md's `onlyworlds_export.hidden_left_out`; kept, its frontmatter carries `hidden: true` and every link and index line to it says `(hidden)`. A world with no hidden element packs and exports byte for byte as before. `export_world` and `write_folder` copy a world and keep the mark; the doctor shows a world to its holder and drops nothing. -- **The `.owworld` writer keeps hidden elements unless the file is a share** (Skeld's ruling, 2026-10-23; folder spec §4.8). `write_world_file` and `world_file_bytes` take `include_hidden=True`: a world file is a copy, and a hidden element's file travels byte for byte. `include_hidden=False` leaves every element file in `elements/` or `spatial/` whose JSON object carries the mark out whole, nothing else rewritten (a link to it keeps the id, which dangles, as ruled). The count: private records have no report to follow (the writers return a path or bytes), so a list passed as `hidden_left_out=` receives the left-out files' paths, sorted; its length is the count. The two defaults differ on purpose: private records out unless asked, hidden kept unless the write is a share. +- **A reader that hands a world on leaves hidden elements out** (ruled 2026-10-23; folder spec §4.8): an element carrying `hidden: true` is hidden from whoever the world is handed to, never from its holder. `folder.is_hidden` (exported) is the one test: any value of the mark but absent, null and `false`, so a doubt leaves the element out. **The Markdown pack** leaves one out unless `hidden=True` (`--hidden`) on `build_pack`, `pack_world`, `pack_folder` and `pack_api`, counts it in `00-world.md`'s opening lines (`*1 hidden element is left out of this pack.*`), `PackReport.hidden_left_out` and the command's line; kept, it is labelled `hidden` under its id line (`pack.HIDDEN_LINE`), on its index line and on every link to it (`Cy (character, hidden)`), `PackReport.hidden_kept`. Unlike a proposed element, one left out is never named: a link to it is left out and an in-prose reference keeps only its own label (`PackReport.hidden_links_left_out`), as keel leaves a hidden element out of every answer to a reader who may not see it. A hidden element counts as hidden, never as proposed or a room element. **The OKF bundle** the same: left out unless `hidden=True` (`build_bundle`, `export_okf`, `--hidden`), no file, no index line, links to it left out (never a `urn:uuid:`), an in-prose reference its label, counted in `OkfReport.hidden_left_out` and world.md's `onlyworlds_export.hidden_left_out`; kept, its frontmatter carries `hidden: true` and every link and index line to it says `(hidden)`. A world with no hidden element packs and exports byte for byte as before. `export_world` and `write_folder` copy a world and keep the mark; the doctor shows a world to its holder and drops nothing. +- **The `.owworld` writer keeps hidden elements unless the file is a share** (ruled 2026-10-23; folder spec §4.8). `write_world_file` and `world_file_bytes` take `include_hidden=True`: a world file is a copy, and a hidden element's file travels byte for byte. `include_hidden=False` leaves every element file in `elements/` or `spatial/` whose JSON object carries the mark out whole, nothing else rewritten (a link to it keeps the id, which dangles, as ruled). The count: private records have no report to follow (the writers return a path or bytes), so a list passed as `hidden_left_out=` receives the left-out files' paths, sorted; its length is the count. The two defaults differ on purpose: private records out unless asked, hidden kept unless the write is a share. - Tests: compact sent as true and false, absent sends nothing, a refusal sends nothing; `hidden` on create, upsert and bulk, none on a visible create, never on patch or propose, the 403 and the 422 raised once and not resent, a bulk slot's 403, the read-back with the mark; a push never sends the mark (the folder unhid it), and creates nothing for a hidden element new to the server; the pack and OKF each with a hidden element left out, counted and never named, kept and labelled, links to it either way, the command lines; the world file's copy byte-identical, the share's files and count, determinism either way; a staging case (an owner's hidden create unseen by a contributor, a contributor's refused; skipped without the staging keys, not run). 30 mutants watched failing, one per rule. ## 0.42.0 (2026-10-23) -- **No tool name in a supertype** (the schema owner's lane rule, Skeld, 2026-10-23: "a converter never writes its own name into supertype or subtype; where a thing came from is the producer line and its `x__` keys, what a thing is goes in the type words"). **Behaviour change in three doors**: an untyped element came in as a Narrative with supertype `kanka` (a Kanka module with no OnlyWorlds type), `notion` (a row of an untyped Notion database) or `legendkeeper` (a LegendKeeper page whose tags name no type, or two); each now comes in with supertype `Article`, as the World Anvil and Campfire doors already write. Nothing else moves: the subtype (Kanka's module folder, Notion's database title), the tags, the `x__` keys and every id stay as they were, and a test pins each door's ids to those 0.41.0 gave (Kanka's and LegendKeeper's real exports, Notion's built fixture, LegendKeeper's recorded API answers). No other place in the package writes a door's name into a supertype or subtype. -- **LegendKeeper maps** (`onlyworlds.legendkeeper`; Skeld's ruling, Boss's three cases and Seethe's measured placement, 2026-10-23). From the export file, **a map document becomes a Map**, named `: ` as a hidden page's Narrative is: `width` `max_x - min_x` and `height` `max_y - min_y` from the document's `map` bounds, the bounds kept as `x_legendkeeper_bounds` and `max_zoom` as `x_legendkeeper_max_zoom`; `image_url` the map's `mapId` only when it is an http(s) address, as given and never copied (the image lives on LegendKeeper's host and loads only as long as that account's asset does, which the report says); a bare asset id (the tutorial map's) kept as `x_legendkeeper_map_id`, never written as a URL; `location` when the map's resource became a Location, else `x_legendkeeper_resource` its element id. A map document with no `map` object is a Map with no width, height or image, named so in the report, never zeros. **Each pin becomes a Pin** on its Map: its name, or, for a pin with none, the name of the element it places (what LegendKeeper shows), each named in the report; `element_type` and `element_id` the element its `lk://resources/` uri names; a pin with no uri, or one naming no resource of the export, a Pin with no element, named, never a dangling id. Its place: the bounds are image pixels, but LegendKeeper's `pos` is `[y, x]` in zoom-0 units, an image pixel divided by `2^max_zoom`, y counting down from 0 at the map's top to `min_y`; OnlyWorlds counts image pixels from the bottom left, so `x` is `x * 2^max_zoom - min_x` and `y` `y * 2^max_zoom - min_y`, a half rounded up, the exact pair kept as `x_legendkeeper_pos`, and the report names each map's scale ("positions scaled by 2^2 = 4"). Measured on two pins of Seethe's quay map, an 800 by 600 image with `max_zoom` 2: the first, read at image pixel (127, 110) from the top left, is stored `[-27.5, 32]`, which times 4 is (128, 110): x 128, y 490; the second, read at about (796, 524), is stored `[-131.118, 199.314]`: x 797, y 76. Both fit the scaled reading and neither the unscaled one. A pin on a map with no `max_zoom` gets no x, y (the scale is not known, never guessed), keeps its `pos`, and the report names the map; its icon and label (`iconGlyph`, `iconColor`, `iconShape`, `labelSize`, `labelVisibility`, `isSynced`, any other) together as `x_legendkeeper_pin`. A hidden map document, or one on a hidden resource, is a hidden Map whose Pins are hidden; a pin whose `isHidden` is true a hidden Pin (no real file has a hidden pin or map yet: the tests plant them). Ids UUIDv5 of `legendkeeper::map::` and `...:pin:::`. **The API road keeps 0.41.0's behaviour**: the API's map shape (bounds, pins) is not known, never read on the wire, so a map read through the API stays not imported, and the report now says why. -- **The third real export** (Seethe's, a few hours after the first, the JSON type, her quay map with two pins: "The quay" on her page, and one near the map's right edge with no name and no uri, a Pin with no element named `Untitled pin (uhljd0gj)` in the report): banked as `tests/fixtures/legendkeeper/the-quay-world-3.json`, Boss's scrubbed copy: the account's `createdBy` id and her map image's asset id each a same-length placeholder, LegendKeeper's tutorial asset ids and its authors' ids as exported. A test checks every uuid left on LegendKeeper's asset hosts is also in the first export (LegendKeeper's own tutorial content) or the placeholder. It becomes 113 elements: 2 Characters, a Creature, 29 Events, a Location, 5 Maps, 54 Narratives, 18 Pins, 3 Relations. The first export's folder is byte for byte 0.41.0's but for the supertype, its maps (4 Maps, 16 Pins) added. -- **Fixtures: no account identifier** (Skeld's doctrine and Boss's scrubs, 2026-10-23). The Kanka fixture is Boss's scrubbed copy, renamed `tests/fixtures/kanka/quay-export-world_20261023_074706.zip` (the old name carried the username): the username, user id and campaign id each a same-length placeholder. The Kanka fixture's ids moved with the scrubbed campaign id (the door keys them on it); a real user's ids are unchanged: 0.41.0 run on the scrubbed file gives the ids the test now pins. The LegendKeeper `.lk` fixture is Boss's scrubbed copy too (the account's `createdBy` id a placeholder), and the door's folder from it is the unscrubbed file's, byte for byte. A new test (`tests/test_fixture_identifiers.py`) holds the Kanka username, the LegendKeeper account id and its map image's asset id by sha256 only, and fails if any word-start window of any fixture (zip members and gzip read through) or test file hashes to one; run on the unscrubbed exports it finds each. -- **Folder format v0.3.18**: a stamp move, the spec's one change being the `campfire-export` word (Skeld, 2026-10-23). `FORMAT_VERSION` is `0.3.18`. +- **No tool name in a supertype** (the schema owner's lane rule, 2026-10-23: "a converter never writes its own name into supertype or subtype; where a thing came from is the producer line and its `x__` keys, what a thing is goes in the type words"). **Behaviour change in three doors**: an untyped element came in as a Narrative with supertype `kanka` (a Kanka module with no OnlyWorlds type), `notion` (a row of an untyped Notion database) or `legendkeeper` (a LegendKeeper page whose tags name no type, or two); each now comes in with supertype `Article`, as the World Anvil and Campfire doors already write. Nothing else moves: the subtype (Kanka's module folder, Notion's database title), the tags, the `x__` keys and every id stay as they were, and a test pins each door's ids to those 0.41.0 gave (Kanka's and LegendKeeper's real exports, Notion's built fixture, LegendKeeper's recorded API answers). No other place in the package writes a door's name into a supertype or subtype. +- **LegendKeeper maps** (`onlyworlds.legendkeeper`; ruled 2026-10-23, with three test cases and a measured placement). From the export file, **a map document becomes a Map**, named `: ` as a hidden page's Narrative is: `width` `max_x - min_x` and `height` `max_y - min_y` from the document's `map` bounds, the bounds kept as `x_legendkeeper_bounds` and `max_zoom` as `x_legendkeeper_max_zoom`; `image_url` the map's `mapId` only when it is an http(s) address, as given and never copied (the image lives on LegendKeeper's host and loads only as long as that account's asset does, which the report says); a bare asset id (the tutorial map's) kept as `x_legendkeeper_map_id`, never written as a URL; `location` when the map's resource became a Location, else `x_legendkeeper_resource` its element id. A map document with no `map` object is a Map with no width, height or image, named so in the report, never zeros. **Each pin becomes a Pin** on its Map: its name, or, for a pin with none, the name of the element it places (what LegendKeeper shows), each named in the report; `element_type` and `element_id` the element its `lk://resources/` uri names; a pin with no uri, or one naming no resource of the export, a Pin with no element, named, never a dangling id. Its place: the bounds are image pixels, but LegendKeeper's `pos` is `[y, x]` in zoom-0 units, an image pixel divided by `2^max_zoom`, y counting down from 0 at the map's top to `min_y`; OnlyWorlds counts image pixels from the bottom left, so `x` is `x * 2^max_zoom - min_x` and `y` `y * 2^max_zoom - min_y`, a half rounded up, the exact pair kept as `x_legendkeeper_pos`, and the report names each map's scale ("positions scaled by 2^2 = 4"). Measured on two pins of the test project's quay map, an 800 by 600 image with `max_zoom` 2: the first, read at image pixel (127, 110) from the top left, is stored `[-27.5, 32]`, which times 4 is (128, 110): x 128, y 490; the second, read at about (796, 524), is stored `[-131.118, 199.314]`: x 797, y 76. Both fit the scaled reading and neither the unscaled one. A pin on a map with no `max_zoom` gets no x, y (the scale is not known, never guessed), keeps its `pos`, and the report names the map; its icon and label (`iconGlyph`, `iconColor`, `iconShape`, `labelSize`, `labelVisibility`, `isSynced`, any other) together as `x_legendkeeper_pin`. A hidden map document, or one on a hidden resource, is a hidden Map whose Pins are hidden; a pin whose `isHidden` is true a hidden Pin (no real file has a hidden pin or map yet: the tests plant them). Ids UUIDv5 of `legendkeeper::map::` and `...:pin:::`. **The API road keeps 0.41.0's behaviour**: the API's map shape (bounds, pins) is not known, never read on the wire, so a map read through the API stays not imported, and the report now says why. +- **The third real export** (a few hours after the first, the JSON type, its quay map with two pins: "The quay" on its page, and one near the map's right edge with no name and no uri, a Pin with no element named `Untitled pin (uhljd0gj)` in the report): banked as `tests/fixtures/legendkeeper/the-quay-world-3.json`, a scrubbed copy: the account's `createdBy` id and the map image's asset id each a same-length placeholder, LegendKeeper's tutorial asset ids and its authors' ids as exported. A test checks every uuid left on LegendKeeper's asset hosts is also in the first export (LegendKeeper's own tutorial content) or the placeholder. It becomes 113 elements: 2 Characters, a Creature, 29 Events, a Location, 5 Maps, 54 Narratives, 18 Pins, 3 Relations. The first export's folder is byte for byte 0.41.0's but for the supertype, its maps (4 Maps, 16 Pins) added. +- **Fixtures: no account identifier** (ruled 2026-10-23). The Kanka fixture is a scrubbed copy, renamed `tests/fixtures/kanka/quay-export-world_20261023_074706.zip` (the old name carried the username): the username, user id and campaign id each a same-length placeholder. The Kanka fixture's ids moved with the scrubbed campaign id (the door keys them on it); a real user's ids are unchanged: 0.41.0 run on the scrubbed file gives the ids the test now pins. The LegendKeeper `.lk` fixture is a scrubbed copy too (the account's `createdBy` id a placeholder), and the door's folder from it is the unscrubbed file's, byte for byte. A new test (`tests/test_fixture_identifiers.py`) holds the Kanka username, the LegendKeeper account id and its map image's asset id by sha256 only, and fails if any word-start window of any fixture (zip members and gzip read through) or test file hashes to one; run on the unscrubbed exports it finds each. +- **Folder format v0.3.18**: a stamp move, the spec's one change being the `campfire-export` word (2026-10-23). `FORMAT_VERSION` is `0.3.18`. - Tests: on the third export the quay map and its two pins at their measured places, the scale the report names per map, the bare-id map and its 16 unnamed pins (Wiki City x 3553, y 5445 at 2^6), the three map-less documents, counts, the lint, determinism; on planted copies bounds that do not start at 0 and half bounds, a map with no `max_zoom`, a hidden pin, a hidden map, a pin naming no resource, a visible pin on a hidden page; the API road's map named; Kanka's untyped module on a planted copy; the ids of every door; no account identifier in any fixture or test file, by hash. 27 mutants watched failing, one per rule (the unscaled position, a guessed scale with no `max_zoom`, and a blind hash check among them). ## 0.41.0 (2026-10-23) -- **The Campfire door** (`onlyworlds.campfire`): `python -m onlyworlds.campfire --file EXPORT.html OUT-DIR [--project NAME] [--plan]` and `import_campfire(source, out_dir, plan_only=False, project=None)` read Campfire's export (File, Export Elements, the html format) into a world folder written through `write_folder`. No AI, no account, no new dependency (the Kanka door's HTML to Markdown). **A documents door**, said in its docstring (the schema owner's rules, Skeld, 2026-10-23): Campfire's web app has no data export, only four documents of the same text (docx, pdf, html, rtf), and the door reads the html. **Proven on one real export** (Seethe's project on a free account, 2026-10-23; its bytes banked as `tests/fixtures/campfire/campfire-export.html`): the document's title, then one `section.export-item` per element, its name, its description, its pages of panels (custom panels of Label / value pairs, text panels), an em dash for an empty value. **What becomes what**: each element heading is an element, its description block the `description`; each filled panel's Label / value pairs are kept as `x_campfire__