chore: harden relay plan validation to prevent billing bypass and plan-state drift #20
Reference in New Issue
Block a user
Delete Branch "userAdityaa/caravel:harden-plan-validation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
This change closes a billing integrity gap where arbitrary relay plan IDs could be accepted by API writes and later bypass billing sync behavior. The system now validates plan IDs at write time and enforces known-plan semantics in billing and paid-relay classification.
Behavior after change
closes #18