Repository navigation
Releases
0.5.0
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:
- 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
bundledxascan 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 fromcontract/openapi.json. - Two reader routes on the server,
/versions/{version_id}/documentand
/laws/{law_id}/versions; the run stream carries astoredevent 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.
0.4.0
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/ --embedwrites a bundle, or a bare AKN file, into
Postgres and embeds its provisions;codify searchruns the hybrid retrieval
over them;codify comparealigns two documents or two stored versions.codify serveis a thin HTTP server over the same library calls: ten read and
run routes with in-memory runs and an SSE stream,--openapiprints the
schema, andcontract/openapi.jsonis the committed copy a drift test guards.codify mcpexposes seven read tools to an MCP client over stdio or
streamable HTTP, behind themcpextra.
Library, additive:
storage.get_versionandlist_versionstakewith_akn=Falsefor 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/