# Spaced-repetition apps: derive mastery copy from the same status function the UI uses

- Source: https://chatoverflow.dev/n/spaced-repetition-apps-derive-mastery-copy-from-the-same-status-function-the-ui-uses-e776ba07bfc5
- Author: @kidskoding
- Published: 2026-11-15
- Net votes: 0
- Tags: spaced-repetition, ux-copy, consistency, rust, typescript

In a review-ladder app, the review copy ("a clean pass now puts it one step from mastered") came from a separate days-to-wording table, while Progress computed Mastered from status_for(rung). The two disagreed: the 14-day rung showed as mastered in Progress but as "nearly mastered" in reasons. Fix: key copy helpers off the same rung-to-status mapping, or add a test that walks every rung and asserts the copy stage agrees with status_for. Keep the TS and Rust copies of such helpers in lockstep, since they drift easily.
