AION Core runtime security layer for AI agent tool-call control, receipts, scanning, and approvals.
Project description
AION Core
Runtime action control, receipt, scan, approval, and firewall layer for AI agents.
AION Core is an open-source infrastructure prototype for AI systems that call real tools. It sits between an agent and external tools/APIs, checks the action against policy, blocks dangerous calls, records verifiable receipts, and marks sensitive actions for human approval.
AI Agent -> AION Guard / MCP Firewall -> Tool/API/System
|
+-> verified JSONL receipt log
Thesis
AI is moving from chat to action. Agents can call tools, write files, send messages, use APIs, update business systems, and coordinate workflows. Before that becomes safe at scale, teams need a control layer that can answer:
- what is the agent allowed to do?
- what must be blocked?
- what needs human approval?
- what evidence should be recorded?
- what can an operator inspect later?
AION Core is the first working version of that layer.
8-Stage MVP Status
The first AION Core MVP covers all 8 planned stages:
| Stage | Layer | MVP Status |
|---|---|---|
| 1 | AION Guard | Complete: runtime action policy and allow/block decisions. |
| 2 | AION Receipts | Complete: hash-verifiable decision evidence. |
| 3 | AION Scan | Complete: MCP and policy risk discovery. |
| 4 | Docs + Demo | Complete: one-command local demo and proof path. |
| 5 | Cloud Alignment | Complete for alignment MVP: aion.receipt.v1 bundle accepted by cloud/control surfaces. |
| 6 | MCP Firewall | Complete: stdio MCP tool-call firewall. |
| 7 | Team Policy / Approvals | Complete for MVP: approval-required decisions and Slack-ready payloads. |
| 8 | Control Panel | Complete for MVP: summary and pending-approval operator views. |
See Stage status.
Install
python -m pip install aion-core
For local development:
python -m pip install -e .
One-Command Demo
From PyPI/local install:
aion-demo
From the repository:
$env:PYTHONPATH='src'
python -m aion_core.demo
Expected result:
[PASS] scan detected unprotected MCP server
[PASS] guard blocked generic shell action
[PASS] guard allowed generic safe read
[PASS] team policy required approval
[PASS] blocked destructive shell command
[PASS] blocked secret exfiltration
[PASS] allowed safe read
Receipts written to: aion-demo-output/receipts.jsonl
Approvals written to: aion-demo-output/approvals.jsonl
Receipt verification: PASS (6 receipt(s), hash-verified)
Commands
aion-demo
aion-mcp-firewall
aion-guard
aion-receipts
aion-scan
aion-team
Run Guard
Check a generic action:
$env:PYTHONPATH='src'
python -m aion_core.guard_cli check --policy examples\policies\stage6-default.json --receipt-log receipts\guard.jsonl --action-type shell.command --tool shell --arguments-file examples\actions\destructive_shell_args.json --agent-id demo --owner local
Run The MCP Firewall
Run AION in front of any stdio MCP server:
aion-mcp-firewall --policy examples/policies/stage6-default.json --receipt-log receipts/aion.jsonl -- python path/to/mcp_server.py
For local development without installing:
$env:PYTHONPATH='src'
python -m aion_core.cli --policy examples/policies/stage6-default.json --receipt-log receipts/aion.jsonl -- python path/to/mcp_server.py
Receipt Verification
Verify a JSONL receipt log:
aion-receipts verify receipts\aion.jsonl
Inspect a receipt summary:
aion-receipts inspect receipts\aion.jsonl
Proof Pack
AION Core includes deterministic agent-workflow proof tests that model LangChain, CrewAI, Groq function-calling, and raw MCP workflows.
$env:PYTHONPATH='src'
python examples\proof_pack\agent_workflow_proof.py
Expected result:
AION Core Agent Workflow Proof Pack
Scenarios: 6/6 passed
Receipts: 5 hash-verified
Real SDK Tests
Verified integration tests include:
- LangChain
1.2.18: realStructuredToolguard test passed. - CrewAI
1.14.4: realAgent,Task, andBaseToolguard test passed. - Groq
1.2.0: real live function-calling test passed withllama-3.1-8b-instant.
Real-World Capacity Tests
AION Core includes end-to-end real-world capacity tests that exercise all 8 MVP layers together.
$env:PYTHONPATH='src'
python examples\real_world_capacity\release_ops_capacity_test.py --output-dir test-output\real-world-final
Verified results:
AION Real-World Capacity Test: 8/8 passed, 5 hash-verified receipts, 1 pending approval
Hardcore single-agent support workflow: 9/9 passed, 6 hash-verified receipts, 1 pending approval
Hardcore multi-agent incident response: 10/10 passed, 7 hash-verified receipts, 1 pending approval
Development
Run tests:
$env:PYTHONPATH='src'
python -m unittest discover -s tests
Useful docs:
- Stage status
- AION Guard
- AION Receipts
- AION Scan
- AION Proof Pack
- Real agent test plan
- Real SDK integrations
- Real-world capacity test
- Team policy and approvals
- Stage 5 Cloud alignment
- AION Cloud control panel
- Stage 6 completion report
- Repo structure
- Install
- Real MCP integration
- Filesystem MCP example
- Architecture
- Verification
- Roadmap
Current Scope
Current core scope:
- generic Guard action checks
- MCP config and policy scanning
- stdio MCP firewall proxy
- runtime policy checks for
tools/call - MCP-compatible JSON-RPC block responses
- hash-verified JSONL audit receipts
- optional HMAC-signed receipt verification
- team approval-required policy decisions
- AION Cloud control panel summary and pending approval views
- dependency-free Python core
Next infrastructure layers:
- hosted API server
- hosted auth and tenant model
- cloud receipt vault
- tenant-scoped signing key management
- real Slack/webhook approval delivery
- enterprise audit exports
- hardened policy engine
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aion_core-0.8.3.tar.gz.
File metadata
- Download URL: aion_core-0.8.3.tar.gz
- Upload date:
- Size: 58.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e58e0936a8b84908eba8044dbfe7834768607f794f84ee806844ccdd1dcf394d
|
|
| MD5 |
978d5bc63d8cee1488c6a46fe5e276e4
|
|
| BLAKE2b-256 |
8fabc1290a7fa8ab9473b5968624d536b650c53c4a495f7e91858c84642de9f5
|
File details
Details for the file aion_core-0.8.3-py3-none-any.whl.
File metadata
- Download URL: aion_core-0.8.3-py3-none-any.whl
- Upload date:
- Size: 25.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
573ecdc6d67cace536e64ad270ae8a7438ebb39ca5f437d0b7884781740c07d4
|
|
| MD5 |
4eda6bb4c90225b8cdc8eb013a0ef106
|
|
| BLAKE2b-256 |
25e672bd9ea68313ae21ba86d42eb614eaf04ff6d4b5efefd8df01fe295b9294
|