feat: add comply54 → TRACE v0.1 integration (Level 0, African regulatory compliance)#11
Open
kingztech2019 wants to merge 2 commits into
Open
Conversation
Adds a comply54 integration that converts a ComplianceResult from the comply54 African regulatory compliance library into a signed TRACE v0.1 JWT (Ed25519, Level 0 software-only conformance). What's included: - integration.yaml — schema-validated manifest - src/comply54_to_trace.py — adapter: ComplianceResult JSON → TRACE JWT - tests/test_comply54_to_trace.py — 20 passing tests covering appraisal mapping, envelope fields, comply54 extension claims, and JWT signing - requirements.txt — PyJWT + cryptography - README.md — usage, conformance table, limitations Decision mapping: allow → affirming | audit → advisory | escalate → warning | deny → contraindicated Policy bundle hash: SHA-256 of sorted comply54 pack IDs (reproducible). Conforms to TRACE v0.1 at Level 0. Hardware fields are placeholders. Signed-off-by: oluwajuwon omotayo <oluwajuwon.omotayo@ginuxai.com> Signed-off-by: oluwajuwon omotayo <ginuxtechacademy@gmail.com>
Signed-off-by: oluwajuwon omotayo <oluwajuwon.omotayo@ginuxai.com> Signed-off-by: oluwajuwon omotayo <ginuxtechacademy@gmail.com>
|
🟡 Contributor Check: MEDIUM
Automated check by AGT Contributor Check. |
3dde037 to
64841cb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this does
This integration is built on top of
agt-policies-nigeria— the policy pack repo cited in Microsoft AGT. comply54 is the Python/TypeScript enforcement layer built on top of those same Rego policies, packaged as an importable library (pip install comply54). This adapter bridges comply54'sComplianceResultinto a signed TRACE v0.1 JWT (Ed25519, Level 0 software-only).comply54 evaluates AI agent actions against 13 African data protection and financial regulations: NDPA 2023 (Nigeria), CBN Transaction Controls, NFIU AML/MLPPA 2022, KDPA 2019 (Kenya), POPIA (South Africa), Ghana DPA, Rwanda DPA 2021, Egypt PDPL 2020, Ethiopia PDP 2024, Mauritius DPA 2017, Tanzania PDPA 2022, Uganda DPPA 2019, and 5 OWASP Agentic AI universal controls.
The adapter maps the compliance decision into a verifiable TRACE claim so the policy outcome becomes a cryptographic receipt — auditable evidence that the African regulatory policy ran and what it decided.
Files
Decision → Appraisal mapping
overallappraisal.statusallowaffirmingauditadvisoryescalatewarningdenycontraindicatedReproduce in 2 minutes
Verified output (4 scenarios, tested against comply54==0.1.0 from PyPI)
get_balanceallowaffirmingdenycontraindicatedescalatewarningdenycontraindicatedConformance level
Level 0 (software-only). Hardware TEE fields (
runtime.measurement,model.weights_digest,build_provenance.digest) are explicitly markednot-attestedor software-simulated. No claims are made beyond Level 0.Limitations (stated explicitly)
transparencyis empty — no SCITT log anchor at Level 0.model.*fields reflect what the caller passes via--model. comply54 evaluates policy against the agent's action; it does not independently verify which model ran.cc @imran-siddique — you know the underlying policy work from my AGT Nigeria contribution. comply54 is the enforcement library built on top of those same packs — this adapter makes the compliance decisions TRACE-verifiable. Happy to address any feedback before merge.