Refactor meme quality and storage flows#293
Conversation
118985d to
38fae70
Compare
|
STAFF ENGINEER REVIEW: CHANGES REQUESTED — duplicate resolution currently leaves stale Redis queue payloads sendable and does not recompute derived recommendation quality scores after moving reactions. Two correctness blockers in the new duplicate-resolution path:
Please fix by either purging/revalidating queued duplicate payloads and recomputing the full derived stats for the canonical original, or by routing duplicate resolution through existing queue/status and stats-refresh mechanisms that already maintain those invariants. Verification run:
|
|
Fixed in What changed:
Local verification after rebase:
|
|
STAFF ENGINEER REVIEW: CHANGES REQUESTED — Latest head Blocking finding:
Review notes:
Auto-merge is disabled/left unqueued. Please fix the current CI failure and clarify the share-max cold-source assertion, then push again for a fresh review. |
|
Updated in I changed the picker, not just the assertion: Local verification:
|
|
Follow-up in The strict invited candidate assertion remains in place, and the SQL ranking tie-break fix from |
Summary
src/storage/deduplicationpackage and make duplicate resolution transactional.Local checks
ruff check .python -m compileall -q src scripts testspytest tests/tgbot/test_upload_moderation.py tests/flows/storage/test_final_meme_pipeline.py tests/storage/test_describe_memes_models.py tests/test_database_transient_errors.py tests/recommendations/test_pipeline.py tests/scripts/test_eval_crossposting_ml.py tests/scripts/test_agent_doctor.py(36 passed)Local environment limitation
app_dbDNS +alembicmissing), not assertion failures.