Witful
Witful is the Python library and CLI for Identity, a user-owned policy and learning layer for intelligent agents. It turns reviewed guidance, sourced lessons, and observed decisions into validated, searchable records that engineers and agents can reuse across projects.
Witful supplies the collection and review tooling. The executing agent applies relevant guidance within its granted authority; people decide which teachings to accept. Git versions the source records, while configured CI and runtime hooks validate changes and check review coverage.
Table of contents
Install
Requires Python 3.12+ on macOS or Linux, excluding Python 3.14.1.
pip install witful
witful --help
Use witful init ./my-collection to create an empty collection when you need a new
one. Keep existing collections in place and pass --repo to the relevant commands.
See CLI contracts and first run.
Optional extras are postgres for PostgreSQL and sapience for MCP transport.
The Sapience adapter is under development in this checkout until the next release;
use pip install '.[sapience]' here to try it. The core package does not install
Sapience or its vector database.
Responsibilities
The workflow is to retrieve applicable guidance, perform authorized work, record what happened, and review the result against that guidance. Witful supports the record and review steps through these capabilities:
- Validate the attrs/cattrs hierarchy and append-only journals.
- Index lessons in SQLite or optional PostgreSQL.
- Preserve concise decisions and source snapshots for reproducible replay.
- Record observed applications, tool use, and project checkpoints.
- Track explicit runtime provenance, reconcile pending tasks, and compare native evidence across instances.
- Render plots from recorded evidence and explicitly export selected awareness figures.
- Check publication inputs with the PII scanner and configurable deny terms.
- Install and synchronize encrypted, signed private collections.
- Isolate concurrent sleeves, sign backups, and reconcile their histories before closure.
- Optionally project reviewed concepts into Sapience and save generated review proposals.
Source journals remain owned by the collection. Generated proposals require review before they become accepted lessons. Application counts describe recorded use; completion checks establish review coverage. Evidence quality, permission checks, and runtime enforcement remain responsibilities of the people and integrations using those outputs.
Guides
- Completion audits: review every concept before handing work back.
Architecture and collection conventions, CLI, Sapience integration, awareness figures, private collection setup, multisleeving, observed instances, security, and development.
Hierarchy terminology
The hierarchy is Identity -> Discipline -> Skill -> Lesson -> Insight. An Insight
is a concrete, reusable takeaway from a sourced Lesson. The Python type is
Insight, and lessons and catalog annotations expose an insights tuple.
New catalogs use version 2 and the insights field. Version-1 catalogs with
lemmas remain readable and serialize with their original spelling, preserving
content-addressed snapshots and decision chains. To migrate a current catalog,
change its version to 2 and rename each annotation's lemmas key to insights
together. Keep concept IDs unchanged. Do not edit historical journals or snapshots.
Checkpoint comparisons retain their existing digest representation, so the rename alone does not count as learning. Current plots, CLI output, and MCP projections use Insight; existing projected memory IDs remain stable. Historical replay still requires acknowledgment of renderer changes before producing different plot bytes.
Metadata
Release files for witful 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| witful-0.3.1.tar.gz | 144.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| witful-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 346.6 kB
Release files / witful-0.3.1.tar.gz
| Download URL | witful-0.3.1.tar.gz |
|---|---|
| Size | 144.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7a4efa1722e46080bf4a8e320e85ed0c02a78e56f0457a7423ad54bb9adcfa57
|
|
BLAKE2b-256 checksum How to use checksums |
366799f8c28efd233500f843ee229fa27ed0a087eeef7f1aa9fe69547cf8f7c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.5.1 CPython/3.14.8 Linux/6.17.0-1022-azure
|
Release files / witful-0.3.1-py3-none-any.whl
| Download URL | witful-0.3.1-py3-none-any.whl |
|---|---|
| Size | 202.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6be785ccdcd7132f47dbfcea38d89acec42f710c9bffab1bc2839266972821d6
|
|
BLAKE2b-256 checksum How to use checksums |
5f17dce75a702096624577221467173803c2252f932632f0cb77a0cec95e5d26
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.5.1 CPython/3.14.8 Linux/6.17.0-1022-azure
|