The complete reference set for flyquery. Start with the top-level QUICKSTART.md for your first upload + query, the main README.md for the elevator pitch, and payload-reference.md for the authoritative wire-payload guide. Come here when you need a specific corner of the system.
Pick the entry point that matches what you're trying to do.
- ../QUICKSTART.md — ten minutes from clone to your first upload, ingest, and answered question. HTTP-only, no API keys required for format parsing.
- payload-reference.md — composing the request: every wire payload (upload, query, conversation, SSE frames, RFC 7807 errors).
- api-reference.md — every endpoint, header, query parameter, DTO, scope, and status code.
- glossary.md — terms the API uses (dataset, table, snapshot, schema object, relation, example, conversation turn, ingest job, …).
- eda-events.md — the two topics flyquery publishes
(
flyquery.ingestandflyquery.schema), the payload on each event, the durable Postgres outbox default. - async-ingest.md — how
IngestWorkerconsumes theflyquery.ingesttopic, job lifecycle, cooperative cancel, retry + dead-letter. - workers.md — the worker fleet topology (IngestWorker + RetentionWorker), CLI subcommands, scaling, recovery, and deployment forms.
- architecture.md — how
pyfly.eda.EventPublisheris injected into the ingestion and query services.
- architecture.md — the data model, storage architecture, multi-tenancy, hexagonal ports, lock-step modules.
- pipeline.md — upload + 10-stage ingestion and query pipeline (Grounding → Generation → Critic → Explainer) end-to-end with ASCII diagrams; mode coupling (sync vs async via EDA).
- ingestion.md — stage-by-stage ingestion detail: each stage's inputs, outputs, skip policy, and SSE events.
- schema-detection.md — XLSX/CSV/JSON parsing deep dive, type inference, drift detection, PII tagging, and the column-name proposer agent.
- prompts.md — catalog of the 7 agent prompts: instruction text, input shape, output schema.
- deployment.md — reference topologies, env vars, migration step, health checks, observability, backup.
- deployment-topology.md — single-node vs multi-node vs HA ASCII diagrams; scaling up (more workers, Postgres separate, Redis separate, S3 object store).
- cicd.md — CI workflows (lint, test-unit, test-integration, lockstep-check, publish-sdk), tag-triggered releases, branch protection.
- operations-runbook.md — cold start, daily checks, common error fixes, GDPR purge runbook, key rotation, incident response.
- troubleshooting.md — symptom → root cause → fix for upload failures, stuck ingest jobs, NULL embeddings, RLS returning zero rows, agent timeouts.
- architecture.md — hexagonal ports and where to plug new adapters (ObjectStore, FileReader, VectorStore, PiiScanner, SemanticCompiler).
- pipeline.md — the orchestrator and how stages are chained.
- concurrency.md — AsyncSession scoping, RLS GUC binding, EDA worker concurrency, DuckDB per-request isolation, ObjectStore async.
- quality.md — testing strategy: unit, integration, conformance (ObjectStore adapters), parser fixtures, pipeline tests, LLM-gated tests.
- consumers.md — building a service that consumes flyquery: SDK patterns, agent-token model, idempotency, EDA subscription recipes.
- troubleshooting.md — symptom-first index of common failure modes.
- operations-runbook.md — step-by-step incident response template.
- concurrency.md — for multi-worker race conditions and RLS mis-configuration symptoms.
- firefly-intelligence-system.md — the three-pillar narrative: how flycanon, flyradar, and flyquery cooperate.
- integration-with-firefly-os.md — concrete integration recipes: flyradar referencing a flyquery dataset, flycanon RAG over metadata about a flyquery dataset.
- auto-learning.md — the PROPOSED → APPROVED example cycle and the v1 online-learning roadmap.
- scale-and-performance.md — throughput numbers, bottlenecks, tuning knobs, capacity planning.
- superpowers/specs/2026-05-22-flyquery-design.md — the approved design spec.
| Document | Read it when… |
|---|---|
| ../QUICKSTART.md | You want your first upload + query in ten minutes (HTTP / curl). |
| architecture.md | You need the data model, storage design, multi-tenancy, hexagonal ports, lock-step modules. |
| pipeline.md | You're touching the ingestion or query orchestrator, or tracing a slow ingest / wrong SQL. |
| ingestion.md | You need stage-by-stage ingestion detail: each stage's skip policy, SSE events, re-upload semantics. |
| async-ingest.md | You're operating the IngestWorker: lifecycle, job kinds, cooperative cancel, retry, dead-letter. |
| file-formats.md | You need the per-format reader matrix and edge-case behaviour (BOM, merged cells, ragged JSON). |
| api-reference.md | You're integrating with the HTTP API and need every endpoint, shape, and status code. |
| payload-reference.md | You're composing the request payload — every field, option, and example. |
| eda-events.md | You're subscribing to flyquery.ingest or flyquery.schema EDA topics. |
| conversations.md | You're building chat-style UX on flyquery — conversation turns, drill-down semantics, snapshot pinning. |
| prompts.md | You want the exact instruction text and output schema for any of the 7 agents. |
| auto-learning.md | You want to understand or tune the PROPOSED → APPROVED example cycle. |
| semantic-layer.md | You're authoring MetricFlow YAML metrics or debugging the SEMANTIC_LAYER query path. |
| security-model.md | You need RLS details, AST firewall rules, PII policy, agent token verification. |
| pii.md | You're configuring PII scanners, policies, or debugging a PII-related ingest failure. |
| deployment.md | You're deploying flyquery — env vars, topologies, migration, health checks, observability. |
| deployment-topology.md | You need the single-node vs multi-node vs HA topology diagrams. |
| cicd.md | You're cutting a release or wiring CI/CD — PR gate, SDK publish, secrets. |
| operations-runbook.md | You're running flyquery in production — cold start, daily checks, GDPR purge, incident response. |
| troubleshooting.md | The service / ingest / query surface is misbehaving — symptom → root cause → fix. |
| concurrency.md | You're running multiple replicas / workers and need the async + transactional boundary picture. |
| consumers.md | You're building a service that consumes flyquery — SDK patterns, agent tokens, EDA subscription. |
| integration-with-firefly-os.md | You're wiring flyquery with flycanon or flyradar. |
| glossary.md | You need a precise definition for a term the API or docs use. |
| scale-and-performance.md | You're capacity-planning or tuning FLYQUERY_* knobs. |
| billing.md | You're tracking per-query and per-ingest LLM cost via flyquery_cost_events and GET /api/v1/billing. |
| stats.md | You're rendering a workspace dashboard via GET /api/v1/stats. |
| schema-detection.md | You're debugging XLSX/CSV/JSON parsing, type inference, drift detection, or the column-name proposer. |
| workers.md | You're running, scaling, or recovering the IngestWorker + RetentionWorker fleet. |
| quality.md | You're running or extending the test suite — unit, integration, parser fixtures, pipeline tests. |
| firefly-intelligence-system.md | You want the three-pillar narrative (flycanon + flyradar + flyquery). |
| ../sdks/python/README.md | You're integrating from Python (async-first SDK, Pydantic types). |
| ../sdks/java/README.md | You're integrating from Java / Spring Boot. |
# Against a running service:
curl -s http://localhost:8520/openapi.json | jq
# Via the task target (writes to ./openapi.json and checks drift):
task openapi-snapshotThe Swagger UI at /docs and Redoc at /redoc both browse the live spec.
