Writing

Every AI Assistant Needs a Firewall and a Meter

What network engineers already knew about running AI, from a stack I built at home.

AI Governance Data Classification Self-Hosted AI AI Cost Control
An isometric home study at dusk: one computer at the centre sends data along four coloured lanes; two stay in the room, two pass through a glowing gateway and a brass meter towards clouds outside the window.
Two lanes stay home. Two go out through the gate and the meter.

Most organisations already run AI they did not design: a plug-in here, a script there, an assistant someone connected to their mail. The question for leaders is no longer whether to use it. It is whether you can answer three things about it: what data leaves, what it costs, and who approved what it did. I built a private AI assistant at home to find out what it takes to answer all three. The tools were the easy part.

In two minutes

  • Ask three questions of any AI you rely on: what data leaves, what it costs, and who approved what it did.
  • Classify data first. Let the class, not the model, decide where data may go.
  • Put a firewall on what leaves and a meter on what it costs, and check both before the call, not after.
  • Teach the model you own: one cloud-checked lesson, about seven US cents, took my home model from 49.5% to 86.4% accuracy.
  • Keep the receipts. Every control should leave evidence an auditor can test.

By the numbers

1 6 4 0 49.5% to 86.4% 32 to 2
graphics card shared by every job routes, from a model at home to free and paid cloud services data classes, each with its own rules for where it may go inbound ports opened at home accuracy of the home model after one cloud-checked lesson false alarms, after the same lesson
The path of one question: phone, private network, sign-in gate, Sarathi, classification gate and router, then the home model or a cost check and a cloud route, with every step recorded in a ledger that never holds content.
The path of one question. Default is no.

My AI assistant works from my phone, runs at home, and asks before it spends

I am standing in a queue with my phone. I open a page served from a machine at home and ask my assistant to summarise overnight alerts from my home lab. The answer comes from a model running on my own hardware. Nothing left the house. The cost counter reads zero.

That assistant is called Sarathi, the charioteer: my personal equivalent of Jarvis. It runs forty automated routines, chooses between a model at home, a pool of free cloud allowances and four paid cloud services, and helps with my personal projects.

This week I audited it the way any careful reviewer would, and found two things a formal audit would have written up. The more uncomfortable one: several self-hosted tools that were safe only because they answered on the machine itself became reachable from every device on my private network the moment I made them available to my phone. No sign-in. Nothing went wrong. But "nothing went wrong" is not a control.

If that can happen in a carefully built one-person setup, it can happen anywhere, at a larger scale, in tools nobody has inventoried.

The assistant I built at home, and the controls that let me trust it

Every tool I chose has a strength that made it worth choosing and a risk that comes with the same feature. A model at home keeps data private; it also answers anyone who can reach it. Private networking removes open ports; it also makes "on my network" feel like "trusted". An automation platform connects everything; it also holds the keys to everything.

Controls do not make that inherent risk disappear. They bring it down to a residual risk that someone owns and can show evidence for. Leaders should ask for that evidence. Auditors will. (Each tool's strengths, risks and controls are set out in Appendix A.)

The Sarathi command centre: machine health, stacks, upcoming runs, the flow graph, the run pulse and the model panel.
The live command centre. Private labels are redacted and shown as bars.

Start with the data, not the model

The decision that made everything else simpler was to classify data before choosing where it can go, and to make that classification the gate every request passes through.

Class What it covers (illustrative) Where it may go How it is enforced
Public Published articles, public filings, news Any route: home, free cloud allowances, or paid cloud within the cost cap Checked at the gate like everything else
Internal Operational signals: job health, run times, error counts Home model or a paid cloud route, after the gate; never a free allowance Gate check; never carries content from the classes below
Private My own decisions, unpublished drafts, notes Home model only, unless a reduction step turns it into Public and the gate re-checks the result The router will not route above the class; the gate drops anything that still looks private
Personal Anything that identifies a person: names, account and identity numbers, mail Home model only. No exceptions, no reduction route The routines that touch it have no cloud route at all; the gate blocks identifiers on every cloud-bound payload
Four data classes and where each may go: Public anywhere, including free allowances, within the cap; Internal home or paid cloud routes, never free allowances; Private home only unless reduced to Public and re-checked; Personal home only, with no cloud route at all.
Four classes, four ceilings.

Every routine has a ceiling set by the most sensitive class it handles. The router will not send its work anywhere that ceiling forbids. The gate then inspects every payload that is about to leave and drops it, logging only which rule fired, if it finds something above the ceiling. Ceiling, routing and inspection: three checks, so a single mistake is unlikely to become a leak.

A gate that matches patterns only catches the shapes it knows. That is why Personal data does not rely on the gate at all: the routines that touch it have no cloud route to take. Where it matters most, structure beats detection.

This is the same idea as network segmentation. You do not trust traffic because of where it came from; you decide what each zone may reach, and you inspect at the boundary.

What network engineers already knew about running AI

Most of the hard problems in running AI safely were solved, in another form, by the people who run networks and computers. I borrowed six of their ideas.

Network or computing idea What it becomes in an AI assistant
Routing table with costs and failover The router: home model first, cloud routes in order, and only where the data class allows
Firewall: deny by default, inspect, drop, log The classification gate on everything leaving; the sign-in gate on everything arriving
Scheduler sharing one processor The time-slicer sharing one graphics card across many jobs
Circuit breaker The cost cap, which trips before the budget burns
Operations centre wall One live picture of every routine, job and model call
Change advisory board A structured challenge before anything ships

1. Local first, cloud when it earns it

A network router sends traffic down the cheapest route that works and switches when a link fails. Sarathi does the same with questions. The model at home is the default. A question moves to a cloud route only when the home model cannot handle it well, and only if its data class allows that route. If the home model returns an answer that fails a basic check, the router treats it like a dead link and tries the next permitted route.

Second in line is a pool of free cloud allowances. Free usually means your data pays: a free service may keep or learn from what it is sent. So the free route takes Public data only, and the router checks that before anything is sent. One rule turns a saving into a controlled saving.

The router strip: calls and spend per route for the day, from the home model to the paid cloud routes.
Today on the router: most calls stay home; cloud spend is counted per route. Live screen, redacted.

For leaders: most questions cost nothing and never leave. You pay for cloud intelligence only where it changes the answer. (How it works)

2. Gates are firewalls

A firewall decides what may pass, inspects it, drops what breaks the rules and keeps a record. Sarathi has two such gates. The classification gate sits on everything leaving: it checks each payload against its ceiling and drops anything that carries names, account or identity numbers, or other Personal or Private content. The sign-in gate sits on everything arriving from my phone: no valid sign-in, no answer. Both fail closed: if a gate cannot make its check, the answer is no. That trades some availability for safety, and for data like this it is the right way round.

For leaders: the default is "no". Data leaves only when it has been classified, checked and allowed. (How it works)

3. One graphics card, many jobs

A computer shares one processor among many programs; a network shares one link among many conversations. I have one graphics card and several large models that do not fit on it together, and loading a model takes time. Left alone, two jobs on different models would spend most of the day swapping.

Because Private and Personal work can only run at home, local capacity is a control, not a convenience. Sarathi's time-slicer makes every job queue for its turn, groups work by model, lets interactive questions jump ahead of background work, and gives higher-value work a longer turn while making sure nothing waits forever.

For leaders: one machine serves every job, and the most sensitive work is never squeezed out by the least important. (How it works)

4. The meter is a circuit breaker

A circuit breaker trips before the wiring burns. The cloud routes sit under a hard monthly cost cap. As spend approaches the cap, the meter moves through stages, normal, tight, throttle and stop, and each stage admits less: first everything, then only important work, then nothing that costs money. The check happens before every paid call, not when the invoice arrives. The cap never overrides the data class: if a cheaper route is not allowed for a piece of work, the work waits or runs at home.

For leaders: AI spend with a ceiling you set, enforced in advance, with a record of every decision to spend. (How it works)

5. The operations wall

Network operations centres put the whole estate on one wall because people see patterns faster than they read logs. Sarathi's command centre draws every routine, scheduled job and dependency as a live picture, with machine health, the last day's runs and which route each job took. A Private job that ever appeared on a cloud route would stand out at a glance.

The flow brain map: every routine and dependency drawn as a graph, with a legend for sources, stacks and outputs.
The brain map: every routine and what it depends on. Private routine names are redacted.

For leaders: one screen answers "is everything working, and is anything going where it should not?"

6. A change board you can carry: 12PCR

Well-run networks change through a change advisory board: nobody pushes to production because they feel confident. My equivalent, a method I devised for my own projects, is a twelve-person challenge review: a panel of defined perspectives that argues a decision before I make it. For anything that touches data, its first question is the class. It runs as a reusable skill, so the discipline is there at eleven at night as well as at nine in the morning. Nothing in this setup publishes, spends above routine or changes its own rules on its own; routines propose, a person approves.

What to take away

If you lead an organisation: ask the three questions. What data leaves, and who decided it could? What does it cost, and what stops it before the invoice? Who approved what it did? If the answers are not on one page, you have AI you do not control.

If you lead audit: classification is the anchor control, and the hardest one to evidence after the fact. It is also the control that makes the others testable. Start there, then test the gate, the ceiling, the cap and the approval trail. The evidence is cheap to produce if the system was built for it, and very expensive if it was not. (The control register)

If you build: none of this needs a vendor platform. The practitioner's journal below shows how it came together, and what went wrong on the way.

From the practitioner's journal

One GPU, six routes, no inbound ports

The stack is four parts: an open-source automation platform I host myself (Activepieces), a model server on my own graphics card (Ollama), private networking to my phone (Tailscale), and cloud services, free and paid, behind the router and the cost cap. Every one of them is good at something that also makes it risky by default. The automation platform holds credentials and runs code. The model server has no sign-in of its own, and researchers counted well over a hundred thousand of them open to the internet this year. Private networking makes "on my network" feel like "trusted". Cloud models mean data leaving and money spent. None of these risks is exotic; every one of them is the tool's default. Appendix A sets out each one with its control and what risk remains.

The flow universe: a 24-hour radial clock with every scheduled routine placed at its run time.
Forty routines on one 24-hour clock, sharing one graphics card. Names redacted.

Spend once, improve forever

The home model handles most of the work, so improving it is worth more than any cloud upgrade. The method is simple enough for any team. I asked a frontier cloud model to check 220 public news items once, which cost about seven US cents, and rewrote the home model's instructions against that answer key. Its accuracy at spotting relevant items went from 49.5% to 86.4%. False alarms on irrelevant news fell from thirty-two to two, with no increase in missed alerts. It also ran 2.8 times faster, partly because clearer instructions produce shorter, cleaner answers. The honest caveat: the answer key reflects the new definitions, so the test favours them.

The same pairing works in reverse. When I reviewed my published articles, the cloud model found the issues and the home model sorted each one: wrong on the day, changed since, could not confirm, or polish only. Where the two disagreed, the report said so. A rule in code stopped any finding that rested only on "I cannot confirm" from being treated as an error.

The home model is not free: the hardware and the power are the bill. What it removes is the meter on every question.

Two findings from my own audit

A key in plain sight. One automation routine called a self-hosted service on my home server with its access key written into the routine itself. Anyone allowed to edit routines could read it. The key now lives in the platform's secure store, where a routine can use it without anyone seeing it, and the exposed key was replaced.

Private became shared. Three self-hosted tools on my home server answered only on the machine, which was their whole security model. Making them reachable from my phone made them reachable from every device on my private network. The fix was the sign-in gate, added to each tool, failing closed. The test is repeatable: from another device on the network, without a session, every tool must refuse. While I was there, I took the automation platform off the private network entirely, locked the network so a new device needs a signature from one I already trust, and blocked the machine's file-sharing services on the private network interface.

Both surfaced while mapping my own setup, not from an incident. A weekly review now runs on a schedule: look first, change nothing, then fix, park or drop. The schedule is the control.

You do not remove inherent risk. You engineer it down and keep the receipts.

The tools in this setup are good and getting better every month. What made them safe enough to put on my phone was not a new product. It was a classification scheme, a routing table, a firewall rule, a scheduler, a circuit breaker, a wall display and a change board: ideas older than most of the people now building with AI.

Borrow them. Then audit yourself before someone else does.


Appendix A: the practitioner's ledger

Tool Inherent strength Inherent risk Control Residual risk
Activepieces, an open-source automation platform I host myself Connects hundreds of services; open code; runs on my hardware Holds credentials and runs code. Several vulnerabilities were published in 2026, including one that let a signed-in user escape its sandbox (CVE-2026-73083, fixed in 0.80.0) Reachable on the machine only; kept current; credentials held in its secure store, never in routine code; handles Internal-class signals only A compromise of the platform still reaches every connected service; patching is the control that ages fastest
A model server at home (Ollama) Data never leaves; no per-question cost; works offline No sign-in by default. Researchers reported 175,000 to 300,000 such servers open to the internet in 2026, and a flaw nicknamed "Bleeding Llama" (CVE-2026-7482, fixed in 0.17.1) leaked memory to anyone who asked Reachable on the machine and its containers only; used only through the router; the only route for Private and Personal data Less capable than frontier models on hard problems, handled by routing and by improving it
Tailscale on my phone Remote access without opening anything at home to the internet; every device has an identity "On my network" quietly becomes "trusted". Private sharing (Serve) and public sharing (Funnel) are one setting apart, and Tailscale's 2026 bulletins (for example TS-2026-002 and TS-2026-008) covered access-control and denial-of-service issues, since fixed Private sharing only; every tool reachable from my phone asks for a sign-in with a second factor and refuses if that check cannot run; new devices need a signature from a trusted one A lost, unlocked phone with a live session; mitigated by short sessions and removing the device
Free cloud allowances: a pool of providers with free API quotas No cost for public work; spreads load Free often means the provider may keep or learn from what it is sent; quotas change without notice Public class only, checked before anything is sent; daily ceilings per provider counted at home; falls through to the paid routes when used up Public content reused by a provider; accepted by design
Cloud models: the Anthropic API under a hard monthly cost cap, then Claude on a subscription used within its terms, DeepSeek and Gemini The strongest reasoning, for the hardest questions Every call is data leaving and money spent: the two risks OWASP's list of AI application risks names as sensitive information disclosure and unbounded consumption Public and Internal data only, after the classification gate; cost cap checked before each call; every call recorded Provider retention and outages, accepted and documented

Appendix B: under the bonnet

B1. The router

Six routes in a fixed order (home, the free pool, then four paid routes); per-routine ceilings set by data class; free allowances for Public work only; validation failures escalate; every attempt, success or failure, written to a ledger with route, model, size and cost, never content.

A sketch of the idea, not the code:

def route(task):
    ceiling = CEILING[task.data_class]          # Personal and Private: home only
    for r in ROUTES:                            # home first, then cloud in cost order
        if above(r, ceiling) or not meter.allows(r, task.kind):
            continue                            # class first, then cost
        if r is not HOME and not gate.clean(task.payload, task.data_class):
            ledger.drop(rule_only=True)         # log the rule, never the text
            continue
        answer = r.ask(task)
        if valid(answer):
            ledger.add(r, task, answer.cost)
            return answer
    return hold(task)                           # fail closed: wait, never leak

B2. The gates

Batch jobs are checked request by request, so one bad item is dropped without sinking the rest. Drops are logged by rule, never by content. The sign-in gate covers every tool that has no sign-in of its own; tools with their own sign-in keep it. When the sign-in service is down, so is remote access.

B3. The time-slicer

A ticket queue shared across processes; priority bands for interactive, batch and background work; value-weighted turn lengths with fair share, so high-value work keeps the card longer without starving anything; a drain mode before planned restarts. One model handles triage of my own mail, news classification, review of my own drafts and my questions, switching on the fly.

B4. The meter

A daily allowance derived from the monthly cap; categories of work admitted at each stage; a kill switch per provider. A week into the cycle, after reviewing thirty-seven published articles, testing a model and running several batch jobs, spend was a few dollars against the cap.

Appendix C: the control register

References point to where each control sits in frameworks practitioners already use; they are illustrations, not conformity claims. Evidence describes the kind of record that proves the control works, not records from my own setup.

# Control Type Risk it reduces Where it sits Evidence an auditor would ask for
1 Every data set and routine carries a class: Public, Internal, Private or Personal Preventive Data handled without anyone deciding how sensitive it is ISO/IEC 27001:2022 A.5.12 classification, A.5.13 labelling; NIST CSF 2.0 ID.AM-05; ISO/IEC 42001 Annex A.7 data for AI systems A register of routines with their ceilings; the router refusing a route above a ceiling when tested
2 Routing ceilings follow the class: Private and Personal never take a cloud route, and free allowances take Public only Preventive Sensitive data sent to an outside model ISO/IEC 27001:2022 A.5.14 information transfer, A.5.23 cloud services; OWASP LLM02:2025 Router configuration; ledger sample showing every Private and Personal job on the home route only
3 A classification gate inspects every cloud-bound payload and fails closed Preventive and detective A mislabelled routine or a stray identifier leaking ISO/IEC 27001:2022 A.8.12 data leakage prevention; NIST CSF 2.0 PR.DS-02 Gate rules; drop log showing rule tags only; a test payload with a known identifier, dropped and logged
4 Reduction steps that turn Private into Public are re-checked by the gate Detective Redaction that misses something ISO/IEC 27001:2022 A.8.11 data masking Redaction rules and their tests; gate re-check on reduced output
5 Every model server and self-hosted tool listens on the machine only Preventive Tools reachable by anyone who finds them ISO/IEC 27001:2022 A.8.20 network security, A.8.22 network segregation Listening-port report; a connection attempt from another device, refused
6 Remote access is private sharing only, behind a strong sign-in that fails closed, and new devices need a trusted signature Preventive "On my network" treated as "trusted" ISO/IEC 27001:2022 A.5.15 access control, A.8.5 secure authentication; NIST CSF 2.0 PR.AA-01 and PR.AA-05 Sharing configuration showing no public exposure; a request without a session, refused; network lock status
7 No credential lives in routine code Preventive Keys readable by anyone who can edit ISO/IEC 27001:2022 A.5.17 authentication information, A.8.2 privileged access Export of routines searched for keys; secure-store inventory; record of the last key rotation
8 A hard cost cap is checked before every paid call Preventive Runaway spend; denial of service by cost OWASP LLM10:2025 unbounded consumption; NIST AI RMF MANAGE Meter stages and their thresholds; a forced "stop" showing paid calls refused; spend within cap
9 Every model call is recorded with route, model, size and cost, never content Detective No way to reconstruct what the system did ISO/IEC 27001:2022 A.8.15 logging, A.8.16 monitoring Ledger reconciled to the provider's usage report for the same period
10 Local capacity is protected for work that may not leave Preventive Sensitive work delayed or pushed to unsafe routes ISO/IEC 27001:2022 A.8.6 capacity management Queue policy; turn lengths by priority; a sample day showing no sensitive job waiting past its limit
11 Routines propose; publishing, payments and rule changes need a person Preventive The system acting beyond its brief OWASP LLM06:2025 excessive agency; ISO/IEC 27001:2022 A.8.32 change management; NIST AI RMF GOVERN Approval trail for the last few publishes and rule changes
12 Content read from outside (news, web pages, documents) is treated as data, never as instructions, and routines that read it cannot act on their own Preventive Planted text steering the assistant or pulling data out OWASP LLM01:2025 prompt injection; ISO/IEC 42001 Annex A.6 AI system life cycle List of routines that read outside content and the actions each can take; a planted instruction in a test item, ignored
13 Software is patched on a schedule against published advisories Preventive Known flaws left open ISO/IEC 27001:2022 A.8.8 technical vulnerabilities; NIST CSF 2.0 PR.PS-02 Running versions compared with vendor advisories; date of the last review

About this piece: built in my personal space, on my own data, with my own views. It is a personal project, written for anyone who wants to use AI with confidence, and not related to my employment. I built it on my own time and equipment, with personally paid accounts, and it works only on data I own. The views are my own, shared to help others use AI well, and are not related to my employment or to any organisation's practices. Nothing here is investment, legal, regulatory or professional security advice; framework references are illustrations, not compliance or conformity claims. Products are named for identification only; I have no commercial relationship with any vendor mentioned, and this is not an offer of services. Vulnerability and statistical references are to the public sources below, checked on 19 November 2026.

Sources: NVD and vendor advisories for Activepieces CVE-2026-73083; Cloud Security Alliance and The Hacker News on exposed Ollama servers (2026); SecurityWeek on CVE-2026-7482; Tailscale security bulletins TS-2026-002 and TS-2026-008; OWASP Top 10 for LLM Applications 2025; ISO/IEC 27001:2022 Annex A; NIST Cybersecurity Framework 2.0; NIST AI Risk Management Framework and its crosswalk to ISO/IEC 42001.

Collaborate

Corrections, counterexamples, and build ideas welcome. [email protected] • How to collaborate.

Disclosures

Personal project and personal views. Not legal, regulatory or professional security advice. No vendor relationships. Full disclosures.

What ऋतPulse means

rtapulse.com (ऋतPulse) combines ऋत (ṛta / ṛtá), order, rule, truth, rightness, with Pulse (a living signal of health). It reflects how I think GRC should work: not a quarterly scramble, but a steady rhythm, detect drift early, keep evidence ready, and translate risk into decisions leaders can act on.