Skip to content

209512/lex-atc

Repository files navigation

🛰️ lex-atc — Lex Agentica Traffic Control

English | 한국어

Motivation

This project started from a simple question that emerged after building an earlier ATC prototype: when multiple organizations run their own AI agents and those agents must collaborate on a shared artifact/resource, who gets priority, who decides that rule, and is the decision fair and verifiable?

lex-atc explores an agent orchestration runtime that treats priority and intervention as auditable governance and settlement events — not only as opaque operator discretion.

Background: docs/motivation.md

Core Values

  • Consistency-first: correctness over best-effort progress during contention
  • Auditability: every intervention and policy decision should be explainable from logs
  • Safety by design: fail-fast config guards and clear mode boundaries

Non-goals

  • Not “blockchain for everything”; settlement is a tool, not the product
  • Not a generic LLM agent framework; focus is contention control and verifiable coordination

Operating Modes

Mode Purpose Backend Required Notes
Standalone (MSW Simulation) Demo / simulation No MSW + simulated events in the browser. Not 1:1 with production latency/auth/failure
Backend Mode Real runtime Yes Uses real API/SSE. Suitable for production-like verification

Architecture

flowchart LR
  UI[Frontend UI] -->|REST /api| API[Backend API]
  UI -->|SSE /api/stream| API
  API --> GOV[Governance]
  GOV --> ISO[Isolation/Sandbox]
  GOV --> SET[Settlement/Dispute]
  API --> DB[(DB/Events)]
  API --> REDIS[(Redis Pub/Sub - optional/HA)]
Loading
Area Where Notes
UI packages/frontend Monitoring/ops UI, MSW standalone simulation
Backend packages/backend API/SSE + runtime (agents/governance/isolation/settlement)
Shared packages/shared Shared schemas/types/contracts for API/SSE
Full doc docs/architecture.md Mode flows and operational request flow

Quick Start

1) Standalone (Frontend Only)

pnpm install
pnpm dev:standalone

Vercel production env:

  • VITE_ENABLE_MSW=true
  • VITE_API_URL=/api

Standalone mode requires Service Worker. If SW is blocked, it cannot function.

2) Backend Mode (Local)

pnpm install
pnpm dev:backend

Determinism (Local)

To keep wallets stable across restarts:

  • set AGENT_KEY_SEED and TREASURY_KEY_SEED, or
  • set ALLOW_DEV_SEED_FALLBACK=true (development default is true; set ALLOW_DEV_SEED_FALLBACK=false to force ephemeral seeds)

Utility/Entropy Scheduling (R&D)

PoW or reputation-based priority can be biased depending on the environment and incentives. We treat utility/entropy-based scheduling as an R&D track and keep a working hypothesis that an entropy-derived signal (capturing uncertainty/diversity/unpredictability) can be a fairer input to scheduling and safety policies in some collaboration settings.

This is a hypothesis to be measured and iterated — not a final claim.

Roadmap and known limitations: docs/roadmap.md

Docs

Tests

pnpm -w verify
pnpm -C packages/frontend test:e2e

About

Autonomous AI agent orchestration & economic governance system. Features L1-L4 architecture: Hazelcast distributed locking, Solana Web3 settlement, and a Cyberpunk 3D tactical HUD.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Contributors