Skip to main content

akms-records

Experimental. The storage format, Python API and CLI may change before a stable release. Do not rely on them for data you cannot re-create.

A schema-driven, provenance-aware record store for AKMS. It keeps typed experiences and observations (decisions, research findings, failed and successful approaches, preferences, ideas, workflow lessons) as an append-only history of plain files.

  • Open payload, fixed envelope. You register JSON Schemas (Draft 2020-12) for your payloads. A fixed envelope carries identity, schema reference and digest, scope, time, origin, source references, summary, tags, sensitivity, review state and lifecycle. Payloads cannot shadow envelope fields.
  • Git-mergeable history. One directory per record and one immutable file per revision, hash-chained and sealed. Work on different records merges without conflicts; a conflict on the same record is detected, never resolved silently.
  • No lock, no network, no LLM. Writes use an exclusive hard link, schema references never leave the schema, and nothing calls a provider unless you hand consolidate one.
  • Fast recall and wake. A derived, rebuildable SQLite FTS5 index answers scoped recall and token-budgeted wake, rendering record text as fenced data under a fixed layout.
  • Source-linked summaries (opt-in). consolidate writes topic summaries whose every assertion cites the record revisions it came from; they turn stale when a source changes. Extractive by default; a provider can be a callable or an external command.
  • Explicit promotion. With the [akms] extra, promote writes a reviewed record as an AKMS project-local node, never to the global vault. A promoted record then leaves wake, because the loadout serves its node.
  • A read-only failure-memory importer. import --from-failure-memory reads a registry into records, writes nothing back and needs no other package.
  • Host-neutral. Without the extra it does not need or import akms.

A record is not a fact: records stay records unless a person promotes them.

Requirements

  • Python >=3.12,<3.13
  • jsonschema and referencing
  • SQLite with FTS5 in Python's sqlite3 (standard builds) for recall and wake
  • A filesystem with hard links (any local disk on Linux, macOS and Windows)
  • Optional: the qmd command and its embedding model, for recall --semantic

Explicit authoring and review

Start with your own registered schema. draft prepares an editable document without inventing values; validate reports missing fields without saving. search accepts plain text, and review queue / review set support explicit, revision-checked review. JSON remains the default; show and the queue also offer --format text. See the workflow guide. The package includes an opt-in, schema-neutral agent skill; it installs no hooks.

First commands

pip install akms-records

akms-records schema register --template decision --scope project:example
akms-records add --scope project:example --schema decision/v1 --file decision.json
akms-records list --scope project:example
akms-records show rec-20261103-k3f9m2xa --scope project:example
akms-records recall --scope project:example --query surrogate
akms-records wake --agent scout --task "review the model" --budget-tokens 1200 \
  --scope project:example
akms-records doctor --scope project:example

decision.json:

{
  "payload": {
    "decision": "Keep the existing surrogate model",
    "rationale": "Its validation error is within budget"
  },
  "tags": ["surrogate"]
}

Project-scope records live in <repo>/.knowledge/records/ and are meant to be committed. Agent and shared scopes live under ~/.knowledge/records/ (override with AKMS_RECORDS_HOME).

Documentation: https://cemm2.github.io/AKMS/reference/records/index.html

Metadata

Release files for akms-records 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for akms-records 0.4.0
File Size Uploaded Provenance Actions
akms_records-0.4.0.tar.gz 214.0 kB With provenance Details for akms_records-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for akms-records 0.4.0
File Interpreter ABI Platform Actions
akms_records-0.4.0-py3-none-any.whl Python 3 none any Details for akms_records-0.4.0-py3-none-any.whl

Total release size: 363.7 kB

Release files / akms_records-0.4.0.tar.gz

Download URL akms_records-0.4.0.tar.gz
Size 214.0 kB
Tags Source
SHA-256 checksum
How to use checksums
386bb403a75f51817c50b9fc3260638c5032aa15de588142b21d7e72a4abd40d
BLAKE2b-256 checksum
How to use checksums
5e55ee502bab92b66747617a7276698c7e684ddb7c6b32d72bd8c913b0377a95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

Release files / akms_records-0.4.0-py3-none-any.whl

Download URL akms_records-0.4.0-py3-none-any.whl
Size 149.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
12481423638d413324f8d50d8f1d8c38a59955c2bac9f50a8e7881e4d3635fbd
BLAKE2b-256 checksum
How to use checksums
c7e3ea77f2fcacaf8ccffb140bdd1736937d32c292ff9aab0a382c7ad07d7d84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

Security for akms-records 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for akms_records-0.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 11, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page