mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-25 08:48:08 +02:00
Address overengineering audit findings across cli/context/connector packages: - F1 Snowflake `query`: drop bare catch that flattened all errors to empty result - F2 memory-agent: treat LLM `stopReason === 'error'` as crash (skip squash-merge) - F3 WikiSearchTool: description honest about token-only fallback vs sqlite-fts5 hybrid - F5 Scan enrichment provider resolution: return discriminated status and surface distinct `llm_unavailable` / `embedding_unavailable` warnings per failure mode - F6 Relationship validation budget: drop dead `tableCount === undefined → 'all'` branch; update tests to pass `tableCount` like production - F8 `ktx sql`: use canonical `resolveOutputMode` (now honors KTX_OUTPUT/CI/TTY) - F9 MCP stdio server: default `protocolIo.stderr` to `process.stderr` so memory_ingest startup failures are visible - F13/F14 Scan/setup JSON readers: distinguish ENOENT from corruption instead of silently treating both as missing - F15 `createKtxCliScanConnector`: throw config-shape error when driver matches but type guard rejects, instead of "no native connector" - F16 ContextEvidenceSearchTool: surface `embedding_unhealthy:<reason>` instead of silently dropping the semantic lane - F17 PromptService: default partials to `[]` (removes stale `clinical_policy` reference from a prior product) - F20 `contextBuildCommands`: drop unused `runId` parameter Dead-code removal: - F4 Delete `AgentRunnerService` (duplicated `RuntimeAgentRunner`, only test-used); migrate tests to exercise `AiSdkKtxLlmRuntime.runAgentLoop` directly - F7 Delete `KtxScanOrchestrator` and its test (no production callers; the inline pipeline in `runLocalScan` is the single source of truth) - F18 Delete `generateKtxText`/`generateKtxObject` pass-through helpers; inline the single `runtime.generateObject` call at its caller Plus a clarifying comment on the SQLite `resolveStringReference` `file:` carve-out (load-bearing for SQLite URI form, not a bug). |
||
|---|---|---|
| .. | ||
| credentials.test.ts | ||
| credentials.ts | ||
| data-dictionary.test.ts | ||
| data-dictionary.ts | ||
| description-generation.test.ts | ||
| description-generation.ts | ||
| embedding-text.test.ts | ||
| embedding-text.ts | ||
| enabled-tables.ts | ||
| enrichment-state.test.ts | ||
| enrichment-state.ts | ||
| enrichment-summary.test.ts | ||
| enrichment-summary.ts | ||
| enrichment-types.test.ts | ||
| enrichment-types.ts | ||
| entity-details.test.ts | ||
| entity-details.ts | ||
| index.ts | ||
| local-enrichment-artifacts.test.ts | ||
| local-enrichment-artifacts.ts | ||
| local-enrichment.test.ts | ||
| local-enrichment.ts | ||
| local-scan.test.ts | ||
| local-scan.ts | ||
| local-structural-artifacts.test.ts | ||
| local-structural-artifacts.ts | ||
| relationship-artifacts.test.ts | ||
| relationship-artifacts.ts | ||
| relationship-benchmark-report.test.ts | ||
| relationship-benchmark-report.ts | ||
| relationship-benchmarks.test.ts | ||
| relationship-benchmarks.ts | ||
| relationship-budget.test.ts | ||
| relationship-budget.ts | ||
| relationship-candidates.test.ts | ||
| relationship-candidates.ts | ||
| relationship-composite-candidates.test.ts | ||
| relationship-composite-candidates.ts | ||
| relationship-diagnostics.test.ts | ||
| relationship-diagnostics.ts | ||
| relationship-discovery.test.ts | ||
| relationship-discovery.ts | ||
| relationship-feedback-calibration.test.ts | ||
| relationship-feedback-calibration.ts | ||
| relationship-feedback-export.test.ts | ||
| relationship-feedback-export.ts | ||
| relationship-formal-metadata.test.ts | ||
| relationship-formal-metadata.ts | ||
| relationship-graph-resolver.test.ts | ||
| relationship-graph-resolver.ts | ||
| relationship-llm-proposal.test.ts | ||
| relationship-llm-proposal.ts | ||
| relationship-locality.test.ts | ||
| relationship-locality.ts | ||
| relationship-name-similarity.test.ts | ||
| relationship-name-similarity.ts | ||
| relationship-profiling.test.ts | ||
| relationship-profiling.ts | ||
| relationship-review-apply.test.ts | ||
| relationship-review-apply.ts | ||
| relationship-review-decisions.test.ts | ||
| relationship-review-decisions.ts | ||
| relationship-scoring.test.ts | ||
| relationship-scoring.ts | ||
| relationship-threshold-advice.test.ts | ||
| relationship-threshold-advice.ts | ||
| relationship-validation.test.ts | ||
| relationship-validation.ts | ||
| sqlite-local-enrichment-state-store.ts | ||
| type-normalization.test.ts | ||
| type-normalization.ts | ||
| types.test.ts | ||
| types.ts | ||
| warehouse-catalog.test.ts | ||
| warehouse-catalog.ts | ||