Metadata-Version: 2.4
Name: hank-contracts
Version: 1.8.3
Summary: Hank wire-contract types: commercial claims, work authorization, usage, capability and subject shapes with JSON schemas and canonical serialization
License-Expression: MIT
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: pydantic<3,>=2.10
Requires-Dist: cryptography>=41
Requires-Dist: PyJWT>=2.8
Requires-Dist: jsonschema>=4.26

# 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.

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.
