Skip to content

Releases

0.5.0

Choose a tag to compare

@lmwilki lmwilki released this 20 Sep 21:52
877ca82

One structuring change, so the minor moves as VERSIONING.md prescribes while the
major is zero; the rest is additive.

Breaks, in that the structurer's output changes for documents it already read:

  1. The anchor scan reads marginal-note layouts: where a jurisdiction declares
    display.heading_type: marginal_note, a bare basic-unit number under a
    heading line (the shape a scanned gazette transcribes to) is a section, with
    that line as its heading. The coverage denominator counts the same markers, so
    a scan that lost them reads below 1.0 instead of measuring nothing. The
    bundled xa scan now structures its twenty sections rather than six parts.

New:

  • A web app over the server, apps/web: laws, reader, search, jurisdictions and
    ingest with a live run stream; types generated from contract/openapi.json.
  • Two reader routes on the server, /versions/{version_id}/document and
    /laws/{law_id}/versions; the run stream carries a stored event with the new
    version and law ids; search matches carry law and version context.
  • Notebooks under docs/notebooks/: Codify 101, 201, 301 and 301a.

Repository: the publish action reads current metadata; Dependabot version
updates with a release cooldown; pinned actions advanced; pypdf 6.18.1.

https://pypi.org/project/codify-core/0.5.0/

0.4.0

Choose a tag to compare

@lmwilki lmwilki released this 18 Sep 23:51

The first published release. Everything after the bundle: a store, a server, a
contract and an MCP surface, over the library that was already there. No
structuring behaviour changes. Under VERSIONING.md the minor moves while the
major is zero.

New commands:

  • codify load bundle/ --embed writes a bundle, or a bare AKN file, into
    Postgres and embeds its provisions; codify search runs the hybrid retrieval
    over them; codify compare aligns two documents or two stored versions.
  • codify serve is a thin HTTP server over the same library calls: ten read and
    run routes with in-memory runs and an SSE stream, --openapi prints the
    schema, and contract/openapi.json is the committed copy a drift test guards.
  • codify mcp exposes seven read tools to an MCP client over stdio or
    streamable HTTP, behind the mcp extra.

Library, additive:

  • storage.get_version and list_versions take with_akn=False for a
    metadata read that leaves the body unloaded; get_version_akn_length.
  • Every JSON route answers with a Pydantic model, codify.serve.schemas; the run
    stream is server-sent events.
  • The EU fetcher resolves every hop, redirects included, through the address
    guard.

Repository: security policy, code of conduct, contributor guide, issue and pull
request templates, and the boundary decision naming structure-preserving
translation as core.

Install: uv add codify-core or pip install codify-core; extras serve, mcp, migrations.
https://pypi.org/project/codify-core/0.4.0/