You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Found in review on the merge train (PR #20713), on the conversation-file quota:
env() applies the registered type but never the registered range, for every variable. A negative AUTOBOT_CONVERSATION_FILE_USER_QUOTA_BYTES would refuse every upload.
The pre-read quota check refuses a re-upload of identical bytes that add_file would deduplicate without storing anything.
conversation_files_upload_limits_20217_test.py:75 compares the runtime value to the default, so it fails when the variable is set.
Acceptance criteria
env() enforces each registered range, falling back with a warning. Fixed once for all variables, with a test.
A same-session re-upload of identical bytes isn't refused by the pre-read check. Tested.
A same-session re-upload of identical bytes isn't refused by the pre-read check. Tested.
autobot-backend/api/conversation_file_upload.py:44-62 (would_deduplicate, autobot-backend/conversation_file_route_api.py:96); test autobot-backend/api/conversation_files_upload_limits_20217_test.py:79
Activity
fix(chat): hash uploads once off the event loop; race test (#20722)
fix(config): env() enforces registered ranges (#20722)
mrveiss commentedon Nov 11, 2026
All acceptance criteria delivered by #21273, landed via #21326 (merge commit 6cd72da).
env()enforces each registeredrange, falling back with a warning. Fixed once for all variables, with a test.within_range(autobot_shared/env_utils.py:145, warns, returns False -> fallback); test autobot_shared/env_range_enforcement_20722_test.py:29test_out_of_range_falls_back_with_warningwould_deduplicate, autobot-backend/conversation_file_route_api.py:96); test autobot-backend/api/conversation_files_upload_limits_20217_test.py:79REGISTRY[...].default == 1 << 30No forward-tracking references to #20722 found on main.
fix(chat): conversation-file quota ranges and dedupe-aware check (mrv…