Skip to main content

Phionyx compliance evidence report draft generator — Article-13-oriented and other governance-framework mappings from RGE v0.2 audit chains.

Project description

phionyx-compliance

Evidence-grade compliance report drafts from Phionyx RGE v0.2 audit chains. AGPL-3.0 · Python 3.10+ · alpha (v0.7.0 cycle)

phionyx-compliance turns a signed envelope chain produced by phionyx-core, phionyx-mcp-server, or any other Phionyx component into a framework-shaped markdown draft report — suitable as input to a compliance officer or auditor's review.

It does not certify. Reports are evidence-oriented mappings; a lawyer or auditor must review before any use that implies legal posture.


Sixty-second usage (target spec; lands at v0.7.0)

pip install phionyx-compliance
phionyx-compliance generate \
  --trace trace-e2dd588aaf4d4c97 \
  --template eu-ai-act-article-13 \
  --out reports/<DATE>-article-13-draft.md

What it does:

  1. Reads the envelope chain at ~/.phionyx/mcp_audit/<trace_id>/ (or the path the operator passes via --chain-root).
  2. Walks the chain and extracts the per-envelope evidence the chosen template requires.
  3. Renders a markdown draft against the template's prompts and the chain's actual evidence.
  4. Includes the canonical disclaimer at the head and tail of the document.

Supported templates (v0.7.0 ship list)

Template Framework Status
eu-ai-act-article-13 EU AI Act, Article 13 (transparency) first to ship
nist-ai-rmf-1 NIST AI RMF 1.0 — MAP/MEASURE/MANAGE second
iso-iec-42001 ISO/IEC 42001:2023 — Annex A controls subset third
owasp-agentic-ai-v1 OWASP Agentic AI Threats v1.0 coverage fourth

Each template is a self-contained directory under templates/<framework>/:

templates/
└── eu-ai-act-article-13/
    ├── template.md          (markdown with {{placeholders}})
    ├── schema.json          (Pydantic JSON Schema for the data inputs)
    ├── mapping.yaml         (how envelope fields → template placeholders)
    └── README.md            (framework-specific notes + disclaimer text)

Composition with the Phionyx stack

phionyx-compliance is read-only over the envelope chain. It does not modify chain state, does not re-sign anything, and does not produce envelopes of its own. The output is a markdown file plus an optional JSON-formatted summary (--format=json).

This composes cleanly with:

  • phionyx-pipeline-mcp — self-claim gate envelopes feed the "agent's own attestations" section of every framework template.
  • phionyx-mcp-server — third-party tool-call envelopes feed the "tool-call audit" section.
  • phionyx-eval-inspect — Inspect AI .eval exports include the same envelope chain; the compliance draft can cite the .eval log id as the reviewer-runnable evidence pointer.

Plugin command (lands at v0.7.0 with F12++)

The phionyx-claude-code-plugin will gain /phionyx:evidence-report that shells out to this package and renders the draft inline in the Claude Code chat. Pattern preserves the v0.5.1 plugin extraction discipline (no Anthropic plugin content copied verbatim).

Status (2026-05-26)

  • W1.1 — scaffold landed. Package skeleton, version pin to phionyx-core>=0.6.0, CLI entry-point declared.
  • W1.2 — template substrate landed. First template: eu-ai-act-article-13 v1.0.0. Renderer + CLI subcommands (list-templates / describe / render-sample / generate --sample). 15/15 tests.
  • W1.3 — chain → inputs walker landed. ChainView.from_disk() + resolve_inputs() (4-category mapping resolver). Real generate --trace <id> works. 25/25 tests.
  • W1.4 — plugin integration landed. /phionyx:evidence-report slash command in the Claude Code plugin wraps the CLI.
  • W1.5 — additional templates landed (this commit). Three new framework templates at v1.0.0 each:
    • nist-ai-rmf-1 (NIST AI RMF 1.0 — MAP/MEASURE/MANAGE/GOVERN)
    • iso-iec-42001 (ISO/IEC 42001:2023 — AI Management System)
    • owasp-agentic-ai-v1 (OWASP Agentic AI Threats v1.0 — threat coverage) Cross-template parity test suite (test_all_templates.py, 5 tests). 30/30 total tests pass.

v0.7.0 W1 complete. W2 (F4 reasoning audit + F8 RAG audit) is the next milestone.

See docs/DESIGN.md for design notes.

Disclaimer (canonical)

Reports produced by this package are evidence-oriented mappings, not legal compliance guarantees. A lawyer or auditor must review before any use that implies legal posture. Phionyx does not certify AI systems; it produces the evidence chains that certifications rely on.

License

AGPL-3.0-or-later. See LICENSE.

Citing

If you use phionyx-compliance in academic or policy work, cite the parent project: Abak, A. T. (2026). Phionyx Research — Runtime Evidence Layer for Agentic AI. ORCID 0009-0002-3718-4010.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

phionyx_compliance-0.1.0.tar.gz (49.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

phionyx_compliance-0.1.0-py3-none-any.whl (60.4 kB view details)

Uploaded Python 3

File details

Details for the file phionyx_compliance-0.1.0.tar.gz.

File metadata

  • Download URL: phionyx_compliance-0.1.0.tar.gz
  • Upload date:
  • Size: 49.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for phionyx_compliance-0.1.0.tar.gz
Algorithm Hash digest
SHA256 38dba2f0fb84973e782bfb94cb2724c3d9734a9a4a43d2fe01a58fb1688c171e
MD5 729e204e01c886a1ae39d288a9ce7280
BLAKE2b-256 ea752d375621d73145dd3250a8dc59cac97987931bf6a9668d61c9412b32a68f

See more details on using hashes here.

Provenance

The following attestation bundles were made for phionyx_compliance-0.1.0.tar.gz:

Publisher: release.yml on halvrenofviryel/phionyx-compliance

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file phionyx_compliance-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for phionyx_compliance-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c6f5573013df1c3e8410395d0d98c57b1d9954e7a1770dfdf78fbe1765f959ee
MD5 45851bd4207af836905f61ecba6b06f6
BLAKE2b-256 e209d89f28c2faf740459617cb76a23693b9e31c15def8ecff8eb2df08e1872c

See more details on using hashes here.

Provenance

The following attestation bundles were made for phionyx_compliance-0.1.0-py3-none-any.whl:

Publisher: release.yml on halvrenofviryel/phionyx-compliance

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page