Skip to content

Staying primitive

The kernel owns the mechanics of execution: it persists, orders, checkpoints, enforces and records. The meaning of a run belongs to the code and the policy that carry it: an agent decides how to break down a task, a workflow decides the order of its steps, and a policy decides what a data class means. This page covers where that line sits, and what each side owns.

Mechanics in the kernel, meaning outside it

flowchart TB
  subgraph CP["CONTROL PLANE"]
    direction TB
    POL[("Policy bundles<br/>rules, data classes, effects")]
    WF[("Compiled workflow<br/>closed primitives")]
  end
  subgraph XCK["KERNEL"]
    direction TB
    EXE["Primitive execution"]
    ENF{{"Enforcement<br/>enacts declared effects"}}
    ST[("Run state, task graph,<br/>working memory, journal")]
    subgraph CELL["CELLS"]
      direction TB
      BLK["Reusable capability blocks<br/>agents, compact and refine"]
    end
  end
  WF -->|"sealed in the run-plan"| EXE
  POL -->|"frozen per step"| ENF
  EXE -->|"calls"| BLK
  BLK -->|"task and memory updates"| ST
  EXE --> ENF
  EXE -->|"persists, checkpoints"| ST

Compiled workflow and Policy bundles arrive sealed from the control plane and carry the meaning of the run. Reusable capability blocks carry the meaning of each task. The kernel's boxes hold the mechanics: Primitive execution runs the closed set, Enforcement applies the effect a rule declares, and Run state, task graph, working memory, journal keeps what the blocks write in order and across checkpoints.

Who owns what

Element The kernel owns Owned outside the kernel
Control flow Executing the compiled primitives The workflow, compiled by the control plane
Task decomposition Persisting the task graph and its revisions The agent block that decides it
Subagents Launch, lifecycle, checkpoint and resume through delegate Who may spawn work: policy at pre_delegate
Working memory Scoped storage, revisions and restoration What the memory means: the agent
Compaction When compaction is required, from runtime limits How compact and refine work: blocks declared under memory:
Data classes Carrying each label with its value What a label means: policy rules
Policy effects Enacting the declared effect mechanically What the rule intends: its author
Business logic Calling the sealed block The block's code

What staying primitive yields

The kernel is the same for every project. A new agent, a new workflow and a new rule run on the same kernel, because each brings its meaning with it in sealed form.

An effect does the same thing in every rule. The kernel enacts deny, redact or route_to from the rule's declared arguments.

A label is carried exactly. The kernel propagates a data-class label such as pii.contact without interpreting it, to every value derived from the original.

A workflow has two kinds of step. A step is a call into reviewed, sealed code or a primitive from the closed set. Arbitrary computation lives in a sealed block, where it is reviewed and versioned like any other code.