pub enum TaskKind {
Feature,
Debug,
Refactor,
Docs,
Investigation,
}Expand description
The inferred kind of the current coding task. Classified once at intake from the task description string — deterministic keyword scan, no model call, zero allocation-heavy work.
Feature is the NEUTRAL default: it does not change weights or
prefer_roles at all, so every existing ..Default::default()
construction produces exactly the prior retrieval behaviour.
Precedence when multiple keyword sets match: Debug > Investigation > Refactor > Docs > Feature
Variants§
Feature
Neutral / catch-all (add, implement, build, create, support, …). Must NOT alter weights or prefer_roles — keeps existing tests green.
Debug
fix, bug, error, fail, crash, panic, regression, broken, debug, stack trace, exception — up freshness, prefer failure_pattern.
Refactor
refactor, rename, cleanup, restructure, simplify, extract, deduplicate, reorganize — up scope, prefer convention.
Docs
document, readme, changelog, comment, docstring, docs, tutorial, guide — near-neutral mild adjustments.
Investigation
investigate, analyze, understand, why, explore, find out, root cause, audit, trace — up relevance, prefer fact + preference.