ktx/packages/cli/test/context/ingest
Andrey Avtomonov a278d2f7d0
fix(ingest): verify repair outcomes and reject dangling join targets (#292)
One ingest integration hiccup no longer discards a whole source:

- Replace the duplicated gate-repair and textual-resolver loops with one
  shared constrained-repair loop whose success criterion is re-running
  the failed check (verify), not whether the agent edited files. Verify
  failures feed the retry prompt; maxAttempts is 2.
- Let the resolver declare a conflicting patch redundant: a verified
  no-change resolution is accepted as subsumed instead of failing the
  source (duplicate wiki-page creation from parallel work units).
- Carry per-source validation errors through validateWuTouchedSources
  into gate messages and work-unit failure reasons instead of
  discarding them.
- Move join-neighbor expansion into the shared validation path so
  work-unit validation and integration gates check the same set.
- Reject joins whose target resolves to no source, at sl_write time and
  in the gates, attributed to the declaring source. Resolution mirrors
  the Python engine exactly (case-sensitive name within the
  connection), with a case-mismatch hint for the writing agent.
2026-06-11 14:39:51 +02:00
..
adapters refactor: enforce ktx naming and AGENTS.md compliance sweep (#289) 2026-06-11 13:49:45 +02:00
clustering test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
context-candidates test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
context-evidence test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
dbt-shared test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
historic-sql-probes test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
isolated-diff fix(ingest): verify repair outcomes and reject dangling join targets (#292) 2026-06-11 14:39:51 +02:00
memory-flow refactor: enforce ktx naming and AGENTS.md compliance sweep (#289) 2026-06-11 13:49:45 +02:00
page-triage refactor: enforce ktx naming and AGENTS.md compliance sweep (#289) 2026-06-11 13:49:45 +02:00
stages fix(ingest): verify repair outcomes and reject dangling join targets (#292) 2026-06-11 14:39:51 +02:00
tools fix: read semantic sources safely (#284) 2026-06-10 14:06:13 +02:00
action-identity.test.ts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
artifact-gates.test.ts fix(ingest): verify repair outcomes and reject dangling join targets (#292) 2026-06-11 14:39:51 +02:00
canonical-pins.test.ts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
diff-set.service.test.ts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
final-gate-repair.test.ts fix(ingest): verify repair outcomes and reject dangling join targets (#292) 2026-06-11 14:39:51 +02:00
finalization-scope.test.ts fix: read semantic sources safely (#284) 2026-06-10 14:06:13 +02:00
historic-sql-probes.test.ts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
ingest-bundle.runner.isolated-diff.test.ts fix(ingest): verify repair outcomes and reject dangling join targets (#292) 2026-06-11 14:39:51 +02:00
ingest-bundle.runner.test.ts refactor: enforce ktx naming and AGENTS.md compliance sweep (#289) 2026-06-11 13:49:45 +02:00
ingest-profile.test.ts feat(cli): profile ingest runs and split model vs tool time (#249) 2026-06-01 15:49:17 +02:00
ingest-prompts.test.ts refactor: enforce ktx naming and AGENTS.md compliance sweep (#289) 2026-06-11 13:49:45 +02:00
ingest-runtime-assets.test.ts refactor: enforce ktx naming and AGENTS.md compliance sweep (#289) 2026-06-11 13:49:45 +02:00
ingest-trace.test.ts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
local-adapters.test.ts feat(query-history): scope mining to modeled schemas by default (#258) 2026-06-03 17:19:42 +02:00
local-bundle-ingest.test.ts refactor: enforce ktx naming and AGENTS.md compliance sweep (#289) 2026-06-11 13:49:45 +02:00
local-bundle-runtime.test.ts feat(setup): apply per-role LLM model presets, remove --llm-model (#268) 2026-06-08 15:30:48 +02:00
local-embedding-provider.integration.test.ts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
local-mapping-reconcile.test.ts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
local-metabase-ingest.test.ts fix(cli): treat artifact-producing ingests with failures as partial (#238) 2026-05-30 00:42:59 +02:00
local-stage-ingest.test.ts refactor: enforce ktx naming and AGENTS.md compliance sweep (#289) 2026-06-11 13:49:45 +02:00
raw-sources-paths.test.ts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
repo-fetch.test.ts refactor: enforce ktx naming and AGENTS.md compliance sweep (#289) 2026-06-11 13:49:45 +02:00
report-snapshot.test.ts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
reports.test.ts fix(cli): treat artifact-producing ingests with failures as partial (#238) 2026-05-30 00:42:59 +02:00
semantic-layer-target-policy.test.ts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
source-adapter-registry.test.ts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
sqlite-bundle-ingest-store.test.ts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
sqlite-local-ingest-store.test.ts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
wiki-body-refs.test.ts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
wiki-sl-ref-repair.test.ts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00