Single shared knowledge-pack engine for capability-map corpora (ADR-KCM-URBA-0002).
Project description
kpack
The single shared knowledge-pack engine for capability-map corpora — one
installable, one console script (kpack) serving every context across every
enterprise. Implements ADR-KCM-URBA-0002;
replaces the per-map CLIs gov-pack, pcm-pack/tech, and rlv-knowledge.
Architecture and rationale: docs/kpack-design.md.
How it works
id → ENTERPRISE (seg 0) → kpack config (enterprise → registry repo)
→ governance repo → vocab.yaml contexts: (context → repo)
→ CONTEXT (seg 0–1) → corpus repo → knowledge.yaml descriptor → fetch + walk
Each corpus publishes a navigation descriptor (knowledge.yaml) declaring how
it is fetched and walked — how many event→carrier layers it has and which fields
link them. The common edges live once in the shared meta-model cmm.1
(docs/examples/cmm.1.yaml). The engine walks the
corpus on demand and emits a uniform, role-keyed JSON envelope; it materialises no
graph and stores no credentials (corpora are fetched with your own git identity).
Install
pip install -e ".[dev]" # from source
# or, as a container (GitHub Packages):
docker run --rm ghcr.io/papeete-consulting/kpack pack BNK.RLVR.CAP.BSP.001.SCO
Commands
kpack pack <id> [--deep] [--compact] # capability pack (context from id)
kpack list --context BNK.TECH [--level L1|L2|L3] # list capabilities
kpack diff <from_ref> [--to <ref>] --context <C> # semantic by-id diff
kpack process <id> [--list] # DDD process model (if declared)
kpack version [--context <C>] # engine version / corpus provenance
Global flags: --ref, --repo-root (local dev), --cache-dir, --no-fetch,
--fresh, --config, --registry-repo, --registry-ref.
Configure
~/.config/kpack/config.yaml (or ./.kpack.yaml, or --config):
enterprises:
BNK: { registry_repo: Banking-PapeeteConsulting/banking-governance, registry_ref: main }
NUN: { registry_repo: naive-unicorn/naive-unicorn-governance, registry_ref: main }
default_enterprise: BNK
Develop
make test # pytest against a fake knowledge stub (tests/conftest.py)
make build # wheel + sdist
make docker # build the GHCR image
make smoke REPO=Banking-PapeeteConsulting/reliever-knowledge \
DESC=docs/examples/knowledge.BNK-RLVR.yaml CAP=BNK.RLVR.CAP.BSP.001.SCO
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kpack-2.0.0.tar.gz.
File metadata
- Download URL: kpack-2.0.0.tar.gz
- Upload date:
- Size: 30.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea14eb95e18b882f2aa50a2ce39810eba9fb9563e3b31516c2f59af0b18b86cb
|
|
| MD5 |
8d421bcf1b68dc1657620a31b407a5c6
|
|
| BLAKE2b-256 |
a626c79b81b546e4b8f7f94910219347a707ae5d4c9a3f0cc5e28418b0eeb488
|
Provenance
The following attestation bundles were made for kpack-2.0.0.tar.gz:
Publisher:
release.yml on papeete-consulting/kpack
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kpack-2.0.0.tar.gz -
Subject digest:
ea14eb95e18b882f2aa50a2ce39810eba9fb9563e3b31516c2f59af0b18b86cb - Sigstore transparency entry: 2058311571
- Sigstore integration time:
-
Permalink:
papeete-consulting/kpack@d0fc16f831cbb14cb3a665352fb48603d87c03dd -
Branch / Tag:
refs/tags/v2.0.0 - Owner: https://github.com/papeete-consulting
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@d0fc16f831cbb14cb3a665352fb48603d87c03dd -
Trigger Event:
push
-
Statement type:
File details
Details for the file kpack-2.0.0-py3-none-any.whl.
File metadata
- Download URL: kpack-2.0.0-py3-none-any.whl
- Upload date:
- Size: 31.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d40ab1619d524d06d3f5aa27892cfb784374deca2f35913e583b2bbce56272d
|
|
| MD5 |
d3d6f42e59c320cfa226b09dc4b41886
|
|
| BLAKE2b-256 |
fccb07486e21cc55cf804234328d65c458edf89307abde9a9ed08523343a5035
|
Provenance
The following attestation bundles were made for kpack-2.0.0-py3-none-any.whl:
Publisher:
release.yml on papeete-consulting/kpack
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kpack-2.0.0-py3-none-any.whl -
Subject digest:
7d40ab1619d524d06d3f5aa27892cfb784374deca2f35913e583b2bbce56272d - Sigstore transparency entry: 2058312186
- Sigstore integration time:
-
Permalink:
papeete-consulting/kpack@d0fc16f831cbb14cb3a665352fb48603d87c03dd -
Branch / Tag:
refs/tags/v2.0.0 - Owner: https://github.com/papeete-consulting
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@d0fc16f831cbb14cb3a665352fb48603d87c03dd -
Trigger Event:
push
-
Statement type: