Metadata-Version: 2.5
Name: hedron-conformance
Version: 1.0.3
Summary: Language-neutral Hedron conformance-test kit and capability runner
Project-URL: Homepage, https://github.com/eddiethedean/hedron
Project-URL: Repository, https://github.com/eddiethedean/hedron
Project-URL: Documentation, https://hedron.readthedocs.io/en/latest/
Project-URL: Changelog, https://github.com/eddiethedean/hedron/blob/main/packages/hedron-conformance/CHANGELOG.md
Author-email: Odos Matthews <odosmatthews@gmail.com>
License-Expression: MIT
License-File: LICENSE
Keywords: conformance,fixtures,hedron,portable,testing
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Software Development :: Testing
Classifier: Typing :: Typed
Requires-Python: <3.15,>=3.10
Requires-Dist: hedron-core<2.0,>=1.0.0
Requires-Dist: pydantic<2.15,>=2.12.0
Description-Content-Type: text/markdown

# hedron-conformance

[![PyPI](https://img.shields.io/pypi/v/hedron-conformance.svg)](https://pypi.org/project/hedron-conformance/)
[![Python](https://img.shields.io/pypi/pyversions/hedron-conformance.svg)](https://pypi.org/project/hedron-conformance/)
[![CI](https://img.shields.io/github/actions/workflow/status/eddiethedean/hedron/ci.yml?branch=main&label=CI)](https://github.com/eddiethedean/hedron/actions/workflows/ci.yml)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/eddiethedean/hedron/blob/main/LICENSE)

Language-neutral Hedron conformance-test kit and capability runner.

Ships versioned machine-readable fixtures, golden render/diagnostic artifacts,
normalization rules, and a capability-level runner CLI so experimental Java/Node
runtimes and optional native accelerators can prove parity with the Python
reference — without matching incidental CPython formatting.

Also available as the flagship extra `hedron[conformance]`.

**Package maturity:** Beta · **Package line:** `1.0.x` · pin `>=1.0.0,<2.0`

Phase 0.52 authority contract:
[RFC-0079](https://github.com/eddiethedean/hedron/blob/main/docs/rfcs/RFC-0079-CONFORMANCE-AUTHORITY-POSIT-LIFECYCLE.md) /
[#522](https://github.com/eddiethedean/hedron/issues/522).

Phase 0.53 Application DX Stage 1 lives in the flagship package — see
[Application DX API](https://hedron.readthedocs.io/en/latest/api/APPLICATION_DX/).

## Install

```bash
pip install "hedron-conformance>=1.0.0,<2.0"
# or
uv add "hedron-conformance>=1.0.0,<2.0"
# via flagship:
pip install "hedron[conformance]>=1.0.0"
```

Requires Python 3.10–3.14.

## Runner

```bash
hedron-conformance run
hedron-conformance run --json
hedron-conformance run --junit
hedron-conformance run --sarif
hedron-conformance run --envelope
hedron-conformance compile
hedron-conformance profiles
hedron-conformance list
hedron-conformance schema
hedron-conformance --version
# or
python -m hedron_conformance run
```

Failures report fixture id, contract version, and violated capability.

### Python API

```python
from hedron_conformance import compile_suite, load_bundled_fixtures, run_kit

fixtures = load_bundled_fixtures()
compiled = compile_suite(fixtures)
assert compiled.ok
result = run_kit(fixtures)
assert result.ok
```

### 0.52 surfaces

| Symbol | Role |
|---|---|
| `compile_suite(...)` | Fixture compiler; rejects contradictory suites |
| `load_profile_registry()` | Versioned profile registry |
| `build_result_envelope(...)` | Signed-ish result envelope |
| `to_junit` / `to_sarif` | CI converters |
| `SandboxPolicy` / `check_archive_budget(...)` | Archive/process/network/secret sandbox defaults + fail-closed budget checks |

## Related runtimes

Experimental evaluators in the monorepo (not published as PyPI apps):

- [`hedron-runtime-node`](https://github.com/eddiethedean/hedron/tree/main/packages/hedron-runtime-node) — Node ≥ 18 (`0.53.0`)
- [`hedron-runtime-java`](https://github.com/eddiethedean/hedron/tree/main/packages/hedron-runtime-java) — JDK 11+ (`0.53.0`)

## Links

- [Package docs](https://hedron.readthedocs.io/en/latest/packages/hedron-conformance/)
- [Conformance docs](https://hedron.readthedocs.io/en/latest/conformance/INDEX/)
- [Changelog](https://github.com/eddiethedean/hedron/blob/main/packages/hedron-conformance/CHANGELOG.md)
- [Source](https://github.com/eddiethedean/hedron/tree/main/packages/hedron-conformance)
- [Issues](https://github.com/eddiethedean/hedron/issues)
- [`hedron-core`](https://pypi.org/project/hedron-core/)

## License

MIT. See the [repository license](https://github.com/eddiethedean/hedron/blob/main/LICENSE).
