Skip to content

Drop what nobody reads of user_preference - #905

Merged
mircealungu merged 1 commit into
masterfrom
wt/pref-removals
Oct 25, 2026
Merged

mircealungu merged 1 commit into
masterfrom
wt/pref-removals

Conversation

@mircealungu

Copy link
Copy Markdown
Member

First step of roadmap 0b (user_preference → study_choice / unfit_reason). Removals only, no schema change.

  • UserWord.as_dictionary stops sending user_preference. The web never read it. Bookmarks don't carry the field, so prioritizeBookmarksToStudy always returned early (web#1356 removes it), and Word.js reads it only in a commented-out block. Installed app binaries run the same code, so they aren't affected.
  • /is_fit_for_study and /not_fit_for_study are removed. Their only caller was that function, after its early return. Both were broken anyway: they set fit_for_study on a Bookmark, which isn't a column there, and not_fit_for_study passed a bookmark to clear_user_word_schedule.
  • Looking a word up again no longer wears off "declared known" (−6 → −4 → −2 → 0, in Bookmark.find_or_create). Whether a word is still known is for the word-knowledge model to decide. Before user_preference read as text: two missed conversions; recompute fit after a validator fix #903 this code raised on the TEXT value, which is why prod has no −4 or −2 rows. is_declared_known goes too.

Merge after web#1356.

Tests: the full core and API suites pass (1280 passed). One test of the wear-off is removed along with the code.

🤖 Generated with Claude Code

- UserWord.as_dictionary no longer sends user_preference: the web never
  read it (bookmarks carry no user_preference, so prioritizeBookmarksToStudy
  always returned early; web#1356 removes it).
- The is_fit_for_study / not_fit_for_study endpoints go: their only caller
  was that function, past its early return, and both were broken (they set
  a non-column on Bookmark; not_fit_for_study passed a bookmark as a user
  word).
- Looking a word up again no longer erodes "declared known" (-6 -> -4 ...):
  whether a word is known is the word-knowledge model's call. Before #903
  it raised on the TEXT value, which is why prod has no -4 or -2 rows.

First of the user_preference -> study_choice / unfit_reason PRs
(docs/future-work/llm-tasks-roadmap.md, 0b).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

ArchLens - No architecturally relevant changes to the existing views

@mircealungu
mircealungu merged commit d9489e9 into master Oct 25, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant