Three tools, one voice

I built three tools for my own life. They run side by side on an old laptop at home, they pass each other small typed messages, and only one of them is allowed to talk to me.

The three came one at a time, each for its own problem.

Nido reads the school’s chats and my mail, and tells my wife and me what needs doing, on WhatsApp. Caixa watches the household’s cash and looks ahead to the day it’s lowest. HQ keeps my projects and paperwork on one page, with whose move each thing is.

Each worked alone. Then they started needing each other. HQ wanted to know when an accountant replied, and Nido already read the mail. Caixa wanted to warn me about a payment, and Nido already knew when I was asleep. I wanted to ask about money in the same chat where I ask about school.

The easy answer was one big app. I connected them instead, and kept the connection as small as I could.

Follow a message

Pick one and watch where it goes.

mail and chatsthe bankHQprojects, threadsCaixahousehold cashNidoreads, speaksMeon WhatsApp

Every route ends the same way. HQ and Caixa never reach me directly. They tell Nido, and Nido tells me.

The people and amounts in the figure are invented. The routes are the real ones.

One voice

Three tools with three sets of notifications is how a phone becomes noise. So only Nido may speak, and the others say how much it matters: now, or brief.

A message marked now still waits out the night. One marked brief is held and folded into a message I was getting anyway: HQ’s lines into the morning one, Caixa’s after the evening one. Each line starts with who it’s from, so I always know whether it’s about school, money or work.

It also means one place decides when I’m interrupted. Quiet hours live in Nido, so the other two can’t get them wrong.

Small typed messages, not a shared database

The tools don’t read each other’s data. They send messages with a kind, and each kind has a fixed shape.

{
  "id": "01JC8…",
  "kind": "notify",
  "from": "hq",
  "reply_to": "",
  "depth": 0,
  "body": {
    "text": "Marta replied: she needs the October invoices.",
    "link": "https://hq.example/t/AD-T1",
    "urgency": "brief"
  }
}

There are about a dozen kinds. From Nido to HQ: a mail, an answer to a poll, a request I typed, search results, a note that a draft was saved. From HQ to Nido: contacts, notify, ask, draft, query, remind, brief. From Caixa to Nido there is exactly one, notify, and anything else is refused.

A short list of kinds is the whole design. Nido can’t be asked to “do something” by another tool. It can be asked to do one of a few things, and for each I decided ahead of time what happens.

The contract is one page. Both sides implement exactly that page, and it changes there first.

What the wire refuses

Two programs that can message each other can also loop, flood or repeat. Each of those has a rule, and the rules are in code on both ends.

TwiceEvery message has an id. The receiver remembers ids for seven days and answers a repeat with “seen it”.
LoopsA message caused by another carries a depth one higher. Past three, it’s refused.
FloodsMore than 60 messages an hour from one sender, and the rest are turned away.
OutagesThe sender keeps an outbox and retries, 5 seconds doubling to 10 minutes. After a day the message is dropped and logged.
LogsEach side logs the id, kind and size of every message. Never the body.

None of this is clever. It’s the list of ways the link could embarrass me, written down before it could.

Nido’s first rule is that a message reaches a person only if they could already see where it came from. A link to two more tools is two more ways to break that rule, so the rule travels with the data.

Before a mail goes to HQ, it passes the same guard as a message to a person would: is this mine alone? A school thread my wife and I share never qualifies. And HQ’s own database refuses to store anything for the family space, so even a mistake upstream has nowhere to land.

Money is stricter. Nido may read Caixa’s summary only while answering me, in my own chat with it. In a family group, the file isn’t there to be read. The token that opens the summary opens nothing else in Caixa.

The answer carries a label saying it came from Caixa, and the guard only lets that label reach one person.

The models sit at the edges

Nothing on the wire is written by a model. The messages are built by code, from fields.

The models are at the ends, and each is boxed in. Nido’s triage fills a form. HQ’s overseer returns a list of proposed actions that code sorts into three piles: do it, ask first, never. When I ask about money, the model is handed a finished text file. If Caixa is down, the file says so and the model is told not to guess.

A draft reply to my accountant shows the whole chain. The overseer proposes it. I allow it. HQ sends Nido a draft message. Nido puts it in my mail’s Drafts folder and reports back. Nobody in that chain can press send except me.

Each one still works alone

The links are optional. Take the token away and that direction switches off: the endpoint answers as if it didn’t exist, and the tool carries on with its own job.

That was the test I cared about. I can stop Caixa for a week and Nido still reads the school chats. If HQ breaks, the family’s evening brief still goes out. Three small programs that can each be understood, restarted and rolled back on their own.

What I’d repeat is the one-page contract. The second link went live the same day as the first, because Caixa’s alerts could reuse the envelope and the listener that were already written down.