Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kpack-2.0.0.tar.gz (30.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kpack-2.0.0-py3-none-any.whl (31.3 kB view details)

Uploaded Python 3

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

Hashes for kpack-2.0.0.tar.gz
Algorithm Hash digest
SHA256 ea14eb95e18b882f2aa50a2ce39810eba9fb9563e3b31516c2f59af0b18b86cb
MD5 8d421bcf1b68dc1657620a31b407a5c6
BLAKE2b-256 a626c79b81b546e4b8f7f94910219347a707ae5d4c9a3f0cc5e28418b0eeb488

See more details on using hashes here.

Provenance

The following attestation bundles were made for kpack-2.0.0.tar.gz:

Publisher: release.yml on papeete-consulting/kpack

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for kpack-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7d40ab1619d524d06d3f5aa27892cfb784374deca2f35913e583b2bbce56272d
MD5 d3d6f42e59c320cfa226b09dc4b41886
BLAKE2b-256 fccb07486e21cc55cf804234328d65c458edf89307abde9a9ed08523343a5035

See more details on using hashes here.

Provenance

The following attestation bundles were made for kpack-2.0.0-py3-none-any.whl:

Publisher: release.yml on papeete-consulting/kpack

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page