docs(budget): clarify policy.amount<=0 disables the rule

This commit is contained in:
ZacharyZhang-NY committed 2026-04-16 22:57:05 -04:00
1 parent f468f7c238
commit ba6ba8360b
1 file changed
+1 -1
+1 -1
View File
@@ -100,7 +100,7 @@ export function createBudgetEnforcementService({
const policies = db.getActivePoliciesForRun(companyId, agentId, projectId);
for (const policy of policies) {
// Guard against division by zero
// amount <= 0 disables the policy (and would otherwise divide by zero below).
if (policy.amount <= 0) continue;
const spent = db.getSpentInWindow(policy);