Built to last: one codebase, any name, no single point of failure¶
Status: 🔴 Not built yet. A plan, not a build (2026-11-16): one codebase on every platform, a rename driven by brand.env, the open-core split and what protects it, the launch register of single points of failure, and the four stages with targets (the data is in guiding-map/levers/roadmap.json, not yet read by the app). It turns amber as the briefs ship. What the lights mean
Written 2026-11-16 by a panel of four: a principal architect, a release engineer, an IP lawyer and a site reliability
engineer. It is a plan, not a build. Every gap named here is one brief in
built-to-last-briefs.md; queue item built-to-last holds the date.
What gets better for the person: the app they trust is on every device they hold, keeps working with no network, cannot be taken from them by one lost key, one closed account or one copied repository, and shows them where they stand on the road from getting by to doing well.
The legal parts are an engineer's careful reading, written so a lawyer can check them fast. They are not a legal opinion.
1. One codebase, every platform¶
The rule: the web app is the product. Every store or desktop build is the same built files in a thin shell. No screen, rule or number is written twice.
| Platform | Shell | State today | Signed with | Updates arrive by |
|---|---|---|---|---|
| Web (any browser) | none: the hosted PWA | built (tools/pwa_publish.py) |
HTTPS and the origin | the service worker, on the next visit |
| Android | Capacitor 8 (pinned in governance/oskit.py) |
project generated by ./securax os mobile; never built or submitted |
Play App Signing, plus our upload key | Play tracks: internal, closed, production |
| iOS, iPadOS | Capacitor 8 | project generated; never built | Apple distribution certificate | TestFlight, then App Store phased release |
| Windows | Tauri 2 | not started | a code-signing certificate, plus the updater key | the Tauri updater reading a static, signed manifest |
| Linux | Tauri 2 (AppImage and deb) | not started | a GPG key, plus the updater key | the same manifest; the deb through its repository |
One build feeds all five: node guiding-map/build.js writes the web files; ./securax os mobile copies them into the
Capacitor www folder; a new ./securax os desktop (brief B07) does the same for Tauri. The shell may add only what
the web cannot do: the share sheet, local notifications, biometric unlock, a tray icon. Each such bridge sits behind one
small interface with a web fallback, so the web app never breaks when the shell is absent.
Signing: five keys, none held in one place only¶
| Key | If it is lost | If it is stolen | So we |
|---|---|---|---|
| Android upload key | Google resets it after an identity check; days of delay | Google resets it; the app signing key stays with Play | enrol in Play App Signing on day one; keep an encrypted second copy |
| Apple distribution certificate | make a new one in the account; no user impact | revoke and re-issue | sign in CI from the account's key, never from one laptop |
| Windows code-signing certificate | buy a new one; reputation starts again | revoke; users see a warning until re-signed | keep it in a hardware token or a cloud signing service, never as a file |
| Tauri updater key | every installed desktop copy can never update again | an attacker can ship a build that every copy accepts | keep it offline with two sealed copies in two places; plan a second key in the app before launch |
| Release provenance (already built, doc 21) | re-issued by CI | tied to the workflow identity, not a file | keep as is |
The updater key is the one that can end the desktop product. It gets the strictest drill (section 4) and its own register entry (brief B04).
Facts checked on 2026-11-16, and to confirm before money is spent:
- Apple Developer Program: US$99 a year. Google Play: US$25 once.
- A personal Play account opened after 13 November 2023 must run a closed test with at least 12 testers for 14 days in a row before it can ask for production. An organisation account is exempt, but needs a D-U-N-S number (allow 30 days). Decide the account type before the alpha, not at launch.
- Android developer verification for apps installed outside Play is enforced in four countries in 2026 and is announced for the rest of the world from 2027. Plan to be verified before a direct APK is offered.
- Microsoft's cloud signing service (Artifact Signing, US$9.99 a month) accepts organisations in the USA, Canada, the EU and the UK, and individuals in the USA and Canada only, per Microsoft's own forum answers. An Indian publisher should plan for a certificate from a certificate authority instead, and confirm with Microsoft.
- Capacitor 8 needs iOS 15 or later and Android 7 (API 24) or later. A newer major may exist; raise the pin on purpose.
- Tauri: use updater plugin 2.12.0 or later with
requireSignedVersionon (a 2026 advisory); the manifest can be a staticlatest.jsonon any host.
Update channels¶
Three channels, the same on every platform, declared once as data (brief B05):
| Channel | Who | Web | Android | iOS | Desktop |
|---|---|---|---|---|---|
| nightly | the builders | a preview address | internal track | TestFlight internal | nightly.json |
| beta | invited people (the 50 of the closed beta) | /beta/ |
closed track | TestFlight external | beta.json |
| stable | everyone | the main address | production, staged 5% → 20% → 100% | phased release, 7 days | latest.json, staged by a percentage field |
Rules:
- A build reaches stable only after 3 days on beta with no data-loss or lock-out report.
- Rollback is one command and is tested. Web: republish the previous build (kept at
/previous/, brief B10). Desktop: point the manifest back. Stores: halt the staged rollout; a fixed build goes out as a higher version. - A stored-data change is always readable by the previous version, for one release. That is what makes rollback safe.
- No live code push into store apps. The web files inside a store build change only through a store release, so what Apple and Google reviewed is what runs.
What must stay offline-first¶
These hold on every platform, and brief B08 turns them into one test over the packaged files:
- The app opens, shows today, takes input and saves with the network off, from first launch after install.
- All data lives on the device first. Sync is an addition; a failed sync never blocks a save.
- No font, script, style or image is fetched from another origin at start.
- The lock, the backup and the restore work offline. An encrypted backup file can leave the device by any path the person chooses.
- AI features degrade to the built-in rules when no model answers; nothing waits on a spinner.
- Reminders are local notifications on the device. A server push is extra, never the only cue.
2. Rename-proofing¶
brand.env is meant to be the one place the names live. The search below shows it is true for the company name and
domain, and not true for the product name, the repository owner or the image registry.
What the search found on main, 2026-11-16 (git grep -I -l, binary files skipped):
Value (brand.env key) |
Files | Guarded by config check? |
|---|---|---|
Company name and domain (BRAND_NAME, SITE_DOMAIN, CONTACT_EMAIL) |
9 | yes: none in code |
Product name (PRODUCT_NAME) as a word |
314 files, 1,121 places | no |
Repository owner or slug (REPO_SLUG) |
41 files | no |
Image registry (IMAGE_REGISTRY) |
4 files | no |
| The product name in lower case, inside identifiers | 698 files | no, and most must never change (below) |
Company name and domain, every file: brand.env (the source), LICENSE, MAINTAINERS.md, CHANGELOG.md,
README.md, docs/get-started/laptop-runbook.md, docs/securax/00-OVERVIEW.md,
docs/securax/60-SHIP-IT-AND-BUILD-WITH-SECURAX.md, docs/securax/61-RUN-IT-AS-A-BUSINESS.md. All are legal or
human text, where a literal is allowed. LICENSE names the licensor and is changed by a lawyer, not a script.
Product name as a word, by kind (the full list is git grep -I -l SecuRAX; it is too long to print and changes daily):
| Kind | Files | How rename handles it |
|---|---|---|
| Docs and other markdown | 127 | rewritten in place; file names under docs/securax/ stay (links never break) |
Python and shell, including the securax CLI |
79 | messages read PRODUCT_NAME; brief B02 ratchets the count down |
Data and config (features.json, governance/*.json, compose files) |
49 | rewritten where it is display text; generators re-run |
| Tests | 24 | assert on PRODUCT_NAME, not on the literal |
Web (website/, portal/, guiding-map/) |
22 | {{PRODUCT_NAME}} at build time, as the site already does for the domain |
Windows helpers (*-Windows.bat), two Dockerfiles, .env.example, .gitignore, LICENSE |
9 | rewritten; LICENSE by hand |
Workflows (release.yml, release-cut.yml and two more) |
4 | read the name from brand.env in a first step |
Repository owner, outside docs (24 files): .github/CODEOWNERS, .github/ISSUE_TEMPLATE/config.yml, both
Dockerfiles under apps/, gitops/bootstrap/{core,platform,tenants}.yaml, gitops/root-app.yaml,
gitops/charts/tenant/values.yaml, gitops/platform/{metering,policies}.yaml, governance/queue.json,
guiding-map/features.js, two Terraform files under infra/terraform/, lifecycle/burrow.py,
local/scripts/wsl-setup.sh, mkdocs.yml, one notebook, portal/explainer.html, tools/publish-clean.sh,
website/index.html, website/personal/index.html. The hosted origin itself carries the owner's account name; that
ends with queue item own-origin-hosting.
Identifiers that must NOT be renamed. A rename that touches these breaks every installed copy:
| Identifier | Where | Why it is frozen |
|---|---|---|
The CLI file securax and securax.cmd |
453 files print ./securax … |
muscle memory and every doc; a new name is added as an alias, the old one stays |
| Environment variables with the product prefix | 74 names in 139 files | a person's .env must keep working |
The local host name *.localhost, container paths under /etc and /var/lib, image names |
113, 9 and 7 files | running estates, volumes and pins |
| Storage keys and the service-worker cache name | guiding-map/ |
a changed key reads as lost data |
Store package id (from SITE_DOMAIN) and calendar UIDs |
governance/oskit.py, guiding-map/ops.js |
a new id is a new app; a new UID doubles every calendar entry |
So the package id is chosen once, before the first store upload, and never follows a later rename.
The command¶
./securax rename --dry-run # what would change if brand.env changed; writes nothing
./securax rename --to "NewName" --domain new.example
- Read the old values from
brand.envand the new ones from the flags (or from an editedbrand.env). - Refuse on a dirty checkout, on a name that fails
./securax privacy check, or on a name already on the frozen list. - Plan: classify every hit as display text (change), frozen identifier (keep), legal text (stop and tell the
person), or history (
CHANGELOG.md, released notes: keep). Print the plan with counts. - Apply on a new branch: write
brand.env, rewrite display text, then run the generators (features_sync.py,readme_sync.py,sync_status.py,render_core.py,node guiding-map/build.js). - Prove:
config check, fitness andmkdocs build --strictmust pass; then a second--dry-runmust report zero display hits left. It never commits to main and never touches a remote, a store listing or DNS.
The way back is git checkout of the branch. The command is built in slices: scan and ratchet first (B02), dry-run
(B03), then one kind of file per brief. Until it exists, the ratchet stops the count from growing.
3. Open-core split and protection¶
What is where¶
| Part | Licence | Where it lives | Why |
|---|---|---|---|
| The Life OS, the kit, the gateway and its rails, sync you host yourself, the CLI, every safety feature, SSO and export | FSL-1.1-MIT; each release becomes MIT after two years | this public repository | trust: a person can read what guards their data; the promise in LICENSING.md |
| The data that makes the free core useful (levers, checklists, the starter control library) | the same | this repository | an empty tool helps nobody |
| The UHNW edition's content and rules (family-office view, succession, multi-country packs), its design assets | commercial, closed | a private repository, added at build time as an overlay | it is what is sold; an overlay keeps one codebase |
| Hosted sync and relay, the entitlement check, payments | commercial, closed, server-side only | our servers | a copied repository does not copy a running service |
| Agents: prompts, evaluations, tuned routing, the human-professional desk | commercial, closed, server-side | our servers | the craft is in the tuning and the people |
Three rules keep the split honest:
- The free core never needs the closed part. It runs with every hosted service off. Brief B11 tests that no public file imports or fetches a closed path.
- Closed code never enters this repository, not even in history. The overlay hook is public; the overlay is not.
- Safety is never behind the paywall. What is sold is convenience, depth and people: hosting, the family-office view, a professional behind the AI.
Say "free to use, source available, MIT after two years". Do not say "open source" for the newest release; the release-readiness audit explains why, and its gate holds the wording.
What protects the business when the code is copied¶
Code will be copied; the licence allows it for one's own use. Protection is in layers, strongest first:
| Layer | What it stops | State | Gap |
|---|---|---|---|
| Trademark on the product name and the mark | a copy trading under our name, in a store or a search result | policy written (TRADEMARKS.md); no registration |
clear the name, then file in India (classes 9 and 42) and extend abroad through the Madrid system; owner and lawyer |
| Licence (FSL) | a competing commercial product from the newest code | in force since v0.4.0 | a lawyer's review; contributor sign-off so every line is ours to license |
| The hosted parts | a copy has no sync service, no agents desk, no entitlement | not built | build server-side from day one; nothing secret ships in the app |
| Code signing and store identity | a tampered or fake build passing as ours | release provenance built; store and desktop keys not yet made | section 1; the key register (B04) |
| Pace and trust | a stale fork | releases, audits, the public record | keep shipping; the two-year MIT delay means a fork is always two years behind or bound by FSL |
A fork is welcome to exist under the licence. It must take another name: section 2 makes that one command for them, which is also the best argument that our mark is ours alone. Who holds the licence and the mark (a company, not a person) is the owner's decision with a lawyer and a chartered accountant; it decides tax and liability too.
4. Single points of failure¶
Doc 131 keeps the estate's register. This table adds what a public launch brings. "Drill" means a test or exercise that fails when the repair does not work.
| # | Failure | Impact | Automatic repair or fallback | Drill that proves it | State |
|---|---|---|---|---|---|
| 1 | The static host is down or suspends the account | no new visitor can open the app | each device keeps its installed copy; a second static host with the same build | load the app from host two with host one blocked | fallback built; second host queued (second-static-host) |
| 2 | A bad release reaches everyone | broken screens or unreadable data | staged rollout; /previous/ build; data readable by the previous version |
publish a broken build to beta, roll back in one command, data intact | gap: B10, B06 |
| 3 | The updater key is lost | desktop copies can never update | two sealed offline copies; a second trusted key in the app | restore from copy two and sign a test update, twice a year | gap: B04, B09 |
| 4 | A signing key or CI secret is stolen | a fake build looks genuine | revoke and rotate; provenance tied to the workflow; pinned actions | rotate one key on a calendar date and ship | partly: provenance built; rotation drill gap: B09 |
| 5 | The one code account is locked or taken over | no release, or a hostile one | a private mirror; a second maintainer; passkey sign-in; protected main | cut a release from the mirror | owner step (gate repository-hardened) |
| 6 | A store removes the app or closes the account | no installs on that platform | the web app is the same product; direct download for Android and desktop | install and restore a backup on a phone with no store app | web built; gap: B12 (store facts as data) |
| 7 | The domain or DNS fails or lapses | links and sign-in break | the host's own address stays live; auto-renew; a calendar item | open by the fallback address; ./securax site live reports it |
built (SITE_LIVE); renewal cue gap: B13 |
| 8 | A person's device is lost or wiped | their data is gone | encrypted backup and sync; restore on a new device | restore drill on a second device (queue audit-round-1) |
built; drill owed |
| 9 | The sync service is down or overloaded at launch | devices stop agreeing | saves are local; sync retries with backoff; rate limits; a kill switch | load test at ten times the expected sign-ups; switch sync off and on | local-first built; limits gap: B14 |
| 10 | The model provider fails | AI answers stop | the gateway ladder falls to a local model, then to rules | pull each rung in the sandbox (the chaos journey) | built |
| 11 | The open builders stall | no cheap builds; all work falls on one paid assistant | a second provider; a mid-tier model for builds; small test-first briefs | a weekly golden brief that must go green unattended | gap (queue delegate-reliability, open-model-second-provider) |
| 12 | The owner is unavailable | decisions and renewals stop | the runbook, the queue, a second person with the sealed keys | a second person cuts a beta from the docs alone | gap: B15 |
| 13 | A dependency is hijacked or withdrawn | a poisoned or failed build | pins, the SBOM, a vendored offline copy, weekly watch | build with the network off from the cache | partly (gate actions-pinned-by-commit NO-GO) |
| 14 | The name is challenged or squatted | forced rename under pressure | the mark filed; ./securax rename ready |
run the rename dry-run in CI every week | gap: B02, B03; filing is the owner's |
| 15 | A legal or payment block in one country | the paid edition stops there | the free core is unaffected; a second payment route | none until payments exist | planned with the paid edition |
Correlated failures count: rows 1, 5 and 7 share one account today, and rows 3, 4, 5 and 12 share one person. The first to fix is the one that is permanent: row 3, then the one that is most likely: row 2.
5. From scratch to the top¶
A person does not jump from getting by to doing well. There are four stages, and each has one question. The same four describe the product: ship the amoeba, harden it, grow it, let it compound.
| Stage | The one question | Usual time |
|---|---|---|
| Survive | Could one bad month break us? | the first 6 months |
| Stabilise | Is the floor solid enough to stop worrying? | 6 months to 2 years |
| Grow | Is each year clearly better than the last? | 2 to 7 years |
| Compound | Does it now grow without my effort? | 7 years and on |
North Star targets, one per life area and stage. They are planning rules in common use, not advice. The data, with
where to confirm each one, is in guiding-map/levers/roadmap.json.
| Area | Survive | Stabilise | Grow | Compound |
|---|---|---|---|---|
| Money | 1 month of essential costs in the bank; no new high-interest debt; health cover in force | 6 months of essential costs; high-interest debt at zero; saving 20% of take-home pay; life cover where someone depends on you | saving 30%; investments worth 5 to 10 years of costs | investments worth 25 to 33 years of costs: work becomes a choice |
| Health | 7 hours of sleep on 5 nights a week; 150 minutes of movement a week; one baseline check-up | 150 to 300 minutes plus strength work on 2 days; a yearly check-up; key numbers known | every key number in its healthy range for 3 years running | the same numbers held for a decade; a recovery week every quarter |
| Career | income steady for 3 months; one page that says what you are good at | one skill others pay for, proven by a result; pay at the market rate | income from 2 sources; known for one thing in your field | work chosen for meaning; 2 people you have raised up |
| Family | everyone knows who to call and where the papers are; nominees named | a signed will; 3 unhurried hours together each week | a yearly family review; one shared goal reached each year | a succession plan reviewed yearly; the next generation runs part of it |
| Learning | 20 minutes on 5 days a week | one course or book finished each quarter, and used | one hard skill a year, shown in public work | you teach it; your notes outlive the week |
How the app uses it (briefs B16 and B17): it works out the stage from what the person already entered, never asks
again, shows the stage and the one next target for the weakest area, and marks each target reached as a win. A
person is in a stage per area; the overall stage is the lowest, because the weakest area is the constraint. Targets
carry a where tag where a country changes the number, and a review date like every other levers file.
What this page does not do¶
It builds nothing. It does not pick the company structure, file a trademark, buy a certificate or open a store account: those cost money or bind the owner, and each is named above as the owner's step.