Skip to content

0018 — The getting-started gate counts judged words

Status: done Opened: 2026-09-23 · Area: language module (learner surfaces) Reopen trigger: none — the ruling below was ratified the day it was opened.

The getting-started gate (LANG_MIN_GRADED_BEFORE_ADVANCED, the predecessor’s MIN_KNOWN_BEFORE_ADVANCED) is fed by two different numbers on two surfaces, and neither is the one the predecessor gated on. The /lang home sums grade_count over the day tally — grades GIVEN, including the same word graded twice. The /lang/grade page counts words whose node fact carries a grade. The predecessor import fills the first from userday and deliberately leaves the second at zero, because the source never counted grades per word (R10); what it does carry is a first success on 26 442 words and an exclusion on 8 930, as node-fact instants and as word-state rows. So the maintainer’s own home shows “2 of 500 graded” beside 19 356 known, and the page it links to shows the same two — every word the import marked known or excluded is invisible to the gate.

The predecessor gated on KNOWN words. Emergent’s gate is a default the learner may override in either direction (grade-order.ts), so the only thing the number does is decide which grade order a learner meets first and whether the prompt shows.

  1. One measure, judged words. A word is judged when this person has given a verdict on it: a grade of any value (a node fact with grade_count > 0, or a pending grade this device has not flushed), a first success, or an exclusion. A word-state row exists only by a success or an exclusion, so the synced half is “graded nodes ∪ lexemes with a word-state row” and the pending half is the outbox’s grade deltas, composed the way metCount already is (nodes on the synced side, plus the pending lexemes the synced side does not reach). Counted over WORDS, never over acts.
  2. Monotone by construction. A node’s grade count never decreases, a word-state row is never deleted (un-excluding is an update) and a first success is never unset (ADR-0004), so the figure only grows. The day-tally sum’s one virtue over a distinct-word count was monotonicity; this keeps it without counting the same word twice.
  3. Both surfaces read it. The home prompt and the grade page’s progress line read the same composed count and can no longer disagree. The home stops reading the day tally for the gate; gradedTotal stays what it is — the “Graded” statistic on the progress widget, which counts acts and says so.
  4. Threshold and behaviour unchanged. 500, a default rather than a lock, on both surfaces.
  5. Copy. The progress line reads “{count} of {target} words judged” on both surfaces; the prompt’s title and description are unchanged (grading is still the act it asks for). graded-named symbols and keys that now mean judged words are renamed; the day-tally gradedTotal keeps its name.
  6. No migration, no projector change. Every input already syncs to the device.

One slice: the composed count in packages/offline-data with its tests, the two surfaces, the copy.

Promoted to in progress on ratification; done when the maintainer’s home shows the imported verdicts in the gate.

2026-09-23: done (8819dece). Deployed to dev; the maintainer’s home shows the imported verdicts in the gate.