Demo seed: the dollar-cost usage example sits inside Admin's 30-day window #1137
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/demo-usage-cost-in-window"
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?
From the owner's review (item
rc9-l9-usage, marked "Needs a change", 2026-10-12): "Only The Amberwake Accord and The Amberwake Accord (GM Copy) have any AI usage associated with them right now."Admin → AI usage & speed shows the last 30 days (
SessionUsage.started_at). The demo seed wrote its one costed row ($0.41 transcription, $0.09 summary) on The Salt Crown's last successful session, months before the seed's "now", so the page could never show it, and the review page's direction to look there was wrong.The row moves, unchanged, to The Tuesday Tide's latest played session (session 3, seeded 6 days before "now"). The Salt Crown keeps its failed-after-two-tries row, which is outside the window like the rest of that abandoned campaign.
--resetclears the old row with its campaign. The seed's README is corrected (it also wrongly said Brinewatch carried the dollar row).Demo data only; no app code changes.
Checks
tests/test_demo_seed.pyon the dev server against a throwaway Postgres: 8 passed; it now asserts a costed row exists within 30 days of the seed's "now" and none on the admin campaigns.scripts/changelog.py check: OK.🤖 Generated with Claude Code