Skip to content

Commit 9806e21

Browse files
tmoostingclaude
andcommitted
0.107.2: schema repinned to schema-dist v0.34.0-dist.109 (canonical 00.34.00 unchanged): the calendar profile refuses an era year_base other than 0 or 1, refuse-year-base-five in the replayed fixture
The reader already refused it; both fixture tests count 77 cases and 43 refusals, one names the case. A reader taking any whole year_base turns it red. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 0a78ce3 commit 9806e21

10 files changed

Lines changed: 49 additions & 22 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ The package version runs on its own semver; the schema it is generated from is `
44

55
## Unreleased
66

7+
## 0.107.2 (2026-11-08)
8+
9+
- The schema pin moves to schema-dist `v0.34.0-dist.109` (canonical `00.34.00` unchanged, so `SCHEMA_VERSION` is the same; no schema file moved). The calendar profile now refuses an era whose `year_base` is present and not 0 or 1, as its field table always said, and its fixture gains `refuse-year-base-five` (77 cases, 43 refusals). `onlyworlds.calendar` already refused such an era; the replayed fixture now holds it.
10+
711
## 0.107.1 (2026-11-06)
812

913
- `TOOLS` is the tools list at `9452529`: Atlas's row now says `opens_public: True` (its links open a public world with nothing signed in, and `needs` stays `account` for a private one), so `openers_for` with `TOOLS` offers Atlas as a live row on a world's public page.

‎codegen/schema-dist/MANIFEST.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@
144144
"presentation.json": "af84662c29628b6e90b923c9541f68f5924563adce397cebbadfdbf0f06e5f18",
145145
"profiles/address.fixture.json": "897e2bf6091ffccbe280c904f5f890d0f09ee38ed25e40f24519b96abe6887d0",
146146
"profiles/address.md": "f77f45b3cbdea7e2f23ca8299abfd901d6c648185ab867903c35f1411cebe934",
147-
"profiles/calendar.fixture.json": "1dddb5c94d9b290bc0dcba9a966b3934dee5e4bf7e1dd8e579f4f783ff081d5e",
148-
"profiles/calendar.md": "9a8762eff0597da3bff2ad0250a3dde81ecb721349e8c1a30cd64d381d126d26",
147+
"profiles/calendar.fixture.json": "d2cbe4780c8322d527e13a4e3eaf0dfe6826f3ac20016fe9f4ca18979f2119cb",
148+
"profiles/calendar.md": "915cc4242364fa973b1cccd15d5e91879a90d34441bbdd77eecb3c71a611dc24",
149149
"profiles/charter.fixture.json": "a99bd7c799921ff00c82ce2f8834cc08d15a947faa05a36de4437ed80ae90476",
150150
"profiles/charter.md": "1f8f28d0bd91918992ffedc471cb859f03ef2fa2a348fd619e308815503fb657",
151151
"profiles/checks.fixture.json": "a0a4c1825db53faad4fd25d80b9fcdf5c99b101c718dd940996ac9132b20c58c",
@@ -201,7 +201,7 @@
201201
"schema/zone.yaml": "cca04ee498fb813fa18b96f1ac99816e7f1a8ae1fb9e21c48b37620dbb674856",
202202
"schema.json": "aa671d9454a8cd08cf400e205287d18433d3c05dd6ed5b43ae578be67d40b006",
203203
"SECURITY.md": "939ee364b06f0b749bdd4cbe66b2fe49322c95abe732650ec4ef062a0c03820a",
204-
"VERSION": "a19f98c20a5f85fe21ef43dd71d8868e3853c3bbd62116b517e81d58078bade1",
204+
"VERSION": "ec21cb31fc40b4285245d7ca7598f3f3cb68a326c4a106d2bc22af33eaca9e7b",
205205
"walk/lint_folder.py": "67d1ceab980f4a8f782f9fe31b79f02a79ba08302f0021b1eb87c1c5b3ab2400",
206206
"walk/rulings.yaml": "1fb87ce4012d160b809e0aac50688c62405d2a5e6e303a57df84b98c249374ca",
207207
"walk/schema_walk.py": "e4a490dda5133e3961252cd8675eb39e5b214df68f6a661fa8601ccd69e6aed0"

‎codegen/schema-dist/VERSION‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
canonical: 00.34.00
2-
serial: 108
3-
published: 2026-11-04
2+
serial: 109
3+
published: 2026-11-07

‎codegen/schema-dist/profiles/calendar.fixture.json‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,22 @@
514514
},
515515
"valid": false
516516
},
517+
{
518+
"name": "refuse-year-base-five",
519+
"why": "a year_base that is a whole number but not 0 or 1 (5): the field table's range, serial 109",
520+
"value": {
521+
"version": 1,
522+
"grain": "year",
523+
"eras": [
524+
{
525+
"name": "Age",
526+
"start": 0,
527+
"year_base": 5
528+
}
529+
]
530+
},
531+
"valid": false
532+
},
517533
{
518534
"name": "refuse-month-name-not-string",
519535
"why": "a month name that is not a string",

‎codegen/schema-dist/profiles/calendar.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ The TypeScript SDK holds this whole as `breakdownStep` and `formatStep` (and `pa
4141
- the months' `names` and `lengths` are not lists of the same, non-zero length, or a month name is not a string;
4242
- a month length, `bundles.year.steps`, `bundles.week.length` or an `every_years` is not a whole number from 1; an `except` is not a strictly ascending list of whole numbers, each larger than and a multiple of `every_years` and of the one before (`[4]` under `every_years` 4 selects no year), or an `offset` is not a whole number;
4343
- `bundles.week.names` is not a list of strings;
44-
- `eras` is present and not a list (`false`, `0` and `""` included), or an era lacks a string `name` or a whole-number `start`, or its `end` or `year_base` is present and not a whole number;
44+
- `eras` is present and not a list (`false`, `0` and `""` included), or an era lacks a string `name` or a whole-number `start`, or its `end` is present and not a whole number, or its `year_base` is present and not 0 or 1;
4545
- `intercalary` is present and not a list (`false`, `0` and `""` included), or an entry lacks a string `name` or a whole `after_month`, or its `after_month` names a month the year does not have: past the last, or below the first. A day placed after a month the year does not have has no position, and a reader never invents one; with no months, any intercalary entry is unreadable, whatever its `after_month`.
4646

4747
Every reader refuses the same values, or one tool shows a calendar where another shows numbers.
4848

4949
**What a writer must keep.** Everything it did not change, unknown keys included. A re-key never rewrites the value (it holds no element ids).
5050

51-
**Conformance.** `calendar.fixture.json`, beside this page: 76 cases, 52 generated from `@onlyworlds/sdk` 4.42.2, 14 for the amendment from 4.76.0 (two of them replace `refuse-version` and `era-overlap-down-later-start`), 11 for serial 89, written from its rulings (and `intercalary-after-month-out-of-range` now a refusal), and 1 for serial 90, 34 calendars with 209 steps and the words and breakdown each one reads as, and 42 values a reader must refuse. One case, `found-by-the-field-never-by-type`, also carries a world's elements and the ids a reader finds a calendar on. The steps of the two LegendKeeper calendars (`v2-except-chain-gregorian`, `v2-offset-harptos`) each match what LegendKeeper's API answered for a user's own project on 2026-10-25; the Gregorian case includes the days around Leap Day in 1900, 2000 and 2100, where a reader whose days ignore `except` while its year count keeps it would misread. A reader conforms when it passes every case.
51+
**Conformance.** `calendar.fixture.json`, beside this page: 77 cases, 52 generated from `@onlyworlds/sdk` 4.42.2, 14 for the amendment from 4.76.0 (two of them replace `refuse-version` and `era-overlap-down-later-start`), 11 for serial 89, written from its rulings (and `intercalary-after-month-out-of-range` now a refusal), 1 for serial 90, and 1 for serial 109 (`refuse-year-base-five`: a whole-number `year_base` outside 0 or 1, the field table's range, which the refusal list had not said), 34 calendars with 209 steps and the words and breakdown each one reads as, and 43 values a reader must refuse. One case, `found-by-the-field-never-by-type`, also carries a world's elements and the ids a reader finds a calendar on. The steps of the two LegendKeeper calendars (`v2-except-chain-gregorian`, `v2-offset-harptos`) each match what LegendKeeper's API answered for a user's own project on 2026-10-25; the Gregorian case includes the days around Leap Day in 1900, 2000 and 2100, where a reader whose days ignore `except` while its year count keeps it would misread. A reader conforms when it passes every case.
5252

5353
Source: the TypeScript SDK's calendar kernel (`@onlyworlds/sdk` 4.42.2: `readCalendarConfig`, `breakdownStep`, `formatStep`), written from Atlas's calendar, which made the field. Amended 2026-10-25 (version 2: `except` and `offset` on an intercalary entry; an open era's end skips `down` eras), for two findings: three calendars version 1 could not hold exactly (Gregorian, Harptos and Scrolls), which now match what LegendKeeper's API answered for a user's own project on 2026-10-25, and an era-order fault found in two readers the same day. Amended 2026-10-29, serial 89 (an `after_month` naming a month the year does not have and a `grain` with nothing left after trimming are not a calendar; a `format` or `format_intercalary` that is not a string is ignored), from five readers' ports of the profile, which named the cases where a wrong reader still passed every case. Amended 2026-10-29, serial 90 (an intercalary entry on a calendar with no months is not a calendar, whatever its `after_month`, 0 included: `after_month` names a place between months, and there are none), from a reader's question after serial 89.

‎codegen/schema-pin.json‎

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,20 @@
22
"_what": "The recorded pin for the vendored OnlyWorlds schema distribution (codegen/schema-dist/, copied byte-exact). Do not edit by hand; re-vendor from the pinned tag and review the diff. Kept equal to the npm SDK's pin (github.com/OnlyWorlds/sdk, codegen/schema-pin.json) on purpose: two clients, one schema.",
33
"_why_manifest_sha256": "Verifying the tree against its own MANIFEST.json only proves internal consistency. If the tag moved, the manifest moved with it. The hash recorded here is the one first accepted, which is what makes a moved tag visible.",
44
"repo": "https://github.com/OnlyWorlds/schema-dist",
5-
"tag": "v0.34.0-dist.108",
6-
"commit": "c618b9db474e9f77a9626cf55a1cc0b5256be154",
7-
"manifest_sha256": "077a53b463e562b729ba96e941d8ba82403e7cd7184b95450ee57b7b6edbf6ed",
5+
"tag": "v0.34.0-dist.109",
6+
"commit": "bc306267916638a3386effd7561ae76cbdb0dc99",
7+
"manifest_sha256": "1aa35790618aa99ca22989bc07b4054f6e35f7fca18a435da48646533f6d3f1c",
88
"canonical_version": "00.34.00",
9-
"dist_serial": 108,
10-
"published": "2026-11-04",
11-
"pinned_at": "2026-11-05",
9+
"dist_serial": 109,
10+
"published": "2026-11-07",
11+
"pinned_at": "2026-11-08",
1212
"pinned_by": "The maintainer: tree from `git archive` of the tag in a schema-dist checkout (206 files: the 205 the MANIFEST lists, and MANIFEST.json itself); files re-hashed against MANIFEST.json by generate_schema.py; MANIFEST self-hash matched against the raw file GitHub serves at the tag, whose ref resolves to the commit above.",
1313
"previous_pins": [
14+
{
15+
"tag": "v0.34.0-dist.108",
16+
"manifest_sha256": "077a53b463e562b729ba96e941d8ba82403e7cd7184b95450ee57b7b6edbf6ed",
17+
"note": "superseded by v0.34.0-dist.109 (canonical 00.34.00 unchanged, no schema file moved; calendar.md's refusal clause reads an era's year_base present and not 0 or 1, as its field table says, and calendar.fixture.json gains refuse-year-base-five, 77 cases and 43 refusals)"
18+
},
1419
{
1520
"tag": "v0.34.0-dist.107",
1621
"manifest_sha256": "6b8917461a4af7100017845ec32dc196b4e03733b30547a9a06b30f2aa6a242d",

‎src/onlyworlds/_schema.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# GENERATED by codegen/generate_schema.py from the vendored schema distribution. Do not hand-edit.
22
# Regenerate: python codegen/generate_schema.py (CI/test: --check)
3-
# Source: https://github.com/OnlyWorlds/schema-dist @ v0.34.0-dist.108 (c618b9db474e9f77a9626cf55a1cc0b5256be154)
3+
# Source: https://github.com/OnlyWorlds/schema-dist @ v0.34.0-dist.109 (bc306267916638a3386effd7561ae76cbdb0dc99)
44

55
"""Schema provenance, the 22 element types and their fields, from the pinned schema distribution."""
66

7-
SCHEMA_DIST_TAG = "v0.34.0-dist.108"
7+
SCHEMA_DIST_TAG = "v0.34.0-dist.109"
88
SCHEMA_VERSION = "00.34.00"
9-
SCHEMA_DIST_SERIAL = 108
10-
SCHEMA_MANIFEST_SHA256 = "077a53b463e562b729ba96e941d8ba82403e7cd7184b95450ee57b7b6edbf6ed"
9+
SCHEMA_DIST_SERIAL = 109
10+
SCHEMA_MANIFEST_SHA256 = "1aa35790618aa99ca22989bc07b4054f6e35f7fca18a435da48646533f6d3f1c"
1111

1212
# Canonical order, as the walk declares it.
1313
ELEMENT_TYPES: tuple[str, ...] = (

‎src/onlyworlds/_version.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.107.1"
1+
__version__ = "0.107.2"

‎tests/test_calendar.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,10 @@ def test_the_vendored_fixture_reads_every_case_as_written() -> None:
7676
assert doc["profile"] == "atlas_calendar"
7777
cases = doc["cases"]
7878
# Counted, so a fixture that stops loading (or loses cases) fails here rather than passing on nothing.
79-
assert len(cases) == 76
80-
assert sum(c["valid"] for c in cases) == 34 and sum(not c["valid"] for c in cases) == 42
79+
assert len(cases) == 77
80+
assert sum(c["valid"] for c in cases) == 34 and sum(not c["valid"] for c in cases) == 43
81+
# Serial 109: an era's year_base is 0 or 1, so a whole number like 5 is refused.
82+
assert any(c["name"] == "refuse-year-base-five" and not c["valid"] for c in cases)
8183
assert sum(len(c.get("steps", [])) for c in cases) == 209
8284
assert len(next(c for c in cases if c["name"] == "v2-except-chain-gregorian")["steps"]) == 29
8385
failed = []

‎tests/test_legendkeeper_calendars.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@ def version_fits(value: dict[str, Any]) -> bool:
6868

6969

7070
def test_the_reader_reads_the_vendored_fixture_as_the_profile_does() -> None:
71-
"""The calendar fixture beside the profile (75 cases, 34 calendars and 41 refusals): the package's
71+
"""The calendar fixture beside the profile (77 cases, 34 calendars and 43 refusals): the package's
7272
reader refuses exactly the values the fixture marks not valid (``tests/test_calendar.py`` replays
7373
the steps too)."""
7474
fixture = json.loads((DIST / "profiles" / "calendar.fixture.json").read_text(encoding="utf-8"))
7575
cases = fixture["cases"]
76-
assert len(cases) == 76 and sum(not c["valid"] for c in cases) == 42
76+
assert len(cases) == 77 and sum(not c["valid"] for c in cases) == 43
7777
wrong = [c["name"] for c in cases if (read_calendar_value(c["value"]) is not None) != c["valid"]]
7878
assert wrong == []
7979

0 commit comments

Comments
 (0)