Skip to main content

AEX v2.0 simple local profile — local-first AI execution governance kernel with deterministic accounting, idempotent admission, and simple local frontend.

Project description

AEX v2.0 - Auto Execution Kernel (Simple Local Dev Profile)

AEX v2.0 is a local-first governance kernel for agent execution with deterministic accounting. This profile is intended for local development users.

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:

  1. Auth (Bearer token, scope, TTL)
  2. Admission (execution_id, rate-limit, policy, route, preflight reserve)
  3. Provider dispatch (streaming/non-streaming)
  4. Exactly-once settlement (COMMITTED or RELEASED/DENIED/FAILED)
  5. Hash-chain event append + metrics projection

Execution states:

  • RESERVING -> RESERVED -> DISPATCHED -> COMMITTED
  • failure paths: RELEASED, DENIED, FAILED

Active Endpoints (Sorted)

Admin:

  • GET /admin/activity
  • POST /admin/reload_config
  • GET /admin/replay
  • GET /dashboard
  • GET /health
  • GET /metrics

Proxy:

  • POST /openai/v1/chat/completions
  • POST /openai/v1/embeddings
  • POST /openai/v1/responses
  • POST /openai/v1/tools/execute
  • POST /v1/chat/completions
  • POST /v1/embeddings
  • POST /v1/responses
  • POST /v1/tools/execute

Data Model (v2.0)

Primary tables:

  • agents - identity, caps, budget/spend/reserved counters
  • executions - idempotent execution identity + terminal cache
  • reservations - reserve/commit/release state
  • event_log - hash-chained immutable events
  • events - compatibility/event metrics stream
  • rate_windows - RPM/TPM windows
  • tool_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 (Simple Local Frontend)

v2.0 ships with a simple local frontend connected to backend endpoints:

  • GET /health
  • GET /metrics
  • GET /admin/replay
  • GET /admin/activity

Open:

  • 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aex-2.0.0.post1.tar.gz (57.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aex-2.0.0.post1-py3-none-any.whl (73.8 kB view details)

Uploaded Python 3

File details

Details for the file aex-2.0.0.post1.tar.gz.

File metadata

  • Download URL: aex-2.0.0.post1.tar.gz
  • Upload date:
  • Size: 57.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for aex-2.0.0.post1.tar.gz
Algorithm Hash digest
SHA256 f5a87451a6c6090257123da0207f150b1d2ce6dc080bfa787c1a1416e0dc0ac2
MD5 f84be70894aae6458c3e93f3aeaa6863
BLAKE2b-256 62a34f7c68189813852ef843ed9bbea40516ec84e45f5559e9a91fcd12187ce1

See more details on using hashes here.

File details

Details for the file aex-2.0.0.post1-py3-none-any.whl.

File metadata

  • Download URL: aex-2.0.0.post1-py3-none-any.whl
  • Upload date:
  • Size: 73.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for aex-2.0.0.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 35f8218896506c590f069c06230ba12de6979cfd55b34f91de2b2ba01be36896
MD5 62ece638840334d53dc38220f1d5b84c
BLAKE2b-256 3022c2e36e8e0b20d64f01a06ffa97bb16ae93c8286e71edb7043c9ffe51df8a

See more details on using hashes here.

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