Jim's Book Deep Read · 05

Runtime × Governance

The Model Is Not the Product — the Execution System Is

Models change every other week. The execution system is the asset that stays. Swap the base model and you don't have to fire or replace an AI employee — they keep their role, their skill library, their workspace and their memory.

Topic · Execution Infra Stack · Runtime Router · Sandbox · Permission Gates Status · Deep Note

When we introduce KernelHub, the question we get most often is: are you building yet another large model?

No. The core insight is one line: the model is not the product. The execution system is. This note unpacks that sentence.

1. Capability is depreciating. Execution is appreciating.

For the past two years model capability has been reset every few months. Whatever is billed as strongest today is a historical release by next half-year. Betting a product on one specific model means betting the foundation on weights that are going to get iterated away.

One thing has not changed: getting the work done safely, traceably, and hand-off-ably. That doesn't churn with model versions. It belongs to the execution layer — scheduling, sandbox, permissions, approvals, evidence.

The model is the engine. The execution system is the whole car. Users buy whether the car gets them there, not the engine's rated horsepower.

Same lesson as building trading systems. The pricing model gets replaced every three years, while risk gates, reconciliation, error handling — the boring stuff — sit still for a decade and must. What decides whether a trading system reaches production has never been how new its model is.

2. The AI employee: decoupling the role from the model

We put the abstraction at the AI employee layer, not the model call layer. The difference is structural:

  • Role: what this employee is responsible for, where their skill boundary sits.
  • Skill library: what they can do, and how they get called.
  • Workspace: their range of activity — which patch of disk is theirs.
  • Memory: preferences, decisions and lessons accumulated across sessions.
  • Base model: which engine is currently driving.

The first four belong to the employee. The last one belongs to infrastructure. Swapping models does not mean swapping the employee — role, skills, workspace and memory all stay; you just change the engine. This matters a lot to enterprise customers: their processes, permissions and audit records don't get invalidated by a vendor switch.

3. Runtime routing

The actual dispatch chain looks like this:

unified task contract → dynamic capability matching → local execution → delta aggregation → automatic failover

Unified task contract

An incoming task gets normalized first: goal, constraints, inputs, acceptance criteria, permission requirements. The value of this step is that different models face the same problem definition. Otherwise behaviour drifts when you swap models, and the drift can't be attributed.

Dynamic capability matching

Route on task characteristics to the right executor, not to whoever is free. The ones running stably in production right now:

  • Claude Code (Anthropic) — engineering-grade refactors, builds, coordinated multi-file edits.
  • OpenAI Codex — AST parsing, deep algorithmic rewrites, the strongly-structured work.
  • Qwen Code (Alibaba) — very long-context code, digging through enormous logs.
  • Plus dynamic routing into community models like MiMo and Kimi, flexed on cost and latency.

Local execution + delta aggregation

Source never leaves the local disk. Only task state, deltas and approval signals cross the network. That is the precondition for persuading an enterprise to hand over real engineering work — the moment source gets uploaded to a third party, their compliance review is an instant veto, with no room to explain.

Automatic failover

Any model goes down and the task keeps running; the system routes to the next available executor. This has saved us many times in ops. One vendor's API was down half an hour, the work carried on, only the style of the generated diffs shifted a little, and the acceptance cases still passed.

Field Note Deepest lesson from client work: users will never forgive your product getting slow because you swapped vendors underneath. Same here — if an agent execution system drifts when the model changes, the customer just decides your product is flaky. They are not going to sit and think about whose weights you are running. Decoupling isn't architectural fastidiousness. It's the necessary cost of keeping your reputation.

4. Six-tier permission governance

Whether anyone dares trust the thing is what decides if this system reaches production. We split permissions into six tiers. Default behaviour, audit trail, and circuit-breaker conditions differ for each.

Read

Allowed by default inside the workspace sandbox. Reading is low-risk; gates too tight make the agent stupid, and you pay for it in completion rate. But the scope must stay inside the workspace — no reading the neighbour's directory on the way past.

Write

Edits must produce a line-level Diff for review. What changed has to be a first-class citizen, not something you discover later by reading logs. This one line decides whether a problem takes ten minutes to locate or three days of argument.

Exec

Runs isolated locally. High-risk commands must pop a confirmation card. And the high-risk judgement should be conservative — deletes, system calls, external installs. Better to prompt a few times too often than let one through on a misclassification.

Web

Strict domain allowlist. Local data egress is forbidden outright. This tier is the main battlefield against leaks. An allowlist is explainable and auditable; the cost is maintenance. Still more sensible than either fully open or fully cut.

Push

Git remote pushes require a human sovereign signature. Code landing on main should never be a machine's last act.

Delete

Permanently denied by default at the system level, to prevent accidental-wipe disasters. When a delete is genuinely needed it goes through a separate human-confirmed channel, outside the agent's normal capability set. We debated internally whether to open this tier. Conclusion: too little upside, too much tail risk.

The design goal of a permission system is not to let the agent do as much as possible. It is to let it do the right things correctly, and make the wrong things impossible.

5. The evidence chain

Every step leaves a Diff and a hash chain of evidence. This isn't ritual for assigning blame after the fact — it makes who decided what a verifiable fact.

The last note on liability mentioned that the reason we can't draw clean compensation ratios between human and agent is a missing trustworthy record of who approved what at the time. The evidence chain fills that gap — approval signal, command scope, Diff snapshot, execution hash, threaded into one tamper-proof timeline.

Side note: control audit granularity. More logs is not better. Too many is the same as none — when something actually breaks, nobody fishes the three critical lines out of a few million. Our approach is to record decision points as first-class; the intermediate work is recoverable but not expanded by default.

Closing

Models will keep changing, and keep getting cheaper. A product bet on today's strongest model watches its moat evaporate on the next release day.

Betting on the execution system is different: permission matrix, evidence chain, sandbox boundaries, routing failover, approval flow — these "boring" engineering assets don't lose value when the underlying weights get replaced. They thicken with use.

Next note picks up the last link: when machines start signing contracts with each other — identity exists, the work is done, how does the money settle.


Sequence: Notes / 05  ·  ← Notes / 04  ·  Reading Logs