How 1110xx/agentforge works
Enterprise Agent Platform is an embeddable, multi-tenant agent runtime: a host submits work through a public API, the platform records stable run state, schedules sandboxed attempts, and exposes approvals, artifacts, events, and A2UI surfaces to clients. Its documented recovery path resumes from a checkpoint with a new attempt; failed effects are not replayed in place. The graph includes the frontend SDK and major documented capabilities. Some subsystem links are omitted because their implementations were not sampled.
Main entry points: protocol.py Platform store · k8s_worker.py Kubernetes worker · router.py FastAPI API · service.py Control plane
Components 22
API and contracts
- FastAPI API
backend/src/enterprise_agent_platform/fastapi/router.py - Contracts
backend/src/enterprise_agent_platform/contracts
Run control
- Request context
backend/src/enterprise_agent_platform/control/context.py - Control plane
backend/src/enterprise_agent_platform/control/service.py - Follow-up
backend/src/enterprise_agent_platform/control/followup.py - Approvals and effects
backend/src/enterprise_agent_platform/control
Execution and tools
- Scheduler
backend/src/enterprise_agent_platform/execution/scheduler_service.py - Kubernetes worker
backend/src/enterprise_agent_platform/execution/k8s_worker.py - Attempt runtime
backend/src/enterprise_agent_platform/execution - Model session
backend/src/enterprise_agent_platform/execution/session.py - Tool execution
backend/src/enterprise_agent_platform/tools
Client surfaces
- Artifact service
backend/src/enterprise_agent_platform/artifacts/service.py - A2UI surfaces
backend/src/enterprise_agent_platform/ui/service.py - Frontend client
frontend/packages/agent-ui-client/src/client.ts - UI protocol
frontend/packages/agent-ui-protocol/src/index.ts - UI catalog
frontend/packages/agent-ui-catalog/src/index.tsx - React components
frontend/packages/agent-ui-react/src/index.tsx
State and platform
- Domain records
backend/src/enterprise_agent_platform/domain/records.py - Platform store
backend/src/enterprise_agent_platform/persistence/protocol.py - SQL adapter
backend/src/enterprise_agent_platform/persistence/sqlalchemy_store.py - Message and events
backend/src/enterprise_agent_platform/platform
Other components
- Host application
Connections 16
- Host application → FastAPI API: mounts routes
- FastAPI API → Contracts: serves contracts
backend/src/enterprise_agent_platform/fastapi/router.py - FastAPI API → Request context: uses request context
backend/src/enterprise_agent_platform/fastapi/router.py - Control plane → Platform store: persists state
backend/src/enterprise_agent_platform/control/service.py - Control plane → Domain records: updates records
backend/src/enterprise_agent_platform/control/service.py - Kubernetes worker → Scheduler: runs scheduler
backend/src/enterprise_agent_platform/execution/k8s_worker.py - Kubernetes worker → Control plane: reports attempt state
backend/src/enterprise_agent_platform/execution/k8s_worker.py - Kubernetes worker → SQL adapter: configures store
backend/src/enterprise_agent_platform/execution/k8s_worker.py - Artifact service → Platform store: reads and writes
backend/src/enterprise_agent_platform/artifacts/service.py - A2UI surfaces → Platform store: commits revisions
backend/src/enterprise_agent_platform/ui/service.py - A2UI surfaces → UI catalog: validates surfaces
backend/src/enterprise_agent_platform/ui/service.py - SQL adapter → Platform store: implements port
backend/src/enterprise_agent_platform/persistence/protocol.py - Frontend client → Frontend client: projects and streams
frontend/packages/agent-ui-client/src/client.ts - React components → Frontend client: uses SDK
- React components → UI protocol: renders protocol
- UI catalog → UI protocol: provides components