Today News

comply54 added to PyPI

Project description

Comply54

Open-source AI governance registry and tooling for African regulatory compliance.

CI
codecov
PyPI
npm
Python
License


How it relates to agt-policies-nigeria

kingztech2019/agt-policies-nigeria          comply54
──────────────────────────────────          ────────────────────────────────────
The policy SOURCE.                          The registry and tooling LAYER.

• 12 policy packs (YAML + Rego)    ──▶     • registry.json indexes them by URL
• Cited in Microsoft AGT main      ──▶     • adapters load them into any framework
• OPA tests (306 passing)          ──▶     • schema validates them on every PR
• Stays at kingztech2019 forever   ──▶     • comply54 never duplicates them

agt-policies-nigeria is where the policy files live — it is permanently cited in
Microsoft Agent-OS. That repo
will never move.

comply54 is where the ecosystem lives — the registry, framework adapters, JSON Schema
validator, and CI tooling that makes those policies consumable from LangChain, CrewAI,
AutoGen, and any OPA pipeline. When new packs are contributed (Ghana DPA, Rwanda DPA,
ECOWAS), their policy files will live under packages/ in this repo.


Policy Packs (current)

All 12 current packs are sourced from kingztech2019/agt-policies-nigeria.
registry.json has the direct raw GitHub URLs for each.

Universal Agent Safety Controls

PackRegulationOWASP Ref
prompt-injectionOWASP Agentic AI — LLM01/ASI01LLM01
pii-leakageOWASP LLM06LLM06
tool-permissionsOWASP LLM08LLM08
human-approvalOWASP LLM09LLM09
model-routingOWASP LLM03/LLM05LLM03/LLM05

Nigerian Regulatory Packs

PackRegulationAuthority
nigeria/ndpaNigeria Data Protection Act 2023NDPC
nigeria/cbnCBN Transaction Limits & Tiered KYCCBN
nigeria/bvn-ninCBN BVN Framework; NIBSS RulesCBN / NIBSS
nigeria/nfiu-amlMLPPA 2022 / NFIU AML GuidelinesNFIU
nigeria/pos-geofencingCBN Agent Banking Guidelines 2020CBN

East Africa

PackRegulationAuthority
kenya/kdpaKenya Data Protection Act 2019ODPC

Southern Africa

PackRegulationAuthority
south-africa/popiaPOPIA Act 4 of 2013Information Regulator ZA

Quick Start

With Microsoft Agent-OS (AGT)

from adapters.agt import load_jurisdiction

# Loads all packs for Nigeria + universal from agt-policies-nigeria (via raw GitHub URL)
policies = load_jurisdiction("NG")

for policy in policies:
    result = policy.evaluate({"action": "export_data", "output": ""})

With LangChain / LangGraph

from adapters.langchain import compliance_node

# Pack source URL from registry.json
node = compliance_node([
    "https://raw.githubusercontent.com/kingztech2019/agt-policies-nigeria/main/policies/ndpa-data-residency.yaml",
    "https://raw.githubusercontent.com/kingztech2019/agt-policies-nigeria/main/policies/agent-pii-leakage.yaml",
])
graph.add_node("compliance", node)

With CrewAI

from adapters.crewai import build_tools_for_jurisdiction

tools = build_tools_for_jurisdiction("NG")
agent = Agent(role="Fintech Agent", tools=tools, ...)

With AutoGen

from adapters.autogen import check_all_packs

result = check_all_packs(jurisdiction="NG", action="send_to_external", output="user@example.com")
# {"overall": "block", "results": [...]}
</...

     
                    WhatsApp Channel                             Join Now            
   
                    Telegram Channel                             Join Now            
   
                    Instagram follow us                             Join Now