A distributed analytics engine that turns SQL, natural language, and open-ended research questions into query results - a Rust storage/query engine, a Go coordinator, a Python AI service, and a Next.js dashboard, all sharing one query IR and reading/writing an open columnar format alongside native Parquet read/write and external Iceberg table interop.
Data gets ingested into Atlas's own .atlas columnar format (or Parquet), split into Hive-style partitions, and registered as an immutable snapshot in a Postgres-backed catalog. A query - whether it arrives as SQL, natural language, or a multi-step research question - is compiled into the same LogicalPlan protobuf before it touches anything else. A rule-based optimizer rewrites that plan (column pruning, predicate and partition pushdown, cache lookup), the Go coordinator fans the resulting tasks out across a fleet of Rust worker processes over gRPC, and workers stream Arrow IPC batches back to be merged - a two-phase combine for aggregates, a k-way merge for sorts. Results come back through a REST API to the CLI, the Python SDK, or the dashboard, optionally narrated in plain English or bundled into a research report that cites structured results and retrieved literature separately. No layer downstream of the logical plan cares whether a query started as SQL or a sentence.
- Columnar storage with real column pruning - the
.atlasformat (page-per-column, protobuf footer, min/max/null-count statistics per column) is read by seeking straight to the byte ranges of the requested columns, so scanning 2 of 20 columns only ever touches those 2 columns' pages. Parquet is a first-class alternative format on the same ingestion path (atlas-cli ingest --format parquet) - a dataset's manifests carry aformatfield so a per-file worker dispatch can pick the right reader, and a single dataset's manifests can already mix.atlasand Parquet files. An existing Iceberg table (created by Spark, PyIceberg, or any other engine) is queryable as an external table viaatlas-cli ingest-iceberg: Atlas reads the table's ownmetadata.jsonplus its current snapshot's manifest list and manifests (both Avro), and registers each live data file as a manifest taggedformat = "iceberg"- no data is copied or rewritten. A Delta Lake table is the same story viaatlas-cli ingest-delta, reading_delta_log/*.json's commit history (plain JSON, so no new dependency beyondserde_json) and tagging each fileformat = "delta"- every format's data files, being Parquet underneath, dispatch through the exact same worker read path once registered. - Immutable, snapshotted metadata catalog - every ingest commits a new snapshot (Postgres-backed:
datasets/snapshots/manifests/query_history) in a single transaction, so a crash mid-commit never leaves the catalog pointing at a half-written snapshot. Queries always resolve againstcurrent_snapshot_id, giving every query a consistent, point-in-time view of the data. - Distributed, fault-tolerant execution - the coordinator schedules one task per manifest/partition across registered workers (heartbeat-tracked, least-loaded assignment), streams partial results back over gRPC, and merges them per plan shape - a second aggregation pass for
GROUP BY, a k-way merge forORDER BY+LIMIT. A task whose worker misses its heartbeat or errors mid-stream is retried on a different live worker (up to 3 attempts) without failing the query. - Rule-based query optimization - column pruning and predicate pushdown rewrite the logical plan itself; partition pruning drops whole manifests using their partition values and column statistics before scheduling; a Redis-backed result cache is keyed on the hash of the optimized plan plus the dataset's snapshot id, so equivalent queries hit cache and a new ingest invalidates exactly the datasets it touched.
POST /explainsurfaces the plan before and after optimization, plus which manifests survived pruning and whether the result was served from cache. - Natural-language querying, same execution path as SQL - an LLM (Anthropic, OpenAI, Gemini, or a local Ollama model, selected purely by environment variable through a provider-agnostic layer) compiles a question into the identical
LogicalPlana SQL query would produce, validated against the protobuf schema and re-prompted once on failure. From there it runs through the unchanged optimize → schedule → execute path - an NL query and its SQL equivalent return byte-identical results. - AI analyst -
POST /datasets/{name}/summaryruns a fixed set of aggregate queries through the unmodified engine (row/column counts, per-column null rate, distinct-count estimate) and returns pure engine output, no LLM involved.POST /datasets/{name}/insightsbuilds on it: data-quality flags (high null rate, zero-variance columns, duplicate rows), outlier groups (z-score), and trends (linear regression) are all computed as plain statistical functions over query results (atlas-insights, dispatched via the worker'sAnalyzeRPC), not invented by an LLM - the coordinator picks a group/value/time column for outlier and trend detection with a fixed heuristic (a low-cardinality, mostly non-null string column for grouping; a numeric column that isn't all-null or constant for the value; aDate32column for the time axis), runs the resulting aggregate through the same engine path as any other query, and simply omits that finding when no column qualifies rather than guessing. The LLM's only job is narrating whatever findings came back into readable sentences, one claim per finding, plus proposing example questions that are only ever surfaced after round-tripping through the NL compiler and confirming they produce a valid, runnable plan. - Multi-agent research mode -
POST /researchruns a sequential Planner → Execution → Visualization → Explanation → Report pipeline (ai-service/atlas_ai/agents/) that decomposes an open-ended question into structured sub-questions and answers them by calling back into the coordinator's ownPOST /query/nl- the exact NL-compile-and-execute path every other query already goes through, so the AI service still never touches the catalog or workers directly. A rule-based visualization step picks a chart type (stat/bar/line/table) from each result's row shape, and every claim in the final report is tagged[data], traceable to an actual query result. Literature sub-questions are answered by retrieval (ai-service/atlas_ai/retrieval,pgvector-backed nearest-neighbor search over a corpus ingested viaingest_cli.py) and tagged[literature:doc_id], traceable to a specific retrieved document - a report can carry both[data]- and[literature:...]-tagged claims side by side, never blended into one unattributed sentence. - Auth and observability on the coordinator/catalog/worker/AI-service path - every coordinator REST route requires a JWT bearer token (
internal/auth,internal/api/middleware.go), minted either byPOST /auth/signup/POST /auth/login(bcrypt-hashed passwords,internal/accounts) or, for scripts/CI, the dev CLI ( go run ./cmd/tokengen) - both sign against the same requiredJWT_SECRET. Workspace scoping is enforced, not just modeled:datasets.workspace_id(plus the pre-existingworkspaces/users/query_historycolumns) meansGET /datasets, dataset lookups, and query execution are all filtered to the caller's own workspace, with a cross-workspace lookup reported as a plain not-found rather than a distinguishable "forbidden" (so it can't be used to enumerate other workspaces' dataset names). OpenTelemetry traces a request from the REST entry point through gRPC to the catalog, the Rust worker, and the Python AI service - a W3Ctraceparentheader riding in gRPC metadata all the way, read back out by each hop (atlas-worker/src/telemetry.rs'sspan_from_metadata,ai-service/atlas_ai/telemetry.py'sspan_from_grpc_context) - one trace id spans all four, visible in thejaegerservice docker-compose adds whenOTEL_EXPORTER_OTLP_ENDPOINTis set (unset by default outside compose, so every binary still runs standalone with zero extra infra). Prometheus tracks cache hit/miss, task dispatch duration/count, gRPC request duration/count, and worker task duration/in-flight count on the Go/Rust side (GET /metricson the coordinator, a dedicated port on the catalog and each worker) and LLM call latency/count/token-usage on the Python side (ai-service/atlas_ai/telemetry.py, its own dedicated port) - the same per-component-port convention throughout.
- One shared
LogicalPlanIR for every query source - SQL and natural-language queries both compile to the same protobuf-defined plan (proto/plan.proto), with Rust (prost), Go, and Python (grpcio-tools) structs generated from it rather than hand-written in parallel per language. This is what lets the NL path reuse the SQL path's optimizer and executor completely unchanged. - Arrow as the type system, not a custom one - schema types are Arrow's own (
arrow::datatypes::{DataType, Field, Schema}) re-exported directly; a parallel type system would only ever mirror Arrow's. - The
.atlasformat is deliberately Parquet/Iceberg/Delta-shaped - footer-plus-pages-plus-statistics, Hive-style partition paths - so that Phase 5's Parquet/Iceberg/Delta interop was an integration exercise, not a fight against an incompatible internal format. Reading an external Iceberg table translates its manifests into Atlas's ownManifestshape once (atlas_format::read_iceberg_table, a from-spec reader overapache-avrorather than a wrapper over the fulliceberg-rustcrate, whose catalog/async-runtime machinery this read-only, filesystem-pointed path doesn't need), after which pruning, scheduling, and execution don't know or care that the source wasn't Atlas's own writer. Iceberg's own single-value bounds serialization (LE bytes for int/long/float/double, raw UTF-8 for strings) is already byte-identical to Atlas's own column-stats encoding, so bounds pass through unchanged rather than needing a decode/re-encode step. Delta's transaction log (atlas_format::read_delta_table) is plain JSON rather than Avro, so it needs no new dependency at all (serde_jsonalone replays_delta_log/*.json's add/remove/metaData actions) - but itsstats.jsonbounds are JSON-typed values, not pre-serialized bytes, so those genuinely get encoded into Atlas's LE-bytes/UTF-8 convention rather than passed through unchanged like Iceberg's. - Catalog commits are transactional, not eventually consistent - inserting a snapshot row, its manifests, and updating
datasets.current_snapshot_idall happen in one Postgres transaction, so queries never observe a partially-committed snapshot. - Coordinator and catalog are separate services even though they're usually co-deployed - the catalog is passive metadata storage; the coordinator is an active scheduler. Keeping them as separate binaries keeps that distinction real rather than nominal.
- Two-phase distributed aggregation over shuffling raw rows - each worker computes a partial aggregate for its partition; the coordinator combines partials into the final result, so
GROUP BYover a distributed scan never requires moving raw rows between workers. - Optimizer is a fixed-point rule loop, not a cost-based planner - column pruning, predicate pushdown, and partition pruning are applied repeatedly until the plan stops changing (capped at a fixed iteration count to guarantee termination). There's no cardinality-estimating cost model yet; the rule set targets the pruning wins that matter most before a query ever reaches a worker.
- Cache key is the optimized plan's hash plus the snapshot id, not the raw SQL string - two differently-worded but equivalent queries share a cache entry once optimized, and a cache entry is treated as stale the instant its dataset's
current_snapshot_idadvances, rather than requiring an explicit invalidation sweep on every ingest. - New file formats are thin wrappers over existing crates, not reimplementations - Parquet support leans on
parquet-rsfor the actual format logic; Iceberg and Delta are from-spec readers (apache-avro/serde_jsonrespectively) rather than wrappers overiceberg-rust/deltalake, whose catalog/async-runtime machinery this read-only, filesystem-pointed path doesn't need. Atlas's own code is the translation layer that lets pruning, scheduling, and execution treat every format identically once a file's manifest is loaded. - LLM access is provider-agnostic by construction - every model call goes through one
litellm-backed adapter selected viaATLAS_LLM_PROVIDER/ATLAS_LLM_MODEL, so switching between Anthropic, OpenAI, Gemini, or a local Ollama model is an environment variable change, never a code branch. - The engine is the source of truth; the AI service never sees raw data - the AI service only ever receives already-executed result sets (Arrow IPC) or structured statistical findings, never the underlying dataset. Every narrated explanation is checked against the numbers it was given, so an explanation can't state a figure that didn't come from an actual query result.
- Suggested questions and insights are grounded, not purely generative - a suggested example question is only surfaced after it's been compiled to a plan and confirmed runnable; insight narration is constrained to one sentence per one structured finding object, so there's no free-floating LLM-invented statistic anywhere in the analyst output.
- The research pipeline is a plain sequential agent chain, not a graph-orchestration framework -
Planner → Query → Execution → Visualization → Explanation → Reportruns in fixed order over a typed, accumulating state object. Query and Execution agents are thin wrappers around the existing NL-compile-and-execute path rather than new query logic, and every agent's input/output is logged so the pipeline stays inspectable without needing branching or looping machinery that nothing here actually requires. - Research claims are attributed at the sentence level - every claim in a generated report is tagged
[data](traceable to an Execution-agent result) or[literature:doc_id](traceable to a specific retrieved document), so structured findings and retrieved literature are never merged into an unattributed claim.
| Layer | Tech |
|---|---|
| Engine (Rust) | arrow / arrow-csv, sqlparser, parquet-rs, apache-avro (Iceberg manifest reads), serde_json (Delta transaction-log reads), lz4_flex / zstd, object_store, tonic (gRPC), clap |
| Coordinator (Go) | Go 1.22+, pgx (Postgres), go-redis, golang-migrate/goose, golang.org/x/crypto/bcrypt (password hashing), gRPC + REST handlers, testcontainers-go for integration tests |
| AI service (Python) | Python 3.11+, litellm (Anthropic/OpenAI/Gemini/Ollama behind one adapter), grpc.aio, pyarrow, pgvector, Pydantic, opentelemetry-sdk + prometheus-client (tracing/metrics) |
| Metadata, cache & retrieval | Postgres (catalog: datasets/snapshots/manifests/query_history), Redis (result cache), pgvector (literature embeddings) |
| Dashboard | Next.js, Node 20+ |
| SDK / CLI | atlas-cli (engine/crates/atlas-cli, Rust - ingest/ingest-iceberg/ingest-delta over a tonic-generated CatalogService gRPC client, query/explain as a REST client against the coordinator), Python SDK (sdk/python's atlas_sdk.AtlasClient, a thin REST client over the same coordinator API - query/query_nl/explain/summary/insights/research, decoding Arrow IPC results to pyarrow/pandas) |
| Contracts | Protobuf (proto/plan.proto, format.proto, catalog.proto, worker.proto, ai.proto) - source of truth for cross-language types, codegen via prost (Rust), protoc-gen-go (Go), grpcio-tools (Python) |
| Infra | Docker Compose (Postgres, MinIO, Redis, coordinator, N workers, Ollama), Kubernetes manifests (deploy/k8s) for production |
| Observability & auth | OpenTelemetry (trace propagation from REST → catalog gRPC → worker gRPC → AI-service gRPC, all via a traceparent header riding in gRPC metadata, opt-in via OTEL_EXPORTER_OTLP_ENDPOINT), Prometheus per component (golang-jwt/jwt, client_golang on the Go side; metrics/metrics-exporter-prometheus on the Rust side; opentelemetry/prometheus-client on the Python side), JWT auth with enforced per-workspace scoping (datasets.workspace_id) and a signup/login flow (internal/accounts, bcrypt) alongside the dev tokengen CLI |
| Testing | cargo test + Criterion benches (Rust), go test with testcontainers-go against real Postgres (Go), golden-file NL→plan tests with a mocked LLM by default (Python), full-stack integration tests over Docker Compose |
engine/ # Rust workspace
crates/
atlas-format/ # schema types (re-exports Arrow) + .atlas/Parquet/Iceberg/Delta readers & writers
atlas-storage/ # CSV + columnar reads, object-store abstraction
atlas-query/ # SQL parsing + logical plan construction
atlas-optimizer/ # column pruning, predicate pushdown, rule engine
atlas-exec/ # logical plan execution
atlas-insights/ # outlier/trend/quality/summary statistical finding functions
atlas-worker/ # gRPC worker: executes assigned task against one partition, dispatches Analyze
atlas-cli/ # the `atlas-cli` binary (ingest / ingest-iceberg / ingest-delta / query / explain)
coordinator/ # Go: REST API, scheduler, worker registry, result cache
cmd/
coordinator/
catalog/ # standalone metadata catalog service
tokengen/ # dev CLI: mints a JWT against JWT_SECRET, no signup/login needed
internal/
catalog/
accounts/ # signup/login persistence: users/workspaces, direct-Postgres (like history/)
scheduler/
api/ # REST handlers, incl. auth_handlers.go (POST /auth/signup, /auth/login)
ai-service/ # Python: LLM abstraction, NL→plan (Phase 6), AI analyst (Phase 7), research pipeline (Phase 8)
atlas_ai/
providers/ # ModelProvider Protocol + litellm-backed adapter
plan/ # schema.py (LogicalPlan mirror + validation), prompt.py, planner.py (nl_to_plan)
insights/ # narrate.py (narrate_findings), suggest.py (suggest_questions, gated on nl_to_plan)
agents/ # Planner/Execution/Visualization/Explanation/Report pipeline (pipeline.py's run_pipeline), backing POST /research
retrieval/ # embeddings.py, chunking.py, store.py (pgvector), retrieve()/ingest_documents(), ingest_cli.py
pb/ # generated from proto/ai.proto (grpcio-tools)
explain.py # narrates an already-executed result (Arrow IPC) in plain English
telemetry.py # OTel trace extraction (span_from_grpc_context) + Prometheus LLM metrics, port 9096
server.py # grpc.aio AIService server, port 9092
proto/ # shared .proto contracts: plan, format, catalog, worker, ai
dashboard/ # Next.js frontend: query console, plan viewer, insights, research reports, login
sdk/
python/ # atlas_sdk: AtlasClient over the coordinator REST API (the CLI itself lives in
# engine/crates/atlas-cli -- Rust, built directly against the engine's own
# Arrow/plan types, not a second generated-client package here)
deploy/
docker-compose.yml
k8s/ # kustomize base: same services as docker-compose.yml, coordinator/dashboard
# scaled to 2 replicas, workers as a StatefulSet for stable per-pod addressing
docs/ # architecture plan + implementation spec
- Rust (stable, 2021 edition)
- Go 1.22+
- Python 3.11+ (
uvorpoetry) - Node 20+ (dashboard)
- Docker (Postgres, MinIO, Redis, Ollama)
git clone <repo-url>
cd atlas
docker compose -f deploy/docker-compose.yml up -d postgres minio redis
cargo build --workspace --manifest-path engine/Cargo.toml
(cd coordinator && go build ./...)
(cd ai-service && uv sync)
(cd dashboard && npm install)
ATLAS_LLM_PROVIDER=ollama # or anthropic / openai / gemini
ATLAS_LLM_MODEL=<model-name>
ATLAS_EMBEDDING_PROVIDER=ollama # or anthropic / openai / gemini -- literature retrieval (Phase 8)
ATLAS_EMBEDDING_MODEL=nomic-embed-text
DATABASE_URL=postgres://... # catalog + query_history + corpus_documents (pgvector)
REDIS_URL=redis://... # result cache
No hosted-LLM API key is required if ATLAS_LLM_PROVIDER=ollama - the local model path is a first-class option, not a fallback.
# ingest a CSV into the columnar format and register a snapshot
# (ingest talks to the catalog service directly over gRPC, not the
# coordinator's REST API, so it doesn't need a token)
atlas-cli ingest --file patients.csv --dataset patients
# register an existing Iceberg table (created by another engine) as an
# external-table dataset -- no data copied, just its current snapshot's files
atlas-cli ingest-iceberg --metadata /path/to/table/metadata/00002-....metadata.json --dataset patients_iceberg
# same for an existing Delta Lake table (e.g. written by Spark or the
# `deltalake` Python package) -- reads _delta_log/*.json, no data copied
atlas-cli ingest-delta --table-path /path/to/delta_table --dataset patients_delta
# every coordinator REST route requires a bearer token. Sign up for one --
# this also creates the workspace the token is scoped to (defaults to the
# seeded default workspace if workspace_name is omitted):
curl -X POST localhost:8080/auth/signup -d '{"email": "you@example.com", "password": "...", "workspace_name": "acme"}'
# -- or mint a dev token directly against the coordinator's JWT_SECRET,
# useful for scripts/CI that skip signup entirely:
export ATLAS_TOKEN=$(JWT_SECRET=<same secret coordinator is running with> go run ./coordinator/cmd/tokengen)
# query by SQL - goes through optimize -> schedule -> distributed execute
atlas-cli query --dataset patients --sql "SELECT diagnosis, COUNT(*) AS n FROM t GROUP BY diagnosis ORDER BY n DESC"
# inspect optimization: pre/post plan, manifests pruned, cache hit
curl -X POST localhost:8080/explain -H "Authorization: Bearer $ATLAS_TOKEN" -d '{"dataset": "patients", "sql": "..."}'
# Prometheus metrics (unauthenticated -- scrapers don't carry a bearer token)
curl localhost:8080/metrics
# qu
7AF7
ery by natural language -- the AI service (Phase 6) compiles the
# question to the same LogicalPlan SQL produces, then runs through the
# unchanged optimize -> schedule -> execute path; same bearer token as /query
curl -X POST localhost:8080/query/nl -H "Authorization: Bearer $ATLAS_TOKEN" -d '{"dataset": "patients", "question": "which diagnosis is most common?"}'
# statistically-grounded dataset summary -- pure engine, no LLM call
curl -X POST localhost:8080/datasets/patients/summary -H "Authorization: Bearer $ATLAS_TOKEN"
# summary + data-quality findings + LLM narration + suggested questions
curl -X POST localhost:8080/datasets/patients/insights -H "Authorization: Bearer $ATLAS_TOKEN"
# ingest a small literature corpus (plain-text files, one doc per file) --
# chunks, embeds, and stores into pgvector's corpus_documents table
(cd ai-service && uv run python -m atlas_ai.retrieval.ingest_cli --corpus-id papers --dir ./papers)
# multi-agent research report: decomposes the question, answers structured
# sub-questions via /query/nl, picks a chart type per result, and narrates
# every claim -- tagged [data] (traces to a query result) or
# [literature:doc_id] (traces to a document retrieved from corpus_id, via
# atlas_ai/retrieval's pgvector nearest-neighbor search)
curl -X POST localhost:8080/research -H "Authorization: Bearer $ATLAS_TOKEN" -d '{"question": "which hospital sees the most patients?", "dataset": "patients", "corpus_id": "papers"}'
# dashboard -- sign up at /login once it's up; its own session cookie is
# all you need from then on (see dashboard/README.md)
(cd dashboard && npm run dev) # http://localhost:3000
Everything above also works from a notebook via the Python SDK (sdk/python), instead of curl/atlas-cli:
from atlas_sdk import AtlasClient
client = AtlasClient("http://localhost:8080")
client.login("you@example.com", "your-password")
df = client.query("patients", "SELECT diagnosis, COUNT(*) AS n FROM t GROUP BY diagnosis ORDER BY n DESC").to_pandas()# Rust
cargo fmt --check --manifest-path engine/Cargo.toml
cargo clippy --workspace --manifest-path engine/Cargo.toml -- -D warnings
cargo test --workspace --manifest-path engine/Cargo.toml
# Go
(cd coordinator && golangci-lint run && go test ./...)
# Python
(cd ai-service && pytest)
(cd sdk/python && uv sync && uv run pytest)
- Rust: unit tests per crate (schema inference, format round-trips, per-operator execution, optimizer rules) plus Criterion benchmarks that assert pruning reduces bytes actually read, not just wall-clock time.
atlas-format's Iceberg and Delta readers are each tested against a real table fixture (engine/crates/atlas-format/tests/fixtures/iceberg_sample/delta_sample, generated by PyIceberg/the Pythondeltalakepackage respectively - independent writers, not Atlas's own) asserting schema translation, per-partition row counts, and column-stats bytes decode correctly; the worker crate separately proves manifests taggedformat = "iceberg"andformat = "delta"both dispatch to the Parquet reader and execute a real query over it. - Go:
testcontainers-gospins up a real Postgres for catalog/scheduler/auth tests - snapshot chaining, transactional commits, partition pruning against real manifests, workspace-scoped datasets being invisible across workspaces, a signup-then-login round trip minting valid tokens, and a worker-killed-mid-query fault-tolerance test. - Python: golden-file structural tests for NL→plan (assert correct node types/columns/aggregates, not exact LLM text) against a mocked provider by default, with real multi-provider runs (including Ollama) gated behind an integration-test flag; insight and suggested-question tests assert every suggested question compiles to a valid plan and every narrated number traces back to a supplied finding. Each research-pipeline agent (
ai-service/tests/agents/) is unit-tested in isolation against a mocked provider and a fake coordinator query-runner (no live LLM, no real HTTP); two end-to-end pipeline tests assert the final report's[data]-tagged claim traces to an actual query result row, and - with both a structured and a literature sub-question in play - that a single report can carry both[data]- and[literature:doc_id]-tagged claims together, each traceable to its actual source. Retrieval (ai-service/tests/retrieval/) unit-tests chunking and the litellm-backed embedding adapter against a mockedlitellm.embedding; a real Postgres+pgvector round trip (ingest then nearest-neighbor search) is gated behind the same integration-test flag as the LLM provider tests, since it needs a live corpus_documents table. Telemetry (ai-service/tests/test_telemetry.py) asserts a span is parented under an incomingtraceparentgRPC-metadata header when present (a fresh root when it's absent) using an in-memory span exporter, and that a wrapped LLM call actually moves the latency/count/token Prometheus counters - no live OTLP collector or LLM call needed for either. - Cross-service: an integration test ingests a partitioned dataset and runs a
GROUP BYthrough the full coordinator → N-worker → merge path, asserting the distributed result exactly matches a known-correct single-node baseline. - Python SDK (
sdk/python):AtlasClientis tested entirely againsthttpx.MockTransport- auth-token handling (signup/login store it, an unauthenticated call without one fails before any request is sent), every route's request shape,AtlasErroron non-2xx responses, andQueryResult.to_table()/.to_pandas()decoding real Arrow IPC bytes round-tripped throughpyarrow- no live coordinator required. - CI: one workflow per language (
ci-rust.yml,ci-go.yml,ci-python.yml- which runs bothai-serviceandsdk/pythonas separate jobs,ci-node.ymlfor the dashboard), each running lint + unit tests + build on every PR touching its directory.
deploy/docker-compose.yml runs the full stack locally: Postgres, MinIO, Redis, the catalog service, the coordinator, 3 workers, Ollama, the AI service, the dashboard, and - for the auth/observability work described above - Jaeger (trace UI) and Prometheus (metrics scrape, config in deploy/prometheus.yml). deploy/k8s/ is a kustomize base with the same services for a real cluster (kubectl apply -k deploy/k8s) - the coordinator and dashboard run as 2-replica Deployments (both are stateless; state lives in Postgres/Redis), while the 3 workers run as a StatefulSet behind a headless Service so the coordinator's worker registry keeps 3 distinct, individually heartbeat-tracked addresses instead of one round-robin DNS name. See deploy/k8s/README.md for image build/push, the ReadWriteMany-storage requirement for shared .atlas-file access across workers, and secrets setup.
| Service | Protocol | Default port |
|---|---|---|
| Coordinator (REST) | HTTP/JSON | 8080 |
| Catalog service | gRPC | 9091 |
Catalog metrics (/metrics) |
HTTP | 9095 |
| Worker | gRPC | 9100+ (one per worker) |
Worker metrics (/metrics) |
HTTP | 9101+ (one per worker) |
| AI service | gRPC | 9092 |
AI service metrics (/metrics) |
HTTP | 9096 |
| Dashboard | HTTP | 3000 |
| Jaeger UI / OTLP gRPC | HTTP / gRPC | 16686 / 4317 |
| Prometheus UI | HTTP | 9090 |