If I add import socket to any file of Korvin except door.py, a test fails. That one test carries the privacy promise of the whole assistant, and anyone can run it.
I wanted promises that a reader can check without trusting me. The first entry in the decision log says it in two short sentences: “Nobody can audit a large assistant. Anybody can audit Korvin.” Three design choices keep that sentence true: a small package, one door to the network, and a log that shows its own changes.
Korvin (korvin.cloud) is a small private assistant for one local model, Qwen 3.5 2B. It runs on a laptop with a 4 GB graphics card.
A size cap that one reader can live with
Korvin 0.3.0 has 2,496 lines of Python in its korvin package. The README describes the package as thirteen small files, and each file has one job.
The scope decision for version 1.0 set a cap of 2,500 lines for the whole program. One person should be able to read all of it. The safety fixes of 0.2.0 took the package from 1,197 to 1,486 lines. At 2,496 lines, version 0.3.0 sat 4 lines under that first cap.

korvin package, against the first cap and the current cap.The next experiments needed room for code that might not stay, so I raised the cap to 5,000 lines. I wrote my reason into the log: “a ceiling, not a target; more code does not mean a better assistant.” The test test_size_limit counts the lines of every file and fails above 5,000. The raise has a price for auditors, because an audit of the whole package can now take up to twice as long.
Experiments also removed code. A fifth tool that searched files lost in its eval, and so did a check before the final answer. Keywords for notes lost too. In each case the code left the package, because code stays only when an experiment shows a gain.
No outside packages, enforced by a test
Korvin imports nothing from outside the Python standard library. The language decision compared Python, Go, Rust and TypeScript. Python won because a person without coding experience can follow it line by line, and everything Korvin needs is built in.
Zero outside packages also removes the risk of a poisoned package. The cost is that users must install Python 3.11 or later first.

The install file pyproject.toml lists no dependencies. The install needs the internet once, because pip downloads one small build tool, flit_core, to build Korvin. That tool runs at install time only.
The test test_standard_library_only reads every file of the package. It fails if any import is outside Python’s own list of standard modules.
The rule cost me something when I wanted more evals. Every ready eval framework needed outside packages, so Korvin grew its own evals, again with zero outside packages.
One file may touch the network
In daily use, Korvin talks to one thing: the Ollama model service at 127.0.0.1, on the same computer. It never opens a port, so no other device can connect to it. The scope decision rejected hosted models and browser control because they meant “two kinds of network door”. Its reason is the sentence I like most in the log: “A local-only program can make one absolute promise, and a test can prove it.”

The file tests\test_one_door.py is short, and I recommend that you read it first. It parses each file with Python’s ast module, which turns code into a tree of its parts. Then it lists every module that the file imports. It never runs the code.
| Test | What it checks |
|---|---|
test_only_door_uses_the_network | No file except door.py imports any of 17 modules, such as socket, http, urllib, ssl and asyncio |
test_only_mcp_starts_programs | No file except mcp.py imports subprocess |
test_only_tools_and_config_use_files | Only tools.py, config.py and seal.py import file modules or use the name open |
test_no_code_from_text | No file uses eval, exec, compile or __import__ |
test_standard_library_only | Every import comes from the Python standard library |
tests\test_one_door.py.The ban list also covers importlib and ctypes, because they can load code by name. Three more tests check the checker itself. One feeds it import http.client and from urllib import request, and expects it to catch both. Another makes sure that it finds open in five different forms.
This test reads imports and names, so it sees what the code asks for. It does not see what happens while Korvin runs.
A guard while Korvin runs
A second layer covers the running program.
- An audit hook in
korvin\guard.pyblocks every connection, data send, socket bind and name lookup outside this computer. - The settings accept only a model service on this computer, with
"remote": false. - The door checks the address again before each request.
- Korvin never follows a redirect from the model service.
The guard covers Korvin’s own process only. Ollama and the tool servers run outside it, and hostile native code can go around it, so it is no sandbox. Unit tests are the only proof of the guard and the address checks. Korvin also trusts the local Ollama program and the model file that you downloaded.
Tool servers are a door that you open yourself. mcp.py starts each server and talks to it through its input and output, on this computer. A server is a separate program with your own rights, though. It can use the internet or read your files. The banner line “LOCAL: Korvin sends nothing off this computer.” describes Korvin itself, and your servers fall outside that promise.
A log that shows its own changes
Korvin writes one line for each event to log.jsonl in its data folder. The events include session starts and ends, every tool call with its decision, standing rules, and every tool server event. A standing rule is an instruction that Korvin sends with every request.
I wanted proof of actions without a copy of your private text.

Those 60 characters can still hold a file name or the start of a search query, so treat the log as private. If you remove the data folder, the log goes with it.
Each line ends with a seal: a 64-character SHA-256 code over the line and the seal of the line before it.

python -m korvin check reports where.If the chain is whole, the check says The sealed log is intact. If a line is broken, it says The sealed log is BROKEN at line N. A person who can write the file can still rebuild every seal after a change, or cut lines from the end. The new chain is then complete, and the check cannot see the change.
To close that gap, Korvin shows the last seal when a session ends. Keep it where this computer cannot change it, for example on paper. The seal reveals nothing about your conversation. Later, this command compares it with the log:
python -m korvin check --seal VALUE
If the seal is in the log, entries 1 to N are unchanged since then. If it is missing, someone rewrote the log, or the seal comes from another log. I tried the log by hand with the live model, and unit tests cover the rest. In the final eval run of 2026-11-24, every whole-task trial ended with a last seal. That run never used the check command.
Run the audit yourself
- Read
tests\test_one_door.py, because it states the rules for the whole package. - Read
door.py, and thenmcp.py, the only file that starts programs. - Read
seal.pyfor the log and the check. - Run
python -m unittest discover -s tests. - If you change Korvin, run the tests again after each change.
The code is at github.com/nosistech/korvin, and the security map lists each control with its proof. On 2026-11-24 the suite ran 284 unit tests: 282 passed, and 2 were skipped. Those tests use a fake model, so they cannot show how the live model behaves. I tested Korvin only on Windows, and Mac, Linux and pipx remain untested.