Expand description
Task-class abstraction for semantic-equivalent task grouping.
A TaskClass represents a category of semantically equivalent tasks that
can reuse the same learned Gene even when the exact signal strings differ.
§Example classes
| ID | Name | Signal keywords |
|---|---|---|
missing-import | Missing import / undefined symbol | E0425, E0433, unresolved, undefined, import, use |
type-mismatch | Type mismatch | E0308, mismatched, expected, found, type |
borrow-conflict | Borrow checker conflict | E0502, E0505, borrow, lifetime, moved |
§How matching works
- Each signal string is tokenised into lowercase words.
- A signal matches a
TaskClassif the intersection of its word-set with the class’ssignal_keywordsis non-empty. - The
TaskClassMatcher::classifymethod returns the class whose keywords produce the highest overlap score with the combined signal list.
Cross-class false positives are prevented because each class uses disjoint keyword sets; overlap scoring breaks ties by choosing the highest count, so a signal that partially matches two classes still maps to the one with more matching keywords.
Structs§
- Task
Class - A named category of semantically equivalent tasks.
- Task
Class Definition - Extended task-class definition that adds a natural-language
descriptionfield used byTaskClassInferencerfor semantic matching and TOML persistence. - Task
Class Inferencer - Infers the task class for a signal description using keyword recall scoring.
- Task
Class Matcher - Classifies a list of signal strings to the best-matching
TaskClass.
Functions§
- builtin_
task_ class_ definitions - Return the canonical built-in task class definitions including descriptions.
- builtin_
task_ classes - Return the canonical built-in set of task classes.
- load_
task_ classes - Load task class definitions.
- signals_
match_ class - Check whether
signalsmatch the given task-class ID inregistry.