Repository navigation
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 5 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Code review (code-reviewer pass) follow-up at 171aa40
Pass-through: Open: the ownerless default (charge the authenticated caller) awaits the maintainer's confirmation on #20678. |
Code review (code-reviewer pass) follow-up at 171aa40Verdict: APPROVE-equivalent. Option B is implemented as ruled; no blocking defect found. Four non-blocking findings below. This was a read-only review of
Checked and found correct:
|
Code review (code-reviewer pass) follow-up at f0218c2All findings addressed in one commit, f0218c2. Still
Verification (scratch copy of HEAD, project interpreter): the 7 quota/upload/strict-route test files, 86 passed; flake8 and black clean on the changed files. Note on test (a): both the admin gate and the STRICT ownership check refuse a non-owner; the test accepts 403 or 404 and asserts zero rows, and the mutation removed both layers. |
|
Code review (code-reviewer pass) at f0218c2 Verdict: APPROVE. 0 behind main (3 ahead), mergeable. 0 inline review comments via REST (thread resolved-state itself not checkable here: GraphQL rate limited).
No blocking findings. |
|
Branch |
Refs #20678
Thinking Path
Agent-created conversation files were charged to the agent's name, so every user shared one agent quota and one user's agent could lock out everyone else's. Option B from #20678: add a
quota_ownercolumn, charge agent writes to the human owner, and keepuploaded_byas the record of who wrote the file.Explicit rule
uploaded_bystill records the writer.COALESCE(quota_owner, uploaded_by); no stored row is rewritten.The ownerless default (authenticated caller) awaits the maintainer's confirmation on #20678 (
needs-decision).AC3 (existing rows handled only through a human-approved proposal) is tracked in #21123, so this PR uses
Refs, notCloses.What Changed
autobot-backend/conversation_file_quota_owner.py(new): resolves the quota owner for agent writes and MCPsession_write_file.autobot-backend/api/conversation_files.py:agent_generate_fileand_dispatch_mcp_toolpassquota_ownerthrough.autobot-backend/conversation_file_manager.py,conversation_file_quota.py,conversation_file_upload_info.py: store and charge byquota_owner.001_create_conversation_files: nullablequota_ownercolumn.autobot-backend/conversation_file_quota_owner_20678_test.py(new).main(includes chore(merge-train): #20609 #20990 #20994 #20998 #21015 #21105, fix(chat): STRICT routes answer not-yours exactly like not-found (#20413) #21015);api/conversation_files.pymerged without conflicts and both file-size ceilings are unchanged.Verification
Run from a scratch copy of the merged tree: 83 passed (quota-owner 20678, quota-store 20217, manager init, real-manager 20225, review 20225, upload-limits 20217, strict-routes 20413). flake8 clean and black --check clean on the 7 changed Python files. CI is the confirming run.
Model Used
Claude Sonnet 5.5