The daily checkup
Every morning at 8, one job checks 20 things about the box. It fixes what is safe to fix. It emails the owner only if something is still wrong. Silence means all is well.
Where you see it
Most days, nowhere. That is the point. When something is wrong, the owner gets one email that says the box needs attention. The details sit on the Daily checkup card on the Health tab. The email is the "come look" ping. The tab is where the owner acts.
The Health tab after a clean checkup. Green rows say "all clear".
The card is written on every run, even quiet ones. So a quiet week and a dead week never look the same.
What happens, step by step
- CodeA timer starts healthcheck.pyAt 8 a.m.
- CodeIt runs all 20 checksListed below.
- CodeIt applies safe, known fixesThen checks that each one worked.
- StoreIt writes its cardFor the Health tab.
- GateStill wrong? One email, one reportA single batched report goes to the fixer agent, Otto.
- YouRepeat for three days? Louder alarmA repeat means a real cause.
- At 8 a.m. the timer starts
healthcheck.py(the checkup). - It runs all 20 checks below.
- For anything with a safe, known fix, it applies the fix and checks that it worked.
- It writes its card for the Health tab.
- If anything is still wrong, it sends one email and files one batched report to Otto.
- If a repair was needed three days running, it raises a louder alarm. A repeat means a real cause.
| # | What it checks |
|---|---|
| 1 | The agent's own heartbeat is fresh. |
| 2 | Claude is still signed in. The box signs in with a one-year token. If that token stops working, the box drops back to its monthly sign-in so it stays up, and the checkup says so. It also warns 30 days before the year ends. A new token needs the owner to sign in to Claude once. |
| 3 | The Google logins (mail and calendar) still work. |
| 4 | A tap-to-reconnect did not quietly half-fail. |
| 5 | Disk space. |
| 6 | Memory pressure. |
| 7 | No leftover browser programs are piling up. The repair is box-fresh. |
| 8 | The box's files match the folder in git (drift). If the box is only behind, meaning every different file is an older saved version, Otto puts the saved version live and the owner gets no email. A change made on the box by hand, or a box still behind the next day, still emails the owner. |
| 9 | Secrets match between machines. |
| 10 | The six always-on services are running: sign-in, the agent page, Discord, the tool door, the WhatsApp bridge, the web server. |
| 11 | Every timer still exists and is still scheduled. |
| 12 | The chat page answers from the open internet. This catches an expired certificate or bad address setup that inside checks miss. |
| 13 | The overnight morning prep finished. |
| 14 | The help-bot gap check ran. |
| 15 | The inbox assistant is alive: the email router is running, still has the rule that starts the assistant, and has been watching its inbox within the last day. The assistant has no connection of its own; the router starts it when mail arrives. It also runs once a day from the checkup, in case the router was down. |
| 16 | WhatsApp is still paired and fresh. |
| 17 | WhatsApp can actually send. |
| 18 | A login borrowed from another machine still works. |
| 19 | The canary alarm is quiet. A canary is a fake secret planted in private files. If one ever shows up outside the box, the checkup says so first, before anything else. |
| 20 | No leftover screen-view programs are piling up. These are the helpers that let the owner watch the browser. One that never shut down is caught the same way as a stray browser, and the repair is the same box-fresh. |
Checks 13 to 15 and 18 watch routines from the reference install. A different owner's box watches its own.
What powers it
| Part | What it does |
|---|---|
healthcheck.py | Runs the 20 checks, applies safe fixes, writes the card, sends the email. |
agent-health.timer | Starts the checkup at 8 a.m. |
health_state.py | The shared card format every Health tab card uses. |
routine_report.py | Files whatever is left as one report to Otto. |
box-fresh | The repair it can run for memory and browser buildup. |
Why it works this way
The list above cannot go stale quietly. Each check has a short name. Every run, the checkup compares the names in its own code, on its Health tab card, and on this page. If one is missing from any of the three, it tells Otto, not the owner. Otto adds the missing row in plain words and the page is redeployed.
Health is "is it up", not "is it right". The checkup never judges whether the agent's answers are any good. That is a separate, scored test.
It only emails on failure, because a daily "all fine" email stops being read. Then the one that matters gets missed too.
Check 17 exists because being paired and being able to send turned out to be two different things. WhatsApp looked connected while no message could leave.
Check 12 tests from the outside in. Every inside check can pass while no one on the internet can reach the page.
Connected to
- The Health tab: where the card shows.
- Self-repair: the repair the checkup runs for checks 7 and 20.
- Otto, the fixer: who gets what the checkup could not fix.
- How changes reach the box: what check 8 compares against.