Stage 4: user analysis
C9. Per-user analysis page
Section titled “C9. Per-user analysis page”Two levels, one data source. Each user sees only their own bots. The owner sees everything (C6).
What a user sees for each bot:
- Status strip:
- running or flat;
- live or test;
- feed state and round counter;
- last alerts.
- Sessions: every take-profit or ruin session with the C5 fields and an equity curve.
- Debt: debt timeline and time in debt.
- Risk view:
- “your balance would have covered X% of historical peak debts”;
- minimum bankroll for about 1% ruin;
- virtual ruin at chosen start balances.
- Patterns:
- their pattern against the other patterns over the same rounds (results only);
- their pattern-switch history (C10).
- Controls:
- CSV export;
- a read-only share link with a time limit;
- Telegram alerts;
- responsible-gambling limits they set themselves: a loss alert and a session limit.
What a user never sees:
- how decisions are made: no module logic, weights, thresholds or engine parameters;
- other users’ bots. Cross-user figures are only aggregated and anonymised.
Honesty:
- The expected-value note from C7 appears on the page.
- No recommendation is worded as a guarantee.
Performance — the page must never slow anything:
- Separate from betting: bots never call the page and the page never calls bots.
- Light per round: the per-round write is unchanged. Session summaries are written once, at take profit, ruin or stop.
- Pre-computed:
- the page reads summaries computed in advance, never the raw round log;
- heavy work (ranking over 120 days, virtual ruin over many balances) runs as background jobs on the server, never while the page loads.
- Light to load:
- charts are downsampled (for example to 500 points);
- session lists are paginated;
- sections load lazily;
- responses are cached and change only when a new session ends.
- Live part: only the status strip, and it uses the existing socket.
- Rate limits: the page has its own, so it cannot use the bots’ request budget.
- Budget: first view under 1 second on a phone connection, and no measurable change in bot timing. The loader’s lateness record (A3) is checked before and after release.
Security:
- served from the server behind the dashboard sign-in;
- each request is checked against the user’s own bot ids on the server;
- nothing from the page is placed in the betting script.
Business (Frank agreed as an option): the basic page is free and the deeper analytics are a paid tier. The proposed boundary (O5, for Frank’s approval) is below.
| Feature | Free | Paid | Owner |
|---|---|---|---|
| Status strip: state, feed, round counter, alerts | Yes | Yes | Yes |
| Session list | Last 30 days | Full history | All users |
| Equity curve, take-profit and ruin counts | Yes | Yes | Yes |
| Telegram alerts | Yes | Yes | Yes |
| Responsible-gambling limits (loss alert, session limit) | Yes, always | Yes | Yes |
| CSV export of own sessions | Yes | Yes | Yes |
| Debt timeline and time in debt | Summary | Full | Full |
| Peak debt at 95th/99th percentile; ruin rate with confidence | No | Yes | Yes |
| Minimum bankroll for about 1% ruin; virtual ruin at chosen balances | No | Yes | Yes |
| Own pattern against all other patterns over the same rounds | No | Yes | Yes |
| Multi-window ranking (1–120 days) | No | Yes | Yes |
| Pattern switching (C10) and “Try the switch” | No | Yes | Yes |
| Read-only share link | No | Yes | Yes |
| Cross-user aggregates and the research page (C6) | No | No | Yes |
Safety-related items stay free. The line is confirmed with Frank before Phase 10 (billing).
C10. Pattern switching for users
Section titled “C10. Pattern switching for users”- Choose: the user picks two or more patterns they have tested.
- Rank: the switch ranks only those patterns (C7 method), with the same safety rules: a margin to beat, a minimum time on a pattern, and switching only when flat.
- Try it first: “Try the switch” runs a test bot that applies the switch in simulation on the same live rounds while the user’s other bots keep testing. The user watches switches happen before using it on a live bot.
- Live use: on the live bot it is off until the user turns it on.
- Record: every switch is logged and appears in the take-profit modal (C5) and on the user’s page (C9).
← Stage 4: research · Plan index · Next: Track D and definition of done →