Skip to content

0.158.0: OKF 0.3 export and ApiError.limit - #74

Merged
tmoosting merged 2 commits into
mainfrom
okf-0.3
Nov 27, 2026
Merged

tmoosting merged 2 commits into
mainfrom
okf-0.3

Conversation

@tmoosting

Copy link
Copy Markdown
Member

Two changes for 0.158.0.

OKF 0.3. The exporter's pin moves to the spec's version 0.3 (527e81a) in its new repository, open-knowledge-format/open-knowledge-format. The root index says okf_version: "0.3" and carries the world's name as title and a one-sentence description (section 8.1). Neither of 0.3's two breaking changes reaches what the export writes. Strings that YAML 1.2's core schema reads as numbers (1e5, 0o17) are now quoted. Our own frontmatter keys keep their names: 0.3 advises an x- prefix, but a reader must accept unknown keys, and renaming would change every bundle. Checked locally: the reference parser and viewer at the new pin (OKF_REFERENCE_SRC, no skip), and OKF's v0.3 validate.py --strict on the Hyperion export: 0 errors, 0 warnings, 36 notes that keys carry no x- prefix.

ApiError.limit. keel will name the limit behind its three size refusals in a new envelope key, limit, a key of info.x-ow-limits. ApiError.limit reads it as an open string, with is_element_too_large, is_element_too_many_links and is_extensions_too_large, as the npm SDK's 4.219.0. The wire test allows the key once the document declares it, then requires it read and each name in the limits block: checked on the live document, on a copy declaring limit and on one with a name renamed (fails); main's test fails on the declaring copy.

Gates run locally in the order of AGENTS.md, all exit 0; the wire and live line, 27 passed.

🤖 Generated with Claude Code

tmoosting and others added 2 commits November 27, 2026 22:00
…pository

The spec moved to open-knowledge-format/open-knowledge-format (the old address
is marked deprecated) and to version 0.3. The root index now says
okf_version "0.3" and carries the bundle metadata of section 8.1: the world's
name as title and a one-sentence description. Neither of 0.3's breaking
changes reaches the export (no path fields, no trust frontmatter). A string
YAML 1.2's core schema reads as a number (1e5, 0o17, 1.5e3) is now quoted.
superseded_by and license join the keys an OnlyWorlds field is renamed past.
OKF's reference parser and viewer at the new pin read the export, and its
v0.3 validator finds the example world's bundle conformant with --strict.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ee predicates

keel will name the limit behind its three size refusals in a new envelope key,
limit, a key of the API document's info.x-ow-limits; the code stays
invalid_request. ApiError reads it as an open string and gains
is_element_too_large, is_element_too_many_links and is_extensions_too_large,
as the npm SDK's 4.219.0. The wire test allows limit on the error envelope
once the document declares it, and then requires it read and each
predicate's name in info.x-ow-limits. Also the 0.158.0 entry for the OKF 0.3
export.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tmoosting
tmoosting merged commit 1eae535 into main Nov 27, 2026
11 checks passed

This branch was previously deployed

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