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.
Metadata
Release files for hapax-spine 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hapax_spine-0.1.3.tar.gz | 213.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hapax_spine-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 348.2 kB
Release files / hapax_spine-0.1.3.tar.gz
| Download URL | hapax_spine-0.1.3.tar.gz |
|---|---|
| Size | 213.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ce962b633ff78086af803ffda71ed27dc111a98d95d96814d71cfd0f7f37b46e
|
|
BLAKE2b-256 checksum How to use checksums |
81bfa650780a9c79460944555eb835acc9fbe1e3bc6a4e07e654cc71af721e2e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / hapax_spine-0.1.3-py3-none-any.whl
| Download URL | hapax_spine-0.1.3-py3-none-any.whl |
|---|---|
| Size | 134.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
957fabc59ddc64c8ac222ece9360ef12738b85860f2942cad2ae4d6081fadbaa
|
|
BLAKE2b-256 checksum How to use checksums |
660b74c1e7db46b0fd89a2b164f40bac4aab338fd6f6b058fdd50b2a36161e51
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|