Skip to main content

hank-contracts

Wire-contract types for Hank: commercial claims, work authorization, usage rows and reports, investment capability grants, the agent_api_v1 claim shape, the Risk web subject assertion, and the user provider API key shapes (resolve-credential and enrolment, v2: hank_contracts.user_provider_keys) — frozen dataclasses, constants, JSON schemas, and canonical serialization only.

Owner doc: docs/runbooks/local-gateway-deployment.md — shared wire contracts release and propagation.

No signing, verification, key handling, HTTP, or storage lives here. Runtimes keep that behavior and import these shapes. The user provider key shapes carry key bytes only as wire fields and never in a repr. Private validation helpers moved with their dataclasses so trust-snapshot construction validates exactly as before.

Release procedure

After a green full gate containing the change, the owning lead can release hank-contracts without a per-release approval:

  1. Bump the version in packages/contracts/pyproject.toml and commit it.
  2. From the checkout root, build with .venv/bin/python3 -m build packages/contracts.
  3. Upload the built version's wheel and source distribution with .venv/bin/python3 -m twine upload <wheel-path> <sdist-path>.

Record the version, artifact SHA-256 and upload time in the owning case.

Metadata

Release files for hank-contracts 1.8.4

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

Source distribution (sdist)

Source distribution for hank-contracts 1.8.4
File Size Uploaded Provenance Actions
hank_contracts-1.8.4.tar.gz 48.3 kB Without provenance Details for hank_contracts-1.8.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hank-contracts 1.8.4
File Interpreter ABI Platform Actions
hank_contracts-1.8.4-py3-none-any.whl Python 3 none any Details for hank_contracts-1.8.4-py3-none-any.whl

Total release size: 96.9 kB

Release files / hank_contracts-1.8.4.tar.gz

Download URL hank_contracts-1.8.4.tar.gz
Size 48.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c5f3cbcdb9c9b9aac5781864b87cb0b82018a88d8d1c7c14f447255e59b456e4
BLAKE2b-256 checksum
How to use checksums
1d22946117a1e182350c7dd5504b97872aef7c3e54d7fc55fc2e7caaa3539165
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Release files / hank_contracts-1.8.4-py3-none-any.whl

Download URL hank_contracts-1.8.4-py3-none-any.whl
Size 48.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9fda50ab73641fb6e33b0c3adc4ca08739272dea2911f880ba04619a3e2890fe
BLAKE2b-256 checksum
How to use checksums
7d3cd95034bd244341d277946fce4844e057d80404a8cb7d5e27fb5003744993
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Security for hank-contracts 1.8.4

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