Commit graph

6 commits

Author SHA1 Message Date
Andrew Pimenov
970fd551e5 tighten retry scope, RU-only lyrics text cache, fix theme pattern and dedupe log
with_retries caught bare Exception with a type whitelist, masking real bugs
as network errors under retry/backoff - narrowed back to NetworkError.

fetch_api_languages was writing full lyrics text for every language into
lyrics_text.json via its track_supplement side channel, breaking the
documented RU-only invariant and letting analyze feed foreign-language
lyrics through the Russian-only prompt - now gated on normalize_api_language.

dedupe_playlists logged the found duplicate count as "removed" even when
a mid-loop network/API error cut deletion short.

THEME_PATTERN's relaxed regex allowed 2-char themes, contradicting its own
test; current_themes was hoisted out of the analyze loop so later prompts
never saw themes found earlier in the same run. Both reverted to intended
behavior, docs updated to match.
2026-08-19 04:14:29 +03:00
Андрей Пименов
f77fafd240 Fix adversarial code review defects 2026-08-19 03:53:25 +03:00
Andrew Pimenov
93127e37d8 catch schema-incomplete ollama responses instead of crashing the batch 2026-08-16 20:23:19 +03:00
Andrew Pimenov
74fcb6736d resumable ollama analysis run with per-track writes 2026-08-16 19:37:57 +03:00
Andrew Pimenov
2b715d2a75 ollama call with schema-constrained output 2026-08-16 19:35:39 +03:00
Andrew Pimenov
010a4550ef lyrics analysis schema and cache helpers 2026-08-16 19:33:35 +03:00