ktx/packages/cli/test/context
Andrey Avtomonov 5d17469601
fix(telemetry): classify daemon query rejections as expected, not faults (#335)
* fix(telemetry): classify daemon query rejections as expected, not faults

Semantic-layer query rejections and warehouse-execution rejections from the
sl_query MCP tool were wrapped as generic Errors, so reportException filed them
as PostHog $exception faults indistinguishable from real ktx bugs.

The daemon already separates a caller rejection (planner ValueError -> exit 3 /
HTTP 400) from a crash. The Node runner now carries that distinction as a typed
KtxDaemonComputeError, and a shared throwClassifiedQueryError promotes daemon
input-rejections and warehouse rejections to KtxQueryError while daemon crashes
and native JS faults still reach Error Tracking. query_semantic_layer stops
report_exception-ing expected ValueErrors, and a missing 'file:' secret now
raises KtxExpectedError so absent .ktx/secrets/<conn>-password stops filing
faults.

* chore: sync uv.lock to ktx-daemon/ktx-sl 0.15.0
2026-07-03 22:39:34 +02:00
..
cache Resumable and fault-tolerant source ingest (spec #22) (#315) 2026-06-30 01:29:28 +02:00
connections feat: query_policy semantic-layer-only restricts agents to predefined semantic-layer measures (#334) 2026-07-03 08:54:17 +00:00
core fix(telemetry): classify daemon query rejections as expected, not faults (#335) 2026-07-03 22:39:34 +02:00
daemon fix(telemetry): classify daemon query rejections as expected, not faults (#335) 2026-07-03 22:39:34 +02:00
index-sync fix: read semantic sources safely (#284) 2026-06-10 14:06:13 +02:00
ingest feat(athena): first-class AWS Athena warehouse identity (SL + BI mapping) (#332) 2026-07-02 15:10:29 +02:00
llm feat: ktx batch — scan resilience, analytics SQL craft, connector hardening (#312) 2026-06-29 16:35:57 +00:00
mcp fix(telemetry): classify daemon query rejections as expected, not faults (#335) 2026-07-03 22:39:34 +02:00
memory feat(sigma): add Sigma Computing context-source adapter (#316) 2026-07-01 01:14:57 +02:00
project feat: ktx batch — scan resilience, analytics SQL craft, connector hardening (#312) 2026-06-29 16:35:57 +00:00
prompts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
scan feat(connector): add Amazon Athena connector via Glue Data Catalog (#309) 2026-07-02 15:00:26 +02:00
search fix: read semantic sources safely (#284) 2026-06-10 14:06:13 +02:00
skills test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
sl feat: query_policy semantic-layer-only restricts agents to predefined semantic-layer measures (#334) 2026-07-03 08:54:17 +00:00
sql-analysis feat(connector): add Amazon Athena connector via Glue Data Catalog (#309) 2026-07-02 15:00:26 +02:00
test refactor: enforce ktx naming and AGENTS.md compliance sweep (#289) 2026-06-11 13:49:45 +02:00
tools test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
wiki feat: ktx batch — scan resilience, analytics SQL craft, connector hardening (#312) 2026-06-29 16:35:57 +00:00