In short.
ingest_triage is a conflict-resolution skill for developers maintaining KTX data-ingestion agents, but it requires host tools and leaves some decision boundaries unclear. Its instructions distinguish conflicts within one import from changes introduced by re-importing a source. Similar definitions receive a canonical choice, incompatible definitions are preserved under descriptive names, and prior user choices can override the normal election. The evidence establishes intended behavior; execution, integration reliability and operating costs are unknown.
Researched and written by an AI model and checked by a second AI model. How it works
The scope is packages/cli/src/skills/ingest_triage at revision 49a4ae6f5b28c904da921afc0ee72da6db7ac202. The supplied complete folder coverage contains SKILL.md, with the repository-level LICENSE supplied as a related notice outside that folder. The surrounding CLI implementation, tool schemas, other skills, dependencies and ingestion infrastructure are outside this scope. No code, commands, agents or ingestion operations were executed; actual integration behavior, reliability, performance and operating costs remain unassessed.
The overview
identity
ingest_triage is an instruction file in Kaelio/ktx at packages/cli/src/skills/ingest_triage/SKILL.md. Its metadata names memory_agent as the caller. It addresses conflicts encountered while importing bundles of source material into stored data definitions and wiki pages. The original folder is [https://github.com/Kaelio/ktx/tree/main/packages/cli/src/skills/ingest_triage].
The file describes use by Stage 3 WorkUnit agents before potentially conflicting writes and by a Stage 4 reconciliation agent handling conflicts across work units, accepted patches and removals. It is an agent skill rather than a documented standalone application.
assessment
Its main practical value is making conflict handling explicit. Instead of treating every collision alike, it separates unchanged content, formula edits, structural changes and incompatible definitions. It also specifies tie-breakers, provenance requirements and exceptions for prior user decisions.
It appears most useful within an existing KTX integration or as a design reference for a similar agent. Adapting it elsewhere would require implementing the referenced tools and context. The instructions are detailed enough to explain their intended behavior, but they do not establish that agents consistently follow them.
users
The likely audience is developers building or maintaining agents that import SQL measures, table definitions and related documentation. It is particularly relevant when separate files or work units can describe the same business concept differently.
For beginners, the central problem is deciding whether two definitions are equivalent, whether a newer import should replace an older definition, or whether both meanings must remain available. Experienced developers will need to understand provenance records, reference counts, aggregation, filters, joins and the host's write APIs. No beginner tutorial or standalone user interface is documented.
capabilities
The skill covers same-name duplicates, expression-only edits, structural changes on re-import, near-duplicate clusters, incompatible formulas and Stage 4 evictions. For similar definitions, it chooses a canonical artifact using incoming reference counts, then alphabetical tie-breakers, and preserves the other variants in a wiki page.
For incompatible definitions introduced within one import, it calls for descriptive names for every variant, a shared definitions page and a human-review flag. It also supports canonical pins: prior user choices that preserve a specified definition and disambiguate competitors. These are instructed capabilities, not demonstrated execution results.
Using it
requirements
The host must provide access to existing artifacts, source provenance, accepted patches, reference counts and work-unit identifiers. Canonical-pin handling also depends on a Stage Index or access to artifacts already stored in SL. The file refers to SL through its tool names without defining the abbreviation.
Referenced operations include sl_discover, sl_edit_source, sl_write_source, wiki_remove, eviction_list, emit_eviction_decision and emit_conflict_resolution, along with the ability to write wiki pages. Their schemas and implementations are outside this file. Required model, runtime, CLI version, credentials and hardware are not specified.
mechanism
The decision tree first compares artifacts with matching names. Matching content, allowing for whitespace differences, leaves the existing artifact unchanged. An expression-only change is described as a silent replacement through sl_edit_source. A structural change associated with a previously imported raw file and artifact is replaced but recorded in conflicts_resolved with flagged_for_human set to true.
During reconciliation, similar definitions are ranked by incoming references from other sources, then by unit key and source name. Substantively different formulas instead receive descriptive suffixes, and the contested name is withheld from SL. A valid canonical pin overrides this ordinary contradiction handling; a missing pinned artifact that no current work unit can recreate triggers a human-review flag.
For each Stage 4 eviction-list entry, the instructions require deleting the relevant SL source or wiki page and recording an eviction decision with action set to removed.
setup
The documented loading points are a Stage 3 WorkUnit agent and a Stage 4 reconciliation agent, with memory_agent named as the caller. Integrating the skill therefore requires making its instructions available at those points and supplying the tools and contextual records it references.
The file contains no installation command, package requirements, sample host configuration or complete invocation. A runnable setup cannot be derived from this file alone. Before adapting it, establish how the host supplies priorProvenance, accepted patches, canonical pins, wiki scope and conflict-report fields.
example
As an illustrative case, suppose two work units in the same import propose churn_risk_score, but one formula uses engagement and the other uses billing. The contradiction rule would preserve both under names such as churn_risk_engagement_based and churn_risk_billing_based, leave the contested name unused in SL and flag the disagreement for human review.
A shared definitions page in the global wiki scope would explain each variant, cite its raw file and line range, and describe when it applies. If a prior user pin already selected one artifact as canonical, the pin rules would preserve that choice and rename competitors without flagging disagreement alone. This example explains the written rules; it is not a recorded run.
Assessment & evidence
limitations
Several classifications depend on judgment. The file does not define a similarity threshold for near-duplicates or a precise test for distinguishing expression-only changes from substantively different formulas. Its expression-only branch labels a change as a re-import before explicitly checking prior provenance, while later rules handle contradictions within one import; the intended precedence needs clarification.
The silence rules mention retaining an eviction, but the eviction procedure only specifies removal. They also require flagging an override constraint that conflicts with current incoming references without fully describing the resulting resolution.
Reference count is a selection heuristic, not proof that a formula is correct. The instructions permit silent replacement and deletion through host tools, but do not document rollback, atomicity or recovery after partial failure. No agents or tools were run, so compliance with the instructions and runtime reliability remain unassessed.
reasoning
The stated rationale treats a re-upload as evidence that the new source state is intended, while a single import provides no equivalent signal for choosing between incompatible definitions. This explains why re-imports can replace artifacts, whereas conflicting definitions within one import are preserved for a human decision.
The apparent tradeoff is fewer interruptions for routine imports in exchange for reliance on classification and provenance quality. Descriptive suffixes and source references help preserve meaning when formulas disagree. Canonical pins allow an explicit user choice to take precedence over the default conflict rules.
alternatives
The supplied sources identify no competing skills or products and provide no comparative results. As alternative designs, a team could require human approval for every collision or reject changed definitions until an explicit migration is approved. Those approaches would reduce silent replacements while adding manual work.
This skill is more relevant when selective automation and preservation of competing meanings are desired. It does not establish the capabilities of a packaged importer, a formula-equivalence checker or a transactional migration system.
evidence
The primary source is the complete skill text at fixed revision 49a4ae6f5b28c904da921afc0ee72da6db7ac202: [https://raw.githubusercontent.com/Kaelio/ktx/49a4ae6f5b28c904da921afc0ee72da6db7ac202/packages/cli/src/skills/ingest_triage/SKILL.md]. It supports descriptions of intended agent behavior and referenced integration requirements.
The accompanying rights source is the repository LICENSE at the same revision: [https://raw.githubusercontent.com/Kaelio/ktx/49a4ae6f5b28c904da921afc0ee72da6db7ac202/LICENSE]. Neither file supplies execution logs, implementation validation, benchmarks or evidence of successful deployments.
Access & freshness
costs
The accompanying Apache License 2.0 grants no-charge, royalty-free rights subject to its terms. This does not establish that running the surrounding system is free. Model usage, hosting, storage, integration effort and support prices are not specified, so operating costs are unknown. No runtime or token-consumption measurements are supplied.
rights
The repository-level LICENSE supplies Apache License 2.0 terms. These permit reproduction, modification and redistribution, subject to conditions that include providing the license, marking modified files and preserving applicable notices. If the distributed work includes a NOTICE file, its relevant attributions must also be retained as specified by the license.
The license includes a contributor patent grant with a patent-litigation termination condition. It does not generally grant trademark rights, and it provides the work without warranties. The supplied files establish these license terms but do not establish separate rights for other repository components or dependencies.
freshness
The supplied snapshot identifies revision 49a4ae6f5b28c904da921afc0ee72da6db7ac202 and a capture time of 2026-11-16T08:39:16.142Z. That timestamp records capture, not the commit's publication date. The skill provides no release version or maintenance date. Later changes and the current main branch's behavior are unknown.
actions
Before integrating the skill, confirm that the host exposes the referenced tools and provenance fields. Resolve the boundary between expression-only edits and substantive formula changes, and clarify whether retained evictions are supported.
An initial evaluation should use disposable artifacts covering unchanged duplicates, structural re-imports, conflicting formulas, reference-count ties, valid and missing canonical pins, and removals. Check the resulting artifacts, wiki provenance and human-review flags against the written rules. These are suggested evaluation steps; no such evaluation was performed.
