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
{{ message }}
Repository navigation
hardening(chat): user-reachable conversation uploads have no per-user quota and buffer the body before the size check #20217
Checked on main 6b66650 (merge train PR #20245): not delivered. api/conversation_file_upload.py still does await file.read() before the MAX_FILE_SIZE check, and no per-user quota exists. All 3 criteria stay unticked.
Decision needed, raised by PR #20668: agent-created files are charged to the agent's name, so all users share one agent quota and one user's agent can lock out everyone else's. Options: (A) keep this; (B, recommended) add a quota_owner column set to the session owner, charge agent writes to it, and keep uploaded_by as provenance, which needs a column and a backfill proposed through the review queue (#17038); (C) exempt agent files and cap them per session, a second limit.
Checked against main at merge ae35848 (the merge train, PR #20713; member #20668).
AC
Evidence
The size limit is enforced while reading; oversize stops early, with a test
DELIVERED. autobot-backend/api/conversation_file_upload.py_read_within reads in chunks and refuses past the limit; validate_and_read_upload_file uses it. Tests: api/conversation_files_upload_limits_20217_test.py::test_an_oversize_body_stops_the_read_early, conversation_file_size_cap_20217_test.py
A per-user quota from configuration, clear error, test
DELIVERED. autobot-backend/conversation_file_quota.pyUSER_QUOTA_BYTES from AUTOBOT_CONVERSATION_FILE_USER_QUOTA_BYTES (registered in autobot_shared/env_registry_knowledge.py), quota_refusal with code conversation_file_quota_exceeded. Tests: conversation_file_quota_store_20217_test.py::test_create_is_refused_past_the_quota_and_stores_nothing, conversation_files_upload_limits_20217_test.py::test_a_user_past_their_quota_is_refused_by_the_route_and_nothing_is_stored
Owner deletion of own files recorded on #20195 as a maintainer decision
DELIVERED. #20195 comment "Maintainer decisions 2026-10-31": owners may list, download, preview and delete their own conversation files; delete stays soft
Activity
mrveiss commentedon Oct 31, 2026
Checked on main 6b66650 (merge train PR #20245): not delivered.
api/conversation_file_upload.pystill doesawait file.read()before theMAX_FILE_SIZEcheck, and no per-user quota exists. All 3 criteria stay unticked.mrveiss commentedon Nov 2, 2026
Decision needed, raised by PR #20668: agent-created files are charged to the agent's name, so all users share one agent quota and one user's agent can lock out everyone else's. Options: (A) keep this; (B, recommended) add a
quota_ownercolumn set to the session owner, charge agent writes to it, and keepuploaded_byas provenance, which needs a column and a backfill proposed through the review queue (#17038); (C) exempt agent files and cap them per session, a second limit.mrveiss commentedon Nov 2, 2026
The agent-file quota question moved to #20678, so it survives this issue closing.
fix(chat): upload quota enforced in the store path with stable error …
test(i18n): record the upload error keys on the new base (#20217)
fix(chat): coded 413 on create/generate size cap, translated create r…
chore(merge): merge #20540's head into the upload quota branch (#20217)
github-actions commentedon Nov 3, 2026
Landed via the merge train (#20713, merge
ae35848bb7) via #20668mrveiss commentedon Nov 3, 2026
Checked against
mainat merge ae35848 (the merge train, PR #20713; member #20668).autobot-backend/api/conversation_file_upload.py_read_withinreads in chunks and refuses past the limit;validate_and_read_upload_fileuses it. Tests:api/conversation_files_upload_limits_20217_test.py::test_an_oversize_body_stops_the_read_early,conversation_file_size_cap_20217_test.pyautobot-backend/conversation_file_quota.pyUSER_QUOTA_BYTESfromAUTOBOT_CONVERSATION_FILE_USER_QUOTA_BYTES(registered inautobot_shared/env_registry_knowledge.py),quota_refusalwith codeconversation_file_quota_exceeded. Tests:conversation_file_quota_store_20217_test.py::test_create_is_refused_past_the_quota_and_stores_nothing,conversation_files_upload_limits_20217_test.py::test_a_user_past_their_quota_is_refused_by_the_route_and_nothing_is_storedfix(chat): conversation uploads stop reading at the size cap and resp…