Skip to content

TODO and future plan

This is the one place for future work. A task that belongs to the numbered migration plan stays in its guide page and is only mirrored here when useful; every other task lives here.

How to use it. Add a row (next free ID in its section), say what the action is, what it depends on and its status. Close a row by changing its status to Done with the date; do not delete it. Statuses: Waiting for Frank, Planned, Designed (design written, build after the migration), In the plan, Parked (needs a discussion first), Later, Conditional, Done.

Rule (Frank, 29 Nov 2026). No change is built without his express go-ahead, whatever the status says.

Migration (the numbered plan, Parts A to O of the guide)

Section titled “Migration (the numbered plan, Parts A to O of the guide)”

These belong to the migration guide and are listed here only so nothing is lost.

ID Item Action Depends on Status
M-01 Review the migration guide and give the go-ahead for the Node adapter Frank reads the guide, answers any questions and says go. Then Claude Code builds Part E on branches migrate-lightsail-1/2/3 (Opus 5.5, High). — Waiting for Frank
M-02 Secrets inventory before Part F Frank lists where each readable secret is kept (G.2) and re-generates any that exist only in Cloudflare, which cannot show them again. M-01 Frank, when Part F starts
M-03 “Back shortly” Worker and status page Build deploy/downpage-worker.js and the status page; test with the tunnel-off test in I.3. Part of the numbered plan (D.11). Adapter built In the plan
M-04 Confirm the Worker shows our page when the tunnel is down Test it for real during Part I; if Cloudflare does not hand the tunnel error to the Worker, fall back to a plain static page. M-03 In the plan

Builds designed in the guide, built after the migration

Section titled “Builds designed in the guide, built after the migration”

Designed now so the database does not have to be reshaped later. None of these starts before the migration is finished and stable.

ID Item Action Depends on Status
B-01 Per-user control password Build hub.user_control_secrets and requires_control (C.3.10, step W10): random, shown once, hashed, 5 tries then a 15-minute lock, audited. Migration done Designed
B-02 Secrets admin page Build the secrets store (C.3.11, step W11): write-only, Generate button, rotate with overlap, reveal with the control password for revealable secrets only, audit and Telegram alert. B-01, B-03 Designed
B-03 bideward-admin hostname behind Cloudflare Access Add the third public hostname to the tunnel and an Access application; move the owner pages onto it. Migration done Designed
B-04 Shared sign-in portal Parked by ADR-0001: Bideward has its own sign-in. Reopen only if a second Bideward product exists (Part P). — Parked
B-05 Choose the e-mail sending service Frank picks a service for verification and password-reset e-mails. No account can be created without one. — Waiting for Frank
B-07 Passkeys for sign-in Add passkeys beside the authenticator code on the Bideward sign-in. Migration done Later
B-08 Schema dictionary and migration rehearsal Print the data dictionary from SQL comments into the docs and make the migration runner rehearse on a scratch restore (C.9). First feature migration Designed
B-09 Per-feature switch-on of the Layer 2 tables Switch the relational tables on key family by key family, steps W1 to W12 of C.8, in the order given there. Migration done Designed

See the Bideward API.

ID Item Action Depends on Status
A-01 Write the /v1 API Write openapi.yaml (3.1) from the paths in use, add /v1 beside the old paths, problem+json errors, Idempotency-Key, cursor paging, Deprecation and Sunset headers, contract tests. Migration done Planned
A-02 Public /v1/status and maintenance mode Public status endpoint; maintenance mode answering 503 with Retry-After and a small JSON body. A-01 Planned
A-03 Per-loader tokens Replace the single shared key by per-loader tokens that can be rotated and revoked one by one. B-02, A-01 Later
ID Item Action Depends on Status
D-01 Docs site (sidebar, search) Deploy the Astro Starlight site in docs-site/ to Cloudflare Pages behind Cloudflare Access, following the publish guide. Config and build check are done on branch docs-migration-guide. Branch merged Config built; deploy needs Frank
D-02 Review Zensical against Starlight Material for MkDocs is in maintenance mode (fixes until May 2027); check its successor Zensical once, and only switch if it is clearly better. D-01 Later
D-03 Bring every guide step into the EXPLAIN / SHOW / DO / VERIFY pattern Old steps use Why / Do / You should see. Rewrite them page by page. — Planned
D-04 Document the entire system, stage by stage After go-live: architecture, each component, the database dictionary, runbooks, in docs/. Migration done Planned
D-05 Drive docs to ADRs Turn the numbered Drive docs (01 to 66) into ADRs and pages in docs/, a few at a time; leave a pointer in each Drive doc. Docs 55, 65 and 66 become pointers to this folder. — Planned
D-06 Move the Telegram setup doc into the docs Convert it to a page under docs/ and link it from the guide. — Planned
D-08 Page-level sharing Design and test sharing one page or section with a named guest without exposing the rest (path-scoped Access applications; the rules are in the organisation page). Until tested, share a PDF or Markdown copy. D-01 published Planned

Unified build plan (approved order; starts after the migration)

Section titled “Unified build plan (approved order; starts after the migration)”

The detail of each item is in the unified build plan. Frank approved the order on 25 Nov 2026; each stage is restated to him before it is built.

ID Item Action Depends on Status
U-01 Stage 1: test bots (C1-C3) Batch test-bot preset, ten new Layer 2 patterns, test-balance defaults. See Stages 1 and 2. Migration done Approved
U-02 Stage 2: polling throttle (B2) Poll every 5 s only while the dashboard is watched, otherwise 30-60 s; one stats request per round. U-01 Approved
U-03 Stage 3: live-money reliability (A2-A4, A6) Settlement by balance reconciliation, always-on two-source crash feed, exact game id, live counter; rework PRs #138 and #168 before they are merged. See Stage 3. U-02 Approved
U-04 Stage 4: research (C4-C8) Research mode, take-profit modal, owner research page, ranking, multiplier groups. See Stage 4. U-03 Approved
U-05 Stage 4: user analysis (C9-C10) Per-user analysis page and pattern switching for users. See user analysis. U-04 Approved
U-06 Stage 5: monitoring (B1, B4, A5) Feed page, naming, bcgame script-stop causes. See Stage 5. U-05 Approved
U-07 Track D: dashboard completion (phases 0-11) Placed as confirmed on 25 Nov: phases 0-1 with Stage 1, phase 2 after it, phases 3-7 after Stage 3, phases 8-11 last. See Track D. Per phase Approved
U-08 Track E: security (E1-E7, S1, S3-S6) Threat model first, then the state mirror, resume code, watermarked deliveries, delivery forms and the thin-client experiment. See Track E. Alongside from Stage 1 Approved

See How we use git. Until the move, Claude commits and opens pull requests and Frank merges.

ID Item Action Depends on Status
G-01 Create the bideward GitHub organisation and secure it Follow steps 1 to 3 of GitHub organisation and repositories: two-factor, base permission, repository creation. — Waiting for Frank
G-02 Switch git roles to Frank From the move into the bideward organisation Frank does every git action; Claude writes the code and supplies a tutorial per task (EXPLAIN / SHOW / DO / VERIFY, with commit message and pull request title and description). N-02 Later
G-03 Branch protection and code owners Require a pull request and passing checks on main; add a CODEOWNERS file. G-02 Later
G-04 Per-repository deploy keys A separate read-only deploy key per repository for the server; no personal token on the box. G-02 Later
G-05 Secret scanning and push protection Turn both on for every repository. G-02 Later

Rename, transfer and redesign (decided 29 Nov 2026; not part of the migration)

Section titled “Rename, transfer and redesign (decided 29 Nov 2026; not part of the migration)”
ID Item Action Depends on Status
N-01 Rename code, versions and files from titan to bideward Script and loader versions, file names, the X-Titan-Key header (add X-Bideward-Key beside it first so no bot breaks), identifiers, comments and the Worker name. New loader and bootstrap pastes are planned together with it. Migration stable Later
N-02 Transfer the repositories into the bideward organisation Step 5 of GitHub organisation and repositories: bot-stats-server becomes platform, crashgame becomes script; update clones and the server remote; recreate the Cloudflare Pages project. G-01 Later
N-03 Redesign the dashboard and sites Remove every old brand keyword and logo and give the dashboard, login screen and sites Bideward’s own look and feel. Migration done Later
N-04 Create the site repository and the public website Public marketing site at bideward.com; private repository until launch. N-03 Later
N-05 Upgrade GitHub to Team Branch protection and required reviews once a second person writes code. Check the price and the ruleset steps on GitHub’s pages first. A second contributor Conditional
AD-01 Admin app on admin.bideward.com (own build, own pull requests, after the migration is stable) One admin service, separate from the hub, with: the secrets page (C.3.11), the deploy view (new version on main, test result, deploy log, Deploy button, automatic rollback when the health check fails), configuration pages, and the access mode. Decided with Frank on 29 Nov 2026: Tailscale-only by default; the service listens only on the box’s Tailscale address, is not in the Cloudflare Tunnel and has no public route (nothing answers from the internet). Wider modes (specific IPs, countries, world) are enforced outside the app (Cloudflare rule with a plain “page not found” answer, plus Cloudflare Access) and are changed only with the control password and two factors; a server command always returns to Tailscale-only. Migration done; design review (security) first Decided, not built
AD-02 Admin sign-in Username (the owner’s e-mail address) + a strong password + two second factors, both required: a one-time code sent to the e-mail address, and a code from an authenticator app (any TOTP app). Open points for the design review: the outgoing e-mail service and its key, recovery without weakening the factors, a hardware key (passkey) as an optional third factor. AD-01 Decided, not built
AD-03 Admin deploy flow “Update available” shown by the server checking GitHub itself (no webhook, because admin is not reachable from the internet); the owner clicks Deploy; the engine is deploy/update.sh from the migration (tag checkout, install, migration with the automatic backup rule, restart, health check, automatic rollback). Automatic deploy of every merge is a later switch, off by default. AD-01, branch 3 deploy/ Decided, not built
AD-04 Admin name and network design review Compare for the final design: Tailscale Serve with a tailnet-only name (no public DNS record at all), Tailscale ACL limited to the owner’s devices, device approval and key expiry; against Cloudflare Zero Trust with the WARP client and a private route through the existing tunnel; against AWS Systems Manager port forwarding. Decide whether admin.bideward.com stays a public name (a DNS-only record to the 100.x address shows the name, not the service) or a private one. AD-01 To design
ID Item Action Depends on Status
I-01 Cloudflare Pro Replaces the “back shortly” Worker with a built-in custom error page and adds more rules; only when money allows. — Later
I-03 Move to 4 GB Only if the measurements in Part I say so. Part I Conditional
I-04 Two servers and managed PostgreSQL Split the hub and the research service, and move to a managed database, when scale needs it. Growth Later
I-05 Decide the request-limit features on Lightsail The receiver counts requests against the Workers free limit (100,000 a day), warns by Telegram at 80% and 95%, and lowers the bots’ polling to stay under it (Audit E1, finding 1). On Lightsail there is no such limit. Decide: retire them, or make the limit a setting. Nothing changes in the migration. Migration stable Waiting for Frank
I-06 Close cross-origin access on /admin/* The control-password routes echo any caller’s origin, left from the time a second receiver called them. With one receiver, restrict them to app.bideward.com (Audit E1, finding 3). Migration stable Later
I-07 Repair the receiver tests that read old script file names 15 tests in npm test fail on main (and on every branch from it) because they open script files by their old names, for example titan-claude-v16.0.js, which the 22 Nov 2026 layout change in the script repository renamed or moved to deprecated/. Because npm test stops at the first failure (tests/d53.mjs), the rest of the chain does not run. Update the paths so the whole suite runs. — Waiting for Frank
I-08 Test the dashboard socket with a signed-in session The adapter test proves /ws refuses a caller without a session (401). The signed-in path (replay of stored bots, budget, Realtime state, push to bots) runs in the parity test of branch 3 with the sign-in done in the test. Branch 3 Planned
I-09 Stored values that are not plain JSON The adapter stores plain JSON as jsonb (PostgreSQL does not keep key order inside an object) and anything else (Map, Date, NaN, binary) through V8 serialisation. The receiver does not depend on key order today; if a later feature does, store that key as serialised. — Noted
ID Item Action Depends on Status
L-01 Terms check for the betting sites Read the published terms of Bustabit, Coinscrash and BCGame for the use the bots make of them; record the result. — Waiting for Frank
L-02 Legal owner and jurisdiction Choose where and how Bideward is registered, after legal advice and some months of own use; write it as an ADR (ADR-0001). No customer is charged before then. L-01 Later
L-03 Trademark filing for Bideward Optional, when finances allow. L-02 Later

Product discussions (parked until after the migration)

Section titled “Product discussions (parked until after the migration)”

Nothing here is decided or built. Each needs a discussion with Frank first, and no change is made without his express go-ahead.

ID Item Action Depends on Status
X-01 Auto-switching the recovery ladder group together with the L2 patterns Settle the switching signal, how it works with L2 pattern auto-switching, its interaction with the survival target switch (ts_target) and the base bet, and what is logged. Migration done (needs the database) Parked
X-02 Module improvement and integration into the L2 pattern algorithm Analyse why some modules do not contribute; decide how a module reading enters a pattern decision; measure it on loss clusters. Migration done Parked
X-03 Multi-day live test: the best 3 overall L2 patterns for all platforms Run on test bots on all platforms and see which ladder group suits each; evidence comes from the research page. X-01, migration done Parked
X-04 Modules-with-L2 analysis Analyse how the modules perform together with L2 patterns. Migration done Parked
X-05 Four-rung ladder groups A and B Options beside the ladder table: A 2.04 / 2.10 / 2.21 / 2.27 and B 2.11 / 2.17 / 2.25 / 2.29. How the rungs map to the losses is fixed when built. X-01 Parked
X-06 A2 hold cause: game 9835440 Find out why it stayed in an unconfirmed settlement hold. Frank supplies the bcgame bet history Waiting for Frank
X-07 bcgame settings list List which settings are fixed and which scale with the balance, for Frank to approve. — Waiting for Frank
X-08 O4: the ts_target rule Frank confirms the proposal. — Waiting for Frank
X-09 O5: the free/paid map Settle the map in C9 before Phase 10. — Waiting for Frank
X-10 Doc 64 Q1 to Q9 The recommendations in section 9 stand unless Frank changes them. Q2 (storage) and Q3 (transition) are settled by the migration guide. — Waiting for Frank
X-11 Smallest base Reconcile the smallest base and the refusal when no rate is available. — Parked
X-12 Ladder defaults Settle the default group and how the new groups interact with ts_target. X-01 Parked
X-13 Housekeeping Confirm the c0 test passes, and confirm whether the discard-now-1835 branch was merged. — Waiting for Frank