Track E: security and 24/7 architecture
9. Track E — Security and 24/7 architecture (doc 64 plus this discussion)
Section titled “9. Track E — Security and 24/7 architecture (doc 64 plus this discussion)”Honest limit (from both sources): code that runs in a customer’s browser can be read by that customer with enough effort. Only moving logic to the server removes the exposure. Delivery hardening makes copying harder and leaks traceable.
| ID | Item | Source | Status |
|---|---|---|---|
| E1 | Threat model and architecture write-up | 25 Nov | Approved; first in this track |
| E3 | Research, ranking, ledger, pattern selection, multiplier-group logic and test-bot batches run only on the server; none of it reaches the browser | 25 Nov | Approved |
| S1 | State mirror: journal + snapshot, version and epoch, local copy, one owner per bot with fencing; bets never wait for writes | doc 64 §3 | Planned; Q1 open |
| S2 / B3 | Lightsail record with Cloudflare in front (doc 64 shape b); per-loader tokens; dead-man alert; server hardening (doc 64 §5: origin hidden, SSH keys only, secrets store, undeletable backups, staging instance, audit trail). Replaces the plain move in doc 55 | doc 64 §3.8, §5; doc 55 | Moved to the migration guide; Q2 and Q3 settled there |
| S3 | Rotating resume code (single use, about 10 minutes, per bot) and take-over on another device, waiting for the round in flight to settle | doc 64 §3.6 | Planned; Q4 and Q5 open |
| E2 / S4 | Watermarked single-use deliveries; per-user and per-session keys; no source maps or readable names; misuse detection; revocation; a lease that only gates new sessions and never stops a bot in recovery or in a bet | 25 Nov; doc 64 §6 | Approved; Q7 open |
| E5 | Minimal pasted stub: connect, approval, download, run | 25 Nov | Approved |
| S5 | Delivery forms: Form 1, a unique generated stub plus the optional tab userscript; Form 2, a native program (pairing code, 24/7 care, signed updates only when flat) | doc 64 §6.2 | Planned; Q9 open; see section 10 for platform rules |
| E4 / S6 | Thin client study: measure each platform’s betting window, then test the “pre-sent plan” middle road on test bots (the server sends the next round’s branching plan before the round ends, so a bet never waits on the network) before any go or no-go | 25 Nov; doc 64 §6.1 | Approved as a test-bot experiment only |
| E6 | Licence and confidentiality terms for every user (with a lawyer) | 25 Nov | To do |
| E7 | Each user runs Bideward only on their own account (BC.GAME terms 8.1, 8.2) | 25 Nov | Rule |
Doc 64’s questions (Q1–Q9), not yet answered. Doc 64 says an unanswered point is taken as agreed as written, so the recommendations below stand unless Frank changes them.
| Q | Question | Doc 64 recommendation |
|---|---|---|
| Q1 | Learning state: snapshot everything, money core only plus replay, or decide after measuring? | Measure first; snapshot everything if small |
| Q2 | Storage | PostgreSQL on the instance now, managed later. Moved to the migration guide: PostgreSQL for everything, no SQLite |
| Q3 | Transition shape | Cloudflare in front, Lightsail as the record; two instances later for enterprise. Moved to the migration guide: Cloudflare Tunnel, two hostnames (bideward for the dashboard, bideward-api for bots and loaders) |
| Q4 | Resume code | Single use, 10 minutes, per bot, created with the control password |
| Q5 | Take-over | Wait for the round in flight (at most one skipped round) |
| Q6 | Protection level | Options 0–3 first, measure the thin client before committing (matches E4) |
| Q7 | The lease | Only gates new sessions; never stops a bot in recovery or in a bet |
| Q8 | Deferred items (late-bet guard, feed self-heal, BLIND warning, dead-man alert, survival groups) | Self-heal and BLIND are now part of A3; the dead-man alert is part of S2; the late-bet guard is O3 |
| Q9 | Native program: which operating system first, and a terms check first? | Terms check first; then Frank’s choice of operating system |
← Track D · Plan index · Next: Conflicts and platform rules →