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 18 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. |
|
Verdict: APPROVE (head c1e91de; review is read-only, from the diff and base) CI at head is still running, so merge on green.
Acceptance criteria of #21119:
Non-blocking: the placeholder test ( Review threads unresolved: 0. Milestone: M2 - Company OS workflow-ready. Labels: bug, backend, phase:M2.6. |
|
Branch audit (zero-change deletion). This PR shows 0 changed files against |
Thinking Path
The budget policy resume route is admin-gated but recorded the literal
adminas the approver in the agent state and theagent.budget_resumedaudit event, so the audit trail could not name who resumed an agent.Single-issue rationale
One defect, one route: the placeholder actor on resume. The pause path writes genuinely system-initiated actors (
budget_policy), which stay as they are.What Changed
resume_paused_agenttakes the verified caller viaget_current_userand passesresolve_principal_id(current_user), falling back to the username, asapproved_by. Nothing comes from the request body.test_budget_policy_resume_approver_21119.pyassertsresume_agentreceives the calling admin's id, the username fallback, and never a placeholder.api.tsregenerated; the only change is the route description.Verification
Budget policy tests, the one-admin-gate, audit action vocabulary and docstring restatement guards, and the fast guard list: 2153 passed.
api.tsregenerated with the verify-generated-types recipe.Model Used
Claude Sonnet 5.5
Closes #21119
🤖 Generated with Claude Code