Repository orientation
The repository split has been executed. AlphaSwarm is a workspace of
sibling alphaswarm_* repos checked out side by side (for example
../alphaswarm_core next to ../alphaswarm), organised by
responsibility. Historical in-tree paths such as alphaswarm_rl/
inside the monolith resolve to the sibling repo ../alphaswarm_rl.
The boundary is enforced by
repository-boundaries.mdc
and by import guards in CI.
Current deployment version: 0.1.0-alpha.1. See
Release notes.
Top-level repos
alphaswarm/— the quant runtime. FastAPI gateway, Celery workers, strategy framework, backtest engines, RAG, Iceberg writers, persistence models. Importalphaswarm_agents.*,alphaswarm_rl.*, andalphaswarm_models.*directly — the oldalphaswarm/agents/,alphaswarm/rl/, andalphaswarm/ml/trees are gone.alphaswarm_controller/— workload lifecycle //manage/*API / Terraform driver / provider adapters. Never importsalphaswarm.*. See Concept: control plane topology.alphaswarm_core/— shared value types, ABCs, auth filters, topology contracts. Dependency-light.alphaswarm_auth/— unified IAM hub. Prefer central auth introspection over re-deriving scopes in each service.alphaswarm_client/— active Vite + React 19 + Tailwind 4 operator UI. Served atalpha-swarm.ai.alphaswarm_ui/— cloud-hosted, customer-facing PaaS frontend (Next.js 14+). Served atalpha-swarm.ai. Dual Auth0 (B2C) + Entra (B2B) identity.alphaswarm_admin/— internal admin (managed services + company accounts). Audit-first. Served atmanage.alpha-swarm.ai.alphaswarm_agents/— spec-driven agent stack (AgentRuntime,AgentSpec, crews, graph). Hard cutover fromalphaswarm/agents/.alphaswarm_rl/— RL subsystem: hash-lockedRLExperimentSpec+RLRuntime+ Iceberg trajectory store. The monolithalphaswarm/rl/shim has been removed.alphaswarm_models/— custom model pulling, building, training, evaluating, serving (vLLM + Ollama). The monolithalphaswarm/ml/shim has been removed; onlyalphaswarm.llm.{vllm_runner,ollama_client}still re-export serving helpers.alphaswarm_bots/— bot templates and bot runtime (TradingBot/ResearchBot).alphaswarm_kb//alphaswarm_kb_federation/— knowledge-base runtime and cross-silo recall gateway.alphaswarm_graph/— self-organizing knowledge graph.alphaswarm_ingest/— ingestion connectors, controller, and marketplace seed catalog.alphaswarm_worker/— execution layer (WorkRequest→Executor→WorkResult) plus cluster daemons.alphaswarm_ide/— Theia 1.72-based IDE + AlphaSwarm extensions.alphaswarm_cli/— standalone operator CLI (alphaswarm-cli). HTTP-only; never importsalphaswarm.*. RFC 8628 device auth + OS keyring storage.alphaswarm_platform/— hosted deployment + build + IaC + cluster setup. Manifests, Helm charts, Terraform modules, Docker base images. No Python runtime imports.alphaswarm_learning/— GraphRAG + agentic learning service (not a placeholder).alphaswarm_index/— single source of truth for project orientation (this site links into it but never modifies it; sole-writer is thealphaswarm-index-curatorsubagent).alphaswarm_docs/— this site.
alphaswarm_memory and alphaswarm_research are seed placeholders —
confirm scope with a maintainer before adding code. The full path
contract is alphaswarm-monorepo-paths.
Where to look for X
- API route:
alphaswarm/api/routes/. - Celery task:
alphaswarm/tasks/. - Strategy:
alphaswarm/strategies/. - Persistence model:
alphaswarm/persistence/. - Migration:
alembic/versions/. - Iceberg writer:
alphaswarm/data/iceberg_catalog.py. - LLM gateway:
alphaswarm/llm/providers/router.py. - Configuration:
alphaswarm/config/settings.py.
Hard rules
The full agent-readable rule-set is in AGENTS.md. The cardinal subset:
- Symbols:
Symbol.parse(vt_symbol)— never split on.. - LLM calls:
router_completeonly — neverlitellm.completionor vendor SDKs. - Iceberg writes:
iceberg_catalog.append_arrowonly — never raw PyIceberg. - Celery progress:
emit / emit_done / emit_errorfromalphaswarm/tasks/_progress.py— never publish to Redis from task code. - Configuration:
from alphaswarm.config import settings— never construct a freshSettings(). - Registry:
@register("Name", kind=...)for every new strategy / model / engine / alpha / portfolio / sink. - Migrations: immutable once committed.
- Cross-task state: Postgres only; never pickle ORM objects.
The full set is 66 hard rules (rule 65 is the 0.1.0-alpha.1
deployment-version contract) plus a Don'ts section in AGENTS.md.
Conventions
See Conventions for documentation style and authoring rules.