Skip to content

okf-parser 0.45.8

Choose a tag to compare

@github-actions github-actions released this 05 Sep 19:06
· 30 commits to main since this release
f1f7d62

okf-parser 0.45.8

  • schema exports a type whose ConceptSpecification already has a sibling .schema.sql even when the bundle has not produced its first concrete document of that type yet.

  • Discovery reads the authored concept_type from the specification, preserving type identity instead of reverse-engineering it from filesystem slugs.

  • JSON Schema, Zod and Pydantic therefore support contract-first workflows such as agent run scaffolds and future event types.

  • Fix the manual release entrypoint: validate an explicit semantic version against main, create or safely reuse the matching immutable vX.Y.Z tag at the current main SHA, and explicitly dispatch the existing release workflow on that tag. This keeps manual publication behind the same build, manifest, PyPI, public smoke-test, and GitHub Release gates as tag-driven releases.

  • Reduce cold-load allocation in the Rust semantic engine by consuming loaded concept documents by value and borrowing canonical LF-only source through Cow<str> instead of always cloning/normalizing full source strings. Preserve byte-for-byte semantic parity and same-host benchmark evidence showing a modest 3–8% end-to-end improvement that grows with bytes per document.

  • Add a semantics-preserving fast path for the canonical simple frontmatter order (type, title, description, then lexical remaining keys), while falling back to the existing YAML parser for complex or out-of-order YAML. Align Python and TypeScript canonical writers and preserve same-host benchmark evidence showing roughly 18–21% lower end-to-end load latency on the measured simple-frontmatter corpus.

  • Add OKFRepresentation, OKFDocument, the structural SupportsOKF/__okf__ protocol, to_okf() conversion, and dumps() canonical rendering.

  • Infer the required OKF type from a producer class by default while allowing valid metadata or caller overrides; require an explicit type for bare mappings rather than emitting type: dict.

  • Support JSON-like mappings directly and mapping-shaped Pydantic models through model_dump(mode="json"); root/scalar Pydantic models opt in explicitly with __okf__() instead of being wrapped in an invented metadata field.

  • Resolve an explicit __okf__ hook once and invoke it once; reject non-callable explicit hooks rather than silently falling back to another projection.

  • Normalize JSON scalars into OKF's spelling-preserving scalar domain while keeping YAML syntax, canonical physical ordering, and authored-document edit preservation inside okf-parser.

  • Allow release/vX.Y.Z branch pushes to enter the existing guarded release dispatcher when the branch SHA is exactly the current main; version validation, immutable tag creation/reuse, and delegation to publish.yml remain unchanged. This gives automation that can create Git refs a fail-closed path to initiate the official release without adding a second publisher.

  • Prefer DuckDB FTS/BM25 for lexical search only when the fts extension is already installed and locally loadable.

  • Disable DuckDB known-extension autoinstall and autoload before extension discovery, never issue INSTALL, and fall back to builtin_lexical_v1 on any local FTS failure.

  • Build the FTS table and index only in an in-memory DuckDB connection for the current search invocation; no persistent sidecar or canonical Markdown state is changed.

  • Add RFC 0014 and a measured SQLite physical-materialization target derived from canonical relations for exact identity lookup and immediate adjacency. DuckDB remains the relational/transformation baseline; SQLite is private, disposable derived state with parity tests and explicit build/break-even measurements rather than a new public backend semantic.