The SDLC-runtime mechanism (coord ledger, dispatch-policy evaluator, capability registry + receipts, quota arithmetic, EDT measurement, gate-event producer) for the Hapax n-DLC automation system.
Project description
hapax-spine
The SDLC-runtime mechanism behind the Hapax n-DLC automation system, as a small Python wheel. It is the governed core that turns a stream of work events into scored, routable, auditable state:
- an append-only coordination event ledger (+ its projection engine),
- a capability registry + receipts (capabilities identified by attested, measured behavior),
- a dispatch-policy evaluator (fail-closed, receipt-backed),
- quota / spend arithmetic, an EDT (equal-depth-of-treatment) fairness measurement engine, and a gate-event producer (the observational evidence stream).
It is dependency-light (pydantic, pyyaml) and consumed by reins
(the cockpit) and, internally, by hapax-council.
Install
uv add hapax-spine # or: pip install hapax-spine
Use
import hapax.spine.dispatcher_policy as dp
import hapax.spine.platform_capability_registry as reg
# The instance supplies its config-DATA dir (the registry, quota fixtures, EDT knobs)
# via HAPAX_SPINE_CONFIG_DIR (or pass an explicit path). Import is always safe; only an
# unconfigured *load* fails loud.
registry = reg.load_platform_capability_registry() # env-injected path
sources = dp.load_dispatch_policy_sources(registry_path=my_registry_json) # or explicit
Set HAPAX_SPINE_CONFIG_DIR (and HAPAX_SPINE_REPO_ROOT) to your instance's config directory.
Honest scope
hapax-spine ships the mechanism. In v0.1.x the instance taxonomy — the routing-class keyspace, the reqvec dimensions, the provider/payment rails — ships as council-default vocabulary, not yet fully injected (see the v1.1 instance-free milestone). So a second instance runs the same engine but currently inherits those defaults; making the taxonomy (and the governance axioms) fully injectable is on the roadmap. We don't claim capability-/axiom-agnosticism the code doesn't yet deliver.
The 15 modules were extracted history-preserving from hapax-council; the wheel is agents/logos-free and
imports only pydantic + pyyaml.
License
Source-available under the Business Source License 1.1 (see LICENSE): free for all non-competing
use — self-host, build on it, run your own instance — converting to Apache-2.0 on the change date. Only
offering it as a competing hosted service is reserved.
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 hapax_spine-0.1.3.tar.gz.
File metadata
- Download URL: hapax_spine-0.1.3.tar.gz
- Upload date:
- Size: 213.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"CachyOS Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce962b633ff78086af803ffda71ed27dc111a98d95d96814d71cfd0f7f37b46e
|
|
| MD5 |
44be5f480e5145461c1ac7285a598cfb
|
|
| BLAKE2b-256 |
81bfa650780a9c79460944555eb835acc9fbe1e3bc6a4e07e654cc71af721e2e
|
File details
Details for the file hapax_spine-0.1.3-py3-none-any.whl.
File metadata
- Download URL: hapax_spine-0.1.3-py3-none-any.whl
- Upload date:
- Size: 134.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"CachyOS Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
957fabc59ddc64c8ac222ece9360ef12738b85860f2942cad2ae4d6081fadbaa
|
|
| MD5 |
f3df7ac3f85bff406c70bafeced0ebeb
|
|
| BLAKE2b-256 |
660b74c1e7db46b0fd89a2b164f40bac4aab338fd6f6b058fdd50b2a36161e51
|