* feat(ai-budget): keep a fifth of each day's free pool for people on their first week
Pacing keeps the day from being spent before lunch, but not by evening:
there is no clawback, so whoever signs up at 21:00 can meet a pool the
vendors have already refused — a first answer that never comes, which is
the moment a person decides Loki is broken.
lib/ai-budget/newcomer-reserve.ts: returning accounts together stop at 80%
of the day's capacity; an account under seven days old may draw on the
rest, still under its own fair share. getDayUsage now also returns the
day's total (same query as the active count). The gate reads the
account's age only once the total reaches the held part, and fails open
if it cannot; a paid plan with allowance left is not held back. The
refusal says what the held part is for, when the day starts over, and the
ways past it; the budget screen reads the same rule, so it never shows
"12 left" to someone the gate will refuse.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CG9dupSVqoXCCqKfBCfd9B
* fix(billing): payments stay off until switched on, whatever pay URLs are set
Live after #1293: every paid plan's button on /pricing read "Pay in
Bitcoin" and went to an OrangeCat product page that answers 404. The
three ORANGECAT_PAY_URL_* were set on the box before the passes existed;
while the tiers had no price that was invisible, and setting the prices
turned the dead links on — skipping the reservation flow they were meant
to fall back to, and showing "Buy" in Settings → Billing too.
orangeCatPayUrl now also requires LOKI_PAYMENTS_OPEN=1. Opening payments
is a decision (the company registered, the passes live), so it is a
switch, not an inference from a URL. Until then every paid plan's button
reserves, as designed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CG9dupSVqoXCCqKfBCfd9B
---------
Co-authored-by: Claude <noreply@anthropic.com>