Single SourceStudios Engage SSS
Pre-code · Architecture-decision-record locked

The orchestration and runtime layer for multi-agent teams.

HARNESS.md is a proposed, declarative manifest for multi-agent harnesses: a single markdown+YAML file that defines a team of agents, orchestrator, leads, workers, the tools each may call, the state they share, the control loop that drives them to completion, and the model rotation that keeps them resilient.

Strategy locked, engine not built
Python 3.12+ / Pydantic v2
Runtime: Drivetrain
Where this actually stands

Pre-code. No engine exists yet.

The architecture-decision-record and phased roadmap are locked: what HARNESS.md owns, how it composes with AGENTS.md and LOGIC.md, the stack, and the dogfood target. A brief sequence for the walking skeleton is drafted. None of it has been executed. This page will be rebuilt once there's a real runtime, real commands, and real visuals to show, the same treatment MARCHESE.md, LOGIC.md, and COVENANT.md already got.

The one-paragraph thesis

The model is commoditised. The harness is not.

HARNESS.md is designed to be parsed and run by an engine you own, once that engine (Drivetrain) is built. It does not reinvent existing standards; it composes with them. A HARNESS.md references AGENTS.md for project conventions and references LOGIC.md for each agent's reasoning contract.

You are building the runtime layer that the big labs only ship as closed monoliths.

Where HARNESS.md sits

Three composable layers. Clean separation of concerns.

AGENTS.md
Durable project rules, build/test commands, working agreements. Existing Linux Foundation standard.
Consumed, never rebuilt
LOGIC.md
Per-agent reasoning contract: step DAG, quality gates, self-verification, retries.
Shipped, flagship
HARNESS.md
Runtime manifest per team: orchestration, team composition, tool bindings, shared state, control loop, model rotation, sandbox, approval gates.
The new build

The relationship is Dockerfile-to-app: the harness is designed to wire up and run the agents whose reasoning is specified in LOGIC.md. HARNESS.md is deliberately not folded into LOGIC.md, bolting orchestration, sandboxing, and runtime state onto a reasoning-contract format turns the flagship into a kitchen sink. And it's deliberately not a standalone brand, a separate identity fragments the ecosystem and walks into a crowded concept with no inherited equity.

Architecture

Orchestrator, leads, workers. The fallback rule is the point.

A minimal HARNESS.md: one orchestrator, one lead, two workers, a small task DAG, one quality gate, and a references: to a LOGIC.md contract for each agent.

Tier 1

Orchestrator

Plans and delegates. Never builds. One human input in, internal fan-out only.

Tier 2

Leads

Plan and delegate to workers. Step in and do the work themselves when a worker fails, the fallback rule.

Tier 3

Workers

One agent, one prompt, one purpose. Strict domain scoping.

---
harness: leadscraper-enrich
version: 0.1.0
includes:
  - AGENTS.md
teams:
  - id: enrichment
    lead: enrich-lead
    workers: [scraper, normaliser]
agents:
  orchestrator:
    role: orchestrator
    reasoning: ./contracts/orchestrator.logic.md
    tools: [delegate, read_state, write_state]
  enrich-lead:
    role: lead
    reasoning: ./contracts/enrich-lead.logic.md
    tools: [delegate, fs.read, fs.write, db.query]
  scraper:
    role: worker
    reasoning: ./contracts/scraper.logic.md
    tools: [web.fetch, db.write]
models:
  primary:   anthropic/claude-sonnet
  secondary: nvidia/meta-llama-3.3-70b-instruct
  rotation:  [primary, secondary]
---

Illustrative sketch from the Phase 0 target, not final schema.

The four decisions, locked

Reasoning and pushback, not just a conclusion.

Decision 1

Relationship to LOGIC.md: complementary layer, one stack

HARNESS.md is not folded into LOGIC.md and is not a rival standalone. It's the orchestration/runtime layer above it. The win condition: HARNESS.md drives demand for LOGIC.md, you cannot fill a harness without reasoning contracts, so every HARNESS.md adopter becomes a LOGIC.md adopter.

Decision 2

First deliverable: a walking skeleton, dogfooded

Not a spec document, not a full engine. A thin vertical slice touching orchestration, tool bindings, and control loop, run end-to-end on one real internal task with a captured trace. A spec with no executor is one more markdown convention in a crowded field. The differentiator is the runtime and the proof it works.

Decision 3

Stack: Python core, typed and enterprise-grade

Python 3.12+, Pydantic v2 for every contract, Pydantic AI as the per-agent leaf-execution primitive. The orchestration layer above it, control loop, shared state, failure recovery, eval and observability, is owned outright, not wrapped around LangGraph or CrewAI. That layer is the actual product.

Decision 4

Audience: both, open-source-first

Build private, dogfood on a real project, harden, then open-source as the HARNESS.md layer of the LOGIC.md stack, the same path LOGIC.md took, validated through Modular9 before it earned stars. Working tools that solve a real problem earn adoption; empty repos with grand READMEs don't.

Python 3.12+ Pydantic v2 Pydantic AI uv Typer anyio / asyncio networkx OpenTelemetry + Logfire
Dogfood target

Leadscraper: an existing pipeline, re-expressed as a harness.

Already a six-stage pipeline (Discover, Enrich, Analyse, Score, Assets, Outreach) that maps almost one-to-one onto orchestrator, leads, and workers. Already has human approval gates and a multi-provider LLM abstraction, exactly the model-rotation surface HARNESS.md needs.

Re-expressing the pipeline as a HARNESS.md-orchestrated team, fixing a known dedup bug, and clearing a backlog of 1,733 unenriched records is the demo. The proof and a real business win are the same artifact.

Phase 0 brief sequence

The walking skeleton, brief by brief.

BriefScopeState
001 Drivetrain package scaffold + HARNESS.md Pydantic v2 schema + parser + drivetrain validate CLI Drafted, ready to execute
002 Control loop + fake model provider; orchestrator/lead/worker fan-out; induced worker failure → lead takeover → orchestrator reroute; emit tasks.json + progress.md Not yet drafted
003 Real multi-provider model layer + Leadscraper enrichment dogfood; clear a batch of the unenriched backlog Not yet drafted, operator-gated
Open decisions, still live Repo home, SingularityAI-Dev alongside LOGIC.md, or SingleSourceStudios, blocks the first push. Naming risk is flagged but not resolved: HARNESS collides with Harness.io, a funded DevOps/CI-CD company now shipping its own "Harness AI Agents." The file convention (HARNESS.md, generic and descriptive) is expected to stay; the runtime brand is Drivetrain to keep the product name clean and ownable, decided precisely to route around that collision.
Status

Strategy locked. Engine not yet built.

The runtime layer of the LOGIC.md stack, alongside COVENANT.md and MARCHESE.md. This page gets rebuilt once there's something real to show.

Open Source Coming Soon
Evidence stamp

Evidence: compiled from the harness-md repository on 2026-08-03. Every number on this page traces to a file path or command output in the source tree. Last updated: 2026-08-03.

Single Source

Every number on the dossier and whitepaper pages traces to a file path or command output in the source tree.

LinkedIn Facebook (c) 2026 Single Source Studios (Pty) Ltd