Skip to content

101 · A sandbox that proves more, with less of your time

Status: 🟡 Partly built. Built and tested: ./securax proofs ranks the claims a journey could prove next; any journey runs on demand in CI; every PowerShell script is parsed, linted and (where safe) run on a real Windows machine; chaos experiments on the everyday estate (seeded, always reverted) run nightly, and the watchdog now heals the Command Center and sync too. Mutation testing of the rails runs weekly with a ratchet. Two live nodes and a phone as a second device are built as journeys and wait for their first proof on CI. What the lights mean

The ask: the sandbox should test things it never could before, in the most prudent way, using what the best engineering organisations do. It should also cut the human steps, so the owner spends time on real life rather than on the estate.

1. What the sandbox could not prove, and why

The sandbox runs 46 journeys against the real stack on every change; a pull request runs only the journeys that guard the files it touches (lifecycle/impact.json), and the full set runs on main and every night.

The pages still amber mostly say the same thing: their proof needs something the sandbox never had. - A second machine: sync and failover between a laptop and a server (docs 86 and 91). - A second device: the Life OS on a phone (doc 58). - Windows: the PowerShell scripts were checked by reading only (docs 78 and 80). - Faults on the everyday estate: the game day breaks the k3s twin, not the compose estate people use daily. - Proof that the tests bite: a test suite that passes says nothing about whether it would catch a weakened rail.

2. What the best organisations do, and what we take

Who Practice What SecuRAX takes
Meta, Google Test impact selection: run the tests a change can affect Already in place (impact map); on-demand single-journey runs added so a fix is proved in minutes
Netflix Chaos engineering: a steady-state hypothesis, real-world faults, automated and continuous A chaos runner for the everyday estate, seeded so every failure can be replayed
Google (DiRT) Disaster drills that start safe, stop when the fix is not quick, and test people and process too Every fault has a recovery time limit and is always reverted; the existing restore drill and tabletops stay
Google Mutation testing on the code that matters, reported at review Mutation testing of the safety rails, with a ratchet so the number of surviving mutants can only shrink

3. Built in this round

  • ./securax proofs (governance/proofs.py): reads the status lights and the journeys, and lists the claims a journey could prove next, ranked (an unproven claim before a plan on paper), with the closest existing journey. Choosing what to prove next no longer needs a person.
  • Any journey on demand: the e2e workflow takes a journeys input, so one journey runs on GitHub's machines in about 5 to 10 minutes instead of the full 40.
  • Chaos on the everyday estate (lifecycle/chaos.py, ./securax chaos, journey estate_chaos):
  • Normal behaviour first: the gateway is ready, a chat question is answered, the Command Center and sync serve. An experiment never starts on an estate that is not normal.
  • The faults: crash or freeze the gateway, crash the router, the Command Center's web server or sync. A seed picks three, so each night varies and any failure replays exactly (./securax chaos --seed N).
  • Recovery: the watchdog must heal and the estate must be normal again within the fault's time limit; the fault is always reverted, and the run stops at the first one not healed.
  • What it found before running once: the watchdog checked only the gateway, so a dead Command Center or sync was never healed, and up leaves a frozen container frozen. The watchdog now checks all three and unfreezes before it heals.
  • ./securax chaos on your own machine shows the plan only; --run really breaks things, one at a time.
  • Mutation testing of the safety rails (tools/mutate.py, weekly workflow mutation): one small change at a time is made to the rail code (guardrails, kill switch, identity, residency, allowance, the sync service's sign-in and guard), and the tests that guard it must fail.
  • What it found at once: the test that the "none" signing algorithm can never be configured passed for the wrong reason (a later, unrelated error); nothing checked a wrong-shaped AI control file, a malformed sign-in token, a weak signing key, or the sync guard's window edges. Each now has its test, and the sync guard's score went from 62% to 84%.
  • A ratchet, like fitness: the known survivors are listed with a reason (a missing test, or a change that cannot alter behaviour); a new one fails the run. 61 survivors in the larger files still wait for review.
  • The file under test is restored after every mutant and checked by hash; a journal restores it even after a killed run.
  • Windows scripts on a real Windows machine: the windows-scripts workflow parses and lints every .ps1 (PSScriptAnalyzer) and runs free-c-drive.ps1 in its report-only mode, weekly and on any change to a script.

4. Next, in this order

Step What it proves Target
Two live nodes in one sandbox Sync both ways, one node down then catching up, a conflict resolved the same on both 2026-10-31
A phone as a second device (emulated) HTTPS by name, installable, works offline, fits the screen, syncs to the laptop 2026-10-31
~~Mutation testing of the rails~~ done 2026-10-22: weekly, with a ratchet The tests would catch a weakened guardrail, residency, identity, kill switch, budget or sync guard ~~2026-11-07~~
Review the 61 survivors still marked "triage pending" (guardrails, identity, budget, residency, access): a test or a reason for each Every survivor is explained 2026-11-14

These three were started by build agents that stopped on a weekly usage limit; their partial work is kept and resumes after 2026-10-26.

5. What it changes for you

The estate proves more of itself every night and says plainly what it cannot prove. The messages that reach you are only the ones that need your hands: an account to open, a decision to make. Everything else is checked, repaired or reported without you.

Sources