AEX v2.0 — local-first AI execution governance kernel with deterministic accounting, idempotent admission, and tamper-evident ledger replay.
Project description
AEX v2.0 - Auto Execution Kernel
AEX v2.0 is a local-first governance kernel for agent execution with deterministic accounting.
Core guarantees:
- budget reserve/commit/release lifecycle per
execution_id - idempotent request replay behavior
- hash-chained ledger events for tamper evidence
- OpenAI-compatible northbound API with provider abstraction southbound
v2.0 Runtime Architecture
Control path:
- Auth (
Bearertoken, scope, TTL) - Admission (
execution_id, rate-limit, policy, route, preflight reserve) - Provider dispatch (streaming/non-streaming)
- Exactly-once settlement (
COMMITTEDorRELEASED/DENIED/FAILED) - Hash-chain event append + metrics projection
Execution states:
RESERVING -> RESERVED -> DISPATCHED -> COMMITTED- failure paths:
RELEASED,DENIED,FAILED
Active Endpoints (Sorted)
Admin:
GET /admin/activityPOST /admin/reload_configGET /admin/replayGET /dashboardGET /healthGET /metrics
Proxy:
POST /openai/v1/chat/completionsPOST /openai/v1/embeddingsPOST /openai/v1/responsesPOST /openai/v1/tools/executePOST /v1/chat/completionsPOST /v1/embeddingsPOST /v1/responsesPOST /v1/tools/execute
Data Model (v2.0)
Primary tables:
agents- identity, caps, budget/spend/reserved countersexecutions- idempotent execution identity + terminal cachereservations- reserve/commit/release stateevent_log- hash-chained immutable eventsevents- compatibility/event metrics streamrate_windows- RPM/TPM windowstool_plugins- plugin registry
Startup + Recovery
On daemon startup:
- initialize/migrate DB schema
- run integrity checks
- load model/provider config
- reconcile incomplete executions (release stale reservations, fail broken non-terminal flows)
Dashboard
Live playout dashboard:
http://127.0.0.1:9000/dashboard
Quick Start
pip install aex
aex init
aex daemon start
aex agent create my-agent 5.00 30 --allow-passthrough
export OPENAI_BASE_URL=http://127.0.0.1:9000/v1
export OPENAI_API_KEY=<AEX_AGENT_TOKEN>
Source Layout
Technical READMEs are provided in each major folder under src/aex and src/aex/daemon.
Project details
Release history Release notifications | RSS feed
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 aex-2.0.0.tar.gz.
File metadata
- Download URL: aex-2.0.0.tar.gz
- Upload date:
- Size: 54.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ed4408fbb5986acaf50706acec8a6102b24cd455522e8e8d918737e38ed1815
|
|
| MD5 |
1070f802948087c1e054ed3085992526
|
|
| BLAKE2b-256 |
5b5ec47d00ce8f79d70e4d029afd944061a950eadb8d8649c140fe97b27de841
|
File details
Details for the file aex-2.0.0-py3-none-any.whl.
File metadata
- Download URL: aex-2.0.0-py3-none-any.whl
- Upload date:
- Size: 70.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b3903beaf2e382b5af281b2858c3419baf7fc601f60da15b567ad6e8c92517e
|
|
| MD5 |
c1db32a78c75dacebd3e1e8ff5ce3583
|
|
| BLAKE2b-256 |
938c7f43b3046ef50d041d33f60d5f30127ce82d7382904020d3ffcf08763e7a
|