Repository navigation
0.146.0: read_folder takes a declared type only when it is one of the 22 slugs as written - #45
Merged
Merged
Conversation
… 22 slugs as written The folder format says a declared type is a string exactly equal to one of the 22 type slugs, and that anything else in `type` declares nothing, so the directory fills it. The reader took any non-empty string, in lower case: "Location" in elements/character/ was served as a location, and an unknown word became the element's type. Each is now read as its directory's type and flagged type_inferred, its body left as written. A slug as written still beats the directory. Held by 21 cases in one JSON file, the same bytes the npm SDK's folder source runs, its sha256 pinned in both suites. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
read_foldernow takes a declared type only when it is one of the 22 slugs as written.The folder format says a declared type is a string exactly equal to one of the 22 type slugs, and that anything else in
typedeclares nothing, so the directory fills it. The reader took any non-empty string, in lower case:"type": "Location"inelements/character/was served as a location, and an unknown word became the element's type. Each is now read as its directory's type and flaggedtype_inferred, its body left as written. A slug as written still beats the directory.What follows for callers is in the changelog entry:
pushsends such an element to its directory's route, and a file whosetypewas an unknown word is no longer left out of a pack or skipped by the OKF export.Held by 21 cases in one JSON file, the same bytes the npm SDK's folder source runs (OnlyWorlds/sdk#60), its sha256 pinned in both suites. Measured before the change: the released SDK answered 21 of 21 as the rule wants, this package 12 of 21. Watched failing on eight planted rules, the control green before and after.
🤖 Generated with Claude Code