0116. Hide the trajectory's rating verdict until a rule clears EXP-0015
Source:
docs/decisions/0116-hide-the-trajectory-rating-verdict.md. Generated at build time; edit the source file.
Date: 2026-11-26. Status: accepted (lane hidetraj, branch feat/hide-trajectory-verdict, issue #136). Builds on ADRs 0089, 0104, 0105, 0109, 0112 (the precedent: one versioned switch, still computed, cut at the edges) and 0115. Ships as algo-5.0.0.
Context
Section titled “Context”EXP-0015 sent 700 simulated players whose strength never changed, rated by Glicko-2 with lila’s constants, through the production trajectory (cli lab trajectory, lab/experiments/EXP-0015/decision.md). It told 44%, 62% and 78% of them that their rating was falling at 60, 120 and 250 rated games (Bonferroni intervals [0.399, 0.488], [0.577, 0.664] and [0.745, 0.819]) against a bound of 0.15, and 44% and 30% that it was rising at 60 and 120 games. A rating carries over from game to game (lag-1 correlation 0.97), so the bootstrap of 30 consecutive ratings gives an 80% interval of the difference about 4 points each side where an honest one is 26 to 47, and at 120 and 250 games the “then” window sits on a selected peak. The accuracy and blunders rows stayed within the bound. Its decision: hide the rating’s verdict until EXP-0030 clears a rule.
Until #136 the verdict reached the player and the coach in five places:
- the Progress headline and the Overview’s “Where you are” card (
apps/web/src/app/(app)/app/_trajectory/view.ts): “up from”, “down from”, “about where it was … no clear change”, and “… since the games around it”; - the then | now table’s rating row: “Worse” or “Better”, the difference’s 80% range and each window’s range;
- the CoachingInput’s
trajectory.kindandthenVsNow.rating(its verdict and every interval); - the report prompt (
report/report.v4.md: “Withkindflat, say the rating has not clearly moved”; “each measure’sverdictdecides its words”) and the chat prompt (chat/system.v6.md); - every CoachingInput stored before the change, which the report job, the batch planner and the chat read back.
The weekly review’s input (weekly-input-v1) has no trajectory, so no weekly summary states it.
Decision
Section titled “Decision”- One switch,
coaching_input::trajectory::RATING_VERDICT_SHOWN,false.RATING_VERDICT_SOURCEis"EXP-0015". It lives incoaching-input, which the profile and the coach both depend on, like ADR 0112’s allowlist.backend/crates/coaching-input/tests/trajectory.rsreads EXP-0015’sresults.jsonand fails unless the switch is the opposite ofprimary.decision == "hide the verdict until fixed". - It is an algorithm component. The manifest names it (
profile.trajectory_rating_verdict,{source, shown}), soscripts/algorithm/check.mjsrequires a major bump whenever it changes. Turning it on after EXP-0030 istruein one line, the test’s source moving to EXP-0030’s results, and a new major version. - Computed, never exposed.
profile::coaching::trajectory::computeandcontractare unchanged and still givekind, the rating’s verdict and its intervals;cli lab trajectoryreturns them, so EXP-0015’s arena and EXP-0030 keep measuring them, and the web’scomputeTrajectorystays in parity with Rust (backend/fixtures/trajectory/cases.json). Everything a player or the coach reads is cut bycoaching_input::trajectory::player_visible:kindis null; the rating row’s verdict is the newChangeVerdict::Withheld("withheld"), and itsdiffLow,diffHighand each window’slowandhighare null. Its means, its n anddiffstay, as dopeak,current,changeandmonths. A row below the minimum keepsnot_enough_games.- The builder applies it to the input it writes.
ai::input::parse::parse_for_coachapplies it to every stored input the report job, the batch planner and the chat read, so an input stored beforealgo-5.0.0reaches the coach cut as well. - The validator accepts a null
kindon a sufficient trajectory (a stored one still carries it), acceptswithheldonly on the rating row, and with it requiresdiffand refusesdiffLowanddiffHigh. The committed schema is regenerated; the coaching input stayscoaching-input-v3, because a stored v3 input still parses, and the change is versioned by the algorithm. - The report prompt is
report/report.v5.mdand the chat’schat/system.v7.md: the peak, the current rating and the change are numbers, the rating’s verdict iswithheld, and the coach never says the rating is rising, falling, recovering, declining, better or worse. v4 and v6 stay for stored hashes. - The web reads the switch from
algorithm/manifest.json(RATING_VERDICT_SHOWNinview.ts). The headline states facts in one form whatever the rule computed: “Your rapid rating peaked at 1,080 in February 2026 and is 816 now (−264).”, or, with the first games as “then”, “Your blitz rating is 1,120 now; it averaged 858 over your first 30 rated games (+262).” with the peak added when it is higher than now. The table’s rating row shows each window’s average and n, and “Not called” with the difference (“Difference −229 points”), in plain weight; its “What is this?” says why, with EXP-0015’s numbers.
- Nothing else is hidden. Accuracy, blunders per game, score and the top weaknesses keep their verdicts in the table, the “Since then” sentence and the coach’s input. The rating chart, its peak mark and the shaded windows stay.
Options considered
Section titled “Options considered”- Stop computing the verdict. Rejected: EXP-0015’s arena runs per pull request on
kind, and EXP-0030 needs the champion’s verdict to compare with. - A null verdict on the rating row instead of
withheld. Rejected: the prompts tell the coach that eachverdictdecides its words, and a null reads as missing data;withheldnames what happened, and the validator can confine it to the rating row. - Keep the rating’s ranges. Rejected: the windows’ and the difference’s ranges are the same bootstrap that is six to thirteen times too narrow, and the coach is taught that separated ranges mean a difference (“When the ranges overlap, say there is no clear difference yet”).
- A new coaching-input version (
coaching-input-v4). Rejected: no field is added or removed, a stored v3 input must still parse for the chat, and the algorithm’s major version already names the change. - Hide it only in the web. Rejected: the coach reads the CoachingInput and stored inputs, as ADR 0112 found for the motifs.
Consequences
Section titled “Consequences”- The release arena against
algo-4.0.1runs every live experiment; the lab path is unchanged, so EXP-0015 measuresalgo-5.0.0exactly asalgo-4.0.1. The result is inalgorithm/CHANGELOG.mdandlab/leaderboard.json. - The replay goldens change only in their header: none of the replay’s fixture accounts has 20 rated games in a time class, so every replayed trajectory is insufficient and carries no verdict. The profile’s DB test (
profile/tests/coaching_input.rs) checks the cut on a built input. - A player sees the change on the next page load; the coach on the next report or chat turn, stored inputs included. A report or chat answer written before the upgrade keeps its text, which may say the rating was falling: its words are the coach’s, cited from tokens, and nothing re-reads them to cut a sentence. The next report replaces it. Unlike ADR 0112, whose hidden rows had their own keys to skip, the rating’s verdict has no stored row of its own to filter.
- The report job and the chat hash the cut input, so every stored input’s
input_hashmoves once after the upgrade, and a chat thread’s next turn sees a new input. - The validator keeps the cut whole: a withheld rating has no
kindand no window ranges, and a sufficient trajectory withoutkindhas a withheld rating (or one below the minimum). An input stored before the upgrade, withkindand a called rating, still validates. - The “peaked at … (−N)” headline stays as a fact. EXP-0015 notes that it compares a maximum with one draw, so it is negative for a stable player; EXP-0030 reconsiders it with the rule.