Skip to content

0.145.0: a share carries under elements/ and spatial/ only what the folder reader serves - #44

Merged
tmoosting merged 1 commit into
mainfrom
share-reader-verdict
Nov 23, 2026
Merged

tmoosting merged 1 commit into
mainfrom
share-reader-verdict

Conversation

@tmoosting

Copy link
Copy Markdown
Member

The folder format's rule for a share, as ruled on 2026-11-23: nothing under elements/ or the legacy spatial/ travels except a file read as an element with no hidden mark, and "read as an element" is the folder reader's own verdict.

  • The share writer asks the package's folder reader which files are elements. A file with another extension, deeper than a type folder, directly under elements/, in a folder that is no type, or without an id is left out and named apart from the hidden.
  • An id that two files hold travels in neither file.
  • A copy never rewrites a file that was not read as an element.
  • The reader reads names as written: .json and the type folder in lower case, ids compared as written.

Each rule was taken out alone and the tests watched failing (13 of 13 in this package). The two packages give the same answer on 30 small folders, and the shared author-fields fixture holds the same bytes in both.

🤖 Generated with Claude Code

…older reader serves; the reader reads names as written

The folder format's rule for a share, as ruled on 2026-11-23: nothing under
elements/ or the legacy spatial/ travels except a file read as an element
with no hidden mark, and "read as an element" is the folder reader's own
verdict. So write_world_file(include_hidden=False) now asks read_folder
which files are elements. A file with another extension, deeper than a type
folder, directly under elements/, in a folder that is no type, or without an
id is left out and listed in unread_left_out; an id that two files hold
travels in neither file. A copy never rewrites a file that was not read as
an element.

read_folder reads names as written: the extension is .json in lower case
and a type folder is the type word in lower case, so M.JSON is skipped and
listed and elements/Character/ lands in ignored_dirs.

Held by tests/test_worldfile.py (26 unread files, together and one at a
time), tests/test_reader.py and the Kanka door's case for text after the one
JSON value; the shared author-fields fixture moves two expectations and its
hash, the same bytes as the npm SDK's.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@tmoosting
tmoosting merged commit 1f2f1a4 into main Nov 23, 2026
11 checks passed
@tmoosting
tmoosting deleted the share-reader-verdict branch November 23, 2026 20:18

This branch was previously deployed

1 inactive deployment
pypi — 1f2f1a45 Deployed Nov 23, 2026 by tmoosting via publish #232
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant