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.1.tar.gz (53.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.1-py3-none-any.whl (62.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: phionyx_compliance-0.1.1.tar.gz
  • Upload date:
  • Size: 53.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.1.tar.gz
Algorithm Hash digest
SHA256 569650fea9bea9597705d2ae2026973f63398b1b22bc34aa130b83ed09967f45
MD5 0dcaf6cb01cefe7d7eb6f7e2a8e5e88c
BLAKE2b-256 6b36df5b8315c41c8d26f0e8656228730fe4415372f39d49f9c57db8b3c1e660

See more details on using hashes here.

Provenance

The following attestation bundles were made for phionyx_compliance-0.1.1.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.1-py3-none-any.whl.

File metadata

File hashes

Hashes for phionyx_compliance-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 81584f13cad80bffef5583ed7ebecc832a4dd625b095a50fd93b9128bcee82af
MD5 232d3b0bb784cc53eea7944c810c1285
BLAKE2b-256 d7b6007aaf2c7f27f3b7421c4f6e6fe75935a90cc79b6fa3109dc679edd49c58

See more details on using hashes here.

Provenance

The following attestation bundles were made for phionyx_compliance-0.1.1-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