The AI couldn’t read anything
To ask “what have I already written about this?” I had to copy and paste. No off-the-shelf tool let an AI read and write my data under rules.
My life-management system: tasks, notes, calendar, money and memory in a dashboard I host myself, with an MCP server so AI can read and write in it. It exists in two versions: one on Supabase at zero cost, and one on Laravel on my own server.
LifeOS is a personal system: the person with the problem was me. I use AI all day, but my tasks, notes, calendar and money lived in places it could not reach.
To ask “what have I already written about this?” I had to copy and paste. No off-the-shelf tool let an AI read and write my data under rules.
Whatever an AI learns about me lives inside one client or one model. Switching models meant starting from zero.
A credit purchase does not leave the account today: it becomes a bill. Typical apps treat it as an immediate expense, and the month’s balance is fiction.
Then came the second problem: v1 solved all of that at zero cost, but it had caveats it documents itself: plain-text passwords, a GitHub token in the browser, no limit on password attempts and no trail of what the AI changed. v2 was built to close those gaps without changing a single screen.
I use it every day, often just by talking to Hermes on Telegram: “spent 80 at the grocery store” becomes a transaction, a lesson becomes a memory.
The screens are identical in both versions. The migration rule was: the browser must not notice that the server changed. What changes is where data lives, how passwords are stored and how the rules are organised.
| v1 · Supabase | v2 · Laravel | |
|---|---|---|
| Runs on | GitHub Pages for the screens and Supabase’s free tier for the data | Docker on my own server: nginx, PHP-FPM and PostgreSQL 16, exposed through a Cloudflare Tunnel |
| Back end | 18 Edge Functions in TypeScript plus database functions | 17 Laravel modules; each Edge Function became a module with its own Actions |
| Contract | POST {token, action, …} → {ok: true, …} | The same envelope, on the same /functions/v1/lifeos-* paths |
| Screens | 14 pages of plain HTML, CSS and JS, no framework, no build step | The same pages, served by Laravel; only the config, the login and the publish screen changed |
| Passwords | Stored in plain text (v1 documents this) | Hashed passwords, encrypted secrets and rate limits on password routes |
| Publishing the blog | A GitHub commit using a personal token kept in the browser | Done on the server, with no token in the browser |
| Audit | None | Every change lands in audit_logs, an insert-only table |
| MCP | One TypeScript Edge Function with 24 tools | A hand-rolled JSON-RPC server in PHP with the same 24 tools, checked against a reference file |
| Instances | One Supabase project per person | Multi-tenant: each instance is an entity, created with lifeos:nova-instancia |
| Cost | Zero | A server of my own |
v2 was the first real system built on my modular Laravel template. These are the decisions that mattered most.
v1 was already client/server with a single contract. Keeping the paths, envelope, error codes and HTTP statuses meant the screens I use daily did not need rewriting.
The new back end carries Supabase-named routes and a Resource per model that maps prefixed columns back to the old keys.
The MCP tools/list is compared with a reference file. The PHP finance summary is compared with the original Node version, backed by a mutation test. Screens were checked by hash.
The suite runs against real PostgreSQL (arrays and partial indexes), not in-memory SQLite. It is slower.
laravel/mcp did not allow dynamic instructions. In LifeOS, the index of long-term memories goes into the server instructions on every connection.
I maintain the transport myself: auth through the URL path, response shapes and errors.
In v1 no page imports a function from another. Touching one screen never breaks its neighbour, and an AI can write a whole page, because it is just HTML.
Repetition. The reserve rule, for example, lives in three places that must move together: the PHP service, financas.js and lifeos.js.
Nothing in LifeOS is slow. An extra worker and Redis would just be more to run on the server.
It is a declared deviation from my own template. If heavy work shows up, the queue comes back.
Because I use the system every day, bugs surface fast. Nearly all were about caching, environment or network, not business rules.
LessonEvery path that paints from cache must restore all of the state. No boot shortcut that skips the network.
export DB_PASSWORD=…). The production compose file reads ${DB_PASSWORD} from the environment, so the rebuild carried the wrong password into the container.env DB_PASSWORD=… command, which only applies to that process. The rule is written into the project skill.LessonAn exported variable leaks into everything that runs later in the same shell.
error code: 1010, while the same request worked with curl.urllib User-Agent.LessonError 1010 comes from Cloudflare, not the app. Before debugging the server, check who actually answered.
LessonWhen an AI writes into the system, a screen cannot trust only what it has already seen.
Counts from the code, the test runs and the migration document. No personal data.
The v2 suite reports 37 passed tests and 213 with an environment warning (no .env file in the checkout), none failing.

Fibromyalgia: enrollment, a QR-coded ID card, follow-up and indicators for a municipal health network.

My life-management system, run by talking to AI. Two versions: Supabase and Laravel.

Complementary activities, extension and internship hours under the course rules, for students and faculty.