Harness rotors
The declarative atomic unit — binds provider, compute, a tool subset and an L0–L3 loop, and emits a stable contract stream.
A Harness is Kernuq’s “One”: a rotor that takes intelligence voltage and produces steady torque. It is declarative configuration stored in the resource layer — not code.
Minimal example
uri: "harness://ops/log-analyzer"
owner_unit_uri: "org://unit/group_hq"
title: "Log Analyzer Rotor"
provider_binding:
primary_uri: "provider://llm/deepseek/reasoner"
compute_binding:
compute_uri: "compute://builtin/local-host"
lifecycle: "session_scoped"
io_contract:
output_mode: "text_stream"
loop_spec:
level: "L1_STEP"
max_steps: 8
Key fields
| Field | Meaning |
|---|---|
provider_binding |
Intelligence source; primary_uri points at a provider:// |
compute_binding |
Execution field and lifecycle (e.g. session_scoped) |
io_contract |
Output contract: text stream, JSON Schema, asset… |
loop_spec |
Loop level (L0–L3) and step limit |
Loop levels L0–L3
From a single call (L0) and a step-wise tool loop (L1) to plan–execute (L2) and reflect–revise (L3). Higher levels mean more autonomy — and stricter budgets and TTLs.
Validation and revisions
kernuq schema harness # the formal contract
kernuq validate --config kernuq.yaml --dry-run --json # preview
Each change creates a new revision: list with harness.revisions, revert with harness.rollback; Cortex can propose changes via harness.evolve.
# Harness rotors The declarative atomic unit — binds provider, compute, a tool subset and an L0–L3 loop, and emits a stable contract stream. A Harness is Kernuq's "One": a rotor that takes intelligence voltage and produces steady torque. It is declarative configuration stored in the resource layer — not code. ## Minimal example ```yaml uri: "harness://ops/log-analyzer" owner_unit_uri: "org://unit/group_hq" title: "Log Analyzer Rotor" provider_binding: primary_uri: "provider://llm/deepseek/reasoner" compute_binding: compute_uri: "compute://builtin/local-host" lifecycle: "session_scoped" io_contract: output_mode: "text_stream" loop_spec: level: "L1_STEP" max_steps: 8 ``` ## Key fields | Field | Meaning | | --- | --- | | `provider_binding` | Intelligence source; `primary_uri` points at a `provider://` | | `compute_binding` | Execution field and lifecycle (e.g. `session_scoped`) | | `io_contract` | Output contract: text stream, JSON Schema, asset… | | `loop_spec` | Loop level (L0–L3) and step limit | ## Loop levels L0–L3 From a single call (L0) and a step-wise tool loop (L1) to plan–execute (L2) and reflect–revise (L3). Higher levels mean more autonomy — and stricter budgets and TTLs. ## Validation and revisions ```bash kernuq schema harness # the formal contract kernuq validate --config kernuq.yaml --dry-run --json # preview ``` Each change creates a new revision: list with `harness.revisions`, revert with `harness.rollback`; Cortex can propose changes via `harness.evolve`.