ktx/python/ktx-daemon/src/ktx_daemon
Andrey Avtomonov a0d19ba26f
fix(sl): classify semantic-query request rejections as expected, not faults (#339)
The daemon rejects an invalid semantic-query request (unknown source,
ambiguous measure, no join path) with a plain ValueError; the Node compute
port now maps the daemon's exit code 3 / HTTP 400 to KtxExpectedError so these
routine, caller-driven rejections stay out of Error Tracking.

A dedicated SemanticLayerRequestError(ValueError) is raised only for engine
rejections and routed through both daemon transports and the HTTP handler.
Because pydantic v2 ValidationError subclasses ValueError, malformed sources or
responses (contract faults) are kept as faults: they are reported and mapped to
exit 1 / HTTP 500 / plain Error on every path. Non-object stdin is likewise a
fault (exit 1), not exit 3.
2026-07-03 23:17:33 +02:00
..
telemetry fix: classify mcp query failures (#302) 2026-06-15 12:48:24 +00:00
__init__.py refactor: enforce ktx naming and AGENTS.md compliance sweep (#289) 2026-06-11 13:49:45 +02:00
__main__.py fix(telemetry): classify daemon query rejections as expected, not faults (#335) 2026-07-03 22:39:34 +02:00
app.py fix(sl): classify semantic-query request rejections as expected, not faults (#339) 2026-07-03 23:17:33 +02:00
code_execution.py refactor: enforce ktx naming and AGENTS.md compliance sweep (#289) 2026-06-11 13:49:45 +02:00
database_introspection.py feat: ktx batch — scan resilience, analytics SQL craft, connector hardening (#312) 2026-06-29 16:35:57 +00:00
embeddings.py refactor: enforce ktx naming and AGENTS.md compliance sweep (#289) 2026-06-11 13:49:45 +02:00
lookml.py rename klo to ktx 2026-05-10 23:51:24 +02:00
semantic_layer.py fix(telemetry): classify daemon query rejections as expected, not faults (#335) 2026-07-03 22:39:34 +02:00
source_generation.py rename klo to ktx 2026-05-10 23:51:24 +02:00
sql_analysis.py feat(query-history): scope mining to modeled schemas by default (#258) 2026-06-03 17:19:42 +02:00
table_identifier.py refactor: remove legacy ktx compatibility shims (#211) 2026-05-24 16:57:23 +02:00