Skip to content

0.156.0: the calendar holds schema-dist serial 149's bounds - #67

Merged
tmoosting merged 4 commits into
mainfrom
serial-149
Nov 27, 2026
Merged

tmoosting merged 4 commits into
mainfrom
serial-149

Conversation

@tmoosting

@tmoosting tmoosting commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

The schema pin moves to v0.34.1-dist.149 (the calendar profile and its fixture, 191 cases, all passing). read_calendar_value refuses a calendar past the profile's size bounds or with a year past 2^53 - 1; format_step, format_steps and the label functions print a date past the exact range as its plain number, and breakdown_step keeps the step with every other part None. WorldFileError.world_fault names why a world file's world.json could 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

tmoosting and others added 4 commits November 27, 2026 04:40
…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>
@tmoosting
tmoosting merged commit ee7b381 into main Nov 27, 2026
11 checks passed
@tmoosting
tmoosting deleted the serial-149 branch November 27, 2026 04:38

This branch was previously deployed

1 inactive deployment
pypi — ee7b3810 Deployed Nov 27, 2026 by tmoosting via publish #248
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