From 38d095d47782b5921d2d8016cd3e42a09d680816 Mon Sep 17 00:00:00 2001 From: brettin Date: Thu, 4 Jun 2026 09:06:23 -0400 Subject: [PATCH] Add RFC 004: budget allocate and enforce. Proposes split allocate request/response schemas and enforce semantics. Co-authored-by: Cursor --- contracts/rfcs/004-budgets-allocate-enforce.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 contracts/rfcs/004-budgets-allocate-enforce.md diff --git a/contracts/rfcs/004-budgets-allocate-enforce.md b/contracts/rfcs/004-budgets-allocate-enforce.md new file mode 100644 index 0000000..827e6a7 --- /dev/null +++ b/contracts/rfcs/004-budgets-allocate-enforce.md @@ -0,0 +1,11 @@ +# RFC 004: Budget allocate and enforce + +## Problem + +- Spec `BudgetPolicy` used for both request and response with client-supplied `budgetId`. +- Platform allocate: server-generated `budgetId`, `ttlSeconds`, `maxCostUsd`, usage counters on response. +- Spec `enforceBudget` uses tier `ModelRoutingPolicy`; platform uses `budgetId` + `fallbackModel`. + +## Proposal + +Split allocate request/response schemas; document enforce operation for budget-bound routing.