Repository navigation
ADR 0058 Reviewer UX
Source of truth: this wiki page. The owner's decisions, quoted and dated, stay on Plan-Reviewer-UX; this page turns them into a record and adds nothing to them.
-
Status: Proposed (owner's brainstorm of 2026-11-20/21; the readings in "Open points" await the owner). The plan, Plan-Reviewer-UX, is built (W1 to W9, #1662 to #1670) and not yet released.
-
Date: 2026-11-21
-
Amends: ADR-0038. The agreement quorum becomes a facet-level two-review constant in code, and the GitHub variable or secret for the number is superseded. The file-level
reviewedtag rule (a file is tagged once every card entry lists a code) changes to the facet-level rule below. -
Amended (W9): 2026-11-21. The data shape of other reviewers' facet answers is a
facet_checkskey on the card entry, written by the review bot, left out ofcontent_sha256and read by the app into the flagged queue and the second-speaker views;checked_bykeeps its meaning and, on an entry that carries the key, is only a mirror of the full sign-offs (one source of truth:facet_checks). The file-levelreviewedtag follows the facet rule in the bot, the validator and the index tools, an entry with onlychecked_bycounting each code once as right on every facet it owns. The bot writes the key only once a released app reads it (WRITE_FACET_CHECKS, off). The shape is a proposal for the owner to confirm; see Deck-Format, "Facet checks".
Reviews reach the decks through ADR-0038: a reviewer marks "Looks right" or proposes a fix, the mail bot writes it onto the card, and REVIEW_AGREEMENTS_NEEDED rater codes settle a change. Rater codes are self-made, so nothing says a reviewer speaks the language, and a copied public code proves nothing. A card counts as checked on one tap, whatever its facets (word, reading, IPA, meaning, example, note, unit placement, offence rating, audio).
The owner's goal for this work (2026-11-20/21): ease of use, gated to actual speakers as much as possible, and comprehensive reviews that a second speaker can check easily. Further constraints from the owner: reviewers are scarce ("We are now happy at 2 because we may not have abundant reviewers"); no question type may mark a right answer wrong ("even a 1% chance is too bad"); English is assumed review ready for everyone, so no deck today needs a double check of its taught-from language; the review questions should be "similar to the existing shell".
-
Gating moves into placement: the reviewer check. After a normal placement reaches the top band, a quiet nudge appears once per course and never again after "No thanks". It leads to Settings > Reviewing > Take the check, the placement engine (Plan-Placement-V3) in a stricter mode: a tighter confidence target, no guessable formats, per-facet results. The outcome is Provisional status only. Anyone who reaches the top band qualifies. Top band means the credible range's lower bound is at B1 on Read and Write, plus Hear for the reading, IPA and audio facets; self-rated Say never counts. Retake after a 7-day cooldown with fresh items, no expiry. Only a coarse "passed facets" flag leaves the phone, in the first review mail, for triage. Thin courses and languages without placement fall back to signed reviewer keys. Eligible facets: Read and Write give word, meaning, example, notes; Hear gives reading, IPA, audio; Read plus grammar items gives unit placement and grammar notes. Launch gate: a persona replay and an adversarial retest of the stricter mode, and a release with a
min_appgate if data changes. -
Reviewer-check item rule. Only pick, match and yes/no items; no typed answers, no tile sentences. Keys come only from cards with at least two checks. Distractors are provably wrong (checked against
alt_nativeandnot_synonyms, near misses from the same unit or word class, never a synonym of the key). Residual risk is made harmless: no per-item feedback, an "this is also right" tap that suspends the item and removes it from the score, no single miss decides, failing only means "not yet eligible". A new item runs unscored in a pilot slot and is promoted after about 8 Verified responses with 90% or more agreeing with the key; a split (about 60/40) retires it as dialect-sensitive. Fix history (the old form against the agreed fix) becomes gold items. The first Verified reviewers of a language come from owner-minted signed keys. - Taught-from language. English is assumed review ready for everyone. Both languages must be review gated, as separate work, and later decks may need individual takes.
- Counts are hidden. The number of reviewers is a card-level number only, small, in card detail; there is no course-level tag. The quorum is never shown, not even hinted at. Reviewer screens say "needs another speaker's check", with no number.
- Pointer tags. One-tap, per-facet, combinable tags with an optional replacement: meaning wrong, reading wrong, IPA wrong, spelling wrong, unnatural/rare, wrong register, offensive, example wrong, note wrong, wrong unit, audio wrong. A tag without a fix puts the card in a flagged queue that any speaker can resolve.
- Facets and the shortcut. Facets are word, reading, IPA, meaning, example, note, unit placement, offence rating, audio. A card counts as reviewed only when every applicable facet has an answer. A one-tap "everything looks right" covers the plain facets only (word, meaning, example); reading, IPA and audio are confirmed separately.
- Blind pass and free text. Verdicts are blind: the second reviewer does not see the first verdict. Proposed fixes are open: original and proposal are shown, and the second speaker accepts, rejects or offers another. Rival fixes go to a third speaker as a pick-one list. A fix identical after normalisation (Unicode NFC, whitespace, stray joiners, per-script variants) is agreement with no human step. Per facet: reading and IPA fixes are picked from engine-generated candidates (free entry only as an override); spelling uses lexicon variant chips; for meaning, "both fine" adds the second meaning to the accepted alternatives; a note or example rewrite is accepted or rejected whole; "why" text is advisory and shown after the second reviewer's own verdict. A second speaker checks through a per-unit digest of only what changed or is contested, with receipts (card, facet, hash of the text seen, decision). The owner gets a coverage dashboard (facets with at least two independent checks).
-
Signed reviewer keys and tiers. The owner mints a signed key per Verified reviewer with a small script: key id, assigned courses or languages, tier and issue date, signed with the owner's private key (Ed25519 suggested), with a versioned public key shipped in the app and the mail bot. The reviewer pastes it in Settings > Reviewing > "I have a reviewer key"; the app verifies offline and unlocks only the assigned courses. Reviewers keep their self-made
FL-XXXX-XXXX-Ccodes (lib/core/review/rater_code.dart) and send nothing to the owner; no mapping file exists. The first review mail carrying the key binds the key id to that FL code; each mail carries the key as secret proof. The bot (tools/mail_to_issues.py) verifies the signature, the denylist and the binding, strips the key before anything is published, never echoes it, rate-limits per key, and holds a mail with a different FL code or an unexpected address for the owner. Whether or not a reviewer already reviews, they can become Verified this way; on binding, the code's earlier reviews are upgraded to Verified weight (owner, 2026-11-21: "3. Yes."). Without a key, FL codes stay Provisional. Tiers: Provisional (check pass, or an FL code with no key; counted only alongside a Verified reviewer), Verified (signed key for the course, or calibration cards; counts fully), Trusted (sustained agreement with Verified reviewers; breaks ties on contested cards). A Provisional review is held in the queue and applied only when a Verified reviewer agrees. -
Revocation. Only the owner revokes ("I revoke. And it does revoke past work."), by adding the key id to a denylist in the repo (ids only); the app also checks it. All work bound to that key id is removed: the code leaves
checked_by, cards below the quorum return to unchecked or flagged, and changes that applied only because of that reviewer are queued for a revert PR ondecks-live. - Review queue. A session is 20 cards, one unit's least-checked, in path order within the unit. The flagged queue is a separate tab, and a second mode checks only the flagged and contested queue. After 20 the reviewer may continue through a pool of all the course's cards, least-checked first, still grouped by unit, and stops by closing the review. Progress is saved as answers are given and is resumable.
-
Where review happens. The facet questions and tags are built on the existing review screens and the daily-questions flow in
lib/features/review/(see Open points). From the deck view (lib/features/decks/) a reviewer can also review a chosen unit or one card on a screen showing every card detail, with the same facet answers, tags and receipts as the queue. -
Quorum. Each facet (card detail) needs 2 reviews by two distinct reviewers, and a card is reviewed only when all its applicable facets have 2. The number lives in one constant: a Dart constant in
lib/core/review/(for examplekReviewQuorum = 2) and a matching constant in the tools (tools/mail_to_issues.pyand the deck tools), with a test keeping them equal. This supersedes ADR-0038's GitHub variable or secret: changing the number is a code change. The file-levelreviewedtag of ADR-0038 changes to this facet-level two-check rule, in the bot and in the validator and index tools that read the tag. The combination with the tiers is a reading (see Open points). - Script writing for a fix (A4; owner, 2026-11-21: "Script writing: b, fallback on a"). The fix field is prefilled with the current text, so most fixes are 1 to 2 character edits. Candidate chips (engine candidates, lexicon variants) sit with it, with the card's reading beside the field, paste allowed and a one-line hint to enable the script's keyboard in system settings. If the device or script gives no help, it falls back to a plain phone-keyboard field.
- Submit. Mail stays the way reviews are sent; an in-app submit is not planned.
- Reviewing is gated by something checkable: a signed key verified offline in the app and again by the bot, so a copied public FL code alone proves nothing. A reviewer who is already reviewing, or a new one, can become Verified with one paste.
- The reviewer check is an unverifiable self-test run on the phone, so it can only grant Provisional status, and a strong second-language speaker passes the same as a native one.
- The reviewer-check item set is narrower than placement's, and its pilot slots need Verified reviewers who do not exist until the owner issues keys.
- Every deck taught from a language other than English will need its own review gate, which is separate work not planned here.
- Learners lose the at-a-glance signal of how well a course is checked, and reviewers cannot see how close a card is to done, because counts and the file-level notice are hidden.
- Pointer tags without fixes can pile up in the flagged queue faster than speakers clear it.
- More taps per card than today's single "Looks right", and per-facet taps add work.
- The normalisation rules per script can show a false "different".
- Jumping between units in the continue pool loses context.
- The owner's private signing key must stay secret. It is kept offline and rotated through versioned public keys; a leaked key lets anyone mint keys.
- Minting is manual (a one-command script). A shared key cannot be used with a second FL code (the mail is held).
- The mail carries a secret, so the bot must never log or echo it; mail archives keep it, which revocation covers.
- A new app release is needed to ship the public key and the key entry screen.
- Upgrading earlier reviews to Verified weight trusts the earlier work as much as the later.
- Revocation causes churn on
decks-live, and file-level reviewed tags may flip back. - Changing the quorum is now a code change, not a repository setting.
- A mail's "passed facets" flag cannot be verified by the bot, so it is used for triage only.
- Placement of the gate (P1/P2). Two other options for where gating sits were offered and not chosen; P3, the reviewer check inside placement after the top band, was chosen on the owner's "The B group should mostly go into placements. Right, when the user seems to be aceing the tests." The plan page does not record P1 and P2 in more detail.
- Typed-answer and tile items in the reviewer check: rejected, since a right answer could be marked wrong. A strict-zero set (only wrong-by-construction items) was offered as a narrower, easier test and not chosen.
- A public mapping file of FL codes to reviewers, or an FL-codes-only scheme with the owner mapping them: rejected in favour of signed keys, because asking Verified reviewers to change or map their codes is weird (owner, 2026-11-21: "it is weird to ask them to change their codes or map those codes in. Rather, we should do the signed keys..."). FL-only also lets a copied public code be spoofed, and a mapping file raises the question of where it lives.
- In-app submit instead of mail: not planned; mail stays.
- A custom in-app transliteration keyboard (A4 level c): a big per-script build, not chosen. Level (a), the phone keyboard only, is kept as the fallback of level (b).
- The quorum as a GitHub secret or variable (ADR-0038): superseded by one code constant with a test.
Three readings are not the owner's words and wait for the owner:
-
The existing shell (decision 11): "similar to the existing shell" is read as the current review screens and the daily-questions flow (
review_page.dart,daily_questions_page.dart,review_sheets.dart), not a new screen family. - Quorum of 2 needs at least one Verified among the two (decision 12 with decision 8): the combination of "reviewed twice" with the tier rule.
- The file-level reviewed notice is hidden (decision 4): read from the owner's "Ok".
Also: the persona replay and adversarial retest of the stricter placement mode must pass before the reviewer check ships.
For later issues, each with its dependencies marked "blocked by" and the blocked label. No issues are created by this ADR, and no code starts before the owner approves the mockups (mockups README).
| # | Package | Blocked by |
|---|---|---|
| W1 | Schema, receipts and facet checks in lib/core/review
|
this ADR accepted |
| W2 | The single quorum constant (Dart and tools) plus the equality test | W1 |
| W3 | Queue and deck-view review screens (session of 20, continue pool, flagged tab, flagged-only mode) | W1, approved mockups |
| W4 | Pointer tags and the flagged queue | W1 |
| W5 | Blind-pass comparison and per-script normalisation | W1 |
| W6 | Reviewer-check mode in placement | persona replay and adversarial retest of the stricter mode; W1 |
| W7 | Signed reviewer keys: mint script, offline verify in the app, bot verification, binding, denylist | W1 |
| W8 | Revocation job (remove from checked_by, flag cards under quorum, queue revert PRs on decks-live) |
W7 |
| W9 | Index and tag changes (facet-level reviewed rule in the bot, validator and index tools) | W1, W2 |
| W10 | Release and min_app notes: the Release checklist
|
W6, W7, W9 |
W5 note (blind-pass comparison and per-script normalisation, #1656). Built: lib/core/review/script_folds.dart and COMPARISON_FOLDS in tools/review_facets.py (kept equal by test/support/comparison_fold_cases.json), a registry of comparison folds applied only to decide whether two typed fixes are the same, never to a stored or shown text. A fold may merge only spellings native writers treat as one letter written with another code point, or an invisible difference; anything else stays out and is listed as a TODO in the code comment with its reason. Included: tatweel dropped (ur, fa, ps, sd, ks, hi); Arabic yeh and alef maksura read as Farsi yeh (fa, ur, hi); Arabic kaf read as the Persian kaf (fa, ur, ps, hi); Arabic-Indic digits read as the extended ones (ur, fa, ps, sd, ks, hi). Refused: heh forms (Urdu aspirate U+06BE is a different letter), yeh for Pashto, Sindhi and Kashmiri, kaf for Sindhi and Kashmiri, vowel marks, Western against Arabic-Indic digits, every Indic script beyond NFC (the zero-width joiner and non-joiner change the spelling), Malayalam chillu sequences, Japanese width forms, Hangul beyond NFC. Latin case folds only when a caller says the facet is case-insensitive (no card data says so yet, so it is off). lib/core/review/facet_compare.dart (compareFacet, compareAnswers, distinctFixesOf, languageOfFacet) and the Python equal reuse facetStatus and add the distinct fixes, in the order proposed, and each facet's text language (word and example in the language learned, meaning and note in the learner's, the rest none); every place that decides "same fix" compares through it with the facet's language: in the app the unit digest, the flagged queue, the second speaker's rival fixes and the receipt resolveFlagged gives (FlaggedFacet.language, so receipt and status agree); in the tools the bot's acceptance of a rival's proposal (proposals.accept, review_bot._facet_fix), the contested-facet check that holds a proposal back, entry_settled / entry_open and the validator's reviewed-deck rule (the language of an entry's facet comes from its decks/<lang>/ path and its deck id's native, proposals.fix_language), and the coverage table. Exact-text agreement behaves as before; a fold only adds agreement. test/support/facet_status_cases.json carries status-level cases with a language, read by both sides, and comparison_fold_cases.json pins each fold's code points. tools/review_coverage.py and the manual workflow review-coverage.yml (main only, read-only token) write the owner's table of shares of facets per course (settled, agreed fix, being checked, flagged, contested) to the job summary, naming and counting no reviewer.
W7 note (signed reviewer keys, #1658). Built: pure-Dart and pure-Python Ed25519 verification (RFC 8032, no new dependency; shared vectors in test/fixtures/reviewer_key_vectors.json), the key format FLK1.<payload>.<signature>, tools/reviewer_keys.py (keygen, mint, verify, run by the owner on their own machine; the private key is never in the repo, a workflow or an agent's hands), the Settings > Reviewing key row, paste sheet and accepted page, the reviewer_key proof in the review file, and the bot's gate (tools/reviewer_binding.py): signature, denylist, binding of the key id to the first mail's FL code, held-for-owner, strip-before-publish, a per-key daily limit. The bindings are private records in the Gmail label fluenough/keys (the same mechanism as the sender records in fluenough/raters), never in a public file. The public key shipped is a placeholder, so keys stay off (no row in the app, keys ignored by the bot) until the owner commits a real one in assets/reviewer/public_keys.json. QUORUM_NEEDS_VERIFIED and kQuorumNeedsVerified are wired (the bot gives each code its private tier) and stay off: turning them on is the owner's call once Verified reviewers exist. The retroactive removal on revocation is W8.
W8 note (revocation job, #1659). Built: tools/revoke_reviewers.py and the workflow reviewer-revocation.yml (on a change to the denylist on main, every six hours, by hand). It resolves the rater codes bound to revoked key ids from the private store (fluenough/keys, through the interface W7 built) and works on codes only: no key id, no code-to-key pairing and no reviewer is written to a branch name, PR, commit or log (counts only). Per run, from the current decks-live: (1) one removal PR takes each code out of every checked_by, every facet's by and flags, the accepted of unapplied proposals, and withdraws the unapplied proposals the code made (a proposal's id is made from its proposer, so the proposer cannot be blanked); cards and facets below the quorum are no longer settled by the same rule (review_quorum, the one REVIEW_QUORUM), and a file tagged reviewed whose facets are no longer all at the quorum is set back to unreviewed in the same PR (the new proposals.mark_unreviewed, the reverse of mark_reviewed, only for files the run changed); (2) one revert PR for each revoked code, a commit per change, for applied changes whose agreement (proposer and acceptors) would no longer reach the quorum without that code. Neither kind is merged by the bot; a rerun rebuilds an open PR and pushes only when its tree would differ; a revert PR the owner closes is a decision and is not proposed again.
The record the revert PR reads, and what it lacks. Applying a proposal removes it from the deck, with its accepted list, so the repository holds no record of who agreed. The only record is the merged agreement PR's body ("Proposed by", "Accepted by"). Missing, and so not revertible: (a) in an agreement PR made before W8, who accepted a reading or IPA applied with a word (the body names only its proposer), counted in the log as "no record of who accepted"; (b) durability: the PR body can be edited, or the PR deleted, and nothing in the repo backs it. The minimal record added from now on is a hidden line at the end of the agreement PR's body (review_bot.applied_trailer: proposal id, card, field, proposer, acceptors, and the same for each agreed reading or IPA applied with a word; rater codes and ids only, no text, no address). A durable in-repo ledger (a file kept beside the decks, as review-answers/ is) was not built: it needs a new file tree on decks-live that Deck CI, the index tool and the released app's reading of the decks have to ignore, which is the owner's call. Also not covered: the daily-question answers (review-answers/, #519), which count answers by code and settle points by agreement; they are a separate store and are not part of W8.
Until the removal PR merges (review follow-up). The review bot ignores revoked codes itself: Bot.agreed leaves them out of every agreement test, review_quorum.set_revoked leaves them out of the quorum (so a reviewed tag is not earned through them), review and question mails of a revoked code make no PR (an open one is closed), a flag one of them took part in is not merged, and with the denylist non-empty and the bindings unreadable the bot applies and tags nothing. A revert restores the proposal that won and its rivals, so a second commit takes the revoked codes out of what it restored (the winner returns as a proposal without that code). A keyless mail from a code bound to a revoked key is now held (KeyGate), replacing W7's "stays Provisional". The job fails loudly (non-zero exit, counts only) when a revoked code remains in the decks and no valid PR takes it out. Not covered: other files that list reviewers (creators, recommendations, topics), review-answers/ and verified points.
W6 note (reviewer-check mode in placement, #1657). Built, and shipped OFF behind kReviewerCheckEnabled = false (lib/core/placement/reviewer_check_rules.dart): no row, offer or screen exists until the owner changes that one constant, after the launch gate below holds on the decks that ship. Files: reviewer_check_rules.dart (switch, constants, groups, facet eligibility), reviewer_check_bank.dart (the item rule, gold items, the pilot slot), reviewer_check_run.dart (the run), reviewer_check_status.dart (the per-course record, cooldown, top band); the screens are lib/features/review/reviewer_check_page.dart (frames 5d and 5e) and a Take the check row in Settings > Reviewing; the replay is test/reviewer_check_replay_test.dart over test/support/reviewer_check_harness.dart, which reuses the V3 harness's leak profile.
The stricter mode. It is not placement's picker with other constants: it is its own run over the placement registry's items (RegItem), because the owner's item rule and a guesser bound of 1 in 100 do not fit a posterior that is told when to stop. Top band: the last quarter of the decks up to the B1 milestone. A fixed number of scored items per group (Read 28, Write 28, Hear 20, grammar 10), a group is passed when the exact Poisson-binomial tail of "a guesser did as well" is at most 0.01 (0.02 for grammar), against a guess rate above the best solver the admission audit measured (0.35 for a four-option pick, 0.25 for six), and at least 85% of the scored items are right (the floor and the sizes were tightened after review so that someone who knows 60% of the top band passes about 1 time in 2000). Read and Write give word, meaning, example and notes; Hear on top of them gives reading, IPA and audio; grammar with Read gives unit placement and grammar notes; a self-rated Say is never asked. Write is evidence from "meaning, pick the written word" (F3): no typed answer is ever asked, so the spelling is picked, not produced.
The item rule. Only picks (F2, F27, F3, F13, F26, F28). A key card must be checked twice on the facets the item depends on (facetReachedQuorum, so two distinct codes right and no flag); every distractor must be a word of the course (a text that is no card cannot be proved wrong), share no meaning or spelling with the key (against alt_native, senses and the key's other cards, compared after NFC, case and white space), share its word class (an unknown class is refused), and share no reading or IPA with it even in another spelling or with other tone marks (homophones). No yes/no item is asked (a pseudoword cannot be proved a non-word in every dialect) and no matching (it has no screen yet); both are allowed by the owner's rule and are left for a later change. Residual risk is made harmless: the run gives no feedback and shows no score; "This is also right" suspends the item, takes it out of the score and asks a spare in its place, one a group; each tap beyond it counts as a miss against the group, so the tap cannot be used to choose the scored items; no single miss decides; failing only means "not yet eligible", with a 7-day cooldown and fresh cards on a retake.
Pilot slot and gold items. Items that pass every rule but whose key card is not checked twice are asked unscored, two a run, behind ItemPromotion (default NoItemPromoted) and PilotSink (default NoPilotSink: nothing leaves the phone). judgePilot holds the owner's rule (about 8 Verified responses with 90% or more agreeing promotes, a 60/40 split retires as dialect-sensitive) and TallyPromotion applies it to tallies the Verified population will one day fill; none exists, so nothing is promoted and the scored pool is the gold items and the twice-checked cards. Gold items come from FixHistoryEntry (old form against the agreed fix); the app passes none yet, because applying a proposal removes it from the deck and no record of the old form is kept (see W8's note on the missing ledger).
What stays on the phone. The record per course is the facets passed, the time of the last attempt (the cooldown and the cards asked begin when a run starts, so quitting is an attempt), whether the quiet offer was made and the card ids asked (reviewer_checks in the settings): never a score. The first review mail of a course carries passed_facets in each review file, the facet names only (and grammar_notes), for triage; the bot is not changed and ignores it.
Launch gate. test/reviewer_check_replay_test.dart is the persona replay and the adversarial retest, seeded, over a fixture course of made-up words: a true speaker at the top band at least 95%; a guesser, an always-first-option answerer, learners at A1 and A2, and the V3 adversary (the first 100 words plus basic suffix and form rules and test-wise tricks, at its measured leak rates and 0.05 and 0.10 above them) at most 1%; tapping "also right" on everything, or on every unknown item, does not pass. To enable: run those tests on the decks that will ship (a check needs about 95 distinct cards of the top band checked twice per course, so a course with too few shows "Use a reviewer key"), then set kReviewerCheckEnabled to true in one commit with a release, and add the changelog line then.
See also: Plan-Reviewer-UX · ADR-0038 · ADR-Index · Home
1. Learner guides
- Learner Guide
- Getting Started
- Today and Daily Lessons
- Drills and Skills
- Courses and Paths
- Proficiency Levels
- Scripts and Readings
- Readings ISO 15919
- Speaking and Listening
- Progress and Stats
- Profiles and Settings
- Backup and Restore
- Reporting a Problem
2. Deck building guides
- Deck Building Guide
- Deck Format
- Private Language Package
- Romanising Indic Languages
- Deck Licences and Quoted Books
- Deck Tools
3. Review guides
4. Translation guide
5. Building on iOS
6. Roadmap
7. Sources and attributions
8. Contribution and agentic coding