Metadata-Version: 2.4
Name: intent-audit-harness
Version: 1.2.0
Summary: Deterministic test-enforcement harness — escape-scan, hash-pinning, CRAP, architecture checks, bias detection, Gherkin lint. Python-native wrapper around the @intentsolutions/audit-harness toolkit.
Project-URL: Homepage, https://github.com/jeremylongshore/intent-audit-harness
Project-URL: Repository, https://github.com/jeremylongshore/intent-audit-harness
Project-URL: Issues, https://github.com/jeremylongshore/intent-audit-harness/issues
Project-URL: Changelog, https://github.com/jeremylongshore/intent-audit-harness/blob/main/CHANGELOG.md
Author-email: Jeremy Longshore <jeremy@intentsolutions.io>
License: Apache-2.0
Keywords: 7-layer-testing,ai-containment,architecture,claude-code,coverage-gate,crap,escape-scan,hash-pin,mutation-testing,test-audit,testing
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Software Development :: Quality Assurance
Classifier: Topic :: Software Development :: Testing
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# intent-audit-harness (Python)

Python-native install of the Intent Solutions deterministic test-enforcement toolkit.

Mirrors the CLI surface of the Node package
[`@intentsolutions/audit-harness`](https://www.npmjs.com/package/@intentsolutions/audit-harness)
so the command line is identical across ecosystems.

## Install

```bash
pip install intent-audit-harness
# or, inside a project venv:
python -m pip install intent-audit-harness
```

This ships a console script `audit-harness` and a module entry point
`python -m intent_audit_harness`.

## Requirements

- Python 3.8+
- `bash` available on `PATH` (Linux, macOS, or WSL)
- `python3` on `PATH` for the `crap` subcommand
- Optional per-subcommand tools: `radon` / `gocyclo` / `dependency-cruiser` / `import-linter`

## Usage

```bash
audit-harness --help
audit-harness verify
audit-harness escape-scan --staged
audit-harness crap src/
```

See the root project for the full docs:
<https://github.com/jeremylongshore/intent-audit-harness>

## What this package does

Dispatches to the same shell/python scripts shipped with the canonical npm package.
The Python wheel bundles:

- `harness-hash.sh`  — pinning / verification
- `escape-scan.sh`   — diff scanner for AI escape grammar
- `arch-check.sh`    — language-appropriate architecture checker
- `bias-count.sh`    — test-bias heuristics
- `gherkin-lint.sh`  — advisory Gherkin quality check
- `crap-score.py`    — CRAP (complexity x coverage) scorer

## License

MIT
