feat(translation): 8h sweep + drain button + detection probe (#1376) #207
Reference in New Issue
Block a user
Delete Branch "dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Starts task #1376 (translation throughput + misdetection groundwork).
Throughput
translate_postsbeat cadence: daily → every 8h (steady-state for newly-imported posts).drainflag so a bulk drain resumes cleanly after an Interpreter restart.Misdetection groundwork
detected_confidencefrom the Interpreter client (was present in thedetectedLanguagepayload but discarded).POST /settings/translation/probe+ TranslationCard UI): paste text → detected language + confidence + engine + result, without saving. Lets the operator see why a short/abbreviation-heavy English title (e.g. "WIP") gets mis-detected, so the guard (min-length + confidence floor) can be tuned from real numbers. The guard itself follows once the cases are probed.Ops note (rule #132): CSS-free but changes worker/scheduler behavior — a plain redeploy of
:latestpicks it up. The 8h beat key was renamed (translate-posts-daily→translate-posts-8h); the scheduler runscelery worker --beatwith no volume for the beat shelve, so it reseeds from config on restart — no stale entry.Tests: drain-chases-tail + beat-single-chunk (integration), confidence surfacing (unit), run-asserts-drain + 3 probe endpoint tests (unit). CI run 2072 green (all four lanes).
🤖 Generated with Claude Code
https://claude.ai/code/session_01CgZP9v2otxVJymiYsnVuMy