Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.7.0b2 instead.

sia-hu — Sia + Hu

sia-hu: Sia (hidden perception) → Hu (uttered word)

Sia (sỉꜣ): divine perception, deep insight, interior knowledge — perceiving what is hidden inside a closed form BEFORE it is spoken (the pre-verbal activation state, latent internal representation). Hu (ḥw): the uttered word, spoken output, token generation.

A logit lens that reads Sia before it becomes Hu is a 1-to-1 conceptual match:

Egyptian concept sia-hu role Repository What it does
Sia — hidden perception AUTHORITY — scores model_headroom/ Reads model weights (the hidden form) and computes a headroom score in [0.0, 1.0]. Nine signals inspect latent structure: weight spectra, activation balance, expert routing, gradient ratios.
Hu — uttered word CARRIER — emits capture-proxy/ Runs an OpenAI-compatible proxy that logs every request/response before forwarding. Emitted JSONL records, sidecar headroom.json, and weight_pairs.json are the uttered output — token generation made observable.
The bridge CLI sia sia <subcommand> forwards to the corresponding existing CLI. Neither scores nor emits itself — it bridges Sia and Hu.

Contract (never inverted):

  • Authority scores (model_headroom); carrier never scores (capture-proxy).
  • Proxy never scores; authority never proxies.
  • Proxy → authority: emits {capture_id}.headroom.json + {capture_id}-weight_pairs.json in the loader format the authority consumes.
  • Authority → proxy: defines the 2-D pair contract and signal semantics; the proxy never invents a signal meaning.
  • Agreement between the authority and carrier implementations is the cross-check — one voice is an echo.

See docs/architecture/sia-hu-identity.md for the full cosmology, and docs/index.md for the unified documentation tree.


One project, two packages

Package Role Rule
src/model_headroom/ Authority — scores training headroom (reads Sia) Never proxies
src/capture_proxy/ Carrier — emits sidecar capture (emits Hu) Never scores

Both are tracked packages inside this single repo — not submodules, not gitignored, not separate remotes. One clone carries the whole workspace: single pyproject.toml, single uv.lock, single ruff/mypy/pytest config, installed editable from the repo root, exposing capture-proxy, model-headroom, model-headroom-refusal, and sia.

model_headroom is the sole scoring authority; capture-proxy emits artifacts in the format the authority consumes. Agreement between the two is the cross-check.


The unified sia CLI

sia <subcommand> <args> forwards to the corresponding existing CLI's main():

sia subcommand Forwards to Role
sia capture-proxy capture-proxy Carrier — emits Hu
sia model-headroom model-headroom Authority — scores Sia
sia model-headroom-refusal model-headroom-refusal Refusal analysis

Each main() returns an int and only calls sys.exit() inside its if __name__ == "__main__" guard. Exit codes propagate. sia adds no flags, no behavior, no new subcommands beyond the three it aliases.

See docs/guides/sia-cli.md and docs/reference/cli-flags.md.


Quick start

pip install -e .                # carrier package only
pip install -e ".[headroom]"     # + torch / numpy / safetensors (scoring)
pip install -e ".[dev]"         # + pytest / mypy / ruff

Verify: ruff check . && ruff format --check . && mypy src/ && pytest

Full install, bootstrap, and verification steps: docs/guides/quickstart.md. Verify chain details: docs/operations/verify-chain.md.


Repository layout

sia-hu/
  README.md            → this file
  AGENTS.md            → agent/operator gate (gitignored, on disk)
  PROJECT-ROADMAP.md   → unified `sia` CLI plan, phases 1-2
  pyproject.toml       → single project (sia-hu); one lockfile
  src/                 → source packages (capture_proxy, model_headroom, sia)
  capture-proxy/       → carrier tests, config, scripts (docs moved to docs/)
  model_headroom/      → authority tests (docs moved to docs/)
  docs/                → unified documentation tree
  tools/               → repo tools

Documentation

Unified docs live in docs/ at the repo root. Start with docs/index.md.

Section Purpose
docs/architecture/ Sia/Hu identity, authority/carrier division, bidirectional contract
docs/concepts/ Headroom signals (R-01–R-09), provenance, frozen contracts
docs/guides/ Quickstart, sia CLI, carrier guide, authority guide
docs/operations/ Verify chain, dev commands, environment
docs/reference/ CLI flags, env vars, file layout
docs/capture-proxy/ Carrier README, roadmap, design notes (moved from capture-proxy/)
docs/model-headroom/ Authority README, roadmap, test protocol (moved from model_headroom/)

Authority and carrier roadmaps, test protocol, and package READMEs now live under docs/ (see docs/reference/file-layout.md).

Key docs:

  • docs/architecture/sia-hu-identity.md — cosmology in detail
  • docs/architecture/authority-carrier.md — who scores, who emits
  • docs/architecture/contract.md — bidirectional contract, 2-D pair contract
  • docs/concepts/headroom-signals.md — R-01 through R-09 signal reference
  • docs/guides/quickstart.md — install, bootstrap, verify
  • docs/guides/capture-proxy.md — carrier usage
  • docs/guides/model-headroom.md — authority usage
  • docs/operations/verify-chain.md — ruff → format → mypy → pytest
  • docs/reference/cli-flags.md — all CLI flags
  • docs/reference/env-vars.md — all env vars

License

MIT — see LICENSE.

Metadata

Release files for sia-hu 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sia-hu 0.6.0
File Size Uploaded Provenance Actions
sia_hu-0.6.0.tar.gz 797.5 kB Without provenance Details for sia_hu-0.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sia-hu 0.6.0
File Interpreter ABI Platform Actions
sia_hu-0.6.0-py3-none-any.whl Python 3 none any Details for sia_hu-0.6.0-py3-none-any.whl

Total release size: 1.1 MB

Release files / sia_hu-0.6.0.tar.gz

Download URL sia_hu-0.6.0.tar.gz
Size 797.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ea12c16678a7780c9392376d13b3bb7d9e9b1ac85cfc39594e06b66f8ab4816a
BLAKE2b-256 checksum
How to use checksums
ee879adb32b4ebd5510d6af9c8ecd4401fb05bdd59f0552801eabfc072084f93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / sia_hu-0.6.0-py3-none-any.whl

Download URL sia_hu-0.6.0-py3-none-any.whl
Size 267.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
59d194ddabe3c01280ee1ff2052b3677330917fe10fc75bc387191414bf00ebd
BLAKE2b-256 checksum
How to use checksums
2ccad55b09d5aa64b5ff72dd06f561f0f48725137b8b825d7bd26642b9a83958
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for sia-hu 0.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page