Documentation menu
Learning, teams and cost
How routing learns from outcomes, team sharing and ktb report.
On this page
How routing learns
Every verified attempt is stored as an outcome: task kind, tier, pass, first try, tokens, cost, time and model. When planning, the router reads the last 20 outcomes for each task kind and tier, so it follows model changes instead of averaging over all time.
- Moving down: a kind that passes first try at a cheaper tier 4 times in 5 (with 3 or more samples) moves to that tier.
- Moving up: a kind that fails more often than it passes on its tier moves up one tier.
- Probing: about one task in ten probes a tier lower, to check whether that tier is now enough.
- Floors: risk tags keep a floor of balanced, whatever the history says.
Two kinds of re-run add no outcome: re-verifying a done task, and committing follow-up fixes to it. Neither skews these numbers.
Teams
Teams share what each clone learned through git, with no server. ktb share writes .ktesio/learned/<member>.toml. So does every task commit, when ktesio.toml sets [team] share = true. The file holds counts per task kind and tier, with no task text and no names, and the member id is random. plan reads every other member's file, so a teammate's runs teach your router too.
Cost per merged change
ktb report shows cost per merged change, release over release:
- What counts as a change: a planned task whose commit is on HEAD.
- Its cost: every attempt it took, including the failed ones.
- Releases: git tags, in creation order. Commits after the last tag are listed as "unreleased".
- Unmerged work: work that never reached HEAD is listed separately.
- Trend:
falling,flatorrising, comparing the last two releases.
The report counts the task runs. The planning session around them is reported by the host.