Technologies and why they are here¶
This is the stack declared by pyproject.toml and used by the pinned source.
Version ranges below describe repository constraints; they are not claims about the latest
upstream release. Use uv.lock for resolved versions and keep lock updates explicit.
Runtime¶
| Technology | Declared constraint | Actual use and boundary | First implementation to read |
|---|---|---|---|
| Python | >=3.11 | application, static analysis, local jobs and build scripts | project scripts |
| Streamlit | ==1.66.0 | reactive UI, navigation, AppTest and custom components; no domain ownership | app, UI common |
| DuckDB | >=1.5,<2 | embedded local metadata/facts database; imported SQL is never submitted as executable SQL | Store |
| SQLGlot | >=30.23,<31 | SQL ASTs, scopes, dialects, typed DDL, static SAS SQL and legacy/focused grounding helpers; current independent AI extraction does not invoke static semantic approval | SQL parser, dbt analysis |
| NetworkX | >=3.4,<4 | directed graph traversal, cycles, temporary contraction and AI operation/composition graph checks | graph, AI linking |
| Pydantic | >=2.11,<3 | strict request/settings/provider/schema validation; model output still requires host grounding | configuration, analysis models |
| charset-normalizer | >=3.4,<4 | bounded text decoding with diagnostics when encoding is detected | ingestion |
| HTTPX | >=0.28,<1 | provider HTTP transport; protocols tested with MockTransport |
LLM adapter |
| Typer | >=0.16,<1 | console command parsing and help; calls shared AgentService |
CLI |
| MCP SDK | >=1.26,<2 | typed tools/resources/prompts, stdio and guarded Streamable HTTP | MCP server |
| tomlkit | >=0.13,<1 | bounded, atomic theme configuration changes while preserving TOML structure | UI themes, theme service |
| XlsxWriter | >=3.2.9,<4 | bounded constant-memory, literal-text XLSX reports | Excel export |
| resvg-py | >=0.5,<0.6 | optional-at-runtime PNG rasterization in bounded subprocess workers | graph images, worker |
| Pillow | ==13.0.0 | UI/image compatibility and packaging; see the tested Streamlit metadata override | Pillow regression, security policy |
| PyYAML | >=6.0.3,<7 | bounded safe dbt YAML parsing, duplicate/tag/cycle/depth rejection | dbt YAML |
| Jinja2 | >=3.1.6,<4 | parse static dbt templates and calls; imported templates are never rendered or evaluated | dbt templates |
| tiktoken (extra) | >=0.12,<1 | optional offline tokenizer with a pinned bundled encoding; conservative fallback remains available | AI budget |
ai-tokenizers is an optional dependency extra. resvg-py is declared as a runtime dependency,
but renderer discovery handles import failure and can still offer SVG. These are different
forms of optionality. The Streamlit/Pillow metadata exception is duplicated deliberately in
tool.uv.override-dependencies and dependency-overrides.txt;
review SECURITY.md before changing it.
Development, documentation and distribution¶
| Tool | Repository use | Verification boundary |
|---|---|---|
| uv | locked environment and dependency-group synchronization | installation success does not prove application behavior |
| pytest >=8,<10 | unit, persisted workflow, AppTest, protocol and regression tests | mocks do not establish live provider availability; AppTest does not run browser JS |
| Ruff >=0.14,<1 | import ordering and selected E/F/I lint rules, Python 3.11 target | lint does not validate lineage semantics |
| Hatchling | wheel/sdist backend; custom hook bundles app, UI, prompts and theme assets | test an installed wheel outside the source checkout |
| PyInstaller >=6.22,<7 | host-platform standalone bundle | native builds need target-platform smoke tests |
| MkDocs 1.6.1, Material 9.7.7, pymdown-extensions 12.3 | docs dependency group, strict static site and publication artifact | run the repository builder/validator, then inspect published artifact for hosting claims |
| Docker | reproducible container packaging and smoke checks | image build success alone is not a successful deployment |
| GitHub Actions | Ubuntu/Windows Python 3.12 tests, security, docs, release and artifact publication | inspect each workflow's actual triggers and permissions |
| Node.js 24 in test CI | browser JavaScript checks invoked by the Python suite | it is test tooling, not the application's backend runtime |
Read tests workflow, docs workflow,
release workflow, build module and
asset hook before changing tooling. Installer signing,
frozen process ownership and Windows replacement checks live under scripts/build/.
What this architecture does not require¶
Core analysis uses retained text and local facts. It does not need a remote database, licensed SAS runtime, dbt invocation or a JavaScript frontend build pipeline. Provider calls are explicit opt-in requests through HTTPX. Jinja parsing does not grant template execution; Python dbt resources are inspected rather than imported. Those boundaries explain why adding an execution engine is a product/security change, not a new parser branch.