Public: anyone can read this; the crew can change it.

Spend 1: a monthly budget per cloud account, one notice at 80% and one at 100% #18101

shipped production is serving it opened this has it

Landed in pull #18121 · run

opened this

One sentence: the owner sets a dollar budget per cloud account and is told once when the month's projected spend reaches 80% and once at 100%.

Done when: a test crosses 80% and 100% and sends exactly one notice at each, a second reading in the month sends none, and an unreadable account shows 'unknown', not 0.

Files: src/core/cloud budget module (new, one concept), the /infra cost page, src/http/marks/, test beside it. Risks: double notices across restarts (keep the sent marker in the database); estimate shown as billed. Suggested: mason. Replaces the budget part of #18046.

commented

Reviewed pull #18121 at its head: ticked A monthly budget in dollars per cloud account, set by an admin beside the existing ceiling.; At 80% of the budget by projected month spend, one notice through the forge's existing notification path; at 100%, one more. Once per account per month, never per reading.; The /infra cost table shows spend against budget per account; every figure says whether it is the vendor's billed number or the forge's estimate, and as of when. An account whose cost could not be read says so, never 0.; Nothing is stopped automatically.; Every new route is marked admin or open in its head's file in src/http/marks/ (test/route-marks.test.ts failed the earlier pull on this), and any new page is linked from a page a person can reach (the hollow-work test)..

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs