AI-Native operational platform for autonomous software development. Deterministic-first, event-capable, multi-agent runtime.
Project description
AINE — AI-Native Engineering Platform
Operational infrastructure for autonomous software development. Not a chatbot. Not an agent. A runtime for orchestrating specialized agents under deterministic, observable, event-capable workflows.
Naming. This project is AINE (the platform/engine).
HookCloseis the historical repo name — same thing, kept only for the repo URL and metric namespaces until renamed. SeeNAMING.mdfor the full decision.
1. Purpose
AINE is a shared operational runtime that lets specialized AI agents:
- generate code autonomously
- review pull requests automatically
- run, repair and validate tests
- coordinate across multi-agent workflows
- execute 24/7 with operational memory
- emit and react to events
- run inside isolated sandboxes
- be observed end-to-end via OpenTelemetry
The platform is vendor-agnostic (LLM providers, VCS, storage are adapters), deterministic-first (state machines drive behavior; LLMs are tools, not the runtime), and event-capable (every state transition is an emittable event).
2. Architectural Pillars
| Pillar | Decision |
|---|---|
| Determinism | All workflows are state machines; LLM calls happen inside states, never between them. |
| Event-capable | Every meaningful state change emits a versioned domain event. |
| Operational-memory first | Memory is a first-class subsystem (episodic + semantic + operational). |
| Multi-agent | Agents are registered capabilities, not hardcoded calls. |
| Vendor-agnostic | LLM, VCS, storage, vector — all behind ports. |
| Async-first | Every I/O contract is async; sync is the exception. |
| Clean Architecture | Domain (contracts/events/workflows) does not depend on adapters. |
| Docker-first | Local dev mirrors prod via docker-compose. |
Dependency direction
adapters/ api/ tasks/ <-- frameworks & I/O
|
v
runtime/ scheduler/ sandbox/ <-- orchestration
|
v
workflows/ agents/ memory/ <-- application
|
v
contracts/ events/ <-- domain (no deps on anything above)
No module may import from a layer above its own.
3. Bounded Contexts
| Context | Responsibility |
|---|---|
runtime/ |
Kernel, lifecycle, supervisor, dispatcher, FastAPI surface. |
agents/ |
Agent descriptors, capabilities, registry. Zero business logic. |
contracts/ |
All Protocol definitions. Pure interfaces. No imports from adapters. |
events/ |
Versioned domain events + event-bus contract. |
workflows/ |
Deterministic state machines. |
memory/ |
Episodic, semantic (pgvector), operational memory. |
sandbox/ |
Isolated execution environments and resource policies. |
observability/ |
Tracing, metrics, structured logs, audit trail. |
scheduler/ |
Cron + trigger-based recurring jobs. |
tasks/ |
Celery integration. Async work outside the request path. |
adapters/ |
LLM, VCS, vector store, storage, HTTP outbound. |
infra/ |
Postgres/Redis/OTEL configs. |
docker/ |
Container definitions. |
specs/ |
Architectural decision records and design specs. |
reviews/ |
Code review templates and artifacts. |
See specs/bounded-contexts.md for context maps.
4. Tech Stack
- Python 3.11+, fully typed (mypy
strict). - FastAPI — HTTP surface for the runtime.
- PostgreSQL 16 + pgvector — relational + vector storage.
- Redis 7 — broker, cache, pub/sub.
- Celery 5 — durable task execution.
- SQLAlchemy 2.0 async — ORM + UoW.
- Pydantic v2 — schemas, settings, validation.
- OpenTelemetry — traces, metrics, logs.
- Docker Compose — local-first dev.
- Ruff + mypy + pytest — quality gates.
5. Local bootstrap
# Linux/macOS
./scripts/bootstrap.sh
# Windows (PowerShell)
./scripts/bootstrap.ps1
Then:
docker compose up -d
# API: http://localhost:8000/health
# Flower: http://localhost:5555
# OTEL UI: http://localhost:16686
6. Layout
.
├── runtime/ kernel, lifecycle, FastAPI surface
├── agents/ agent descriptors & registry (no logic yet)
├── contracts/ Protocols — the project's API surface
├── events/ domain events
├── workflows/ deterministic state machines
├── memory/ episodic + semantic + operational
├── sandbox/ isolated execution
├── observability/ tracing/metrics/logs/audit
├── scheduler/ cron + triggers
├── tasks/ Celery scaffolding
├── adapters/ outbound integrations
├── infra/ postgres/redis/otel configs
├── docker/ Dockerfiles
├── specs/ architecture & ADRs
├── reviews/ review templates
├── scripts/ bootstrap & ops
├── tests/ unit / integration / contract
├── docker-compose.yml
├── pyproject.toml
└── README.md
7. Engineering
| Doc | Purpose |
|---|---|
| ARCHITECTURE.md | Principles, layering, bounded contexts, runtime planes. |
| DEVELOPMENT.md | Local setup, env/secrets, quality gates, releases. |
| CONTRIBUTING.md | Workflow, commit convention, PR rules. |
| ROADMAP.md | Phased build plan and the gate to VPS deployment. |
| docs/observability.md | Logging, tracing, metrics, audit conventions. |
make dev # set up dev env + hooks
make check # lint + typecheck + tests (the CI gate)
8. Status
Runtime core in progress. Foundation (contracts, events, deterministic workflows,
sandbox, memory, observability primitives, scheduler, tasks) is in place. Operational
engineering (CI/CD, tooling, runtime-state persistence) is established. Providers,
routing, workers, chaining, and self-healing are being built in phases — see
ROADMAP.md. Build state lives in SYSTEM_STATE.json.
Deployment: VPS deployment is gated until the local runtime core is stable (queues, workers, routing, retry loops, chaining all verified).
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 aine_platform-0.1.0.tar.gz.
File metadata
- Download URL: aine_platform-0.1.0.tar.gz
- Upload date:
- Size: 126.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b794844ea271c1e47a076d4d4518f969dfc32e9b46d2050830b809ce7e483fdd
|
|
| MD5 |
03ca622289b7d904c0beaf85cae735a3
|
|
| BLAKE2b-256 |
e5d2516d032547d596961b6231167d04bbb6bd0a40222556232de5e8c1ab513d
|
File details
Details for the file aine_platform-0.1.0-py3-none-any.whl.
File metadata
- Download URL: aine_platform-0.1.0-py3-none-any.whl
- Upload date:
- Size: 110.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8021ed9d96aeca2614c9a8308238f99a44eb28d720c971366b9211a15cb68562
|
|
| MD5 |
ba16e70dff709f0bf9ab8a6c22e6109a
|
|
| BLAKE2b-256 |
ac15bba99056e5c40c53ef82e5736d830d42177587bde4015ccc5fc219aa29c7
|