ingest_triage
Agent skill fromKaelio/ktx
Classify and resolve conflicts detected during bundle ingest (structural duplicates, definitional contradictions, near-duplicate clusters, re-ingest changes, evictions).
How to install ingest_triage
install ingest_triage
# install the ktx pack with the skills CLI
npx skills add Kaelio/ktx# or add only this skill to Claude Code: copy the folder
packages/cli/src/skills/ingest_triage/
# into
~/.claude/skills/ingest_triage/ (all projects)
.claude/skills/ingest_triage/ (one project)
1# Ingest Triage - conflict classification and resolution23This skill is loaded in two contexts:4- By a Stage 3 WorkUnit agent when `sl_discover`, deterministic projection5 output, existing project memory, or prior provenance overlaps with what the6 current WorkUnit is about to write.7- By the Stage 4 reconciliation agent for cross-WorkUnit sweeps, accepted patch8 overlap, and eviction decisions.910Apply the rules below before every write that could collide with an existing artifact.1112## Decision tree13141. **Is this the same artifact I'm producing now, or a different one with the same name?**15 Read both. If names match and content matches (modulo whitespace): no conflict - skip the write, the prior one stands.16172. **If content differs, is it an expression-only change (e.g. a different `sql:` body for the same measure name, same grain, same columns)?**18 Re-ingest change (expression-only): silently replace via `sl_edit_source`. No flag.19203. **If the difference is structural - grain, columns, filter, join shape - is the current bundle the re-ingest of a previously-ingested bundle (i.e. `priorProvenance` has a row for this raw file and artifact)?**21 Re-ingest change (semantic break): replace + flag. Record in the IngestReport's `conflicts_resolved` list with `flagged_for_human: true`.22234. **If reconciliation sees accepted patches from this same job with no24prior-sync row, check for same-ingest contradictions:**2526 | Kind | Detection | Resolution |27 |---|---|---|28…
Excerpt shown under the repository's Apache-2.0 license.
