Repository navigation
0.156.0: the calendar holds schema-dist serial 149's bounds - #67
Merged
Merged
Conversation
…el still to meet them) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…is its plain number The calendar profile at schema-dist serial 149 bounds what a reader words. read_calendar_config now refuses a value past any size bound (256 eras, 64 months, a week of 64 steps or 64 names, 16 intercalary entries, an except of 8 in version 2, a template or name of 256 code points) or whose longest year passes 2**53 - 1. format_step, format_steps, format_year_label and format_mid_label word a date whose step, year index plus a leap rule's offset, or era year is outside the safe integers as its plain number, and breakdown_step keeps its step with every other part None. Tests: the fixture's count pins in the other calendar tests move to the serial's numbers; the shared cost cases past a bound are refused by the reader and still timed on the kernel; the steps test caps its dense run at 2003 steps (a year of 2**53 - 1 steps is now a calendar). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…Error.world_fault too_deep, not_json or number_out_of_range beside the reason not_a_world, the SDK's worldFault in this package's spelling. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…n unreadable world.json's fault Co-Authored-By: Claude Opus 5.5 <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.
The schema pin moves to v0.34.1-dist.149 (the calendar profile and its fixture, 191 cases, all passing).
read_calendar_valuerefuses a calendar past the profile's size bounds or with a year past 2^53 - 1;format_step,format_stepsand the label functions print a date past the exact range as its plain number, andbreakdown_stepkeeps the step with every other part None.WorldFileError.world_faultnames why a world file'sworld.jsoncould not be read.Gates: the full pytest (2481 passed) at the calendar commit; after the world-file commit, ruff check, ruff format --check, mypy --strict src tests, the world-file tests, the wire and live tests and public words. The full suite runs again here. Format then parse on the fixture's 402 steps: 362 round-trip on 0.155.0 and on this build, the same as the TypeScript SDK.
🤖 Generated with Claude Code