Billing UI is mock data and shows every org a fabricated trial #3
Open
opened 2026-08-19 22:06:53 -04:00 by logan
·
2 comments
No Branch/Tag Specified
Labels
Clear labels
area/ai-pipeline
area/auth
area/billing
area/correlation
area/discord
area/frontend
area/governance
area/growth
area/infra-deploy
area/legal
area/map
area/mqtt
area/node-ota
area/osint
area/recording-audio
area/sdr-radio
area/transcription
board
board:agenda
minutes:draft
minutes:final
role:ceo
role:cfo
role:cio
role:ciso
role:cmo
role:coo
role:cto
Scene/entity extraction, summarizer, AI providers, embeddings
AuthN/Z, roles, tenancy/org scoping, API keys, credentials
Plans, entitlements, AI spend accounting and caps
Incident correlation, linking, lifecycle, severity, corr_debug
Discord bot, radio bots, voice streams, bot tokens, webhooks
Web UI: Next.js app and the edge-node local dashboard
Board process, minutes, unattended runner, agent tooling
Go-to-market, outreach, cold email, discovery conversations
CI/CD, VM, registry, Firestore rules/indexes deploy, Terraform/Caddy
ToS, retention, licences/DAAs, CAN-SPAM, E&O, name suppression
Live map: pins, paths, tiles, legend, geocoding
Node-C2 MQTT, checkins, commands, node sweeper, dynsec
Node install, enrollment, OTA updater, image skew
External feeds: cameras, 511, ADS-B, AIS, outages, and their licences
Call capture, boundaries, PulseAudio, ring buffer, trimming, attribution
OP25 decode, SDR hardware/tuning, conventional, second SDR, mesh radio
STT, transcript correction, place verification, name accuracy
Board process: minutes and board-filed items
Needs board scoping at the next sitting; CEO removes the label once scoped
One exec pre-read, closed by CEO
CEO ruling; open until enacted
Filed by the CEO
Filed by the CFO
Filed by the CIO
Filed by the CISO
Filed by the CMO
Filed by the COO
Filed by the CTO
kind
behavior-bug
Wrong product behavior; the instrument reads it correctly
kind
measurement-bug
Corrupts the recording/instrument (debug data, evals, health checks), not behavior
priority
p0
Drop everything: prod broken, live exposure, or owner-ruled P0
priority
p1
Next up: blocks a gate, a customer, or core incident quality
priority
p2
Normal: real defect or planned work, schedule in turn
priority
p3
Low: minor, cosmetic, or someday
status
blocked
Waiting on an external party, spend, or another issue
status
in-progress
Branch or PR open against it
status
needs-decision
Waiting on an owner or board ruling before work
status
needs-info
Root cause or repro unknown; needs a reading first
type
bug
Something built is wrong: code, data, or a measurement
type
chore
Maintenance, refactor, tests, pinning, cleanup: no user-visible change
type
decision
A ruling to make or record: board minutes, owner calls, legal reviews
type
docs
Docs, runbooks, CLAUDE.md, skills, SOPs
type
feature
New capability or an extension of an existing one
type
security
Security, privacy, credential or tenant-isolation exposure
type
tracking
Tracker, checklist, initiative or punch-list spanning several changes
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: logan/server-26#3
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
lib/billing.ts:142-151exportsSAMPLE_SUBSCRIPTION, a hardcoded fixture that regenerates a fresh "7 days left" trial on every page load. The checkout and portal calls justthrow./settings/billingrenders the fixture and admits "Demo data" on the page itself.The real organization document sets
subscription_status: None(routers/links.py:182-183, whose own comment notes that nothing reads or enforces these fields) and nothing ever writes anything else. The trial banner is not reading that field at all — it reads the fixture, unconditionally, for every org.Billing was deliberately descoped pending a pricing decision (
BUSINESS_MODEL.md§9), so this is not a request to build Stripe. The immediate problem is narrower: the UI actively misrepresents account state.Minimum acceptable interim fix: stop presenting a fabricated trial as if it were real.
Correcting this issue — I overstated it when filing, and the overstatement is the reason it looked urgent.
The fixture is real:
lib/billing.ts:142still definesSAMPLE_SUBSCRIPTIONwith a rolling 7-day trial, andgetCurrentSubscription()returns it unconditionally. But it is not rendered anywhere except/settings/billing, and that page already says so on itself: "Demo data — this page isn't connected to a live payment processor." There is no trial banner in the app chrome, no nav badge, nothing on the dashboard. Greppingtrialacrossapp/andcomponents/returns exactly two hits, both insideapp/settings/billing/page.tsx.So the accurate framing is "a demo page labelled as a demo page", not "the UI actively misrepresents account state to every org". That is a much weaker reason to act.
Leaving this open and folded into the descoped billing work rather than patching it tonight — building a half-real subscription state before the pricing decision exists would just be a second fixture. The
TODO(billing)comments inlib/billing.tsalready name the endpoints the real implementation needs (GET /org/subscription,/org/usage,/org/invoices).Worth keeping in view:
routers/links.py:182-183writessubscription_status: Noneon the org document and nothing ever reads or enforces it, so the backend has a stub too.Referenced by board minutes #42 (2026-08-23).
The board ruled (Decision 4) that pricing comes off the public site entirely, replaced with "Pricing in development - contact us", rather than keeping the invented
$0/$79/customcatalog behind a below-the-fold disclaimer. The CMO's softer alternative was explicitly overruled: the number is not merely unwired, it is invented, andBUSINESS_MODEL.md§3.1 - now ratified - says so in writing.This issue (fabricated trial state shown to every org) is the same class of problem on the authenticated side. The public-surface half is tracked in #46; keep this one for the in-app billing UI.