Skip to content

Decisions

Why things are the way they are. Each entry says what was decided, why, what it cost, and what would make it worth revisiting.

Written in plain language on purpose. If a sentence here needs a glossary, it’s a bad sentence — rewrite it.

All entries dated 2026-08-16 unless noted.


1. The hub is a set of services, not an app

Section titled “1. The hub is a set of services, not an app”

Every client — Open WebUI, Home Assistant, the console, anything later — talks to the same inference server and the same tools. No single program owns the system.

Cost: more moving parts than one all-in-one app. Why anyway: if any one piece dies or gets abandoned, the rest still works. This has already paid off twice (see #2 and #3).

Tater is a capable all-in-one assistant platform: it runs models, voice, memory, and talks to Home Assistant. Rejected because it wants to be the system — Home Assistant becomes a plugin of Tater rather than an equal.

Two of its supporting repos were retired within about three months of each other while we were evaluating it, which is a lot of churn to build on.

What it genuinely has that we don’t: firmware for purpose-built voice satellites like the Sat1. That firmware reports to Tater’s own backend, so it can’t simply be borrowed. Revisit if: you want the satellite hardware more than you want the architecture, or Tater’s pace of change settles down.

3. Memory: Hindsight, after two false starts

Section titled “3. Memory: Hindsight, after two false starts”

The stack was originally built on OpenMemory. Upstream deprecated and shut it down.

Its replacement, Mem0, got as far as being written into the compose file before two problems surfaced. It publishes no image for the current server — their own compose builds from source and needs an init script, migrations and a bootstrap that prints an unrecoverable API key. And it has no MCP interface, so it needed ~400 lines of first-party shim to expose it and to stop the model choosing whose memories to read.

Hindsight does both natively. It ships an image with Postgres embedded, and its MCP server scopes each connection to one bank by URL, with no bank parameter on the tools. The shim was deleted.

Cost: a third backend change before anything ran. Some churn was self-inflicted — an image name was invented rather than verified, and a README search was mistaken for evidence of no MCP support. Why anyway: it is less code, less deployment, and the security property is upstream’s rather than ours to maintain. See how-memory-works.md.

4. Memory engines we looked at and passed on

Section titled “4. Memory engines we looked at and passed on”
  • Graphiti (from the Zep team) — better at facts that change over time (“Alice used to work at X”). Passed for now: it wants a graph database, and it calls the language model several times for every memory it stores. On a 24GB Mac mini that’s also answering voice in 1–2 seconds, that competes for the same hardware. Revisit if: tracking how facts change over time becomes something you actually want. Pair it with Kuzu or FalkorDB, not Neo4j.

  • Letta — mature, but it’s an agent framework that wants to run the conversation itself. That’s the same shape we rejected in #2.

  • keep — MCP-native and actively developed, but it has no concept of users at all, and its multi-user option is a hosted cloud service. It’s a good tool for agent memory; it just can’t separate people.

  • supermemory — MIT and popular, but its namespace is a containerTag passed as a parameter, which is the caller-supplies-identity pattern this design rejects. No published image either, and the hosted platform runs on Cloudflare, ruled out elsewhere in this fleet on privacy grounds.

  • Mem0 — see #3. Fine software; the deployment story and the missing MCP interface were the problem, not the memory model.

Note: most “best memory framework” comparison articles are marketing from companies selling one of the options — including at least one published by the company behind the backend eventually chosen. Their benchmark numbers were not used; the decision rested on the identity model, the deployment shape, and the licence.

5. There is a web console, and that’s allowed

Section titled “5. There is a web console, and that’s allowed”

The README says “no custom web frontend.” The full sentence also says: build UI only for things chat can’t express, and build it as a view over these same services.

Browsing memories, editing a persona, and managing plugins are things you can’t sensibly do by chatting. So the console exists — but it owns nothing important. If it vanished, no data would be lost.

The console can add and remove MCP servers. It does this by writing a file (registry/mcp-servers.yaml); a separate script on the host reads that file and starts containers.

Why not let the console run Docker directly: anything that can create a container can create one that has full access to the machine. There’s no way to allow “create a container” safely. So the web-facing part simply never gets that power.

What this buys: if someone breaks into the console, they can write a YAML file. That’s it. And every change is a file in git, so you can see what changed and undo it.

7. Staying on OrbStack (not Apple’s container tool, not Podman)

Section titled “7. Staying on OrbStack (not Apple’s container tool, not Podman)”

Apple’s container reached 1.0 in June 2026 and gives each container its own small virtual machine — better separation than OrbStack, which uses one shared VM for everything.

Passed because:

  • It has no docker compose support, and this whole stack is compose.
  • Its memory handling doesn’t reliably give RAM back to the host. On a 24GB machine that’s also running language models, that’s a real problem.
  • The extra separation was mostly answering a risk we removed in #6 anyway.

Podman on macOS also runs a VM, so switching there changes a lot and gains little. Revisit if: Apple’s tool gains compose support and the memory behaviour improves.

8. Voice shares one memory — now for only one reason

Section titled “8. Voice shares one memory — now for only one reason”

Originally this had two causes. One has gone away.

Gone: Home Assistant’s MCP client can only authenticate with OAuth — no tokens, no custom headers — which made per-person scoping impossible when the backend needed a bearer token. Hindsight puts the bank in the URL path, so HA is correctly scoped with no header at all.

Remains: a voice satellite cannot tell who is speaking.

So voice points at a shared household bank, and personal banks are never registered in Home Assistant. That is now a statement about microphones rather than about software.

Cost: none that is fixable in this layer. Revisit if: speaker identification becomes trustworthy — but see #9, which is not as simple as it sounds.

9. Speaker identification: useful, but not for deciding who sees what

Section titled “9. Speaker identification: useful, but not for deciding who sees what”

wyoming-voice-match is the best of the options examined — good model, fits our existing voice setup, and it cleans up audio by removing other voices before transcription. Worth adopting for that alone.

But it must not decide whose memories get read. It identifies a speaker by adding a tag to the transcript text, like [john] what's the weather. That tag lives inside the words sent to the model, which means anyone who says the right words — or any document the model reads containing that text — can claim to be someone else. It tells you who’s probably speaking; it doesn’t prove it.

Also: it adds 200–500ms on a CPU, and it’s least accurate on short phrases, which is what voice commands are.

Safe path if you want per-person voice memory later: strip the tag and pick the memory connection before the model sees anything, so the model never gets a say in whose data it’s reading.

Also evaluated: EuleMitKeule/speaker-recognition

Section titled “Also evaluated: EuleMitKeule/speaker-recognition”

A later candidate, and better built on the point that sank the first. It is a custom HA integration with a REST API and neural voice embeddings (Resemblyzer), and it reports a confidence score rather than editing the transcript. That satisfies the safe path above: the identity arrives as structured data outside the words, so no document and no clever phrasing can claim to be someone else.

It changes the delivery problem and not the underlying one. A voice embedding is evidence, not proof. Confidence around 0.95 means roughly one turn in twenty is wrong, and applied to memory routing a wrong turn is a disclosure, not an annoyance. The earlier cautions also stand: 200-500ms against a 1-2s budget, and worst accuracy on short utterances, which is exactly what voice commands are. Its README has no limitations section at all, which is not reassuring in something that makes identity claims.

Health at time of writing: 48 stars, MIT, last commit 2026-05-01.

So: adopt it for personalization, never for authorization. Greeting by name, preferring someone’s music, choosing a voice — being wrong there is merely irritating. Selecting a memory bank — no.

And note where it is actually needed. Decision 21 establishes that identity comes from the channel: a personal phone or browser session already answers “who is this” with something signed. Speaker recognition earns its place only on a shared satellite — the one channel authentication cannot reach — and there it may personalise while the bank stays household. It adds warmth exactly where proof is impossible, and is redundant everywhere proof exists.

10. Powerful integrations are allowed, but must be turned on deliberately

Section titled “10. Powerful integrations are allowed, but must be turned on deliberately”

ha-mcp gives a model 88+ tools over Home Assistant, including editing config files and creating automations. That’s genuinely useful and genuinely dangerous — especially anywhere the model reads outside content like email or calendar entries, which could contain instructions aimed at it.

Rather than ban things like this, the registry has a risk level. Anything above standard won’t start until someone writes down what it can do, who accepted that, and when. Turning it off again needs no ceremony.

The principle: your call, but make it on purpose, and leave a note for future-you.

The stack is spread across machines, not all on the mini.

  • Must be on the mini: oMLX (needs Apple’s GPU directly).
  • Should be near oMLX: memory — every memory written triggers model calls.
  • Already elsewhere: Open WebUI, on a VPS.
  • Chosen: mini — the console, so memory reads are local.

Cost of that last one: login uses Pocket ID, which runs on a VPS. If the internet is down, you can’t sign in to a console that is otherwise entirely local. Existing sessions last 8 hours, so brief outages don’t lock you out.

Also worth knowing: with the model at home and Open WebUI on a VPS, chat stops working if the link between them drops. Voice keeps working, because it’s all local. Voice is the more reliable interface, not the less.

12. The console lives in its own repository

Section titled “12. The console lives in its own repository”

The web console was extracted to a separate repo, novak-konzol. The registry it edits and the reconciler that applies that registry stayed here.

That division is the point. The registry describes what this stack runs, so it belongs to this stack; the reconciler is the only thing with power over containers, so it stays as far from the web app as possible. What moved out is just the user interface.

The entire interface between the two repos is one bind-mounted directory. The console writes a file. Something else, with no network exposure, acts on it.

The console is optional. Editing registry/mcp-servers.yaml by hand and running reconciler/reconcile.py is a fully supported path — the stack has no dependency on the console existing, and the deploy checklist treats it as a skippable section.

Cost: two repos to keep in step, and the console is now consumed as a published image rather than built in place, which means its CI has to work before it can be deployed. Why anyway: it’s a Next.js app with a different toolchain, different CI, and a different release rhythm from a pile of compose files — and making the boundary a repository boundary means it can’t quietly grow tendrils into the stack it’s supposed to merely view.

13. Three repos: core, integrations, console

Section titled “13. Three repos: core, integrations, console”

Extending #12. The split is now:

Repo Holds Why there
novak (srz) compose, docs, registry, reconciler The orchestration and the decisions
novak-integracije MCP servers and adapters Capabilities, replaceable individually
novak-konzol the web console A client, and optional

The dividing line is what a given install runs versus what exists to be run. The registry says “this machine runs memory and vikunja at these risk levels” — that’s per-deployment, so it stays in core. The integrations repo is the catalogue of things that could be run. Those are different questions and they change at different rates.

The reconciler stays in core because it’s the only component with power over containers, and it should sit as far as possible from anything a third party might contribute to.

Cost: three repos, and integrations are now consumed as published images — so an integration’s CI has to work before you can deploy it. Why anyway: “bring your own engine, hardware, integration” only works if adding one doesn’t mean editing the core. And a store needs a shelf.

14. MCP servers are defined in the registry, not in compose

Section titled “14. MCP servers are defined in the registry, not in compose”

Consequence of #13 that’s worth stating separately, because it closed a real piece of debt: docker-compose.yml no longer contains any MCP server. They are registry entries, rendered by the reconciler into a second compose file that scripts/up.sh applies alongside the first.

Previously both files described the same servers, and the docs carried a warning not to enable both or the ports would collide. That warning is gone because the duplication is gone.

up.sh now runs the reconciler as a hard gate: if a registry entry is enabled at elevated or dangerous without a recorded acceptance, the whole start fails rather than quietly skipping that one service.

15. Internet exposure is decided per service, and the home network takes

Section titled “15. Internet exposure is decided per service, and the home network takes”

Not everything gets the same treatment, and the split follows what each piece was built to withstand.

Service Where Reachable from Why
Reverse proxy, Open WebUI VPS (Constant) the internet Designed to face it: accounts, sessions, TLS at the proxy
oMLX Mac Tailscale/LAN only An inference API with no rate limiting; assumes friendly callers
Hindsight Mac Tailscale/LAN only Holds everyone’s memories; open unless the tenant API key is set
Konzol Mac Tailscale/LAN only Can reconfigure the stack
Wyoming voice Mac LAN only Talks to satellites on the local network

The home network forwards no ports at all. The VPS reaches the Mac over Tailscale. So the chat interface is usable from anywhere, while nothing at home accepts a connection from the internet.

The useful way to think about it: being on the internet is a property a service has to earn by being designed for it, not a default you grant because it would be convenient. Open WebUI has accounts and sessions and expects strangers to knock. oMLX does not.

Cost: the chat interface stops working if the link between the VPS and home drops — the model is at home. Voice keeps working, because voice is entirely local. Voice is the more reliable interface, not the less.

Revisit if: something new needs public reach. That’s a per-service decision with the same shape as a risk acceptance in the registry — write down what it is, why it needs to face the internet, and what’s in front of it.

16. TLS on the local network, using the proxy that already exists

Section titled “16. TLS on the local network, using the proxy that already exists”

Separate question from #15. That one was about who can reach things; this is about whether traffic can be read in transit.

First, correcting a common assumption: Tailscale traffic was already encrypted. It’s WireGuard underneath, so tailnet hops were never sniffable. The actual gap was the LAN — Home Assistant talking to memory, a browser reaching the console, anything hitting a published port by IP.

Novak does not run its own reverse proxy. There is already an internal proxy on another host; adding a second inside this stack would duplicate infrastructure for no gain. proxy/ holds config to add to the existing one, in both Caddy and Traefik form, since a move to Traefik is planned.

browser / HA ──TLS──▶ existing internal proxy ──Tailscale──▶ the Mac

Both hops encrypted, nothing new deployed. The last hop is WireGuard rather than TLS, which is not a weaker guarantee.

Certificates use a DNS-01 challenge — it proves domain ownership by writing a DNS record instead of accepting an inbound connection, which is the only way to get real certificates for names that resolve to a private address behind no port forwarding.

Performance cost: negligible. TLS 1.3 adds one round trip at connection setup, and the symmetric crypto is hardware-accelerated. Not measurable against token streaming.

What stays plaintext: the Wyoming voice services. Wyoming is a TCP protocol and the ESPHome satellites can’t do TLS to a hostname; proxying them would break them. So voice audio is readable by anything on the local network. That is the same network the microphones already sit on, but it is a real gap and nothing here closes it.

The other loose end: for the proxy on another host to reach these services, they bind on the tailnet rather than localhost — so anything on the tailnet can reach them directly and skip the TLS. Tailscale ACLs are the answer, not firewall rules on the Mac.

17. oMLX models and profiles come from files, not the admin API

Section titled “17. oMLX models and profiles come from files, not the admin API”

docs/omlx-settings.md is a table of model names, temperatures, idle TTLs and profile names that a person retypes into a web admin panel. Nothing checks the result afterwards. A mistyped temperature or a profile that never got created looks exactly like a working install until something answers badly, which is the same silent-failure shape as the OMLX_PORT mismatch that had chat and memory pointed at a dead port while every container reported healthy.

So it should be applied by machine. The question is through which door.

The admin API is the obvious door, and it is the wrong one. oMLX exposes a complete one — POST /admin/api/hf/download for models, POST/PUT on /admin/api/models/{id}/profiles for profiles, with task polling and retry. It is genuinely capable. But it sits behind its own admin session (POST /admin/api/login), separate from OMLX_API_KEY. Using it means a new secret in the Keychain and provisioning code that logs in and holds a session.

That breaks something deliberate. The reconciler is built so it never sees a secret value — the registry carries variable names, and compose resolves them at up-time (#14). Handing the same component an admin password to hold would undo the one property that makes it safe to point at a file the console can write. Not worth it for a config-application convenience.

Files are the other door, and oMLX already stores everything there. Three JSON files under ~/.omlx, written atomically (temp file + rename):

model_settings.json per-model — idle TTL, default/pinned, display name
model_profiles.json profiles, keyed by model id
global_templates.json profile templates, model-independent

Templates accept only the universal fields — sampling, thinking, context — and are not tied to a model id. That is what makes this work at bootstrap time: the templates can be written before a single model exists, which the API route cannot do, since it needs a running server and a downloaded model to attach to. Per-model profiles still need the model present, so they come later.

Cost: the on-disk format is undocumented and version-coupled to a third-party app. settings.md already warns that setting names drift between oMLX versions. Anything applying these files must validate against the field list it knows and fail loudly — a profile that quietly did not take is worse than one that refused.

The other cost: oMLX holds this state in memory and writes it atomically, so files written underneath a running server get clobbered on its next save. Writes happen with the server stopped — omlx stop and omlx start need no admin auth, unlike everything above.

oMLX profiles do not carry a system prompt. The field list is sampling, thinking, and cache tuning — temperature, top_p, enable_thinking, thinking_budget_tokens, the DFlash and TurboQuant knobs — and nothing else. There is no persona field, so the “set it once in the profile and every client inherits it” option in settings.md does not exist.

The documented fallback stands: prompts/ is the master copy and each client gets its own copy — Open WebUI’s model preset, Home Assistant’s agent prompt field. They will drift; that is now a known maintenance cost rather than a surprise. This closes the VERIFY that has been open since the repo was written off-host.

Idle TTL is not a profile field either — ttl_seconds is explicitly excluded from both profiles and templates, so it belongs in model_settings.json per model. settings.md lists it per model, which was right.

Downloading the models themselves. model.model_dirs points at ~/.omlx/models, so hf download straight into that directory may be all it takes and would avoid the admin API for that too — VERIFY that oMLX discovers models placed there rather than requiring its own downloader.

Built as reconciler/omlx_apply.py, run by novak omlx apply and, non-fatally, by up.sh. Two things learned building it:

The accepted field list is read out of the installed oMLX rather than hardcoded, so it tracks the version actually running and the version-coupling above becomes self-correcting. An unrecognised field aborts the run.

Success is confirmed by observation — after restarting, the exposed profiles must appear in /v1/models or the run fails. That matters because the model_id key had to be inferred, and a wrong guess would otherwise have written a file that oMLX quietly ignored.

Also settled while building it: a profile must be marked expose_as_model or no client can select it, and profiles are exposed as <model_id>:<api_name> — Qwen3-14B-4bit:chat, not chat. docs/omlx-settings.md said otherwise and is corrected.

18. Prompts are pushed to clients, because no client will pull them

Section titled “18. Prompts are pushed to clients, because no client will pull them”

Decision 17 established that the persona cannot live in oMLX. The obvious next hope is that it lives in one place anyway and the clients read it — a file, or better, this repo. They will not.

Open WebUI keeps system prompts in its own database, set through Workspace → Models or per-model parameters. Home Assistant keeps the conversation agent’s prompt in its config entry, set through the integration’s options UI. Neither has a “read this from a path” or “sync from git” option. There is no version of this where the clients pull.

So the direction is fixed: something has to push. The only real question is whether that something is a person or a program, and the whole point of registry/ is that it should be a program.

prompts/ in git is the source. An apply step reads it and writes each client through its own API — Open WebUI’s model preset, Home Assistant’s agent config. Same shape as decision 17: declarative input, dumb applier, fail loudly.

Running it on change is what makes it continuous rather than a chore. A commit that touches prompts/ triggers the apply, and novak status reports drift between what the repo says and what each client currently holds — so a persona edited by hand in a web UI shows up as a difference rather than a mystery.

That drift check is the more valuable half. Pushing on commit keeps the copies current; the status check is what catches someone editing the copy instead of the master, which is the failure that actually happens.

This is weaker than the registry. MCP servers end up in exactly one place — compose — so the file is the state and drift is not possible. Prompts end up as copies in databases that can be edited in place. Convention plus a drift check is a real guarantee, but it is not the same guarantee, and it should not be described as if it were.

It matters more than it looks. security.md leans on the persona to enforce behaviour: never ask for credentials, treat retrieved content as data rather than instruction, confirm before acting. With per-client copies, that enforcement is only as strong as the least-well-configured client. A client whose persona silently reverted is a client with weaker safety behaviour, and nothing about it will look broken.

The alternative is middleware that injects the persona into every request, so there is exactly one copy and clients need no persona config at all. It is a real option and it solves the drift problem properly.

Superseded by decision 21. The conclusion below was scoped to a client count — two clients, both with a persona field — rather than to a principle, and two of its three grounds do not survive scrutiny. Kept because the reasoning is instructive and because it names the condition that eventually triggered the change.

It is rejected for now, on three grounds:

It rebuilds what was just deleted. The Mem0 shim (see the memory section in architecture.md) was ~400 lines of first-party code in the request path, removed when Hindsight made it unnecessary. Putting a new first-party service back into that path for prompt templating is a worse trade than the one just unwound.

It lands in the latency budget. A voice turn is ~1-2s end to end across Whisper, inference and Piper. A proxy in front of oMLX taxes every turn, including the ones that need no persona work at all.

It widens the blast radius. Open WebUI reaches oMLX from the VPS over Tailscale. A component in that path fails all inference everywhere, rather than one client having a stale persona.

Provisioning-time consistency is strictly cheaper and does not foreclose this. If per-user context or request-time policy ever needs to be injected — things static config genuinely cannot express — that is the moment to revisit, as its own decision, with the shim’s deletion as the argument to beat.

That moment arrived, and the trigger was the one named above. See decision 21, which also corrects the latency figure: a router on this machine costs well under a millisecond against generations measured in seconds, so “it lands in the latency budget” was wrong about the magnitude, not just the balance.

Neither client’s API was exercised. Open WebUI 0.11.0 here still has onboarding: true, so no admin account and no API token exists yet, and Home Assistant does not run on this machine at all. Confirm the actual endpoint for setting a model’s system prompt in each before writing an applier against it.

19. Home Assistant’s conversation agent: Custom Conversation

Section titled “19. Home Assistant’s conversation agent: Custom Conversation”

Home Assistant’s own OpenAI integration still refuses a custom base URL (core#137087), so talking to oMLX needs a custom component. There are three plausible ones and the choice is not simply the most popular.

Measured 2026-08-19:

Stars Last commit
michelle-avery/openai-compatible-conversation — what this repo used to say 38 2025-09-09
jekalmin/extended_openai_conversation 1,428 2026-05-17
michelle-avery/custom-conversation 93 2026-08-05

The old recommendation is disclaimed by its own author, who writes: “I personally cannot support this, as I don’t actually use this integration, which makes ensuring its quality challenging.” They are looking for a maintainer and point at Custom Conversation, which is theirs and which they do use. Eleven months without a commit on a fork of a fast-moving upstream is the real problem; the disclaimer just makes it explicit.

Extended OpenAI Conversation has thirty-seven times the stars, and it would work. It is not chosen because it is a different architecture, not a different base-URL field. It brings its own function-calling system for device control, replacing Home Assistant’s intent handling.

This stack is deliberately arranged the other way: the conversation agent handles language, and tools arrive through HA’s MCP client — the same endpoints every other client uses (#14, and the memory section in architecture.md). Moving device control into the agent’s own function calling would mean voice tools stop being the shared MCP surface and become a per-client thing again.

It also costs latency where there is none to spare. Every function definition sits in the context of every spoken turn, against a 1–2s budget. The registry already keeps Tududi off the voice pipeline for exactly this reason, at 59 tools; adopting an agent whose model of the world is tool definitions works against that.

When it is the right answer: if you decide you want the model driving devices directly rather than HA’s intents doing it. That is a real position, and this decision is not an argument that it is wrong — only that it is a change of design rather than a swap of component, and should be taken as one.

Custom Conversation has 93 stars. It is small, and being actively maintained by one person who uses it is a better guarantee than 1,428 stars on code nobody has touched in three months — but it is still one person.

It reaches the endpoint through LiteLLM, so there is a translation layer between HA and oMLX that neither project tests against the other. Its own docs warn that “supposedly ‘OpenAI-compatible’ APIs are sometimes not fully compatible.” oMLX serves both /v1/chat/completions and /v1/responses, so the surface is there; that is not the same as the pairing having been exercised, and the voice path should be tested end to end before it is trusted.

The maintenance note blames HA’s native agent diverging by adopting the Responses API, “which many OpenAI-compatible services don’t support”. oMLX does support it. So that particular divergence is not a problem here — which is an argument for tracking a component that follows current HA, and against the frozen fork specifically.

20. Home Assistant reaches Hindsight through a header-injecting proxy

Section titled “20. Home Assistant reaches Hindsight through a header-injecting proxy”

Two components that both speak MCP cannot authenticate to each other.

Home Assistant’s MCP client speaks OAuth only. Its config flow asks for a Client ID and Secret from Application Credentials, and offers no field for a bearer token or a custom header.

Hindsight authenticates with a static API key in an Authorization header. Its shipped tenant extensions are Default, ApiKey and Supabase — none of them OAuth. The key is accepted in a header and nowhere else; as a query parameter it is a 401.

There is no overlap, so pointing HA at the bank URL fails:

httpx.HTTPStatusError: Client error '401 Unauthorized'
for url 'http://<mac>:8888/mcp/household/'

This invalidated something the repo asserted. The registry entry said Home Assistant could use this endpoint because the bank sits in the path and needs no custom header. That was true of bank selection and wrong about authentication — one header problem was solved and read as though both were.

The proxy holds the credential and adds it per request. HA talks to a route that asks nothing of it; Hindsight still refuses anything arriving without the key. Config for both Caddy and Traefik is in proxy.md.

This is the first concrete reason to run a proxy on this network. #16 added one for TLS, which was optional given the tailnet is already WireGuard. This is not optional: without it, voice has no memory.

Cost, stated plainly. The route converts “holds the key” into “can reach this hostname”, so it must be restricted to Home Assistant’s address — a source-IP rule, not an afterthought. And the credential now lives on the proxy host as well as in the Mac’s Keychain: a second copy, and a second place to rotate it.

Turning Hindsight’s tenant auth off. It would work immediately and leave the MCP endpoint open to everything that can reach the port — every bank, read and write, no credential. docker-compose.yml already carries that warning in capitals. Trading all authentication for one client’s convenience is the wrong shape of fix.

Writing an OAuth tenant extension for Hindsight. The clean answer, and real work in someone else’s codebase, on an interface that would then need maintaining against upstream.

Waiting for HA’s MCP client to accept a token. Also a clean answer, also not in our hands. Worth watching: if it lands, this proxy route becomes unnecessary and should be removed rather than kept out of habit.

Worth noticing because it will recur: two things that both “support MCP” still have to agree on authentication, and MCP does not settle that. Protocol compatibility is not integration compatibility. The registry’s auth: field records which credential an endpoint needs precisely because nothing injects it automatically — every client has to be capable of presenting it, and this one is not.

21. An inference routing layer, because uniformity cannot be a client setting

Section titled “21. An inference routing layer, because uniformity cannot be a client setting”

Supersedes the second half of #18.

The project’s claim is that memory, knowledge and behaviour belong to you rather than to whichever program you happen to be typing into. Memory already works that way: Hindsight holds it, the bank is in the URL, and no client can name someone else’s. Persona does not. It exists as a copy inside every client, maintained by hand, drifting quietly.

That is not a tidiness complaint. Per-client configuration cannot express what this project is for, and no amount of care fixes it:

  • Open WebUI has one system prompt per model preset, shared by every user of it. “Isolated, multi-user” is unreachable from there.
  • Every new client is another copy to write and another chance to differ.
  • Nothing can vary by who is asking, because nothing in the path knows.

A layer that sees the request is the only thing that can. #18 said as much and then rejected it on cost, which was right for two clients and wrong as a principle — an architecture is what it must become, not what is cheapest at N=2.

An OpenAI-compatible router in front of oMLX. Clients point at it instead, and carry no persona of their own.

Open WebUI ─┐
├─▶ router ──▶ oMLX
Home Assist ─┘ (persona, identity, policy)

LiteLLM is the vehicle. Streaming, retries and OpenAI compatibility are solved problems and not worth re-solving; the injection itself is a small async_pre_call_hook. That is first-party code in the request path again, which #18 was right to weigh — but a hook inside a maintained gateway is a very different object from the ~400-line shim that was deleted, and unlike that shim it does something no backend does.

prompts/ stays the master copy. It is pushed to one place instead of N, which is what makes #18’s drift problem tractable rather than perpetual.

Identity, and why it is the interesting part

Section titled “Identity, and why it is the interesting part”

Open WebUI can forward the authenticated user with ENABLE_FORWARD_USER_INFO_HEADERS: X-OpenWebUI-User-Id, -Email, -Name, -Role, -Jwt.

With a verified identity in the request, the household/personal split stops being “which URL did this client happen to register” and becomes a routing decision. That finishes memory that follows you rather than approximating it, and it is the capability that justifies the layer — persona uniformity alone would not.

Trust the JWT, not the header. Anything that can reach the router could forge X-OpenWebUI-User-Id. The router validates X-OpenWebUI-User-Jwt and the route stays source-restricted, exactly as in #20. A plain header is a claim; a signature is evidence. Getting this wrong would hand one person another’s memories, which is the failure this whole architecture exists to prevent.

Identity comes from the channel, not the modality

Section titled “Identity comes from the channel, not the modality”

An earlier draft of this said Home Assistant could not participate in the multi-user half, because “a microphone cannot tell who is speaking”. That is true of a shared satellite and false of voice in general, and the difference matters: roughly half the voice surface is authenticated as well as Open WebUI is, by the same means — a login plus a device someone owns.

Home Assistant hands the conversation agent more than its public API docs suggest. ConversationInput carries:

context: Context # context.user_id — the authenticated HA user
device_id: str | None
satellite_id: str | None

So:

Channel Identity Scope
Companion app on a personal phone authenticated context.user_id personal
Assist in a browser session authenticated context.user_id personal
Siri / Shortcuts via HA’s API personal long-lived token personal
A speaker in the kitchen nobody — anyone in the room household

satellite_id is the discriminator, and it is a field rather than an inference. A request carrying one arrived through shared hardware; one carrying a user_id and no satellite came from an authenticated personal session.

The rule, stated so that it fails safe:

Scope to a personal bank only when context.user_id is present and no shared satellite_id is involved. Otherwise, household.

A missing field yields household rather than a personal bank, so the failure mode degrades toward less disclosure rather than more. That direction is not incidental — it is the whole reason to write the rule this way round.

It is a true single point of failure. #20 already accepted a proxy in the path, but that one only breaks memory. This breaks all inference, text and voice. It must be treated as infrastructure — on the mini beside oMLX, not across a WAN link, and watched.

It is another place the persona lives. One place instead of many is the gain, but it is not zero, and it needs the same drift check as anything else.

The drift check first, then the router. Not the reverse: the check is what tells you whether the layer is delivering the uniformity it was built for, and building the layer first means trusting an unverified claim about the thing you built to fix verification.

22. The portal: Novak’s first self-run reverse proxy, scoped to one page

Section titled “22. The portal: Novak’s first self-run reverse proxy, scoped to one page”

Konzol can’t structurally become a section of Open WebUI. Checked directly: Open WebUI’s extension system (Tools, Pipes, Filters, Actions, Events) hooks chat behaviour and system events, not UI navigation, and there is no first-party mechanism to register a new admin-panel page. The only way to make it “part of Open WebUI” would be forking Open WebUI’s own frontend source, which is a materially larger and differently-shaped commitment than anything else in this stack: a maintained fork against a fast-moving upstream, for a much bigger surface than Konzol’s own codebase, under a licence (credits.md’s Open WebUI VERIFY) that has already changed once.

What was actually wanted was closer to two things: a single browser tab for the household’s day-to-day surfaces, and one Pocket ID group governing who can reach the admin ones. The second is already solved natively (see the feat/owui-oauth-group-admin change: admins.novak now grants Open WebUI’s own admin role and group, no new code). This decision is about the first.

A static page (portal/index.html) with a tab per app, iframing Open WebUI and Konzol at their own existing ports rather than proxying them. Caddy serves the page and gates it with TinyAuth’s forward-auth against Pocket ID’s admins.novak group — the same group everywhere else now uses. Full design and what was verified versus assumed: proxy.md.

This is Novak’s first reverse proxy that Novak itself runs. Every prior mention of a proxy (#16, #20) was something running on another host, fronting Novak’s ports from outside. docs/proxy.md said as plainly as anything in this repo says something: “Novak does not run a reverse proxy.” That line is now qualified, not deleted — the portal’s Caddy instance fronts exactly one static page, nothing else in the stack, and every other service keeps reaching the network exactly as it did before this.

Cost, stated plainly. A new service, a new forward-auth service behind it, a fourth Pocket ID OIDC client, and a page that has to be kept honest about which apps it lists as more get added. TinyAuth is AGPL-3.0 — run unmodified, which is the low-risk case (credits.md), but a real dependency this project now carries and has to keep patched. And TINYAUTH_APPURL must be a real hostname, never the Tailscale IP novak ports otherwise treats as an equally valid way to reach everything else — confirmed directly, not assumed, and it is the one place in this stack where that IP stops working.

Reverse-proxying Open WebUI under a subpath, so the portal could be the only origin involved. Tested directly against the running container before building anything else on top of the assumption: Open WebUI ships absolute asset paths and breaks under a subpath without rewriting this setup does not do. Each app keeps its own port instead.

Organizr, the closest off-the-shelf match for genuine tabs. It has no native OIDC, so getting one login working would mean a forward-auth proxy in front of it anyway — TinyAuth’s whole job — plus a second app with its own local user accounts, a fourth identity system next to Pocket ID, Open WebUI’s, and Konzol’s.

Homepage. A good launcher, not a login gate: its iframe widget does not proxy authentication, so it buys tabs but not the single sign-on that was the actual point.

Forking Open WebUI’s frontend, covered above. Rejected on cost, not on feasibility — it would work, and cost more than this is worth.

If Open WebUI ever ships a genuine plugin surface for admin-panel pages, or if Konzol’s remaining responsibilities shrink enough that a page and a link cover what’s left of it. Until then, two surfaces behind one login is judged close enough to the original ask to be worth the cost above.

23. The inference router, built ahead of the drift check decision #21 named first

Section titled “23. The inference router, built ahead of the drift check decision #21 named first”

Decision #21 ordered this explicitly: build the persona drift check first, because it’s what tells you whether the router delivers the uniformity it exists for. Neither existed when this was requested directly, by name, with an explicit instruction to build the router now. That instruction is followed here, and the departure from the stated order is recorded rather than silently taken — the reasoning in #21 for that order hasn’t changed, only the sequence it happened in.

router/config.yaml and router/persona_hook.py: LiteLLM in front of oMLX, injecting the persona from prompts/ into every request for chat, deep, and ha-voice, transparently — no client-side prompt_id, no per-client system prompt field. Open WebUI and Home Assistant switch to it by changing one port (OWUI_INFERENCE_PORT); the model names they already ask for are unchanged.

This is half of what #21 asked for, not all of it. The other half — “a verified user identity travels with the request, which is what makes per-user memory routing possible” — is not built. The router today injects a persona and nothing else; it does not read, forward, or act on who is calling. Recorded plainly so this isn’t mistaken for more than it is: personas are now uniform across clients, and memory bank selection still works exactly as it did before this, through Hindsight’s own per-connection URL scoping, unrelated to anything here.

The mechanism, and why it isn’t the one the docs recommend

Section titled “The mechanism, and why it isn’t the one the docs recommend”

LiteLLM’s own documentation names CustomPromptManagement / get_chat_completion_prompt as the tool for exactly this: a per-model system prompt with no client-side parameter. It doesn’t work in the version this was built against (ghcr.io/berriai/litellm, pinned by digest in docker-compose.yml). Not assumed — checked directly: the class’s own source (litellm/litellm_core_utils/litellm_logging.py, get_custom_logger_for_prompt_management) confirms it should fall back to any registered CustomPromptManagement instance with no prompt_id needed; a callback was registered exactly per LiteLLM’s own reference implementation (litellm/proxy/custom_prompt_management.py); the module load was confirmed with a debug print at import time; the method was never invoked, confirmed by the same debug print never firing across repeated real chat completions.

async_pre_call_hook — the older, plainer CustomLogger method used everywhere for guardrails and rate limiting — does fire, verified the same way. router/persona_hook.py uses that instead. Worth revisiting if a future LiteLLM release fixes the newer API, since it’s the documented, intended mechanism and this is a workaround for it not working, not a preference.

The topology correction this build surfaced

Section titled “The topology correction this build surfaced”

Built against this deployment’s real topology, stated directly rather than assumed: this installation is monolithic. Open WebUI, Hindsight, the console, and the Wyoming voice services all run on the same host as oMLX. The only thing off-host is the reverse proxy fronting the portal and Open WebUI, on a LAN-neighboring machine, not a VPS.

docs/architecture.md’s Placement section and docker-compose.yml’s own header comment both said Open WebUI runs on a separate VPS, which was an earlier plan, not this deployment — both corrected in the same change as this router. Decision #15’s public/private exposure model is deliberately left untouched: it describes what may and may not face the internet, which is a different question from which host runs which container, and whether this deployment currently has any public exposure at all was not confirmed one way or the other while building this. Marked VERIFY in architecture.md rather than guessed.

A real bug this surfaced, in already-merged code

Section titled “A real bug this surfaced, in already-merged code”

The portal (#22) has the identical bug this router’s own bind mounts hit on first real deployment: ./portal/Caddyfile and ./portal/index.html are relative paths, and compose resolves a relative bind against --project-directory, which up.sh and scripts/novak both set to $NOVAK_HOME, not the checkout. Docker’s behaviour on a relative bind whose source doesn’t exist at that resolved path is to silently create an empty directory there rather than error — so the failure doesn’t surface until the application inside tries to open the file and gets IsADirectoryError, which is exactly what happened here on the first real novak up with the router profile active. The portal has carried this since #22 merged, undiscovered because nothing had run it through a real novak up with that profile active end to end — the earlier testing was container-level (docker run in isolation), which never exercises compose’s own path resolution.

Fixed for both: REPO_DIR is now exported by both up.sh and scripts/novak, and every bind mount that needs the checkout — the portal’s two, plus this router’s three (config.yaml, persona_hook.py, and prompts/) — uses ${REPO_DIR}/..., an absolute path, instead of a relative one. Deliberately not seeded into $NOVAK_HOME the way registry/mcp-servers.yaml is: that file is meant to be edited per deployment, and these are read-only application config that should track a git pull immediately, which a seeded copy would defeat.

What was verified, end to end, not assumed

Section titled “What was verified, end to end, not assumed”

The full path, for real: novak up with OMLX_API_KEY already in the Keychain correctly activated the router profile with no other configuration; the real container started against the real docker-compose.yml; a chat completion sent to it with no system message came back answering as Novak, for chat, deep, and ha-voice all three; a client-supplied system message was respected untouched, not double-injected; a model name absent from the persona map passed through with no system message added, as designed.

Doing the identity half of #21 — reading a verified caller identity and making it available to per-user memory routing — is the obvious next step and is not started. Building router/config.yaml’s model list by hand also means it can drift from registry/omlx.yaml silently if a model’s underlying repo changes; a generator step alongside omlx_apply.py would close that gap and hasn’t been built. And the persona drift check #21 asked for first is still exactly as un-built as it was before this — this router does not verify its own claim of uniformity, only asserts it.

24. novak registry --check does the reachability probing the reconciler deliberately doesn’t

Section titled “24. novak registry --check does the reachability probing the reconciler deliberately doesn’t”

Prompted directly: a live deployment had two registry entries sitting at enabled: true with http://EDIT-ME:8888/... as their URL for weeks — reconcile.py only checks that a URL is syntactically real, never that it’s been edited — and the question that followed was whether the reconciler should go further and check reachability, rather than pattern match one placeholder string.

It shouldn’t, and the reasoning is the same shape as #20’s: a meaningful reachability check needs the real auth token, since a bare unauthenticated request can look identical to an authenticated one (Hindsight answers a bare GET with 200 {} either way — a handshake response, not a real call, found directly while building this). Reading that token means reading the Keychain, and reconcile.py’s own docstring already rules that out on purpose: no secrets read, no network touched, no listener, declare/apply only. Bolting a live probe onto it wouldn’t extend the reconciler, it would abandon what makes it safe to run unattended on every novak up.

novak registry --check, in scripts/novak — the CLI layer, where reading Keychain secrets to test something is already normal (secret verify, the deployment checklist’s oMLX and Hindsight checks). Plain novak registry is unchanged: fast, local, no network. --check is opt-in, parses the reconciler’s own external: NAME -> URL [token: VAR] output rather than re-parsing the YAML a second time, and for each entry with a token, reads it from the Keychain and sends one real MCP call; entries with no token get a bare connection attempt.

The call sent is initialize, not tools/list. tools/list was tried first and rejected after testing it live: streamable-HTTP MCP requires session state from a prior initialize before it will answer anything else, so an authenticated tools/list with no session returns 400 Missing session ID — a false alarm, not a real signal, and standing up the two-call handshake just to read a status code was more machinery than this was worth. initialize needs no prior session and, confirmed directly against the real deployment, genuinely flips: 401 with no or the wrong token, 200 with the right one. That gives three distinct, useful states — 200 really works, 401 reachable but not authenticating (a wrong or missing Keychain value, not a dead host), and a failed connection is neither.

The first real test — an intentionally unreachable host — killed the whole --check run instead of reporting one red line, because code="$(curl ... )" with no || true is a plain assignment, not a condition, and set -e treats curl’s own non-zero exit (28, timeout) as fatal. cmd_checklist’s Hindsight check had already hit this exact shape once (see its own comment, scripts/novak), and this reused the fix without reusing the vigilance the first time around — worth noting because it’s the second time the same bash trap has shipped once and been caught on the second write, not the first.

Against the real deployment: outline-everything, hindsight-household, and hindsight-tmeuze all report 200, genuinely reachable and authenticating (the latter two only true after #23’s follow-up fixed their EDIT-ME placeholders to the real Tailscale address). A wrong token against hindsight-household correctly reports 401. A made-up unreachable Tailscale address correctly reports unreachable, and — after the || true fix — does so without aborting the rest of the entries.

25. The router’s task model: Open WebUI’s background calls get a persona bypass

Section titled “25. The router’s task model: Open WebUI’s background calls get a persona bypass”

Reported directly: Open WebUI got noticeably laggier since the router went live. Root cause, confirmed rather than guessed at — Open WebUI’s Task Model setting (Admin Settings -> Interface -> Tasks) defaults to “Current Model” for title generation, tag generation, and follow-up suggestions, all three on by default. “Current Model” means whatever the user is actively chatting with — chat or deep — which since #23 now goes through the router and gets the full persona injected on every single call, persona_hook.py’s PERSONA_MAP making no distinction between a real conversational turn and a three-word title nobody reads as a conversation.

Measured directly, not estimated: the identical trivial request ("Reply with exactly one word: hello") cost 574 prompt tokens and 2.13s through chat, against 15 prompt tokens and 0.34s through the new task model below — on an already-warm model, so a cold deep (idle TTL expired, thinking on) paying this same tax would be worse still.

router/config.yaml gets a fourth model_name: task, aliasing the same underlying oMLX model and profile ha-voice already uses — always resident (no TTL wait), thinking off, tuned for short low-creativity output, which is exactly the shape title/tag/follow-up generation needs. Deliberately not added to persona_hook.py’s PERSONA_MAP, so the hook no-ops for it by construction rather than by a special case.

Open WebUI’s Local and External Task Model (both — its own docs don’t fully specify which applies to an all-OpenAI-API setup with Ollama disabled, and setting both costs nothing) are pointed at task in the admin UI. That alone doesn’t survive a restart: ENABLE_PERSISTENT_CONFIG is false on purpose (docker-compose.yml’s own comment explains why — this exact instance already lost a config change to a restart once, silently, before that flag existed), so TASK_MODEL and TASK_MODEL_EXTERNAL are also set directly in docker-compose.yml, gated behind a new OWUI_TASK_MODEL .env key that defaults to blank — correct when the router isn’t configured at all, since task isn’t a model name anywhere else in that case.

What this surfaced, unrelated to the fix itself

Section titled “What this surfaced, unrelated to the fix itself”

Open WebUI has no WEBUI_SECRET_KEY pinned anywhere in this stack — it generates a random one at container startup when unset, which invalidates every existing session on every restart. Confirmed directly: recreating the container to apply this very fix logged out the admin session that was open to verify it. Flagged as its own follow-up rather than folded in here — a session-signing key is an unrelated concern from a task-routing one, and conflating them in one change would make either harder to revert independently if something about it needed undoing. Fixed in #26 below.

The task model shows up in Open WebUI’s own model dropdown only after a router restart (it caches the model list at page load, not on every request — a stale list is expected, not a bug, after adding one). TASK_MODEL/TASK_MODEL_EXTERNAL confirmed set correctly inside the running container via docker exec, after a real novak up recreate, not just in the admin UI which alone wouldn’t have proven persistence.

26. Open WebUI’s session key gets pinned, the same way CONSOLE_AUTH_SECRET is

Section titled “26. Open WebUI’s session key gets pinned, the same way CONSOLE_AUTH_SECRET is”

Confirmed directly: a routine novak up recreate of the open-webui container logged out an active admin session — the same symptom #25 flagged as a follow-up rather than fixing inline. docker-compose.yml never set WEBUI_SECRET_KEY. Open WebUI signs its session JWTs with that key and, left unset, generates a random one at every container startup — so a restart or recreate doesn’t just eventually expire sessions, it invalidates every one of them immediately, since the JWTs on file no longer verify against the new key.

Fixed by adding WEBUI_SECRET_KEY to SECRET_VARS in scripts/lib/vars.sh and sourcing it from Keychain exactly the way CONSOLE_AUTH_SECRET already is — generated with openssl rand -base64 32, never edited into .env directly. Not added to CORE_SECRETS: left unset, the stack still starts, set-in-keychain gets passed through as a literal value, and Open WebUI just logs everyone out on every restart, the same degrade-not-block shape as every other non-core secret here.

Verified end to end: novak secret set WEBUI_SECRET_KEY --generate, then novak up, then docker exec novak-open-webui-1 sh -c 'echo $WEBUI_SECRET_KEY' — non-empty, and identical across repeated checks and after novak restart open-webui. A login made before the restart was still valid after it.

27. Open Terminal joins the registry as the first container entry that isn’t MCP

Section titled “27. Open Terminal joins the registry as the first container entry that isn’t MCP”

Requested directly, as an explicitly optional, opt-in integration — consistent with how everything else in registry/mcp-servers.yaml works. Open Webui’s Open Terminal (Apache-2.0) is a sandboxed terminal and file browser a model can be given access to from Open WebUI’s own Admin -> Settings -> Integrations.

It doesn’t speak MCP. Open WebUI connects to it directly as an “Integration,” not through the MCP client wiring every other registry entry assumes. Checked reconciler/reconcile.py before assuming this was a problem: render() doesn’t care what a container speaks, only that it has an image, a port, and declared env vars — the “MCP server” framing in the registry’s header comment was descriptive, not a constraint the mechanics actually enforce. Landed as kind: container with a comment correcting the record, rather than inventing a new kind for one entry.

Two limits chosen deliberately, not defaults left alone

Section titled “Two limits chosen deliberately, not defaults left alone”

This is risk: dangerous by the registry’s own definition — it runs arbitrary code and reads/writes a filesystem, no reading between the lines required. Shipped disabled, no accepted_by/accepted_on, same as ha-mcp — the reconciler refuses to start it until a person accepts that in the record.

Two things Open Terminal’s own docs offer that this entry deliberately does not:

  • No Docker socket mount. Its README documents one for letting an agent manage other containers, and its own words for what that grants are “effectively root access.” Nothing about this stack needs a model that can start or stop its own containers, so it isn’t offered.
  • No filesystem mount into anything real. Left on the image’s own default scratch space. A model reading its own sandbox is the intended use; a model reading this repo, $NOVAK_HOME, or any secret is not, and nothing here grants that path.

Neither is a technical limitation being worked around — both are choices about what doesn’t get added later without the same scrutiny turning this on in the first place got.

The registry entry validates and reports disabled (correct — it’s off by default). Test-enabled with a dummy key and a filled-in accepted_by/accepted_on against a scratch $NOVAK_HOME, the reconciler correctly renders a real open-terminal-mcp service (the -mcp suffix is render()’s own hardcoded naming, cosmetically wrong for a non-MCP entry, not worth changing for one container), with the image, 8010:8000 port mapping, and OPEN_TERMINAL_API_KEY passed through from the host environment — the same path every other container entry already uses, unmodified for this one.

28. Novak becomes multi-platform: Mitochon (Mac) stays fully supported, Spire (Unraid/RDNA4) becomes the primary reference deployment

Section titled “28. Novak becomes multi-platform: Mitochon (Mac) stays fully supported, Spire (Unraid/RDNA4) becomes the primary reference deployment”

This is the pivot everything up to #27 was, unknowingly, already built to survive. Recorded here as a deliberate decision because it is one — not a drift nobody wrote down.

The household is moving its day-to-day Novak deployment onto Spire, an Unraid box already running a dozen other services, freshly given an AMD Radeon RX 9060 XT (RDNA4). Mitochon — the Mac mini every prior decision in this file assumed — goes back to being a regular, always-on computer. It keeps oMLX as a secondary inference engine other clients can point at deliberately (Open WebUI’s own model config, or a future Novak router entry), but it is no longer the host anything in this stack depends on being up.

Nothing already built for Mitochon is deleted or deprecated. Novak was a single-platform project pretending to be general; this makes it actually general. docker-compose.yml, registry/omlx.yaml, omlx-settings.md, headless-operation.md — every one of them stays, intact, as one complete, real deployment path. What changes is that it stops being the path and becomes a path, chosen at setup rather than assumed by the code.

Checked before assuming a rewrite was needed: almost nothing about Hindsight, Open WebUI, the console, or the Wyoming voice services is macOS-specific. They’re plain containers. The only piece of Novak that ever genuinely needed to be a Mac was oMLX itself — a native app because Metal/MLX can’t run in a Linux container. Once that’s understood, “Novak on Linux” was never really the hard problem; “oMLX specifically needs a Mac” is a fact about one engine, not about the whole stack.

That reframes the whole architecture cleanly:

  • Novak core (Hindsight, Open WebUI, the console, voice, the registry/reconciler pattern, the router) — a Docker Compose stack that runs on any real Docker host. Spire, tonight, proved this directly: everything that isn’t inference is ordinary containers on ordinary Linux.
  • Inference engines — pluggable, behind the router, each on whatever host actually suits it. oMLX/Mitochon (macOS, Metal) and Ollama/Spire (Linux, Vulkan/RDNA4) are the first two, documented as parallel siblings, not a primary and a workaround.

The router (#21/#23) already had the right shape for this by accident: router/config.yaml’s api_base is just an OpenAI-compatible endpoint, with no assumption baked in about what serves it. It needed no rework at all for this pivot — the pieces that did were the ones that had never been asked to be portable: bootstrap.sh, the registry’s oMLX-specific assumptions, and every doc that said “your Mac” where it meant “your inference host.”

What Mitochon’s reduced role actually retires

Section titled “What Mitochon’s reduced role actually retires”

headless-operation.md’s entire FileVault/JetKVM/unattended-recovery apparatus existed to solve one problem: a host that MUST come back up on its own after a power cut, because everything depends on it. That problem is Spire’s now, and Spire is a Linux server — it doesn’t have any of the constraints that apparatus exists to work around (no WindowServer-requires-a-login-session, no per-account OrbStack isolation, none of it). Mitochon, once it’s a “regular computer,” doesn’t need FileVault-unlock-via-KVM either — if it’s off or asleep, oMLX just isn’t available as a secondary engine until someone’s using the machine anyway, which is a fine, low-stakes failure mode for something optional.

Not deleting headless-operation.md. It stays as exactly what it always was — real, hard-won, and correct for anyone who does want oMLX/Mitochon to be their primary, always-up engine, which is a completely legitimate choice for someone without a spare Linux box. It’s just no longer the assumed path in this household’s own deployment, and the docs need to stop reading as if it were the only one.

What this asks of the setup scripts and docs going forward

Section titled “What this asks of the setup scripts and docs going forward”

Not built yet — this decision records the shape, not the finished implementation:

  • bootstrap.sh (and the novak CLI more broadly) need a real “which platform, which engine” choice at setup time, instead of assuming macOS + OrbStack + oMLX throughout.
  • Each engine gets its own settings doc, sibling to omlx-settings.md — Spire’s Ollama/RDNA4 setup needs the same kind of “here’s the real reasoning for these numbers” treatment omlx-settings.md already gives the Mac path, not a paragraph bolted onto an existing doc.
  • README.md and docs/architecture.md currently read as if “your Mac” and “Novak’s inference host” are the same sentence. They need to stop saying that.

What was verified before recording this as settled, not aspirational

Section titled “What was verified before recording this as settled, not aspirational”

Real, on Spire, tonight: GPU passthrough into Docker with a plain --device=/dev/dri, no vendor plugin needed; Ollama detecting the 9060 XT correctly via Vulkan (RADV GFX1200); real generations on qwen3:4b (94.8 tok/s) and qwen3:14b (32.6 tok/s), both fitting entirely in the card’s 15.9GB VRAM. Qwen3.8-27B does not fit (confirmed via ollama ps showing a genuine 12%/88% CPU/GPU split even in isolation, ~10 tok/s) — recorded honestly as the reason it stays on Mitochon/oMLX rather than forced onto hardware that doesn’t fit it well.

Getting real speed out of Qwen3.8-27B on Spire specifically would mean running raw llama-server with native MTP speculative decoding (--spec-type draft-mtp) instead of Ollama — confirmed directly that Ollama’s own MTP support exists only on its MLX runner today, not the Vulkan/AMD backend. That’s real, documented, and deliberately not done: it would mean a second inference engine’s worth of lifecycle and multi-model complexity to speed up exactly one model, when Mitochon already serves it acceptably. Revisit if Qwen3.8-27B specifically becomes important enough to justify that.

29. registry/engines.yaml + reconciler/router_apply.py: the multi-engine setup script decision #28 named as still missing

Section titled “29. registry/engines.yaml + reconciler/router_apply.py: the multi-engine setup script decision #28 named as still missing”

Decision #28 recorded the direction and named the gap plainly: hand-editing router/config.yaml to add a second engine “is the real next piece of code, not just docs.” This is that piece.

Same shape as registry/mcp-servers.yaml and registry/omlx.yaml: a declarative file, a dumb reconciler, git as the audit log. Each engine declares a base_url_var/api_key_var (variable names — no secret is ever read here, same invariant reconcile.py holds) and a list of {role, model} pairs. router_apply.py validates it (a role claimed by two engines is refused outright — ambiguous routing, not load-balancing) and renders router/config.yaml’s model_list. It does not restart the router; same reasoning novak omlx apply already uses for not silently restarting oMLX — a visible, separate novak restart router step.

The bug this design caught in itself before it shipped

Section titled “The bug this design caught in itself before it shipped”

router/config.yaml was, until this decision, a tracked repo file and needed to become a per-deployment generated artifact — genuinely incompatible. A real deployment running novak router apply would dirty a tracked file with household-specific model IDs on every run. Fixed by treating it exactly like docker-compose.mcp.yml already is: pure generated output in $NOVAK_HOME (router-config.yaml), gitignored, never in the checkout. docker-compose.yml’s router mount changed from ${REPO_DIR}/router/config.yaml to a relative ./router-config.yaml, resolving against --project-directory the same way ./registry already does. The checked-in registry/engines.yaml is now a genuine generic template (single oMLX engine, matching how a fresh deployment actually starts) — the real, household-specific multi-engine config lives only in $NOVAK_HOME’s deployed copy, same rule headless-operation.md already states for mcp-servers.yaml.

Two real bugs found running this end to end, neither in the new code

Section titled “Two real bugs found running this end to end, neither in the new code”

Testing every model role through the actual router (not assumed working from the dry-run render) surfaced both:

  • qwen3:14b on Spire returned “does not support chat” despite ollama list showing it present and a real generation having worked on it hours earlier. Root cause: pulling it and the Qwen3.8-27B model concurrently earlier that session raced on Ollama’s blob/manifest store, leaving the server’s in-memory model-capability cache stale. Fixed with ollama rm + a clean re-pull, then a container restart — the first restart (before the re-pull) wasn’t enough, since it restarted against the still-corrupted manifest.
  • deep pointed at Qwen3.8-27B on oMLX, which was never actually downloaded there. All of that model’s testing this session happened on Spire/Ollama; nothing had put it in oMLX at all. oMLX correctly 404’d it — the router mechanism worked exactly right, the registry entry was simply wrong. Fixed by pointing deep at the existing, working Qwen3-14B-4bit:deep profile as an honest interim, with a comment recording that Qwen3.8-27B-on-oMLX is a real, separate, not-yet-done task — not silently reverted without a record of why.

Neither bug was in router_apply.py or the registry schema. Both were caught specifically because every role was tested against the real running router, not just validated against the schema and assumed correct from there.

What was verified before calling this done

Section titled “What was verified before calling this done”

All four model roles (chat, deep, ha-voice, task) return real 200 responses through the actual router, hitting both engines (omlx-mitochon for deep, ollama-spire for the other three) — not just a dry-run render. task’s response carries 17 prompt tokens, confirming persona injection is still correctly bypassed for it exactly as decision #25 intended, unaffected by which engine now serves it.

30. DEFAULT_ENGINE_BASE_URL is a real .env value now, not a host.docker.internal construction

Section titled “30. DEFAULT_ENGINE_BASE_URL is a real .env value now, not a host.docker.internal construction”

Two problems, raised directly while actually standing up Spire’s own deployment, both pointing at the same fix.

(Named OMLX_BASE_URL for about twenty minutes before this was written down — caught before Spire’s own deployment locked it in: a variable meaning “the default engine, whatever it is” named after one specific engine is exactly the kind of thing that reads fine on the machine that has that engine and actively misleads on the one that doesn’t, which Spire — no oMLX at all — was standing right there to prove.)

host.docker.internal isn’t something to build behavior around by default. It needs Docker’s host-gateway extra_hosts entry to work at all outside macOS/Docker Desktop — present everywhere it’s used here, and confirmed genuinely working on Linux/Unraid tonight, so this was never actually broken. But baking a host.docker.internal-based URL into docker-compose.yml as the default, three separate times (Open WebUI, Hindsight, the router), each with its own port-fallback chain, meant “where’s the engine” was a fact spread across compose interpolation rather than a fact you could read in one place.

Most configuration should live in .env, not in compose interpolation logic. OWUI_INFERENCE_BASE_URL and HINDSIGHT_LLM_BASE_URL, added earlier this same session to handle a remote router, were themselves a symptom: they existed only because the default (DEFAULT_ENGINE_BASE_URL, in effect) wasn’t itself a plain value — it was a port number (OWUI_INFERENCE_PORT) glued to host.docker.internal inside the compose file. Fixing the override without fixing the default underneath it would have left two mechanisms doing the same job.

DEFAULT_ENGINE_BASE_URL is now a real, complete URL, set directly in .env (default http://host.docker.internal:8000/v1 — right for the common single-host case, same as always, just no longer built at compose-parse time). Open WebUI, Hindsight, and the router all fall back to it directly. OWUI_INFERENCE_PORT is removed outright, not deprecated alongside it — this project’s own README still says “in testing,” and carrying two mechanisms for the same setting past the point one of them is clearly worse serves no one. OWUI_INFERENCE_BASE_URL and HINDSIGHT_LLM_BASE_URL remain, now as genuine overrides of DEFAULT_ENGINE_BASE_URL rather than overrides of a host.docker.internal construction — the same variables, a cleaner reason to have them.

The router’s own DEFAULT_ENGINE_BASE_URL entry in docker-compose.yml was deleted rather than simplified: decision #29’s env_file fix (this same session) already passes the whole .env through to the router container, so a value that’s now a plain .env literal needs no environment: entry to also provide it. One less place the same fact could go stale.

What was verified before treating this as done, not just tidier

Section titled “What was verified before treating this as done, not just tidier”

Every one of Mitochon’s three affected services was checked against the resolved value inside the actual running container, not just the docker compose config render: HINDSIGHT_API_LLM_BASE_URL and OPENAI_API_BASE_URL both came back identical to their pre-refactor values (http://host.docker.internal:8000/v1 and :4000/v1 respectively) — this was a mechanism change, not a behavior change, and that claim was checked, not assumed. A real chat completion through the router still returned a real answer afterward.

31. The port defaults move to a clustered block, after a real collision

Section titled “31. The port defaults move to a clustered block, after a real collision”

Every service’s default port used to be whatever its own upstream project happened to pick — 3000, 3002, 4000, 8000, 8199, 8888, 9999, 10200, 10300, 10400, 3003, scattered across the whole range with no relationship to each other.

Standing up Spire surfaced the actual cost of that directly: Hindsight’s default 8888 collided with an existing, unrelated container on the same box (a VPN gateway), which is a coincidence but not a surprising one — 8888 is a common enough default elsewhere that this was always going to happen to someone, on some host running more than one self-hosted thing, which describes most of the hosts this project asks someone to run it on.

.env.example’s defaults move to a contiguous, uncommon block — 13400-13409 — one thing to remember, firewall, or document instead of ten scattered numbers, and far less likely to collide with whatever else a given host already runs. Only the template’s defaults change; an existing deployment’s real .env already has its own explicit values and is untouched regardless of what a fresh clone’s .env.example now says.

Not a full sweep of every doc that mentions a specific port number. docker-compose.yml’s own comments and docs/proxy.md — the one just handed to this household as real, copy-pasteable Caddy config — are updated. architecture.md, cli.md, home-assistant.md, memory-setup.md, how-memory-works.md, deploy-checklist.md, and security.md still cite the old numbers in places. Recorded honestly as open, not silently left stale: a real, tracked follow-up, not a claim that this decision finished a sweep it didn’t attempt.

32. env_file reads .env’s literal text — which is exactly why a secret can’t come from it

Section titled “32. env_file reads .env’s literal text — which is exactly why a secret can’t come from it”

Decision #29’s env_file fix worked on Spire and shipped without catching what it broke on Mitochon, because Spire’s only engine needs no secret at all — the bug had nothing to trigger it there.

Mitochon’s deep role started returning litellm.AuthenticationError: Incorrect API key provided: set-in-k***hain — the literal placeholder text from .env, not a real key. env_file: reads a file’s on-disk lines directly; it has no way to see the real Keychain value up.sh resolves and exports into its own process environment — the exact mechanism that already makes ${OMLX_API_KEY:-none} correctly resolve everywhere else in this file, via compose-file interpolation, which is a genuinely different substitution pass than what env_file: does. A secret’s .env line is deliberately never the real value (that is the entire point of Keychain), so env_file: can only ever hand the router the placeholder for one. Compounding it: the same deployment’s registry still said base_url_var: OMLX_BASE_URL, a name retired by decision #30 — os.environ/OMLX_BASE_URL resolved to nothing, and LiteLLM silently called real OpenAI’s endpoint with the placeholder as a bearer token, which is where the confusing error text came from.

The fix, and why it isn’t a retreat from decision #29

Section titled “The fix, and why it isn’t a retreat from decision #29”

environment: - OMLX_API_KEY (bare name, no value) sits alongside env_file: - .env on the router. Compose’s own precedence rule — environment: wins over env_file: for the same key — means this one name now comes from the calling process’s real, Keychain-resolved export instead of the file. Everything else (base URLs, any future engine’s base_url_var) still needs no code change here, which was decision #29’s actual point and remains true.

This isn’t the allowlist decision #29 removed, reintroduced. That allowlist enumerated every variable a future engine might need, including ones with no reason to ever be a secret. This enumerates only secrets — and a new secret already, unconditionally, requires a line in SECRET_VARS (scripts/lib/vars.sh) before it works anywhere in this stack. Requiring a matching line here too is the same existing constraint reaching one more place it had a gap, not a new one.

Mitochon’s own registry/engines.yaml still had the mid-session, cross-host shape (omlx-mitochon for deep + ollama-spire for everything else) from before “Spire runs the entire stack, independent of Mitochon” was stated as the actual direction. Reverted to a clean, single-engine omlx registry, matching what Mitochon’s own real role now is. Spire’s OLLAMA_LOCAL_BASE_URL was consolidated into DEFAULT_ENGINE_BASE_URL (they pointed at the identical value; two names for one fact was exactly the sprawl that prompted this whole review), and OLLAMA_SPIRE_BASE_URL — dead on both hosts once neither registry referenced it — removed everywhere, including as a household-specific example baked into the checked-in .env.example template, which a generic instruction about adding a second engine replaced.

What was verified before calling this fixed

Section titled “What was verified before calling this fixed”

All four roles (chat, deep, ha-voice, task) re-tested with real generations on Mitochon after the fix — not just the one that was broken — plus the container’s actual OMLX_API_KEY env var checked directly (sk-omlx-..., not the placeholder) before trusting the symptom was gone rather than just quieter.

33. Storage reorg on Spire, and Ollama folds into docker-compose.yml as a profile-gated service

Section titled “33. Storage reorg on Spire, and Ollama folds into docker-compose.yml as a profile-gated service”

Follow-up to decision #28/#31, once Spire was confirmed as the primary, sole-host deployment (Mitochon taken down as a server, kept only for oMLX development). Two separate but related changes, both requested together:

Novak’s compose manifests, .env, and Compose Manager’s own project state stay exactly where they were — /mnt/cache/appdata/stacks/Novak/ — since Compose Manager’s projectDirectory is always derived from wherever the compose file itself lives (confirmed by reading Util.php’s StackInfo::buildComposeArgs() directly), so moving the manifests would mean re-registering the whole project.

Everything else Novak owns — config the reconciler writes (registry/, router-config.yaml, wakeword/), and (as of this decision) service databases, media, and model weights — moves to /mnt/teracache/Novak/{config,data,models}. Config already done: moved physically, with a symlink left at the old path inside the stacks directory, so nothing that reads ./registry or ./router-config.yaml (relative to --project-directory) needed to change at all.

The service data directories (Hindsight’s Postgres, Open WebUI’s webui.db/uploads/vector DB, Whisper/Piper’s model caches) use a new ${SERVICE_DATA_DIR:-namedvolume} pattern instead: unset, a service keeps using its existing Docker-managed named volume (Mitochon’s default, and any other single-disk deployment’s); set to a real host path, Compose treats it as a bind mount instead — no other code difference, since Compose decides bind-mount-vs-named-volume purely from whether the volume’s source string matches a declared top-level volumes: key. OWUI_DATA_DIR, HINDSIGHT_DATA_DIR, WHISPER_DATA_DIR, PIPER_DATA_DIR, OLLAMA_DATA_DIR were added to .env.example, all blank by default — a zero-risk no-op for any deployment that never sets them.

Previously a standalone Compose Manager project on Spire (/mnt/teracache/appdata/Ollama/), set up ad hoc while decision #28 was first being verified and never folded back in — flagged directly by the user mid-session (“there is also an ‘ollama’ container seemingly standalone… it is not custom, but it is still a part of the compose/stack regardless”). Folded in now as a new ollama service, gated behind its own profiles: ["ollama"] — same pattern as router/console/portal — so a host running oMLX (Mitochon) never starts a second, unused inference engine, and nothing changes for a deployment that doesn’t opt in.

Settings replicated exactly from the standalone project’s real, working config (/dev/dri+/dev/kfd passthrough, OLLAMA_VULKAN=1, OLLAMA_MAX_LOADED_MODELS=2, OLLAMA_NUM_PARALLEL=4, OLLAMA_KEEP_ALIVE=20m), each now overridable via .env rather than hardcoded, matching every other service in this file. Its data volume uses the same ${OLLAMA_DATA_DIR:-ollama} pattern as the storage split above — pointed at /mnt/teracache/Novak/models/ollama on Spire once the actual model data is moved there from the old standalone project’s directory.

All four items this decision originally left open are now done and verified: Hindsight’s/Open WebUI’s/Whisper’s/Piper’s live data moved into the new bind-mount paths via the helper-container pattern (real data confirmed intact — 244 Open WebUI chats, Hindsight responding healthy — before the old novak_* named volumes were deleted); Ollama’s model weights moved and the old standalone project decommissioned; UD-IQ4_XS pulled, confirmed 100% GPU-resident (ollama ps, no CPU offload) at 19.43 tok/s versus the old UD-Q4_K_M’s ~10 tok/s on a 12%/88% split, and set live as the deep role, verified end to end through the router. See ollama-settings.md for the numbers.

34. Portal/TinyAuth stay off on Spire — the VPS already does this job

Section titled “34. Portal/TinyAuth stay off on Spire — the VPS already does this job”

The portal compose profile bundles Caddy (the single-page tabs frontend) and TinyAuth (forward-auth gating it) together, since Caddy’s own Caddyfile hard-codes forward_auth tinyauth:3000 — there’s no state where one runs without the other today.

Spire doesn’t need its own copy: the user’s public VPS already runs TinyAuth for this purpose. Rather than leave Caddy running with a forward-auth backend that doesn’t exist (a 502 on every request, not a graceful “auth not configured” state), the whole portal profile was turned off on Spire — Compose Manager’s profiles file there no longer lists it, and the running caddy/tinyauth containers were stopped and removed. Nothing in docker-compose.yml itself changed; both services stay defined and gated behind profiles: ["portal"] exactly as before, for any deployment that does want a local instance.

If a future need arises to run the portal’s Caddy on Spire without a local TinyAuth (e.g. gated by the VPS’s TinyAuth instead, over Tailscale), that needs tinyauth split into its own profile and the Caddyfile’s forward_auth target changed — not attempted here, since it wasn’t asked for and changes the actual trust boundary, not just which process runs it.

Also recorded this round, not yet acted on

Section titled “Also recorded this round, not yet acted on”
  • Coral TPU (/dev/apex_0) is reserved for Frigate, not attempted for LLM inference (confirmed earlier, decision #28’s investigation, that it’s architecturally incapable of that anyway). Frigate isn’t deployed yet.
  • Frigate ⨯ Ollama integration wanted once Frigate exists — likely Frigate’s own generative-AI description feature pointed at Ollama’s OpenAI-compatible endpoint, or a registry entry once that’s real rather than aspirational. Not designed yet.
  • Home Assistant is not set up on Spire at all yet. Named as a next step, not started. docs/home-assistant.md describes wiring the Wyoming voice services and the router to HA; none of it has been applied against a real HA instance on this host.
  • novak CLI support for Unraid — see decision #35, started the same session this was recorded.

35. novak CLI works on Unraid — same commands, two platform-specific parts

Section titled “35. novak CLI works on Unraid — same commands, two platform-specific parts”

Decision #28 made Spire the primary deployment; every real config change against it this session before now went through raw SSH commands and Compose Manager, never novak itself, because the CLI hard-depended on macOS’s Keychain (security) everywhere it touched a secret. Named as an explicit open item in that decision’s follow-up audit, and asked for directly: “Implementing novak cli in Unraid would be a great move. It must follow the same principles - eg. novak adopt pulls from git and merges new codebase, etc.”

The design constraint that mattered most: one CLI, not two. A separate novak-unraid script would drift from scripts/novak the moment either one changed — exactly the sprawl this whole project keeps refusing (see #6, #29). So scripts/novak itself became platform-aware (PLATFORM="$(uname -s)"), and the two genuinely-different pieces were pulled into their own file, scripts/lib/secrets.sh, sourced by both scripts/novak and scripts/up.sh:

  • Secret storage. Darwin keeps using the Keychain exactly as before. Linux has no OS keychain to use headlessly — Unraid never has a logged-in desktop session to unlock one — so secret_set/secret_get read and write the real value directly in .env there instead, which is already what Spire’s actual deployed .env does today (confirmed by reading it directly: OMLX_API_KEY, HINDSIGHT_API_KEY, etc. are real values, not placeholders). This is a genuinely LOWER security bar than Keychain — said so in the file, not disguised as an equivalent — traded for something that works unattended on a platform with no per-user session at all. File permissions (600, enforced by secret_set on every write) are what stands in for Keychain’s OS-level encryption; there’s no second factor. novak secret verify gained a Linux-specific permissions check (secret_permcheck) as the closest equivalent to Darwin’s “would this hang an unattended boot” check, since a plain file read can’t hang the way a Keychain auth dialog can.
  • Where the CLI is linked from, and NOVAK_HOME’s default. Confirmed directly on Spire before writing this: Unraid’s / and /usr are a RAM-based overlay rebuilt from the flash image (/boot) on every boot — mount shows rootfs and an overlay, and nothing outside /boot or /mnt survives a reboot. /usr/local/bin/novak would vanish at the next one unless something re-creates it, so scripts/bootstrap-unraid.sh (new, root-only, no admin/service-account split the way macOS’s bootstrap.sh/bootstrap-admin.sh needs — Unraid has exactly one real admin account) adds a line to /boot/config/go that does exactly that. NOVAK_HOME can’t default to $HOME (/root) the way it does on macOS either: Compose Manager’s projectDirectory is always derived from wherever docker-compose.yml itself lives (confirmed earlier this session by reading its Util.php directly), so NOVAK_HOME has to be that exact path — bootstrap-unraid.sh asks once and persists the answer to /boot/config/novak/novak_home; scripts/novak and up.sh both read it from there when the environment variable isn’t set.

Smaller platform seams, same pattern throughout: detect, don’t guess

Section titled “Smaller platform seams, same pattern throughout: detect, don’t guess”
  • Tailscale’s control socket is at a different path on Unraid (/var/run/tailscale/tailscaled.sock, confirmed directly) than macOS (/var/run/tailscaled.socket) — novak ports checks both.
  • The OrbStack per-account-VM ownership check in novak ports is Darwin-only; Unraid runs one Docker daemon as root for the whole host, so there’s no per-account split to misdiagnose.
  • novak omlx apply refuses outright on Linux with a pointer to novak router apply instead — Metal/MLX cannot run there at all (decision #28), so pretending otherwise would just produce a confusing failure two layers down instead of a clear one here.
  • The checklist’s Phase 1 (admin setup) and Phase 10 (unattended operation) needed real Unraid-specific checks, not macOS ones run uselessly: array auto-start (/boot/config/disk.cfg) instead of FileVault/pmset, and Compose Manager’s own per-project autostart file plus the /boot/config/go persistence line instead of a LaunchAgent. Phase 4’s model check now hits DEFAULT_ENGINE_BASE_URL’s /v1/models on Linux instead of OMLX_PORT — confirmed directly that Ollama serves the identical OpenAI-compatible shape oMLX does, so the existing parsing logic needed no changes, just a different URL.
  • compose() (the function every novak subcommand funnels through) reads Compose Manager’s own profiles file on Linux when present, rather than a second hardcoded profile list that could drift from what Compose Manager itself believes is active.

novak adopt, novak drift, novak config, and the reconciler applier commands (omlx apply aside) needed no changes at all — they were already OS-agnostic (git, python3, plain file edits), which is exactly what “same principles” meant in practice: the platform-specific work was entirely in secret storage and host wiring, not in the actual behaviour those commands provide. bootstrap-unraid.sh does not attempt to register the Compose Manager project itself — that’s a one-time, UI-driven step better done deliberately (Docker tab -> Compose Manager -> Add New Stack -> Indirect Config File) than guessed at by a script running unattended against a real host’s plugin state.

Not yet done, tracked as follow-up: run bootstrap-unraid.sh for real on Spire and verify every command end to end (this decision records the design and the code, not a live-tested deployment); decide whether scripts/reset.sh’s destructive-operation guards need a Linux path at all, given Spire’s real data now genuinely matters (unlike the “development phase, no production data” framing decision #28 opened with).

36. The internal proxy moves onto Spire itself, replacing a separate host

Section titled “36. The internal proxy moves onto Spire itself, replacing a separate host”

Decision #16 always assumed the internal (TLS-on-LAN) proxy ran on “another host” — concretely, Mitochon, before it stopped running as a server (decision #33). With Mitochon gone, that role needed a new home. Rather than stand up a fourth machine, it moves onto Spire itself: the same box already running every service it would front.

This is a genuine simplification, not just a relocation. Decision #16’s design required the proxy host and the service host to both be on the tailnet, reaching each other over a WireGuard hop specifically so that LAN traffic to the proxy got TLS without a plaintext hop across the LAN to the actual service. When the proxy and the service are the same machine, that hop doesn’t exist to secure — reverse_proxy localhost:<port> is correct and simpler than a Tailscale address, and proxy.md’s “The shape” section now documents both cases rather than assuming the separate-host one.

Public exposure for Open WebUI is unaffected in shape, only in target. The public-facing proxy (LAN-neighbor host, ports 80/443 forwarded, decision #15) still does that job — only its upstream changes, from whichever host used to run Open WebUI to Spire’s own OPENWEBUI_PORT (13400). Decision #15’s actual reasoning (Open WebUI earns public reach by being built for it; nothing else does) is untouched.

TinyAuth is not part of this. The user runs TinyAuth on their VPS already, gating whatever sits behind that host’s own Caddy, and asked whether Spire’s own TinyAuth (portal profile, decision #22/#34) duplicates it. It doesn’t: Spire’s instance is wired directly into the portal’s own Caddy (forward_auth tinyauth:3000) and gates only that one page — Open WebUI and Konzol both already have independent Pocket ID logins that never route through it. The two TinyAuth instances, if both ever run, protect different applications; there is no redundancy to resolve by consolidating them, and no requirement to run Spire’s copy at all until the portal itself is actually wanted. See proxy.md’s portal section for the fuller answer, recorded there since that’s where this question will come up again.

Domain used in examples: nov.a64.one for the internal (Tailscale/ LAN-only) zone, illustrative — not a commitment to that exact name, just what proxy.md’s Caddy snippets now show instead of the generic novak.example.tld placeholder, since a concrete example is easier to adapt correctly than an abstract one.

37. Spire survived a real reboot — the checklist’s Phase 11, actually run

Section titled “37. Spire survived a real reboot — the checklist’s Phase 11, actually run”

Decision #35’s follow-up list and the deploy checklist’s own Phase 11 both named a deliberate power-cycle test as the one thing that had to actually happen, not just be checked for. A clean Unraid reboot (user-initiated, not simulated) gave a real answer: all 8 novak-* containers came back unaided — no manual novak up, no Compose Manager click. Confirms the autostart fix (set during the earlier storage-reorg session, decision #33’s follow-up) genuinely works, not just that the setting was correctly toggled.

CPU load immediately after boot was checked directly, not assumed benign, since a user report of “CPU is getting hit hard” earlier this project (during the original container-recreation cold start) turned out to be real and expected — worth re-checking rather than reflexively reassuring. This time: uptime’s load average was already declining (2.43 → 1.82 → 1.67 across a few minutes of checking), docker stats showed every novak-* container under 1% CPU, and the actual top consumers were Unraid’s own infrastructure settling in — dockerd (bringing up ~25 containers across the whole host, most unrelated to Novak), the webGUI’s php-fpm, and radeontop (Unraid’s own GPU-stats poller). Normal whole-host cold start, not a Novak-caused problem.

Unraid’s reboot test is done; macOS’s (Mitochon, or any future Mac deployment) is not — still an open item, and now the more clearly asymmetric one.

38. Open WebUI’s own Builtin Tools/Memory capabilities were silently defeating the router’s persona injection

Section titled “38. Open WebUI’s own Builtin Tools/Memory capabilities were silently defeating the router’s persona injection”

Found live, through the actual Open WebUI chat UI (not a curl test) — the first time this had been exercised that way since the router went live. Every prior “does the persona work” check in this project was a direct curl against the router, which bypasses Open WebUI’s own per-model settings entirely and had never caught this.

Symptom: asking chat “who are you?” through Open WebUI’s web UI got “I am Qwen, a large language model developed by Alibaba Cloud” — not Novak’s persona — and unrelated follow-up turns produced bizarre tool-agent framing (“Could you clarify what you’d like to test — creating a task checklist, updating a note, scheduling an automation…”). The identical question sent directly to the router via curl correctly returned “I am Novak, a private assistant…”. Same model, same router, same registry — different result depending on the caller.

Root cause: each of the four router-backed model presets in Open WebUI (chat, ha-voice, task, deep) had two per-model capabilities switched on — Builtin Tools (Open WebUI’s own agentic tool suite: Task Management, Automations, Calendar, Notes, and a dozen more, none of them wired to anything real in this deployment) and Memory (Open WebUI’s own experimental personalization feature, unrelated to Hindsight). Either one causes Open WebUI’s backend to construct and send a synthetic role: system message ahead of the user’s own — and persona_hook.py’s async_pre_call_hook (decision #21) trusts any client-sent system message over its own default, by design, so it silently skipped injecting Novak’s persona for every single Open WebUI request. The garbled tool-framing responses are the model reacting to the injected tool definitions from Builtin Tools, not the persona.

Not established whether this is new (a behaviour change in the Open WebUI image novak update just pulled, v0.11.3) or always latent (these capabilities may have defaulted on since the models were first created in Open WebUI, simply never exercised through the real chat UI before). Worth noting for anyone debugging this again: don’t assume a curl test against the router proves anything about what Open WebUI itself actually sends.

Fix: disabled both “Builtin Tools” and “Memory” capabilities on all four model presets (Admin Settings → Models → each model → Capabilities), plus the global Personalization → Memory toggle. Verified via a genuinely fresh conversation (not a continuation of an already-poisoned thread — tried that first and it kept replaying the old tool-framing from conversation history regardless of the settings fix) for both chat and deep: both now correctly answer as Novak.

persona_hook.py’s own trust-the-client rule was NOT changed. It’s still correct — a real debugging session sending its own system message deliberately should override the default, same reasoning as when it was written. The actual bug was Open WebUI silently manufacturing a system message the user never asked for, not the router trusting one that was sent on purpose.

Any new model preset added in Open WebUI that’s meant to go through the router (a new role in registry/engines.yaml, or a manually added Open WebUI model pointed at the router) needs these two capabilities turned off by hand — nothing in this repo enforces it automatically, since it’s an Open WebUI-side setting the reconciler has no reach into. Worth checking after any novak update that pulls a new Open WebUI image, in case a future version changes these defaults again.

39. Novak’s own whisper/piper containers decommissioned in favor of Home Assistant’s native add-ons

Section titled “39. Novak’s own whisper/piper containers decommissioned in favor of Home Assistant’s native add-ons”

Home Assistant setup work turned up that every real deployment of this stack ends up running on hardware separate from HA itself (a real Home Assistant Yellow, this household’s case), reaching Novak’s engines over the LAN/tailnet for the conversation agent only — never for STT/TTS. HA already ships its own Whisper and Piper add-ons, installable straight from its own Add-on Store, using the exact same underlying models this stack’s own containers ran (faster-whisper at auto, Piper voice en_US-lessac-medium). Running a second copy of the same thing, reached over the network instead of installed locally on the HA host, added a hop and a second place to keep the model choice in sync for zero benefit.

Decision: stop running whisper/piper as Novak containers; use HA’s own native add-ons instead. openwakeword is kept — HA has no native equivalent for server-side wake word detection on Wyoming satellites (Voice PE does wake word on-device instead, a different mechanism entirely, see wakeword.md).

Done: stopped the novak-whisper-1/novak-piper-1 containers on Spire; removed the whisper/piper service blocks and their named volumes from docker-compose.yml; removed their env vars (WHISPER_PORT, PIPER_PORT, WHISPER_MODEL, PIPER_VOICE, WHISPER_DATA_DIR, PIPER_DATA_DIR) from .env.example; updated the exposure notes in proxy.md and the voice section of deploy-checklist.md; rewrote home-assistant.md’s STT/TTS section to point at HA’s add-ons instead of a Wyoming integration aimed at this stack.

Not yet done: docker rm the stopped containers and delete their now-orphaned data directories on Spire (/mnt/teracache/Novak/data/{whisper,piper}); bring the stack back up with the trimmed compose file; pull this repo’s changes onto Spire’s own checkout.

40. Custom Conversation (HACS) needed three real bugs fixed before Home Assistant’s voice pipeline worked at all

Section titled “40. Custom Conversation (HACS) needed three real bugs fixed before Home Assistant’s voice pipeline worked at all”

Wiring up custom_conversation (michelle-avery/custom-conversation v1.6.1) against this household’s real Home Assistant Core (2026.9.0) surfaced three genuine compatibility bugs, not configuration mistakes — worth recording since none of them were obvious from the integration’s own docs, and at least one still has no upstream fix at all.

Bug 1 — missing voluptuous-openapi dependency. The integration’s conversation.py imports voluptuous_openapi, but its own manifest.json never lists it as a requirement, so HA never installs it and the whole integration fails to load (ModuleNotFoundError). Confirmed against the real upstream manifest.json for tag 1.6.1 — not a corrupted local install. Fixed by hand-patching the installed custom_components/custom_conversation/manifest.json to add "voluptuous-openapi" to requirements and restarting HA Core.

Bug 2 — removed llm.AssistAPI class. HA Core 2026.9.0 removed homeassistant.helpers.llm.AssistAPI entirely (confirmed via dir(llm)); the integration’s config_flow.py still referenced llm.AssistAPI.IGNORE_INTENTS in three places, crashing every config-flow interaction with AttributeError (a 500 error in the Options dialog). An open, unmerged upstream PR (#112) already had the exact fix — applied it by hand across all three occurrences (one was missed on the first pass; a second patch attempt introduced an indentation error, caught and fixed by computing the correct indent from the preceding if line rather than guessing it).

Bug 3 — thinking-model output crashes the chat log (upstream issue #71, still open). A “thinking” model’s reasoning_content field in its response makes the integration fail with “Last message in chat log is not AssistantContent”. Confirmed model-dependent by testing directly: Ollama’s qwen3:4b (hybrid thinking) triggers it, qwen3:4b-instruct (non-thinking) does not — same otherwise. No upstream fix exists yet. Worked around, not fixed: switched the ha-voice and task roles in registry/engines.yaml from qwen3:4b to qwen3:4b-instruct and reapplied via reconciler/router_apply.py.

Correction, same night: the “Instructions Prompt” field was never actually broken. It renders fine — it’s just titled “Customize Prompts”, not “Custom Prompts” as assumed, and sits below the Agents and Ignored Intents sections in a dialog whose scroll behaviour was flaky all session (the same stuck-scroll issue hit repeatedly elsewhere). Confirmed directly: the backend’s raw options-flow schema payload (fetched straight off the websocket API, bypassing the rendered UI) included the custom_prompts section with instructions_prompt correctly present the whole time, and the live DOM had a real, functioning ha-form for it once actually scrolled into view. Set prompts/novak-voice.md’s persona into that field directly and confirmed via a real conversation/process call that Custom Conversation now answers as Novak. See decision #41 for what happened after that fix surfaced a different, genuinely deeper bug.

41. Custom Conversation’s Assist tool-calling: fixed upstream, hit a real context-window limit, and a false alarm on model reliability

Section titled “41. Custom Conversation’s Assist tool-calling: fixed upstream, hit a real context-window limit, and a false alarm on model reliability”

Direct continuation of decision #40. Setting the persona correctly (via the “Customize Prompts” fix) surfaced a fourth bug: any conversation turn through the Assist or Custom Conversation LLM API choice crashed with litellm.InternalServerError: ... Object of type _Unsupported is not JSON serializable, traced to HA’s built-in HassBroadcast intent producing a tool parameter schema that voluptuous_openapi couldn’t convert to JSON Schema. Adding HassBroadcast to Custom Conversation’s own Ignored Intents list had no effect, and hand-patching api.py’s ignored_intents lookup (it read a flat key from what the UI actually saves as a nested section — a second, independent bug in the same file) still didn’t clear it. Landed on “No control” for the night as the one API choice that doesn’t build a tool list at all, confirmed persona-correct, and stopped there — real device control via the conversation agent was left not working.

The fix arrived upstream before a next session did

Section titled “The fix arrived upstream before a next session did”

michelle-avery/custom-conversation 1.7.0 shipped fixes for the exact two bugs found by hand: “Fix: ignored-intents option is saved nested but read flat, so the UI setting has no effect” and “Fix YAML RepresenterError when an exposed entity’s attribute key is an Enum” (the decision #40 prompt_manager.py bug), plus a Fix/ha 2026.9 compat PR that replaces the removed llm.AssistAPI.IGNORE_INTENTS reference and swaps voluptuous for a new library (probatio) as the schema-conversion layer entirely.

Upgraded via HACS, retested both Assist and Custom Conversation LLM API: the _Unsupported crash is gone on both. The hand-patches to api.py/config_flow.py/prompt_manager.py from decision #40 are now superseded by the real upstream fix and can be treated as gone (the HACS update overwrote them).

What broke next: a genuinely mundane context-window limit

Section titled “What broke next: a genuinely mundane context-window limit”

With the crash gone, both tool-calling modes failed instead with:

litellm.ContextWindowExceededError: request (7674 tokens) exceeds the
available context size (4096 tokens)
model=ha-voice

Ollama’s default context window (4096) was never enough once the full Assist tool list is included in every turn. Fixed the same way decision #38’s thinking-model swap was fixed — a new Ollama model tag, not a router code change (the reconciler’s registry/engines.yaml schema has no field for this at all; extending it was a bigger lift than baking the setting into the model):

FROM qwen3:4b-instruct
PARAMETER num_ctx 8192

Built as qwen3:4b-instruct-ctx8k via ollama create, pointed both ha-voice and task roles at it in registry/engines.yaml, reapplied with reconciler/router_apply.py, restarted the router. Confirmed via ollama show --parameters that num_ctx 8192 actually took, and via a live request that the context error is gone.

A real gotcha hit applying this: router_apply.py resolves its registry path from $NOVAK_HOME, which defaults to ~/.novak when unset. Running it as root over SSH (rather than as whatever user normally drives novak commands, with NOVAK_HOME set in their shell profile) silently fell through to the repo’s own checked-in template registry/engines.yaml — a stale oMLX-era example — because ~/.novak didn’t exist for root and the script’s fallback is exactly that: fall back to the repo default, no error. Caught only by noticing the dry-run output named omlx/Qwen3-4B-Instruct-2507-4bit instead of ollama-local/qwen3:.... The real deployed path, confirmed via docker inspect novak-router-1’s mounts, is /mnt/cache/appdata/stacks/Novak — passed explicitly as NOVAK_HOME=... python3 reconciler/router_apply.py from then on. Worth remembering: this script’s silent-fallback-to-repo-template behavior is a footgun for anyone running it outside its normal invocation context.

What looked like a model-reliability bug, and wasn’t

Section titled “What looked like a model-reliability bug, and wasn’t”

First pass at testing device control looked damning: asked Custom Conversation to turn on a specific light by name, got back “Light L2 Dining Room Accent is now on” — a different entity than the one named — with an empty success/failed array in the structured response. Read as “no tool was invoked at all, just narration,” and this decision originally said so, landed back on “No control,” and called it a qwen3:4b-scale capability limit.

That conclusion was wrong, caught the same session on a closer look. Reproduced the exact call directly against the router (from inside the HA container, real 15,626-char system prompt captured live off the unconditional LOGGER.debug("Iteration %s, messages: %s", ...) line — not the error-only debug line used earlier) at both temperature 1.0 and 0.1: 6/6 correct intent__HassTurnOn tool calls at both temperatures, every time picking the same “Accent” entity the live run did. Temperature was never the variable. Then forced the actual target entities to known states in HA directly and re-ran the live call: the light that gets named in the speech response (light.light_l2_dining_room_accent) genuinely turns on, with a last_changed timestamp landing exactly when the call was made; a same-area light with a very similar name (light.relay_l2_dr_light_l2_dining_room, friendly name literally “Light L2 Dining Room”) correctly stays untouched. The tool call is real, executes correctly, and the spoken response accurately describes what happened.

So there were two separate, much smaller things, not one big one:

  1. The success/failed metadata fields are unreliable in 1.7.0 — empty even on a real, verified-successful execution. Cosmetic/ reporting bug, not a dispatch failure; don’t trust these fields as evidence either way without checking real entity state.
  2. A genuine but minor entity-disambiguation quirk: asked for “Light L2 Dining Room” (the exact friendly name of one specific entity), it consistently resolves to a different, plausibly-named entity in the same area (“…Accent”) instead. Worth another look on its own, but it’s “picks a slightly wrong real light,” not “invents success with nothing behind it” — a much smaller problem.

Net effect: qwen3:4b-instruct-ctx8k is not the blocker. Device control through Custom Conversation appears to actually work. Left on “No control” at the end of this session anyway, simply because the entity-disambiguation quirk hadn’t been characterized well enough yet to trust turning it back on unattended — not because tool-calling itself needs a bigger model.

42. Switched from Custom Conversation to HA Core’s native litellm integration

Section titled “42. Switched from Custom Conversation to HA Core’s native litellm integration”

Direct continuation of decisions #40/#41. HA Core shipped a native litellm integration in 2026.8 — one release before the 2026.9.0 this household runs — discovered while comparing alternatives after a whole session spent on custom_conversation’s own bugs. It wasn’t obviously findable earlier: it doesn’t show up by searching “OpenAI” or “Ollama” in HA’s integration picker, only by its own name, “LiteLLM.”

It’s part of HA Core, not a third-party HACS dependency — none of decision #40’s bug class (a stale reference to a class HA Core itself removed, a missing declared dependency) is even possible, since it’s maintained on HA Core’s own release cadence rather than by one external maintainer catching up to HA’s changes after the fact. It points at a LiteLLM proxy directly (Spire’s router), so persona_hook.py’s injection (decision #21) still applies exactly as designed. It discovers the router’s model roles automatically (chat, ha-voice, deep, task) and creates one conversation agent per role. Setup took minutes: add the integration, add a conversation agent for ha-voice, paste prompts/novak-voice.md into its Instructions field, check “Assist,” done — persona-correct on the first request, no dialog-finding, no restart cycle.

Head-to-head against Custom Conversation 1.7.0, both tested live against the same household data:

Custom Conversation 1.7.0 Native litellm
Setup Hours, across multiple sessions Minutes
Persona field Present but mislabeled (“Customize Prompts”, not “Instructions Prompt”) Labeled Instructions, worked first try
Device control executes Yes (once model/context issues resolved) Yes
success/failed response metadata Unreliable — empty even on a verified real success Accurate
Maintenance One external maintainer, actively fixing real bugs found this session HA Core team, HA’s own release cadence

🥉 Bronze quality, ~188 installs at time of writing — genuinely newer and less battle-tested than Custom Conversation’s 1,428-star alternative (Extended OpenAI Conversation) or even Custom Conversation itself. Traded consciously: less community mileage, in exchange for zero third-party integration-bug surface and a working state reached in minutes instead of a whole session.

Custom Conversation is not removed — still installed, its conversation.custom_conversation entity still exists, left on “No control” (harmless, unused). Kept as a fallback and because decision #19’s comparison logic (Extended OpenAI Conversation brings its own function-calling, breaking the “HA’s intents, not a third-party tool system” architecture) still applies to it — the native integration doesn’t change that reasoning, it just removes the reason custom_conversation was needed at all on HA versions ≥ 2026.8.

What switching to it actually surfaced: two real, separate bugs — neither in either integration

Section titled “What switching to it actually surfaced: two real, separate bugs — neither in either integration”

With the crash-class bugs gone and the persona working, a specific light still refused every phrasing, across every agent tried — including HA’s own built-in, non-AI conversation agent. That last part was the key diagnostic: it isolated the problem away from any LLM or integration entirely, since the built-in agent has no LLM in the loop at all.

Root cause 1 — the entity was never exposed to Assist. Its registry entry read "conversation": {"should_expose": false} — a switch_as_x wrapper around a relay switch, apparently never toggled on for voice. Every “I don’t have a device named X” response, from every conversation agent, was accurate: none of them could see it, because it was never in the exposed-entity list any of them build their tool/entity descriptions from. No amount of prompt engineering, alias tuning, or model swapping could have fixed this — it doesn’t reach the LLM layer at all. Fixed with one websocket call: homeassistant/expose_entity with should_expose: true.

Root cause 2 — multiple aliases on one entity confuse a small model. Once exposed, the entity still wasn’t reliably addressable by its two aliases together. HA joins an entity’s registered aliases into a single comma-separated "names" field for the LLM’s context (e.g. "Buffet Light, Sideboard Light") — confirmed via HA Core’s own PR #126163, which added this exposed_entities/aliases structure generically for every native LLM conversation agent, not just litellm. qwen3:4b-instruct reliably treated that whole joined string as one literal (and therefore unmatchable) device name rather than trying either alternative separately. Dropping to a single alias per ambiguous entity resolved it cleanly and repeatably. Worth remembering for the general case (two similarly-named entities sharing an area, where an LLM’s own tool selection tends to favor matching the area over a specific entity anyway) — one well-chosen alias beats several redundant ones.

Both fixes verified with real, physical state-change tests (forced light state, live conversation call, checked last_changed moved and the correct entity changed) — not just plausible-sounding response text, following the same lesson decision #41 learned the hard way about trusting response metadata over ground truth.

A footgun hit chasing the wrong root cause first

Section titled “A footgun hit chasing the wrong root cause first”

Before finding the real cause, effort went into: (a) suspecting the prompt-building code path itself (reading HA Core’s llm.py/litellm component source directly, including a PR archaeology detour), and (b) trying to capture live request payloads via LiteLLM router debug logging (set_verbose/LITELLM_LOG=DEBUG) — which needed a full container recreate to pick up a new env var, not just novak restart router (env vars are fixed at container creation; a restart alone doesn’t re-read env_file). Both were legitimate leads and both were abandoned once a much simpler test — asking HA’s own built-in agent the same question — isolated the actual layer the problem was in within one call. Worth trying that kind of maximally-isolating test earlier next time a conversation-agent problem looks like it might be model- or integration-specific: rule out the shared, LLM-free baseline first.

43. “Hey Novak” microWakeWord training actually completed

Section titled “43. “Hey Novak” microWakeWord training actually completed”

STATE.md and wakeword.md have said since 2026-09-10 that this was decided but not done — a training run was started and ~12,500 raw candidate samples were staged, but nothing had crossed into an actual training pass. It has now: a real hey_novak.tflite exists, trained with microWakeWord-Trainer-AppleSilicon on Apple Silicon, per the headless flow wakeword.md already documented (./train_microwakeword_macos.sh "hey_novak").

Calibration, from the trainer’s own manifest (generated_at 2026-09-19T09:08Z, validated against a held-out set — 50,000 positive tracks, ~9.7 hours of ambient audio):

  • Target false-accept rate: 0.25/hour. Achieved: 0.103/hour — better than target.
  • Recall: 0.992 at probability_cutoff 0.99.

Both numbers matter together: a model tuned only for recall would false- trigger on the television, which is exactly the failure mode wakeword.md warns about for a truncated phrase — “hey novak” (3 syllables) gave the trainer enough signal to hit a low false-accept rate without giving up recall.

Two output files, not one, and they’re not interchangeable

Section titled “Two output files, not one, and they’re not interchangeable”

The trainer produced three files: hey_novak.tflite (the model itself), hey_novak.json (a full manifest — training metadata, the tater_native block for that project’s own satellite firmware, and the calibration numbers above), and hey_novak.esphome.json — a minimal manifest carrying only what micro_wake_word: actually reads (type, wake_word, model, micro.*). Feed ESPHome the .esphome.json, not the full one; the extra fields in the full manifest aren’t schema ESPHome expects, and wakeword.md’s existing YAML example (model: /config/models/hey_novak.json) should be read as “the ESPHome manifest,” which will need renaming or updating to point at hey_novak.esphome.json when this actually gets flashed to a device.

Training produced the artifact; it isn’t on a satellite yet. Per wakeword.md’s existing guidance, getting it there is device-specific work (ESPHome Builder adoption for HA Voice PE, or a custom firmware build for a Satellite1) and “costs more than a file copy” — tracked separately in STATE.md, not resolved by this decision.

44. A real persona drift check, for the failure mode that actually bit us

Section titled “44. A real persona drift check, for the failure mode that actually bit us”

STATE.md has carried “client-side persona drift check — still does not exist” as an open item since decision #38, describing it as “exactly what let decision #38’s Open WebUI bug go unnoticed until someone actually looked at a real chat.” Decision #18’s original framing of this problem was text drift — a client’s copy of the persona diverging from prompts/. That’s not what actually happened. What happened was a client silently sending its own system message at all, which makes persona_hook.py’s async_pre_call_hook (decision #21) skip injection entirely, by design — the router has no persona text to compare, because none of its own text was ever sent.

That’s a detectable event, not a content diff, and it doesn’t need a new credential: router/persona_hook.py already knows, on every single call, whether it just skipped injecting. It was simply throwing that fact away.

persona_hook.py now logs PERSONA_DRIFT (a logger.warning, tagged for grepping) whenever a request for a router-injected model (chat, deep) arrives with messages[0] already role: system — the exact condition decision #38 found by accident, now observable without a live chat test. ha-voice is deliberately excluded: HA’s native litellm integration (decision #42) is supposed to send its own system message (a manual copy of prompts/novak-voice.md pasted into its Instructions field), so flagging that would be 100% noise.

novak drift --live (new flag, opt-in — everything else novak drift does is file-only and credential-free by design, and this genuinely isn’t: it needs docker reachability to wherever the router container runs) greps docker compose logs router --since 24h for that tag and reports what it finds, with a pointer at the specific Open WebUI setting decision #38 traced this to.

The hook logic was exercised directly against router/persona_hook.py with litellm stubbed out (no live router available from where this was written) — confirmed it injects normally with no client system message, warns for chat with one, and stays silent for ha-voice with one. The novak drift --live grep itself has not been run against a real deployment. VERIFY: run it on Spire, and confirm a warning actually appears if Builtin Tools/Memory get re-enabled on a model preset again.

The other half of decision #18’s original problem — whether the text HA’s Instructions field holds has drifted from prompts/novak-voice.md — is still open. HA’s native integration is a deliberate second copy, not an accident, so there’s no “skipped injection” event to detect; catching that needs actually reading HA’s config and diffing it, which needs HA’s own API and a dedicated long-lived token. No such token exists in this deployment (HA_MCP_TOKEN belongs to the ha-mcp registry entry, which ships enabled: false and is a different, higher-privilege credential — reusing it for a read-only check would be borrowing scope it doesn’t need). Left as a named, still-open item rather than built blind: this project’s own pattern is “checked directly” before “done,” and there was no live HA instance reachable from this session to check against.

45. Every unpinned image now pins to a digest, not a moving tag

Section titled “45. Every unpinned image now pins to a digest, not a moving tag”

The conformIT audit (conformit-audit.md, gap #4) named this directly: open-webui, console, hindsight, openwakeword, and ollama were all still :latest/:main, an unreviewed change on every pull and an outage if the network is down at the wrong moment. It offered two acceptable outcomes — pin, or write a decision recording the exposure as deliberate. This is the first.

Cost: updates to these five images become manual from here — the tradeoff the audit named explicitly, and the reason this wasn’t already done. The audit’s own position, which this decision adopts, is that a silent surprise upstream change is worse than a quiet stale pin: a stale pin fails the same way every time until someone updates it; an unpinned :latest can change behavior under you with nothing in git to show it happened, which is exactly the failure class decision #38 already cost a whole debugging session to.

Each image: line in docker-compose.yml now carries a comment naming the date the tag was resolved and pointing at this decision. Digests were resolved directly against each registry’s manifest API (GHCR and Docker Hub, anonymous pull-scoped tokens, Docker-Content-Digest header) on 2026-09-22 — not against a live pull on the deployment host, since none was reachable from this session. Each captured digest is an OCI image index (multi-arch), the same strength of pin router’s own digest already used (decision #21) — not a single-platform manifest, so docker compose still resolves the right platform underneath it.

Refresh procedure, since a pin with no way to move it just becomes a permanently stale dependency: resolve the tag’s current digest again (same manifest-API approach, or docker manifest inspect <image>:<tag> on a host with a running daemon), update the one image: line, and for open-webui specifically, re-confirm decision #38’s persona-capabilities fix still holds against the new build through the real chat UI before trusting it — a curl test against the router alone did not catch that bug the first time.

console pins differently from the other four: it is this project’s own actively-developed image (novak-konzol), not a third party’s, so its pin will go stale on every real console change, not just on upstream’s own release cadence. Bumping it belongs with the novak-konzol change that’s meant to actually ship, not on the same cycle as the others.

Every digest was confirmed to resolve via the registry API and to belong to the currently-tagged image (index digest for the tag, checked via response Content-Type), and docker compose config parses the edited file cleanly. None of the five has actually been pulled and started with these pins — there was no live host to do that against from this session. VERIFY on the next novak update or fresh deploy: that each service still starts, and that automated builds elsewhere (.github/workflows, if any reference these images by tag) aren’t affected by the change.

46. CLAUDE.md added, and a stale STATE.md claim found while writing it

Section titled “46. CLAUDE.md added, and a stale STATE.md claim found while writing it”

conformIT audit gap #6: CLAUDE.md was the one required file with a real, immediate cost, named in the audit as an “afternoon [of work] and pays for itself” — conventions like the commit hook’s 72-character subject limit had been rediscovered by trial and error across sessions rather than written down once.

Wrote CLAUDE.md from what was actually observable in this repo’s own history and existing docs: docs/commit-style.md’s rules, the actual branch/PR pattern recent commits show (git checkout -b, gh pr create, gh pr merge --merge --delete-branch), conformIT’s no-em-dash rule stated as forward-looking rather than already-true (the audit found Novak fails it at scale and deliberately deferred that cleanup — the new file says so explicitly, so a future session doesn’t assume the docs already conform), and where prompts//registry/ sit as live config versus docs/ as reasoning.

A concrete example of the exact problem this file exists to prevent, found while writing it: STATE.md’s “Not started” section still listed “No interactive first-run wizard” — novak guided-setup has existed since 2026-09-04 (confirmed via git log -S), before this file’s own last full rewrite (2026-09-10). It was built and simply never crossed off. Fixed in the same pass as this decision. Nothing about this was a large drift — one stale bullet in one file — but it is exactly the class of thing STATE.md itself warns is easy to miss, and the reason CLAUDE.md’s own guidance says to reread STATE.md/decisions.md before trusting the rest of docs/ at face value.

Not done: CHANGELOG.md, conformIT’s other required-file gap. Correctly triaged as the weaker case in the audit itself — its justification is about changes a user would notice, and there is no tagged release yet. Left for the first one, not built ahead of its need.

47. Every VERIFY licence in credits.md checked directly

Section titled “47. Every VERIFY licence in credits.md checked directly”

docs/credits.md carried eight VERIFY licences — the conformIT audit’s “Not checked” section named this directly as “still a release gate.” Checked each against a primary source: GitHub’s repository licence API (gh api repos/<owner>/<repo> --jq '.license.spdx_id') where the project is a GitHub repo, npm registry metadata (license field) for the two MCP packages, and the actual LICENSE file content where the API’s guess looked incomplete.

Findings:

  • oMLX, outline-mcp-server, Tududi, @aimbitgmbh/vikunja-mcp, supergateway: as expected, resolved cleanly to Apache-2.0/MIT.
  • Pocket ID: BSD-2-Clause, not previously guessed at.
  • Open WebUI was the one worth reading in full, not trusting a single SPDX tag for. GitHub’s API returns NOASSERTION — it isn’t a stock licence, so the detector can’t classify it. The actual LICENSE file is BSD-3-Clause-style redistribution terms plus a fourth clause prohibiting altering or removing “Open WebUI” branding, with an explicit carve-out for deployments under 50 end users in any rolling 30 days (also: written permission, or an enterprise licence). Novak runs the image unmodified and is a household deployment well under that threshold — compliant as actually run here, which the prior note (“has had licence changes”) didn’t establish either way.
  • microWakeWord-Trainer-AppleSilicon (decision #43) has no LICENSE file at all — confirmed by checking LICENSE/LICENSE.md/ LICENSE.txt directly (all 404) as well as GitHub’s own detector. Default copyright applies: all rights reserved, no redistribution permission granted by the author. Not a problem for how it’s actually used here — cloned, run once locally, output kept, never redistributed, the same posture credits.md already applies to other run-once build tooling — but it’s the one entry in this table with no grant at all, worth a real look before this project ever redistributes anything built with it.

Cost: none — this was reading, not building. docs/credits.md updated in place; no VERIFY licence markers remain as of this decision.

conformIT audit gap #1, and the only one the audit itself called “actively harmful to leave” — a public repo with no LICENSE file is all-rights- reserved by default, the opposite of what a public repo usually intends. The audit was explicit that this choice belongs to the maintainer, not to an automated pass, so it stayed open until asked directly.

Chosen: MIT, across novak, novak-konzol, and novak-integracije — conformIT’s own stated default “for an application not intended for reuse [as a library],” which fits: nothing here is packaged for import elsewhere, and the goal is that people can fork, self-host, and modify freely, not that the code become a dependency.

Added a LICENSE file (standard MIT text, copyright Tyler Meuse, 2026 — each repo’s first commit) and a ## Licence section to each repo’s README.md, pointing at docs/credits.md in novak’s case since several of its dependencies carry their own, more restrictive terms (AGPL-3.0, GPL-3.0, BSL 1.1) that MIT-licensing Novak’s own code does not change.

While in novak-konzol’s README for this: found and fixed a second stale status claim, unrelated to licensing — “never built or run, no npm install has happened” — while CI has actually been building and publishing an image to ghcr.io/almadon/novak-konzol since 2026-08-21. Replaced with what’s actually true: it builds and publishes, and is still three placeholder pages with no real components, per this repo’s own docs/STATE.md. The same habit CLAUDE.md (decision #46) was written to name keeps surfacing in small, easy-to-miss ways across all three repos, not just this one.

49. docs/security.md rewritten for what’s actually deployed

Section titled “49. docs/security.md rewritten for what’s actually deployed”

It described a single-Mac deployment: Qdrant (replaced by Hindsight two migrations ago), “the mini” (Mitochon, not Spire, the actual production host since decision #33), Keychain-only secrets (Unraid has no OS keychain and never did), and no mention of the router or the persona’s role in enforcing the security posture at all. Not a style problem — factually describing infrastructure that no longer runs this way.

Rewritten against what’s actually current: multi-platform secrets (Rule 1, both Keychain and .env paths), the registry’s own risk levels as the mechanism behind least-privilege (Rule 2, replacing a hand-maintained example list), the persona’s enforcement role and decision #38/#44 as the concrete case of it silently failing (Rule 3), the real exposure table from proxy.md with the actual public/internal proxy split (Rule 4, replacing a stale single-host LAN description), and the current backup story per platform including the still-open Unraid confirmation gap (already tracked in deploy-checklist.md, now cross-referenced instead of silently contradicted).

Found and fixed two more stale claims in architecture.md while cross-checking this — both said the persona drift check “still doesn’t exist,” written before decision #44 built the router-side half of it. Updated to describe what decision #44 actually covers (a client silently overriding the router’s injection) versus what’s still genuinely open (a client bypassing the router entirely, which has no detector since it never reaches the router to be observed).

Cost: none — reading and rewriting, no new claims made that weren’t already established elsewhere in this repo. The value is entirely in one document no longer contradicting the rest of them.

50. The trained microWakeWord model is committed here, not left local

Section titled “50. The trained microWakeWord model is committed here, not left local”

Decision #43 trained hey_novak.tflite and left it on the machine that trained it, on the reasoning that wakeword.md frames the ESPHome model as something that “goes into the device’s ESPHome config” — deployment target, not repo content.

That reasoning didn’t hold up against this repo’s own existing convention. wakeword/models/.gitkeep already establishes that openWakeWord’s trained models get committed here — the directory is tracked, wakeword.md says “drop a trained model in” with no caveat about it being deployment-local, and nothing in .gitignore excludes model binaries. A trained microWakeWord model is the same category of thing: a small, non-secret build output that’s the actual source of truth for a deployment, not scratch state. Excluding it while including its openWakeWord sibling was an inconsistency, not a principled distinction — caught by direct question, not found independently.

Committed hey_novak.tflite, hey_novak.json, and hey_novak.esphome.json to wakeword/microwakeword/, parallel to wakeword/models/. docs/wakeword.md updated to describe two separate steps rather than one: committing the artifact here (versioning, durability against a nondeterministic and “still very difficult” training process) and copying it onto the actual device’s ESPHome config (deployment, decision #43’s still-open item, genuinely costs more than a file copy).

Cost: ~140KB in the repo. Worth it — the alternative is a trained artifact that exists in exactly one place, on one machine, with no history if it’s ever lost or needs comparing against a retrain.

51. One ESPHome manifest, in ESPHome’s own schema, with the model’s author being ours

Section titled “51. One ESPHome manifest, in ESPHome’s own schema, with the model’s author being ours”

Decisions #43 and #50 committed the trainer’s output as it came out: the .tflite plus two JSON files, hey_novak.json (full) and hey_novak.esphome.json (minimal). Reviewed against the actual target, a FutureProofHomes Satellite 1 on firmware v0.2.1, that was wrong in two ways.

Duplicate. The minimal file is a strict subset of the full one (checked key by key: same values for every shared key, nothing unique to it), and the firmware’s micro_wake_word: takes a single manifest per model, resolved by path or URL with the .tflite alongside it. Decision #43’s “feed ESPHome the .esphome.json, not the full one” was right about which file ESPHome can read and wrong to keep both.

Wrong provenance. The manifests named the trainer’s author and website as the model’s author, and the full one carried a tater_native block whose recommended_for lists that project’s own satellite firmware. ESPHome ignores all of it, but anyone reading the file, or the raw URL a satellite config points at, would reasonably conclude this is someone else’s model built for someone else’s hardware. It is a model trained here, by the maintainer, for this household’s wake phrase. The trainer is a tool and is credited as one in credits.md.

Changed: wakeword/microwakeword/ now holds hey_novak.tflite and a single hey_novak.json in the same schema the stock manifests use (FPH’s okay_nabu.json was the reference). author is the maintainer, website is this repo, wake_word is Hey Novak (title case, matching the stock manifests; ESPHome passes it through as a display phrase). The model numbers are unchanged: probability_cutoff 0.99, window 5, step 10, arena 30000. hey_novak.esphome.json is removed. The trainer’s calibration block is not kept in the file, since it isn’t part of the schema; its numbers are in decision #43, and the original files are in git history at the commit that introduced them.

Not verified: none of this has been compiled into firmware or heard by a real Satellite 1. Two things worth knowing before it is, both now in wakeword.md: the firmware’s sensitivity selector only knows the stock models, so hey_novak runs at its manifest cutoff (0.99, from the trainer’s own validation set rather than FPH’s corpus) until tuned by hand; and removing a stock model the selector’s lambda still names breaks the compile unless the selector goes too.

52. The HA-side persona drift check, built blind against a guessed field name

Section titled “52. The HA-side persona drift check, built blind against a guessed field name”

Decision #44 built half of decision #18’s original persona-drift problem (a client silently skipping router injection) and left the other half explicitly open: whether the text pasted into HA’s litellm Instructions field (decision #42) has drifted from prompts/novak-voice.md. That half needed two things decision #44 didn’t have: a credential scoped for a one-field read, and a way to actually reach the field.

Not HA_MCP_TOKEN — decision #44 already ruled that out (it belongs to the ha-mcp registry entry, a different and much higher-privilege integration). A new HA_DRIFT_TOKEN/HA_URL pair exists now (.env.example, scripts/lib/vars.sh), external secrets like HA_MCP_TOKEN since their value has to match what HA issued.

Worth being explicit about, since it’s easy to assume otherwise: Home Assistant’s long-lived access tokens carry no scope of their own. A token can do exactly what the user behind it can do, full stop — HA has no concept of a “read-only” token. The read-only property this check wants comes entirely from pointing it at a dedicated, non-admin HA user made for this alone, not from the token itself. docs/home-assistant.md now says so, with where in HA’s UI to create both the user and the token.

HA has no REST endpoint for a config entry’s stored options — only the websocket API the frontend itself uses (config_entries/get, config_entries/subentries/list). reconciler/ha_persona_drift.py authenticates over /api/websocket with the token above, finds the litellm config entry, and reads the ha-voice conversation agent’s subentry data. Wired into novak drift --live as a fourth, independently opt-in block — skips silently when HA_URL/HA_DRIFT_TOKEN aren’t set, same as everything else in that command degrading individually rather than failing outright.

Built blind — the part that actually needs verifying

Section titled “Built blind — the part that actually needs verifying”

There was no live HA instance reachable from this session, the same constraint decision #44 hit. The router-log check that decision built could still be exercised offline against persona_hook.py directly; this one can’t — the thing being checked is HA’s own internal representation of a config entry, which this project has never seen firsthand. The one genuinely uncertain part is INSTRUCTION_KEYS in ha_persona_drift.py: a guess at which key in the subentry’s data dict holds the pasted Instructions text (instructions, prompt, system_prompt, instructions_prompt). Rather than risk a wrong guess silently reporting “no drift” forever, the script fails loud instead: if it finds the right agent but none of the guessed keys, it prints the raw subentry JSON and exits non-zero, so the real key name can be read off once and dropped in.

VERIFY (added to STATE.md): run novak drift --live against Spire’s real HA instance once HA_URL/HA_DRIFT_TOKEN are set up there, and fix INSTRUCTION_KEYS if the raw dump shows a different key than guessed.

53. HA pulls the voice persona instead of holding a pasted copy

Section titled “53. HA pulls the voice persona instead of holding a pasted copy”

Decision #52 tried to detect drift in the text pasted into HA’s litellm Instructions field by reading that field over HA’s websocket API. Run for the first time against a real HA, it could not work: the websocket call that lists a config entry’s subentries (config_entries/subentries/list) returned the ha-voice agent with empty data, so the stored Instructions are not readable that way, and the other routes need an admin token, which defeats the dedicated read-only user #52 was built around. The first run also found two plain bugs (HA_URL was only read from the shell, not .env, and set -e hid the check’s exit code), fixed in PR #66.

The deeper issue is the design, not the detector. The router injects the persona for Open WebUI, but HA’s agent always sends its own system message, so ha-voice is deliberately client-managed (CLIENT_MANAGED_PERSONA) and HA held a second, manually maintained copy. The intent of the project is that prompts/ is the only copy and every client stays in sync, so HA should pull.

  • persona/server.py, run as the persona compose service, serves prompts/novak-voice.md (header stripped, same rule as the router) as {"text", "sha256"} at /voice.json. Stdlib only, read-only, re-read on every request, bound to the Novak host’s Tailscale IP (PERSONA_BIND) because only HA needs it. The persona is not a secret.
  • HA polls it with a REST sensor (sensor.novak_voice_persona, text in an attribute, because a state is capped at 255 characters). The agent’s Instructions field is a template reading that attribute, with a short fallback so an outage degrades the persona rather than removing it.
  • ha_persona_drift.py now reads that one sensor’s state over REST and compares its text with the repo. Reading a state works for a non-admin user, so the read-only property holds, and it no longer needs websockets.

HA’s REST integration is YAML only, so one block goes into HA’s configuration.yaml by hand. HA polls (default every five minutes), so a persona edit reaches ha-voice at the next poll, not instantly. HA will not let anything read the Instructions field back, so that the field contains the template is confirmed once by asking ha-voice who it is, not by the drift check. A new service and port (13408) join the stack.

HA exposing a conversation agent’s stored settings to a read-only user, or HA’s LiteLLM integration gaining a way to take Instructions from a URL, either of which would remove the YAML block.

54. Published ports bind to the Tailscale IP; containers talk by service name; Ollama follows engines.yaml

Section titled “54. Published ports bind to the Tailscale IP; containers talk by service name; Ollama follows engines.yaml”

Two things the first real deployment forced into the open.

The router (13402) and Ollama (11434) were published on 0.0.0.0, so anything on the LAN could use them, and neither has authentication. The only outside client of the router is Home Assistant, over Tailscale. A key on the router would have to be set in every client (HA, Open WebUI, Hindsight) and in the generated router config. Binding the port to the host’s Tailscale IP gets most of that protection with one setting.

ROUTER_BIND, OLLAMA_BIND and MCP_BIND (the last for every container MCP server in the registry, rendered by the reconciler; all default to 0.0.0.0, so existing deployments are unchanged until they opt in) set the address. A bind to one address does not accept connections to another, so containers must not reach these services through the published port (host.docker.internal resolves to the Docker bridge, not the Tailscale IP). Open WebUI and Hindsight use the router’s service name instead (http://router:4000/v1), which also removes any dependency on Tailscale being up for container-to-container traffic.

up.sh enabled the console, portal and router profiles but never ollama, because on Unraid Compose Manager had been doing it through its own profiles file. Once a stack is run with novak up and novak update instead, nothing started it, and a novak down followed by up left the engine down. Ollama is part of the stack whenever an engine in registry/engines.yaml points at this host’s Ollama, so up.sh now reads that file and enables the profile in that case (a ollama service name, host.docker.internal, localhost, or the host’s own name, on the Ollama port). An oMLX deployment or an engine on another machine leaves it off, which is why it stays behind a profile.

A router on the Tailscale IP is unreachable from LAN clients that were using it. Moving Open WebUI and Hindsight to the service name is a change to each deployment’s .env. The detection rule is a heuristic over URLs, so an unusual setup (Ollama reached through a hostname alias) needs the profile enabled by hand.

A client appearing that cannot use Tailscale; or router authentication being wanted anyway, for example if the router is ever reachable beyond the tailnet.

55. Interactive roles run with thinking off

Section titled “55. Interactive roles run with thinking off”

Open WebUI felt slow, and the cause was not throughput. chat is qwen3:14b, a hybrid reasoning model, and by default it reasons invisibly before answering. Measured on the reference deployment (RX 9060 XT, Ollama over Vulkan, streaming, warm unless noted):

qwen3:14b first visible word total
thinking on, one-sentence question 10 to 20 s (45 s from a cold start) 11 to 22 s
thinking on, 120-word answer 8 s 12 s
thinking on, short logic puzzle never, inside a 600-token cap 18 s
thinking off 0.1 to 0.2 s 1.3 to 4.3 s

Tokens per second were the same either way (about 33). The non-thinking qwen3:4b-instruct runs at about 95 tokens per second. Disabling by a /no_think suffix in the prompt did nothing on this Ollama.

registry/engines.yaml takes an optional thinking: off per role, which router_apply.py renders as extra_body: {reasoning_effort: none} in that role’s LiteLLM params. extra_body, because LiteLLM rejects reasoning_effort: "none" as an unsupported OpenAI parameter (HTTP 400) but passes extra_body through, and Ollama honours it. YAML 1.1 reads an unquoted off as false, so both spellings are accepted. Roles meant for deliberate reasoning (deep) are left on the default.

A role set to off cannot be asked to reason per request; use deep for that. Engines other than Ollama ignore the extra field, so the setting does nothing there.

A model whose non-thinking mode is noticeably worse than its thinking mode for the questions people actually ask, or a way to switch per request that LiteLLM accepts.

56. Keep chat and task resident together: a memory budget, not a smaller model

Section titled “56. Keep chat and task resident together: a memory budget, not a smaller model”

Even with thinking off (decision #55), Open WebUI turns paid a hidden reload. Each turn is a chat call plus background calls (title, tags, follow-ups) on the task role, and with Ollama’s defaults (four parallel slots, 4096 context) qwen3:14b took 11 GB and the 4B task model 7.5 GB, so they could not share a 16 GB card: every turn swapped one out for the other.

Measured on the reference deployment, models unloaded at the start:

step before after
chat turn after a task call first word 6.4 s 0.12 s
task call after a chat turn 2.6 s 0.27 s
qwen3:14b tokens/s 33 32 to 33
4B instruct tokens/s 95 95 to 98
VRAM, both models loaded did not fit 13.97 of 16.30 GB
chat context 4096 (silent truncation) 8192

OLLAMA_CONTEXT_LENGTH, OLLAMA_FLASH_ATTENTION and OLLAMA_KV_CACHE_TYPE are passed through by the compose file, with Ollama’s own values as the defaults, next to the existing OLLAMA_NUM_PARALLEL and OLLAMA_KEEP_ALIVE. The reference deployment sets two parallel slots, an 8192 context, flash attention, a q8_0 KV cache and a 24 hour keep-alive. KV cache memory is roughly context times parallel slots per loaded model, so the budget is: weights, plus context times slots times the per-token KV size, for every model that must stay loaded, under the card’s memory.

Two parallel slots per model instead of four: two simultaneous requests to the same model queue the third. Loading the 27B deep model (about 15 GB) evicts both resident models; they reload on next use (not measured). The first request after a restart or a 24 hour idle still pays the load.

More than two people using chat at once, a card with more or less memory, or a different model mix (the arithmetic above is the thing to redo).

57. Ingest is an optional extension that works only while the models are idle

Section titled “57. Ingest is an optional extension that works only while the models are idle”

A voice recorder produces long audio nobody is waiting on. Turning it into a note, a summary and proposed tasks is useful, but it needs the same two resources chat and voice need: the CPU, and the language model on a 16 GB GPU that decision #56 budgeted for chat and task together.

A new optional service, ingest, behind its own compose profile (INGEST_ENABLED=true), documented in ingest.md.

  • Passive always yields to active. It starts a unit of work (one 60 second audio chunk, one model call) only after no model has been used for a quiet window, found by asking Ollama which models are loaded and when they were last used. Progress is saved per unit.
  • Summaries use the resident chat role, not deep. Loading deep evicts the chat and task models (decision #56), so it would turn a background job into a slow next chat turn.
  • Whisper runs on the CPU at the lowest CPU share (whisper.cpp in its own container, stt), so it cannot take VRAM from the models. A Vulkan build is documented as an unmeasured experiment, not the default.
  • Hardware-agnostic core. The service takes audio over HTTP or a watched folder and knows nothing about any recorder. Device adapters live outside it.
  • Tasks are proposals. A person approves them, first through a Home Assistant notification that opens a review page, later through the console on the same API. A misheard word cannot write to a task tracker.
  • Sinks are declared in registry/ingest.yaml and call MCP tools with templated arguments. They ship disabled, because their tool names must be checked against the live servers first.
  • A second container image to build (Python and ffmpeg) rather than a pinned pull, and a second one to pin (whisper.cpp), so two more entries in the decision #45 refresh list.
  • CPU transcription is slower than real time on some models. VERIFY the actual ratio on Spire; nothing here measures it yet.
  • The idle probe infers “in use” from Ollama’s expires_at, which is indirect. Measured on Spire: it moves when a request ends, so a request still running (or a model still loading) looks idle until it finishes. The quiet window absorbs this for normal chat; a single request longer than the window is not covered. A router-side in-flight counter would be sturdier.
  • A very long chat or a busy household can starve it for hours. That is the intended trade.

The probe turning out unreliable (move activity tracking into the router hook), CPU transcription being too slow to keep up with a day of recordings (then measure Vulkan, or accept a dedicated box), or a second recorder showing that the HTTP contract is missing something.

58. The gateway: identity travels with every tool call

Section titled “58. The gateway: identity travels with every tool call”

identity.md set out the problem: a credential stood in for a person only where a client happened to enforce it, Hindsight had one key for every bank, and nothing downstream knew who was asking. Decision #21 had built half the answer (the persona) and left the other half (“a verified identity travels with the request”) open.

A gateway service, optional behind its own profile (GATEWAY_ENABLED=true), documented in gateway.md.

  • One MCP endpoint that knows the caller. A Pocket ID token (preferred), a trusted client naming the user in a header (Open WebUI), or a per-person key (Home Assistant pipelines). Each yields a person, found in registry/people.yaml.
  • Each person sees only their own entries, namespaced by entry, with their own credentials added by the gateway. Callers never hold backend keys.
  • Adding is immediate; removal is confirmed. Removals are held until the person approves on a notification link that shows what will be removed. Satellites (the household) are never offered removals.
  • Accounting by name only. Who, what, when, outcome; never arguments or results.
  • Built here, not on LiteLLM’s MCP gateway. The proposal listed LiteLLM as an option to spike. Building ours was chosen because it needs no database or licence question, keeps identity logic in about a thousand lines we can read, and does the three things required (identity, removal confirmation, accounting) that LiteLLM’s key and team model does not obviously provide. This choice was made without running that spike; if LiteLLM turns out to cover it, retire this service.
  • The gateway gets only the credentials its directory names, through a generated mode-600 file, not all of .env.
  • One more service that holds every credential and sits in every request path.
  • An MCP proxy to maintain: only tools, JSON replies only, no resources or prompts.
  • A held removal blocks the calling request while it waits.
  • Hindsight is still open until its port is closed to everything but the gateway; that is a separate, later step.

A mainstream MCP gateway that does per-person credentials, removal confirmation and accounting without a database or licence; Open WebUI or Home Assistant gaining per-user identity forwarding that makes this redundant; or the Pocket ID token path proving unusable with a real client, in which case the trusted-header and key paths carry the load and the claim of “issued, not claimed” weakens.

LiteLLM 1.105 refuses to start without a master key: “every request would be accepted without authentication”. The router had run keyless behind its Tailscale bind (decision #54), on the reasoning that the bind was protection enough for now. Moving to the current release forced the question, and the answer that fits the identity work (identity.md) is a real key.

One shared secret, ROUTER_API_KEY, generated by novak secret set ROUTER_API_KEY --generate. The router takes it as LITELLM_MASTER_KEY. Open WebUI, Hindsight and ingest present it automatically (compose), and Home Assistant’s LiteLLM agent needs it pasted into its API key field once. ROUTER_SECRETS now gates the router profile on it, so a deployment without a key skips the router with a reason instead of starting an open one.

  • A coordinated change: until Home Assistant has the key, voice gets a 401.
  • One key for every client. It stops anything else on the tailnet using the models; it does not say who is asking (the gateway does that for tools, and the router still has no per-person identity, decision #21).
  • Rotating it means updating Home Assistant by hand.

Per-person router keys (LiteLLM virtual keys need its database), once the router itself should know which person a model call is for.

60. Ingest acts through the gateway as the recording’s owner

Section titled “60. Ingest acts through the gateway as the recording’s owner”

Ingest delivered notes, memories and tasks straight to Outline, Hindsight and Tududi with credentials of its own: one account for everyone, and a second copy of every secret. That contradicts the identity work (identity.md): a recording belongs to a person, and what it writes should be theirs and be logged as theirs.

Ingest holds one trusted gateway client key (INGEST_GATEWAY_KEY, from novak gateway client ingest) and names the owner in X-Novak-User on each call. The gateway applies that person’s tool filters and credentials and audits it. Sinks name a service and a tool; the gateway’s namespaced tool list for the owner decides which account that is. A recording gets an owner when it arrives (X-Owner, the source label map, or a default) and keeps it, so a task approved later is created as the same person. Per-person vars (Outline collection) and Ticker category live under owners.people in registry/ingest.yaml.

  • Ingest now depends on the gateway being up; a failed note is reported on the recording and a failed task stays pending, as before.
  • A trusted client can claim to be any person, so the key is as sensitive as the Open WebUI one. The gateway is still the only thing that holds service tokens.
  • A sink that could not be built (no owner, no key, no such account) leaves its tasks pending rather than marking them done.

Per-recording identity from the recorder itself (a signed owner claim) instead of a label map, once more than one person’s device uploads to the same inbox.

Hindsight’s API and MCP endpoints do enforce the tenant key (checked: 401 without it), but there is one key for every bank, so whoever holds it reads every personal bank, and the published ports put the key’s only guard on every interface of the host. Decision #54 left it open because voice satellites reached it directly; since the gateway (gateway.md) fronts memory for everyone, nothing needs that path.

Registry entries for Hindsight use http://hindsight:8888/... (the compose network). The API port is published on loopback only, for novak checks and novak person bank creation on the host. The UI is loopback too unless HINDSIGHT_UI_BIND names the Tailscale IP.

  • Nothing outside the stack can call Hindsight directly. Debugging from another machine means going through the gateway, or an ssh tunnel.
  • docs/proxy.md’s memory.nov.a64.one proxy block no longer reaches the API from elsewhere; the proxy runs on the host, so it still reaches the UI on loopback.
  • The shared tenant key remains one key for all banks; this narrows who can try it, not what it unlocks.

Per-bank keys, if Hindsight grows them.

63. Harmless device calls do not need a tap

Section titled “63. Harmless device calls do not need a tap”

Decision #58 held ha_call_service and ha_bulk_control for confirmation, because a service call can unlock a door. In use that meant a “vaporwave” lighting theme (several calls) waited three minutes for taps nobody answered, and then did nothing.

arg_rules in registry/gateway.yaml lets a held tool through when the call’s own arguments are harmless: its domain and service (or every bulk operation’s entity domain and action) are on a short list. Shipped: lights, scenes, fans, media players. Anything that does not clearly match stays held: no domain, a target in another domain, a raw ws_command, an unlisted service. Locks, alarms, covers and climate still ask.

  • The gateway now reads call arguments to classify, not only the tool name; a wrong list could let a bad call through, so the list is short, tested, and quoted (a bare on/off in YAML is a boolean, which a test now guards).
  • A light left on is not undone by a missing approval; that is the accepted trade.

If a listed domain turns out to control something that matters (a smart plug on a heater, modelled as a light), narrow it or move that entity to a different domain.

Section titled “64. Confirmations are buttons on the phone, not a link”

Ticker’s tap-to-open link did not work for the person it was meant for, and it needed a browser, Tailscale and a page. Ticker stays what it was chosen for (an easy alert channel for things like leaks); approvals move to Home Assistant’s own mobile notifications.

kind: ha notifications carry Approve and Deny buttons. A press fires a Home Assistant event; one automation writes the pressed action into an input_text helper; the gateway, while an approval is waiting, reads that helper with its non-admin token and decides only for the matching token. notify_groups lets one confirmation reach several phones (mgmt: pyrite and aquarius).

  • Home Assistant needs a helper and one automation; they live in HA, not in this repo. The setup is documented in gateway.md, and a missing helper degrades to the link, not to a hang.
  • A press takes a second or two to land, and polling runs only while something waits.
  • Anyone who can fire that HA event can approve; in practice that is an HA admin.

A gateway token allowed to subscribe to events (an admin one is more than it needs), or a Home Assistant action that can POST without YAML (then the automation could call the gateway directly).

Section titled “65. A tap opens an approvals page, not a link”

Removing the tailnet link left a tap on the notification landing on Home Assistant’s home page, with no way to see what was being asked. A button cannot show the arguments of a call.

While a confirmation waits, the gateway writes a short description (who, which call) into an input_text helper through the service API and clears it after, and the notification’s tap opens a dashboard inside the app that renders it with Approve and Deny. The gateway’s token is not an admin one: POST /api/states returned 401, service calls do not, so the helper is the channel. A full HACS integration (entities, services, a real panel, history) is the later, larger answer and would replace this workaround.

  • More Home Assistant setup that lives outside this repo (a helper, two scripts, a dashboard).
  • One request is shown at a time; the newest wins. 255 characters is room for the call’s gist, not its full arguments.

The HACS integration, or a gateway token allowed to create states.

66. Open WebUI’s configuration is declared and applied, like everything else

Section titled “66. Open WebUI’s configuration is declared and applied, like everything else”

Open WebUI holds its tool connections and model presets in its own database, which the reconciler never touched. So they were whatever someone last clicked, and it showed: the gateway connection vanished once, a new chat had the gateway’s tools switched off by default (the model, with no tools, said it had dimmed the lights and had done nothing), and the persona never reached chat once tools were on (decision #38) because Open WebUI sends its own system message.

registry/openwebui.yaml declares the gateway connection and, per model preset, which tools are on by default and a system prompt built from the persona plus prompts/novak-tools.md (never claim an action without a tool result; look up before acting; turn a theme into a real palette; do not ask permission for harmless requests). novak owui drift reports differences and exits non-zero; novak owui apply fixes them through Open WebUI’s admin API. It touches only what the file names: other connections stay, and a preset keeps its description, sharing and parameters.

With OWUI_PERSISTENT_CONFIG=false Open WebUI reads its connection settings from the environment at every start and drops what was set at runtime, which is why the gateway connection kept vanishing. novak up therefore re-applies the registry once Open WebUI is healthy (quietly, and only when an admin key is set). Model presets live in its database and survive restarts; connections do not.

  • It needs an admin API key (OWUI_ADMIN_API_KEY), made once in Open WebUI, and the gateway client key by name (OWUI_GATEWAY_KEY). Neither is stored in the repo or the file.
  • An edit made by hand in Open WebUI to a managed field is overwritten by the next apply; that is the point, and drift shows it first.
  • The API’s shapes were read from the running version (0.12.3), not a published contract, so a release that moves them breaks the applier loudly (an HTTP error), not silently.

Open WebUI growing a supported config-as-code mechanism, or per-user presets that this should manage too.

67. The picker offers presets, not router roles

Section titled “67. The picker offers presets, not router roles”

chat, deep, task and ha-voice are router roles (decision #21): plumbing that picks a model and carries a persona. Open WebUI listed them as if they were choices, so nobody could say when to use chat and when task, and nothing made tool use or the house easy to reach.

registry/openwebui.yaml defines what people pick: Novak (everyday, every tool), Novak Deep (the same, slower and more careful), Home (lights and devices only, short answers), and Code (coding, no house or account tools), each with a plain description. The router roles are hidden from the picker (they keep working underneath, and keep their sharing) and each preset is shared with the same people as the model it is built on. Home gets its own connection scoped with X-Novak-Scope: ha-* (gateway.md), because a preset can switch on a whole connection but not single tools. Prompts are split by purpose (novak-tools, novak-house, novak-home, novak-code) so a rule lives in one place.

  • Old chats keep their raw model id and still work, but new chats start from the presets.
  • Home’s base model is a guess until a real lighting request has been run on the smaller model.
  • Hiding only changes entries that already exist; a model with no entry is left as it was.

Per-user presets, or Open WebUI picking tools per preset natively (then the scoped connection goes).

68. Open WebUI signs in through Pocket ID only

Section titled “68. Open WebUI signs in through Pocket ID only”

The original local superadmin has a password nobody holds and no way to use 2FA (Open WebUI offers none for local accounts here), which is not acceptable for an admin account, and it cannot be locked down by recovering it.

OWUI_ENABLE_LOGIN_FORM=false and OWUI_ENABLE_PASSWORD_AUTH=false hide the form and make the password endpoints refuse, so the only way in is Pocket ID (which has its own 2FA). Both default to true in the repo so a fresh install can sign in at all. API keys are separate and keep working, so the service account that novak owui uses is unaffected. There is no URL that brings the form back and no per-subnet switch inside Open WebUI: it is one variable, set back to true and novak up if Pocket ID is ever down. A reverse proxy could also restrict the password endpoint (/api/v1/auths/signin) by source address, but that would keep a local account alive.

If Pocket ID is down or misconfigured nobody can sign in until the variable is flipped on the host. That is a deliberate trade: the host is the break-glass, and it is already the trust root.

Open WebUI offering 2FA for local accounts, or a second identity provider as a fallback.

70. Plain notices go through Apprise; approvals stay on Home Assistant

Section titled “70. Plain notices go through Apprise; approvals stay on Home Assistant”

Novak and the fleet (the VPS proxy, Grafana, backups) both need to tell a person something. Running a separate sender in each means two sets of channel credentials and two places to change them.

Apprise (its API, run by the fleet project at notify.a64.one, admin panel on the LAN and tailnet only) is the shared layer for plain notices. A call names a saved configuration key and one tag; Apprise maps the tag to channels set in its panel, so Novak never holds a Pushover token. Novak uses its own key with only novak-* tags (novak-tmeuze, novak-ushy for a person’s notices, novak-admin for a problem the admin should know about), so the Novak key cannot trigger the fleet’s alerts and the reverse. Ingest sends through it now (INGEST_APPRISE_URL, INGEST_APPRISE_KEY): “tasks added” goes to the owner’s notice_tag, and a recording that fails for good goes to admin_tag. A refused or unreachable Apprise falls back to Home Assistant, so a notice is not lost.

Approvals are not notices. Approve and Deny must come back to the gateway tied to a one-time token, and Apprise cannot carry that callback (its Home Assistant target only creates a persistent notification, and its JSON target posts Apprise’s own schema, not Home Assistant’s data.actions). They stay on Home Assistant mobile notifications (gateway.md).

  • A dependency on the fleet’s Apprise for plain notices; the fallback covers it being down, not Novak being silent about its own failures if both are down.
  • Apprise’s response codes are unverified until the first live test: the sender treats any 2xx as success and anything else as failure, and does not parse the body.
  • One more secret (INGEST_APPRISE_KEY), owned by Apprise, not generated here.

Apprise (or a successor) carrying actionable callbacks, which would let approvals move too.

72. Supernotify routes Novak’s approvals; Apprise stays the fleet’s

Section titled “72. Supernotify routes Novak’s approvals; Apprise stays the fleet’s”

Decision #70 put plain notices on Apprise and left approvals on hand-picked Home Assistant notify services (mobile_app_<device>, with a notify_groups hack for “both phones”). The household then installed Supernotify in Home Assistant for guests and other purposes, and it fits Novak’s person-directed messages better than the hack: it builds each person’s phones from Home Assistant’s own people.

Approvals go through supernotify.notify (kind: supernotify, target a person entity). A new phone is added to the person in Home Assistant and the gateway needs no change; notify_groups stays for anyone who prefers it. The buttons still come back through the mobile_app_notification_action automation and the approval helper, because Supernotify only handles its own snooze actions. Checked live before relying on it: the service takes actions, delivery and dry_run at the top level of the call, delivery targets are a list, and actions, clickAction and tag reach the Companion app unchanged. A real button press on an Android phone reached the helper. Apprise remains the fleet’s alerting layer (decision #70): infrastructure alerts must not depend on Home Assistant being up, and Supernotify has no entry point outside Home Assistant.

  • One more integration in Home Assistant to keep updated, and a dependency on its call shape, which a release could change (the tests pin the shape the gateway sends, not what Supernotify accepts).
  • A test that was meant to be a simulation sent a real notification to two phones, because dry_run was placed inside advanced; a simulation is only a simulation when the flag is at the top level.
  • Both of a person’s phones receive the request and either can answer; the first press decides.
  • Left to choose deliveries itself, Supernotify also sent a plain copy through the person’s notify entity (two notifications for one request, found on the first live run). The call now names delivery_selection: explicit.

Supernotify handling arbitrary action callbacks itself (the helper and automation could then go), or a documented external entry point.

71. House tools are lean, because the context window is small

Section titled “71. House tools are lean, because the context window is small”

A real lighting request failed three ways: the model called a built-in tool and asked an irrelevant question, then invented floor ids and went quiet after the error, and on the larger model the request was refused outright (17,626 tokens against a window of 8,192). Measured, Home Assistant’s tools for the house are about 21,000 tokens and all of the gateway’s are about 34,000. Better prompts could not fix that, because the prompt itself was being cut off.

The gateway offers two small built-in tools, house_state and lights_set (about 450 tokens), that do the looking-up themselves: floors and areas by loose name, lights that are on by default, colors cycled across the lights, and errors that list the valid names. A per-connection X-Novak-Tools allowlist narrows the main Open WebUI connection to about ten tools (about 2,400 tokens). The Home preset sees only the two house tools. Built-in Open WebUI tools are off on every preset (decision #66). The house prompt says: act first, check after.

  • The gateway now holds a little knowledge of Home Assistant (templates, light services) and is a place to fix when HA changes. It only touches lights, so the blast radius stays small.
  • Matching names loosely (“floor 2” to areas labelled L2) is a convention of this house’s naming, and wrong guesses are caught by the helpful error rather than prevented.
  • The allowlist is a list to maintain: a tool a person needs that is not on it is invisible until added.
  • The window itself is still 8,192. Raising it (16,384 for chat) is a VRAM question not yet measured.

A larger context window, or Open WebUI deferring tool definitions until needed, which would let the lists grow.

73. Pi runs in the terminal, on the router for small work

Section titled “73. Pi runs in the terminal, on the router for small work”

The wish was to use the Pi coding agent with Open WebUI. Pi edits files and runs commands, so it belongs in a terminal beside the code; Open WebUI stays the place for chat, snippets and review (the Code preset). Bridging them (Pi’s RPC mode behind an Open WebUI function, or Pi inside the Open Terminal sandbox, which is classed dangerous) would add a new thing with shell access for little gain.

novak pi config prints a Pi models.json that lists the router’s chat and deep roles as a provider, with the window the models really have and the key as $ROUTER_API_KEY (never written). novak pi hint prints editing rules (prompts/novak-pi.md) to append to Pi’s system prompt. Hosted providers go in the same file when you choose to use them; keys for them are your own, and keeping them in secrets.env and reaching them through the router is possible later but not built.

  • The local models are weak coding agents without help. A real rename task looped, because the model repeated an ambiguous edit about a hundred times; four lines of rules fixed it (4 seconds, verified). Each new loop may need another rule.
  • An 8,192-token window fits small tasks. The deep model would need most of the 16 GB card and would evict the voice model, so coding with it competes with voice for the GPU.

More VRAM or a larger-window model, at which point the router could offer a code role.

74. Tasks come as a snapshot, like the house

Section titled “74. Tasks come as a snapshot, like the house”

Date: 2026-10-24

The gateway offers one more small built-in tool, tasks_state, on the person’s own Tududi entry. Tududi’s list_tasks returns about seventy fields per task (around 2,000 characters), so two tasks already cost over 1,000 tokens of an 8,192-token window. The snapshot calls it for today and upcoming, merges the two, and returns a few lines grouped by overdue, today, next seven days and later, with task ids. The prompt treats it, and house_state, as a ledger: call once when a chat needs it, work from it, refresh after a change or when asked. list_tasks leaves the Open WebUI allowlist; get_task, search, add_to_inbox and complete_task stay.

The Home preset now sits on the 4B (task) instead of the 14B. Checked directly through the router with the Home prompts and the two house tools, nothing executed: on four requests (vaporwave on floor 2, kitchen off, floor 1 at 20%, what is on) the 4B picked the right tool and sensible arguments each time, in 0.3 to 1.9 s against 0.6 to 4.2 s for the 14B. The 4B is already loaded for voice, so it never waits on a cold load.

  • Tasks past the first 25, and anything beyond Tududi’s today and upcoming views, are summarised as a count, not listed. Search covers the rest.
  • The snapshot is only as fresh as the call; the model must be told to refresh after changes (the prompt does).
  • It finds Tududi by the entry name prefix tududi, and reads status and priority codes as observed (0, 1, 2 for priority; 1 in progress, 4 waiting; 2, 3, 5 finished). VERIFY against Tududi’s source if a state is mislabelled.

A model with a larger context, or Tududi shipping a compact list option.

75. Code sessions get their own memory bank, and may use hosted models

Section titled “75. Code sessions get their own memory bank, and may use hosted models”

Date: 2026-10-24

The Code preset is the one place hosted models are allowed (the provider keys will live in the router, one router key for Open WebUI and Pi). Because what is said there leaves the house, it must never touch the personal bank. Each person who codes gets a second Hindsight bank, code-<name>, registered as the entry code-memory-<name>, and the preset reaches only that: a connection novak-code scoped to code-memory-* with recall and retain only. The name does not start with hindsight, so the personal presets’ allowlist (hindsight_*__recall) cannot match it. The prompt tells the model to recall project notes at the start and retain layout, decisions, commands and fixes, and never anything personal. Tests pin the isolation both ways.

  • Separation rests on entry names and scope headers, plus a prompt instruction. A model can still retain something personal if the user pastes it; the bank holds code notes only by instruction.
  • Banks share one Hindsight tenant key (decision on the auth gap), so isolation is by gateway routing only.
  • Pi talks to the router, not the gateway, so it does not yet read or write this bank.

Hindsight per-bank keys, or Pi gaining a gateway connection.

76. Code runs offline on Qwen2.5-Coder by default

Section titled “76. Code runs offline on Qwen2.5-Coder by default”

Date: 2026-10-24

The Code preset sits on a new router role, code, served by qwen2.5-coder:14b-ctx8k on Ollama (the 9 GB Q4_K_M from the Ollama library, with num_ctx 8192, temperature 0.2, top_p 0.9, repeat_penalty 1.05 set in a Modelfile). It replaces deep, a 27B general model that evicts the voice model. Pi lists it first. The prompt now tells the model to say when a task has outgrown it (more than two or three files, a trace that will not fit, the same fix failed twice) and to suggest switching to a larger model, which in Open WebUI keeps the conversation. Hosted models (Anthropic, OpenAI, OpenRouter) will be extra router entries behind the same key, shown only on Code-style presets, once the keys are in secrets.env.

  • It does not escalate by itself: the small model judges its own limits, and Open WebUI cannot switch models mid-chat on its own. The user chooses.
  • The 14B coder and the 14B chat model do not stay loaded together; alternating costs about 11 seconds to load. Measured: 13 then 32 tokens per second on a 250-token answer (first call cold, second warm), against 18 for chat warm.
  • Qwen2.5-Coder is older than Qwen3-Coder-30B-A3B, which would need CPU offload at 16 GB of VRAM. Not tried.

More VRAM, or a newer coder model that fits in about 10 GB.

77. The house tools call Home Assistant directly, as a service account

Section titled “77. The house tools call Home Assistant directly, as a service account”

Date: 2026-10-26

house_state and lights_set no longer go through the ha-mcp server. The gateway calls HA’s REST API itself (POST /api/template, POST /api/services/light/...) with HA_<id>_ADMIN_API_TOKEN, the token of a dedicated admin user, not a person’s account. <id> is the instance number, as for Outline and Tududi (OUTLINE_1_TMEUZE_API_KEY): HA_1_ADMIN_API_TOKEN is instance 1, xenia. ADMIN is in the user slot because it is a service account. The people who get the tools are listed in gateway.yaml (house: {ha: 1, people: [...]}). This is a step to removing ha-mcp, which is rated dangerous (it edits config and automations and keeps its secret in a URL) and is no longer used by the voice agents. Until a deployment has the token the older entry: ha-mcp route still works.

  • HA lets only an admin render templates, so the token is an admin token. The gateway uses it for two endpoints, and the model never holds it, but if the gateway were compromised the token is powerful.
  • HA’s logbook shows the service user as the actor, not the person; Novak’s audit log still names the person.
  • The two other HA tokens (gateway, ingest, drift) keep their old names for now.

HA offering floor and area lookups to a non-admin token, which would let a limited token replace the admin one.

78. A person’s standing instructions live in the gateway, as a tool named after them

Section titled “78. A person’s standing instructions live in the gateway, as a tool named after them”

Date: 2026-11-12

How someone wants the assistant to work with them (their role text) is held once per person, in profiles/<username>.md in the registry directory, and served by the gateway as <username>__profile. Every client that reaches the gateway gets the same instructions, and the gateway already knows who is asking. Per-client behavior (voice is short, Code stores nothing personal) stays in the prompt files in the repo, and what Novak learns about someone stays in memory. The tool is named after the person because the person asked for that; its description says to call it once at the start of a conversation, so the shared prompt only says to call any tool ending in __profile. Open WebUI’s allowlist has the glob *__profile.

  • A call at the start of each chat, and the model has to choose to make it. A small model will sometimes skip it.
  • The text must stay short (about 250 tokens) because the local models have an 8,192-token window; the longer role lives in memory, not here.
  • Editing is a file on the host until Konzol has an editor. The file is private to the host and is not backed up by the repo.
  • The Home Assistant voice agents do not reach the gateway today, so voice does not read it.

A client that can inject a system prompt per person without a tool call, or a larger context window.

79. Konzol lives in this repository and becomes the configuration plane

Section titled “79. Konzol lives in this repository and becomes the configuration plane”

Date: 2026-11-21

Konzol moves into the main repository as console/ (history kept), and novak-konzol is archived. The integration store, novak-integracije, stays a separate repository: it has its own contributors and its own bar for adding an integration. Konzol stops being a viewer and becomes the primary place to configure Novak, read and write, in this order: Today, Approvals; Management (Memory, Profiles, an extensions page, working name Toolchest, fed by the extension repositories); Administration (People, Health, Logs and audit). A critical Next.js advisory (16.0.0 to 16.4.4) sat in the old repository because nothing checked, so the console’s workflow now fails the build on a high or critical production advisory and Dependabot watches it.

Because it now holds the power to change the stack, its security is the first design constraint, not a later pass. The rules for every page:

  • Writes are commits. A change lands as a git commit in the registry’s repository with the signed-in person as author, so the history is the audit trail, and it can be reverted.
  • The server validates, always. Every write is checked against the same schemas the reconciler and gateway enforce; the UI never trusts itself, and the host-side reconciler never trusts the UI.
  • No Docker socket, no shell. The console writes files; the host-side reconciler (no network exposure) acts on them. That separation stays.
  • Secrets are never shown. The console lists which secrets are set or missing, by name. Entering a value stays a person at a terminal (novak secret set) until a safer path is designed and decided separately.
  • Sensitive changes need a second factor. Enabling an elevated or dangerous entry, changing who has which entry, or changing tool filters asks for confirmation on the person’s phone, the same Supernotify approval the gateway already uses, in addition to the sign-in.
  • Identity. Pocket ID with passkeys; admin group membership re-checked on every write, not only at sign-in; short sessions; same-origin and CSRF protection on every mutation.
  • The gateway grant is narrow. Reading audit, approvals and health uses a gateway admin key reachable only from the console, with endpoints for exactly those things. The console never proxies tool calls.
  • Reach. LAN and tailnet only, behind Liaison; never on the public internet.
  • Supply chain. Exact pinned versions, npm ci, the audit gate, the image optimizer and use cache (both behind the advisories) not used.
  • A write path with phone confirmation is more work than a form that saves a file, and slower to use.
  • The console holds a credential for the stack after all (the gateway admin key), which the old README promised it would not. The grant is narrow and read-only first.
  • One repository means a console change and a gateway change can ship together, but also that a Node dependency alert now shows up against the main repository.

If the second factor makes routine edits tedious, scope it to a smaller set of changes; if the console turns out to need real-time features, reconsider the stack (Next.js with Auth.js is kept for now because the sign-in and design tokens already work).

80. Backups take one consistent copy first, then a backup tool reads it

Section titled “80. Backups take one consistent copy first, then a backup tool reads it”

Date: 2026-11-24

novak backup writes one consistent copy of everything Novak keeps into a single directory ($NOVAK_HOME/backup/staging by default). SQLite databases (Open WebUI, ingest, the gateway’s audit and approvals) are copied with SQLite’s own online backup, and Hindsight’s embedded Postgres is dumped with pg_dump run inside its container, which reads the password from pg0’s own instance file so it never appears on a command line. Settings, secrets.env, the registry and the uploads and recordings are copied alongside. The copy is built in a temporary directory and renamed into place, keeps only the latest, is mode 700, and the command exits non-zero on any failure. The host’s backup tool (the fleet’s Arkeep and restic) then backs up that one directory on its own schedule and keeps the history. Models, the checkout and dated .bak files are left out.

  • A second copy of the data sits on the host between runs: about 1.5 GB today, mostly Open WebUI.
  • secrets.env is copied in plain text. The staging directory is private to root, and the backup repository is encrypted, but anyone who reads the staging directory reads every key.
  • The schedule lives outside Novak, so a stale copy is not noticed by Novak. The manifest carries the time, so the backup tool or a check can look at its age.
  • A restore is two steps (copy files back, pg_restore the dump) and is only as good as the last time it was practised.

Hindsight offering its own export, or the backup tool gaining application-aware hooks that make the staging step unnecessary.

81. The resident models are loaded at start, and performance is measured, not guessed

Section titled “81. The resident models are loaded at start, and performance is measured, not guessed”

Date: 2026-11-24

Two things the benchmark on the reference host (2026-11-24) showed were worth having.

First, nothing is loaded after a restart, so the first request waited 7 seconds (the 4B) to 32 to 37 seconds (a 14B). A warmup container in the Ollama profile now loads the models in warm-models.txt after every start of the host, using the Ollama image that is already pinned, and novak up loads them again at the end because recreating Ollama empties it. The list is the ha-voice and chat roles from registry/engines.yaml, or OLLAMA_WARM_MODELS if set. novak warm does it by hand.

Second, novak bench makes the measurement repeatable: time to first token, speed, and GPU, CPU and video memory use, per role and prompt size, through the router. Changes to Ollama’s settings or models should be compared with it before and after.

The same run found no case for CPU pinning or container limits. A warm 14B model generates at about 31 tokens a second, which is the card’s memory bandwidth, with the GPU at 80 to 100% busy and the CPU averaging 12 to 37% of twelve threads. Nothing was queueing for CPU.

  • The warm-up holds about 14 GB of video memory for the voice and chat models, which is the same as before, since they were already kept loaded for 24 hours once used. It does not help the code role, which swaps with chat.
  • A boot-time container to run one command is a little more machinery than a script, chosen because Docker restarts containers on its own after a reboot without running novak up.
  • bench sends real requests, and --cold unloads models other people may be using.

A larger GPU, where code could stay resident too, or Ollama growing a native preload setting.

82. Mail is read-only, on its own connection, enforced by the gateway

Section titled “82. Mail is read-only, on its own connection, enforced by the gateway”

Date: 2026-11-26

Mail comes through MailFlow’s own API with the person’s own token, which should carry only the Read scope (MailFlow 4.3.0 added scoped tokens). The gateway has three lean tools for it, mail_state, mail_search and mail_read, in place of a third-party MCP server: they return a few short lines that fit an 8,192-token window, and no extra code sits between the model and a person’s mail.

Because anyone can write mail, the safety rule lives in the gateway and not in a prompt. Mail tools are offered only to a connection whose scope names mail (never a plain person key, a voice pipeline or the household), and on such a connection every call that is not a read is refused. The Open WebUI Mail preset uses that connection with today’s tasks and the person’s profile, on the local chat model. Results are wrapped as data with a warning, fake end markers are neutralized, links are removed, and long messages are cut.

Sync-in was looked at for calendars. It has no CalDAV support today (it is a planned feature in its tracker), so calendars will come through Home Assistant’s calendar integration instead.

  • Mail work happens in its own chat. “Make a task from this” needs a second chat.
  • Reading and searching can still be steered by a hostile message within what that chat can read: it could try to make the model repeat other mail or the task list into its own answer. Nothing can leave through a tool, but a person should treat the answer with the same care as the mail.
  • Tokens expire and must be renewed by hand. An expired token shows as a clear error.
  • The list is what MailFlow calls the unified inbox, newest 50 unread. Older unread mail is only reachable by search.
  • Not yet run against a live MailFlow (VERIFY), including the claim that reading a body does not mark it read, which comes from reading MailFlow 4.5.1’s source.

A model that reliably ignores injected instructions would not change the rule, since the rule costs little. A way to let a person approve a single task from mail, from their phone, would.

83. The live preset file follows the repository, and load order is fixed

Section titled “83. The live preset file follows the repository, and load order is fixed”

$NOVAK_HOME/registry/openwebui.yaml was copied from the repository on the first run and never again. On 2026-11-28 the reference host’s copy lacked the task summary and profile tools, still ran Home on the 14B and Code on the deep model, and had no code memory or mail preset. novak owui drift reported a match throughout, because it compares Open WebUI with the live copy. Features were reported as live after being tested through the gateway only.

Warm-up had a second fault. It loaded the 4B first and the 14B second, and Ollama unloaded the 4B to make room. The log showed two successful loads, which was read as both being resident. With the 14B first, both stay (about 13.6 of 15.9 GiB).

Each live copy now records the repository version it came from. novak up takes a new version when the live file was never edited, keeping a backup, and warns without touching it when it was. novak owui drift says when the file is behind and fails. novak owui reset and novak owui keep settle an edited file. This covers only openwebui.yaml, which is mostly product. The other registry files are private configuration and are still seeded once.

Warm-up loads chat before ha-voice. The reference host sets OLLAMA_KEEP_ALIVE=8760h so the two stay loaded when idle. -1 was not used: ingest works out when a model was last used by subtracting the keep-alive from its expiry, so “forever” would make the models look permanently busy and its work would never run.

A preset whose id equals its base (code) is compared as having no base, which is how Open WebUI stores it.

  • A new or changed preset still needs no hand edit on an untouched host, but an edited host must merge by hand.
  • About 13.6 GiB of video memory is held while idle. Another program that needs the GPU gets what is left, and cannot make Ollama give any up.
  • The code and deep models are large enough that using them unloads the everyday pair, which then reloads on the next request.

Another service on the same card needing more memory than is left, or one everyday model replacing the pair.

84. Open WebUI 0.13.5, and image updates arrive as pull requests

Section titled “84. Open WebUI 0.13.5, and image updates arrive as pull requests”

Date: 2026-11-28

Open WebUI moves from 0.12.3 to 0.13.5. Since 0.13.1, attached files are no longer added to a chat that uses native function calling unless the model has the file tools or the file_context feature (“Preload files”). Novak’s presets switch built-in tools off, so each now sets file_context: true. Dependabot also watches docker-compose.yml weekly, so a newer image shows up as a pull request. Merging it stays a person’s decision.

  • 0.13.5 converts the chat history to a new format, and 0.13.0 and 0.13.1 change the schema. Going back needs the old image and a backup taken before the upgrade.
  • Preloaded files share the 8,192-token window, so a large attachment can crowd out the prompt.
  • Read from the release notes and source; the upgrade had not been run on a host when this was written. VERIFY.
  • VERIFY that Dependabot can propose updates for lines pinned by digest alone.

85. A narrow web search, and a plain word when a service is down

Section titled “85. A narrow web search, and a plain word when a service is down”

Novak could not look anything up. Open WebUI’s own web search was off, the presets turn its built-in tools off, and the gateway offered nothing for the web.

On 2026-11-28 the reference host’s task server answered 502. Its tools dropped out of the list without a word, so no model was told. In a test the same night, with no tool offered for adding to the task inbox, one candidate model said it had added the item.

The gateway gets one search tool on the Brave Search API, in place of connecting Brave’s MCP server or turning on Open WebUI’s search: one short definition for a small context, and the access rules sit in the gateway rather than in a prompt. A connection has to name web__ to get it. Only Novak and Novak Deep do. Mail never does, because a search is a way out for what a message asks to have sent. Code stays offline. It returns excerpts only.

A connection missing a service it would have used gets novak__services_down. A tool’s description was chosen because it reaches the model on any client that lists tools, with no change to the client.

  • Search words go to a third party. The gateway blocks only email addresses and long numbers.
  • Search results reach a connection that can change lights, add and complete tasks and save memories. This is accepted for now: none of those removes anything, and a gateway with no view of the conversation cannot tell which call a result caused.
  • The audit does not keep search words, in line with its rule on arguments. There is no history of what was searched.
  • Two more tool definitions at most, and a few seconds on the first chat after a service starts hanging.

A result causing an action, a search carrying something it should not have, or excerpts proving too thin to answer with.

86. A chat that has searched the web cannot use other tools

Section titled “86. A chat that has searched the web cannot use other tools”

2026-11-30. Replaces the risk that decision #85 accepted.

Once search results reach a chat, the gateway refuses every tool there except search, reads included, and returns results only once per message. Open WebUI sends the chat and message ids. A client without a chat id is held for 30 minutes. The owner asked that web search not be able to invoke commands or prompts.

Refusing was chosen over asking for approval on the phone: an approval request written by a hostile page still reaches a person who may tap yes. Reads are refused too, so that a result cannot bring the person’s data into a chat where it can search.

  • “Search for this, then add it to my tasks” takes a second chat.
  • A request that needs both has to run the other tools before the search.
  • It controls tools, not words. A result can still mislead the reply.

A way to read results in a separate model call that has no tools and no personal context, returning only facts to the chat.

87. Thermostats, fans, media and scenes join the house tools

Section titled “87. Thermostats, fans, media and scenes join the house tools”

2026-11-30. Extends decision #71.

Four small tools: climate_set, fan_set, media_set and scene_run, with house_state reading each kind. The owner asked for all four domains after finding that Novak could not change three thermostats. Limits live in the gateway: listed thermostats only, a temperature range that refuses and never rounds, approval to turn a thermostat off, all-or-nothing changes, a read-back before a change is called done, a volume ceiling, and approval for any scene that could touch something else or does not say what it touches.

Listing thermostats was chosen over finding them, because the reference home has about twenty climate entries, among them room-controller overrides and one that is not part of the house.

  • About 450 more tokens of tool definitions on every chat with the house tools (VERIFY), out of 8,192. Whether the 4B model behind the Home preset still picks tools well with six is untested (VERIFY).
  • Thermostats need configuring before they work.
  • A thermostat in range mode needs two numbers or a “warmer by” request.
  • A thermostat that reports late is called not confirmed although the change may land.

Everyday requests that these four cannot express, wrong tool choices by a local model, or a room controller that keeps undoing changes made to the thermostats.

88. Open WebUI gets its tool connections in its environment

Section titled “88. Open WebUI gets its tool connections in its environment”

2026-11-30. Completes decision #66.

novak up writes the tool connections from registry/openwebui.yaml to owui.env, mode 600, and compose passes it to Open WebUI as TOOL_SERVER_CONNECTIONS. The applier still sets the same connections, and the model presets, through the API.

Decision #66 makes the environment authoritative, so a connection added through the API lasted only until Open WebUI restarted. On the reference host its database held an empty list while the API showed four, and each recreated container had all four added again. A host reboot or a crash would restart it with no one running novak up.

A watcher that reapplies after a restart was the alternative. It would be one more thing to run, would need the admin key on a schedule, and would leave a gap after each start.

  • The gateway client key is now also in the Open WebUI container’s environment, where anyone who can inspect containers can read it. That already means root on the host.
  • A running container keeps the environment it was created with. After editing the preset file, novak owui apply takes effect at once but needs novak up to survive a restart, and says so.
  • Model presets are unaffected: Open WebUI keeps those in its database.

Open WebUI keeping API-made connections while still taking the rest of its settings from the environment.

89. A key per app, with a role the gateway enforces

Section titled “89. A key per app, with a role the gateway enforces”

2026-11-30.

novak key makes any number of keys per person, each with a label, a role and an optional expiry, with rotation, revocation and a last-used time. Four roles are built in: personal, read-only, code-memory and house-control. More can be defined in gateway.yaml. The owner asked for a way to manage keys, with role profiles, after asking how coding tools could share a memory without reaching personal data.

Until now a person had one key that reached everything. X-Novak-Scope and X-Novak-Tools narrow a connection, but the app chooses them, so they protect nothing against an app. A role is held by the gateway and is checked when tools are listed and on every call, before anything is contacted or anyone is asked.

It fails closed: an unknown role, a bad record, an expired or revoked key and an unreadable keys.yaml are all refused. A broken settings file elsewhere keeps the last good settings but still rereads the keys, so a revocation holds.

It starts on the command line. A console page can list and revoke later. Making a key there would show a secret, which decision #79 rules out, so that needs its own decision.

  • read-only rests on tool names being honest, or on tool_overrides.
  • Older person keys and the Open WebUI client key have no role.
  • Household and satellite keys are unchanged.
  • Last use is recorded at most once a minute, and only while the gateway’s data is kept.

An app that needs less than any role can express, a role letting something through, or the older single keys no longer being used, so they can be removed.