ktx/packages/cli/test/context/ingest/isolated-diff
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
..
git-patch.test.ts test: split cli tests from source tree (#216) 2026-05-26 08:49:05 +02:00
patch-integrator.test.ts fix(ingest): verify repair outcomes and reject dangling join targets (#292) 2026-06-11 14:39:51 +02:00
textual-conflict-resolver.test.ts fix(ingest): verify repair outcomes and reject dangling join targets (#292) 2026-06-11 14:39:51 +02:00
work-unit-executor.test.ts refactor: enforce ktx naming and AGENTS.md compliance sweep (#289) 2026-06-11 13:49:45 +02:00