Agentic-Nets · Whitepaper · July 2026

The Harness Control System

Complete domain automation on Agentic-Nets: how a Petri-net runtime turns AI agents, workflows, personas, memories and watchers into one governed fabric — a harness — that observes itself, measures itself, rebuilds itself, and gets better every single day.

p-observe t-improve p-better
alexejsailer.com · agentic-nets.com · github.com/alexejsailer/agentic-nets

Contents

  1. Executive summary
  2. Automation that cannot see itself
  3. The medium: Petri nets with seven verbs
  4. One runtime, every layer
  5. The harness control loop
  6. Crystallization: the economics
  7. The system that builds itself
  8. Multiplying the harness
  9. Use cases: harnesses by domain
  10. Who profits — beyond developers
  11. Live evidence
  12. Outlook
  13. Honest limits
  14. Roots: fourteen years of Petri nets
  15. See it yourself

1 · Executive summary

The harness is the asset. The runtime is its control system.

Models come and go — every few months a stronger one appears. What compounds is everything around the model: the workflows, roles, gates, memories, tools and watchers that turn raw intelligence into dependable work. Practitioners call this the harness. Agentic-Nets is built on a simple claim: the harness deserves its own operating system.

2 · The problem

Automation that cannot see itself

Every organization automates. Almost none of that automation can explain itself, and none of it improves itself.

Classic automation is blind. Scripts, cron jobs, RPA bots and CI pipelines execute fixed instructions. They know nothing of their own history; when the world drifts, they break silently or fail loudly, and a human reverse-engineers what happened from scattered logs. Change requires a developer, a deployment, a ticket.

Chat agents are the opposite failure. They are marvelously flexible and completely ungoverned: state lives in a scrolling context window, permissions live in a prompt (where a clever input can talk them away), memory evaporates between sessions, and nothing is measurable after the fact. You would not run payroll on one. The essays behind this system have drawn the dividing line the same way for eighteen months: chat agents are great for exploration; Agentic-Nets are what you use when exploration turns into operations.

The gap between them is a missing layer — a runtime where automation is explicit (you can read the process as a graph), durable (state survives every disconnect), governed (permissions enforced by the runtime, not requested by the prompt), and above all self-describing: the system records enough about its own behavior that it can be analyzed and improved as a matter of routine.

That layer is what Agentic-Nets provides — and the practice it enables deserves a name: harness engineering. The harness is the totality of nets that run your domain. The runtime is its control system: the place where the harness is observed, measured, adapted and extended. This paper is about that loop.

You don't ship prompts. You grow a harness — and you point the strongest model you can afford at making it better, every single day.

3 · The medium

Petri nets with seven verbs

Underneath everything sit three primitives from a sixty-year-old formalism — chosen precisely because they make state, concurrency and gating visible.

A place is a persistent, event-sourced container. A token is a JSON document living in a place — a work item, a config, a memory, a result. A transition consumes tokens, acts, and emits results; it is the only thing in the universe that acts. Arcs carry a small query language (ArcQL) that decides which tokens bind; emit rules decide where results land; capacities gate flow.

On this substrate, Agentic-Nets defines exactly seven kinds of transition — seven verbs:

VerbWhat it doesCosts LLM?
passRoute tokens conditionally — move work without touching it.No
mapTransform deterministically with ${…} templates.No
httpCall any REST surface, with auth, retry, backoff.No
commandRun a shell command or script on a remote executor.No
linkDraw a pure structural edge — knowledge graphs, architecture maps.No
llmOne AI inference call at a judgment point.Yes
agentAn autonomous, tool-using AI working toward a goal — with runtime-enforced permissions.Yes

Two properties matter more than any feature list. First, five of the seven verbs never call a model — the formalism pushes you toward determinism, and AI appears only where judgment genuinely earns its cost. Second, the verbs compose without limit: everything described in the rest of this paper — teams, brains, memories, watchdogs, self-building systems — is nothing but these seven verbs arranged on the same substrate. There is no second system to learn.

How a transition executes is described by an inscription — an immutable JSON document kept strictly separate from the visual net (PNML). The same net shape ships to any environment; hosts are rewritten at deploy time; a validation stack checks ArcQL syntax, emit-rule coverage and action shape before anything runs. Agents are configured with capability flags (rwxhludct) that gate 88 tools at dispatch time — an agent without w cannot write, no matter what its prompt is talked into.

4 · The stack

One runtime, every layer

The claim that sounds most like marketing is the most technical one: from seven verbs you really can build everything — workflows, tools, agents, personas, teams, memories, brains, and the watchdogs that guard them all. Each layer is nothing but nets, so each layer inherits the same durability, the same observability, and the same governance.

THE SUBSTRATE — places · tokens · seven transition verbs · event sourcing · permissions every layer above is only this 1 · Workflows deterministic rails: routing, transforms, API calls, commands — the process itself, readable as a graph pass · map · http · command e.g. forum poll → triage → report 2 · Tool-nets generalized fragments promoted into named, versioned, schema-described capabilities — the reusable verbs of your domain manifest · draft → blessed e.g. run-tests · repo-status · http-health 3 · Personas roles as nets: an inbox, a decision graph, scoped permissions, an error path — a colleague you can read agent + llm at judgment points e.g. Devon: plan → code → test → push 4 · Teams personas wired through shared places with enforced gates, rework loops and escalation — an organization with physics shared places · gates · escalation e.g. safe-teams: PM→Arch→Dev→QA→DevOps 5 · Memory & brains knowledge as structure WITH logic: link graphs, distillers, journals, ideation panels — memory that thinks while you're gone link · scheduled llm distillers e.g. brain → council → decision token 6 · Watchers & sentinels zero-LLM guardians: scheduled probes, jam detection, self-healing script restoration — the immune system map + command + cron · no AI cost e.g. Sam: probe → restore → alert, every 10 min
Figure 1 — The harness stack. Six layers, one substrate. Blue layers never call a model; amber layers put AI exactly at judgment points; the green layer guards everything at zero AI cost.

Three of these layers deserve a closer look, because they are where Agentic-Nets departs hardest from agent frameworks.

Personas are nets you can read

In a chat framework, a "role" is a system prompt. Here, a persona is a structure: Devon the developer is an inbox place, a planning transition, a command transition that runs a confined coding agent on an executor, a result-router, and an explicit error path back to the product manager. You can open Devon in the Studio and read him like a sentence. When Devon misbehaves, you don't re-prompt and hope — you look at which transition failed, with which token, and fix that step.

Memory is structure with behavior

Most agent memory is a vector store: a bag of embeddings that answers "what looks similar?" A memory net answers better questions. Knowledge lives as tokens in typed places; link transitions weave places into a navigable graph; scheduled distiller transitions refine raw capture into durable notes while nobody is connected; and because memory is event-sourced like everything else, "why does my memory say X?" has an answer — the event trail that wrote it. Memory here doesn't just persist. It runs.

Teams have physics

Wire personas through shared places and you get an organization whose rules are mechanical, not aspirational. The QA gate in the live system is not a convention — a red controller test aborts the Docker build itself, so broken code cannot ship. Work-in-progress limits are place capacities. Escalation is a place a token lands in after three failed rework loops. The org chart is the net.

monitor-workspace
Figure 2 — One model, seventeen live nets. The read-only monitor showing the safe-teams harness on staging: persona sub-nets, a 46-place forum integration net, the brain, and five tool-nets — every layer of Figure 1, running.
monitor-dev-net
Figure 3 — A persona is a net. Devon, the developer: inbox → plan → build CommandToken → Fire Claude Code → route result → done, or error → PM. The error path is first-class.

5 · The core thesis

The harness control loop

Here is the idea this whole paper exists for. A harness that runs is table stakes. A harness you can observe, interrogate, and rewrite while it runs — from inside the same runtime — is a different kind of asset. Agentic-Nets is deliberately both: the fabric the harness is made of, and the control room it is improved from.

THE HARNESS your domain, running as nets event-sourced · permission-scoped · scheduled OBSERVE live monitor · console stream · agenda net_overview · query_tokens · OTel traces ANALYZE a strong model reads the history event_trail · replay · "what existed then?" IMPROVE adapt inscriptions · extend nets · crystallize Genesis · MCP (~104 tools) · Forge · Builder MEASURE did the change help? the runtime knows usage ledger · net_stats · fire metrics strong model as gardener changes land as nets, not deployments
Figure 4 — The harness control loop. The harness runs in the middle; the loop runs around it. A frontier model — pointed at the runtime through MCP or the Genesis command room — does the analysis and the improvement. The runtime itself does the observing and the measuring, because the harness's actions are runtime events.

Time travel is the analysis superpower

The node service stores all state as an immutable event log folded into a read model. Nothing is overwritten, ever. That turns debugging and improvement from archaeology into queries: Which transition consumed this token, and what did the world look like at that moment? Where do tokens pool on Tuesdays? Which agent step fails most, on which input shape, at what cost? The event trail answers with data, not recollection — or, as one of the platform essays puts it: "the event log is the system's memory of itself, and you've already paid for it." You analyze the past precisely to change the future: tighten an ArcQL filter here, add a validator transition there, split a persona that is doing two jobs, crystallize the step that has stopped needing intelligence.

The levers: Genesis and MCP

Improvement needs hands, and there are two pairs. In the Studio, the Genesis command room pairs a coordinator agent with live workspace editors — you say what should change; it focuses nets, edits inscriptions, builds structures, and you watch the canvas move. From the outside, the MCP server exposes roughly 104 tools to any capable model — Claude Code, an IDE agent, a scheduled cloud job — including net building, memory, diagnosis (event_trail, net_stats, diagnose_transition), templates, and a pause_model kill switch. The pattern that emerges is the economically interesting one:

Run the domain on cheap, deterministic lanes. Spend the frontier model on the harness itself. Execution cost stays flat while capability compounds.

The loop runs at every timescale

CadenceWho actsWhat happens
~2 secondsThe runtimeTransition polling — work is picked up, tokens move, events append.
MinutesWatcher netsProbes fire, jams are flagged, wiped scripts are restored from the net itself.
HoursBrain & council netsScheduled ideation reads the live system's own reports; a council emits one decision token: what to build next.
DailyA strong model + youA gardening session over MCP/Genesis: read trails, fix friction, extend a net, crystallize a pattern.
Weekly+The harness as productA matured harness version is packaged on NetHub and rolled to other teams or instances.
monitor-agenda
Figure 5 — The loop, live. The Agenda panel on staging: 7 transitions ready, 29 scheduled lanes counting down — from a 1-minute forum poll to a 12-hour ideation brain. This is "works while you sleep," mechanically.
genesis-view
Figure 6 — One of the two levers. The Genesis command room: chat on the left drives live net editors on the right. The same hands are available headlessly through the MCP server's ~104 tools.

6 · The economics

Crystallization: intelligence hardens into infrastructure

Most agent systems have a cost problem: every execution reasons from scratch, so operating cost scales with usage forever. The harness inverts this with a formal pipeline the repo calls crystallization.

Agents explore first — that is what they are for. The runtime keeps a usage ledger of every tool call an agent makes. When the same call pattern recurs, it becomes a crystallize candidate; the Forge — a tool-building meta-agent — turns it into a deterministic tool-net with a manifest, a schema, and a lifecycle (draft → blessed). Reliable tool-nets get promoted; rotting ones get flagged and retired. The public docs put it plainly: "Teams start with agent transitions to explore a problem, then harvest the working recipe into deterministic transitions. The net's AI spend shrinks as the net matures."

Execution #1

Full LLM reasoning. The agent encounters pitfalls, captures lessons, leaves a usage trail. Expensive, and worth it — the problem is novel.

Execution #100

A blessed tool-net replays the hardened recipe deterministically. Costs CPU. The intelligence was spent once and crystallized into infrastructure.

This is the deep answer to "won't this burn tokens forever?" — and it is also why the harness, not the model, is the durable asset. Swap the model next quarter; the crystallized library, the memory nets, the gates and the watchers all remain. Fourteen years of your domain's operational knowledge cannot be re-prompted; it can be accumulated.

7 · The frontier

The system that builds itself

Agent transitions carry write-capability tools: CREATE_NET, CREATE_PLACE, CREATE_TRANSITION, SET_INSCRIPTION, DEPLOY_TRANSITION. Read that list again: a net can contain an agent whose job is to build more net. Combine it with scheduled ideation, a deciding council, and native self-measurement, and the harness stops being something you extend — it becomes something that grows.

THE FENCE — autonomy inside guardrails SENSE watchers · probes codebase reports t-sentinel · ga-code DECIDE brain panels ideate a council votes: one token p-council-decision ACT the team pipeline runs gates enforce quality PM→Arch→Dev→QA→Ops BUILD agents extend the net: new places, lanes, tool-nets Forge · Builder · Persona MEASURE it lives in the runtime it measures ledger · event trail measurement feeds the next sensing pass — the loop closes capacity gates · retry budgets + human escalation · rwxhludct permission flags · vault-scoped secrets inscription validation before deploy · usage ledger on every agent tool call · pause_model kill switch GUARDRAILS
Figure 7 — Autonomy inside a fence. The growth loop the live system already runs, and the mechanical guardrails that keep it a system rather than a runaway.

This is not a roadmap slide — every station in Figure 7 is running on the public staging instance today:

The foundations document closes the thought with the best sentence in the repository:

"In 2012, modelling a net meant drawing it by hand. In 2026, the modelling itself is a conversation with an agent that lives inside the runtime. The net has become its own author." — FOUNDATIONS.md, agentic-nets repository

8 · Scale

Multiplying the harness

A harness that works once is a success. A harness you can copy is a business. Three mechanisms make the architecture multiply.

Hands, anywhere

Executors — the hands of the system — make outbound calls only. They poll for work every two seconds and never accept an inbound connection, so they run behind any firewall with zero open ports: a laptop, a build server, a machine inside a customer's network, a box next to the hardware it controls. Register as many as you like, each with an identity and a model allowlist; the master routes command work to the right hands. Capability arrives as data — a command token carries the script; the executor runs it — so executors are disposable and re-provisionable. If a partition cuts the link, work queues and the executor simply resumes polling; nothing is lost, because nothing was pushed.

One brain, many masters

The gateway keeps a registry of masters, each declaring which models it serves; new models are assigned round-robin to wildcard masters, and stale ones are evicted by heartbeat. State lives in the event-sourced node, so masters are restartable and horizontally boring — the way infrastructure should be.

The harness as a shippable artifact

NetHub packages a net, a session, or a whole model — the complete harness with its structure, inscriptions and (by policy) its config tokens — as a versioned artifact. Credentials are always scrubbed; a token policy (none | config | all) decides how much runtime state travels; installing a model artifact spins up a new running model with hosts rewritten. Peer instances can federate catalogs (hub_add_remote), opt-in and read-only by default. The consequence is a new kind of deliverable:

Build the domain harness once. Prove it against the live event trail. Then install it — per team, per customer, per site — and let each copy start its own control loop.

9 · Application

Use cases: harnesses by domain

The pattern is always the same — processes become nets, actors become personas, tools become tool-nets, knowledge becomes memory nets, and the control loop improves all of it. What changes per domain is only the topology. A useful way to gauge where you stand is the maturity ladder:

LevelWhat runsWhat it means
L0 · ChatA person and an assistantExploration. Nothing survives the session.
L1 · RailsDeterministic nets (pass/map/http/command)The routine work flows without AI cost.
L2 · Judgmentllm/agent transitions at decision pointsAI exactly where rules run out.
L3 · TeamPersonas + shared places + gatesRoles, hand-offs and quality gates with physics.
L4 · Self-maintainingWatchers, sentinels, distillersThe harness heals and remembers on its own.
L5 · Self-extendingBrains, councils, builder agentsThe harness decides, designs and grows — inside the fence.

Product development

The proven one: intake from a forum, PM/Architect/Dev/QA/DevOps personas, a build-time test gate, boards and standups auto-maintained, a council deciding the roadmap. One harness turns a post into a shipped, verified feature.

L5 live todaysafe-teams

IT operations & SRE

Watchers probe every surface; sentinels restore state and flag jams; runbooks crystallize into tool-nets; an incident persona triages, correlates event trails, and escalates humans through a waiting place. The event log is the incident timeline.

zero-LLM basewatcher · sentinel

Customer support & community

Intake from forum, mail or chat; a triage persona separates questions from requests (the live system's Casey answers, never files); domain memory nets hold the product truth; escalation is a gate, not a hope.

triage · memory

Content & editorial operations

Research brains gather; a writer persona drafts; review is a real gate; publishing is an http lane to the CMS. This very system syncs a WordPress blog today — the calendar, the voice and the archive all live as tokens.

brain · gate · http

Research & intelligence

Scheduled ingestion via crawler/RSS tool containers; the reflexive-brain pattern — question → answer → gap-driven exploration → distilled knowledge tokens — grows a queryable, provenance-carrying corpus that compounds instead of resetting.

reflexive brain

Business processes with judgment

Order exceptions, procurement approvals, onboarding: deterministic rails carry the standard path; an llm transition classifies the weird case; a human gate is a place a token waits in — approval is an event with full provenance, satisfying the 3am question.

rails + judgment + human gate

QA & release engineering

Fan-out test batteries as command tokens; dual-emit patterns make nets self-resetting; an analyst agent reads its own results into structured verdicts — "the executor does, the agent understands" — and release notes write themselves from the event trail.

FOREACH · dual-emit

Personal chief of staff

An advisor team over your health, finances and career: personas consult each other through tool-nets, hold scheduled reflections, and crystallize durable insights about you. You go to bed; the team meets; you wake to smarter advisors.

advisor team · reflection

Two more deserve a sentence each. Edge and multi-site operations: because executors poll, a fleet of sites can each run local hands under one governed brain — same net definition, many environments. And the meta-use-case: the harness that improves your other harnesses, which is just the control loop of Section 5 given its own net.

10 · Who profits

Beyond developers

Developers get a runtime. But the visual, promptable, governed nature of the system makes it legible to people who would never open an IDE — and several of them get more out of it than developers do.

AudienceWhat they seeWhat they get
Process owners & ops managersA live diagram of their process — readable like a BPMN chart, but runningRPA's successor: automation with judgment at the branches, gates they can point at, and a monitor they can open in a browser
Engineering leaders / CTOsThe Agenda, the ledger, the event trailGoverned, measurable AI adoption — an answer to "what did the agents do, what did it cost, who allowed it?"
Domain experts (non-technical)The Persona agent interviewing them, then a net appearingTheir expertise operationalized by conversation — the persona builds the net, the expert owns the knowledge places
Consultants & system integratorsNetHubA new deliverable: the domain harness as a versioned product, installed per client, plus recurring harness-gardening engagements
Product managersForums, boards, standups maintained by the netTheir tooling as the team's native habitat — intake to shipped, with lifecycle updates posted where the customer asked
SRE / platform teamsWatchers, sentinels, executorsSelf-healing infrastructure whose incident timeline is queryable history, not log archaeology
Analysts & researchersMemory and brain netsA knowledge corpus that accumulates with provenance — "why does the memory say this?" has an answer
Regulated-industry operationsImmutable events, enforced permissions, vaulted secretsAgent automation that can face an auditor: replayable decisions, scoped capabilities, no secrets in prompts
Solo foundersThe whole stack on one serverA persistent team that multiplies one person — the system described in this paper is run by one
EducatorsA sixty-year-old formalism, animatedThe teachable version of agentic systems: places and tokens on a canvas instead of hidden prompt chains

11 · Proof

Live evidence

Every claim above has a running counterpart. The public staging instance has operated a forum, a project board, a git server and a real product for weeks — autonomously.

forum-story-chain
Figure 8 — The harness cannot lie. STORY-forum-116: the architect scopes, the developer commits (real hash), and QA refuses a broken deploy — HTTP 401, "not passing this yet." The story shipped only after the rework loop fixed it. Losses are loud by design.
openproject-board
Figure 9 — Nobody clicks in this board. 33 OpenProject work packages, one per forum story, created, advanced and closed by the net — with a daily standup posted as a comment.

The system in numbers

7 transition verbs · 88 permission-gated agent tools · ~104 MCP tools · 8 built-in personas · ~225K lines across the platform · 2,100+ tests green · 16 Docker images per release · v2.21.0.

Watch it yourself, read-only

The instance publishes a shared read-only token: log in at agentic-nets.com/#/monitor, load the safe-teams model, and watch the agenda count down. Reads return 200; every write returns 403 — governance you can poke.

12 · Outlook

Where this goes

Near: closing the authoring loop

The in-Studio assistants (inscription chat, token workbench) are being upgraded from one-shot generators to grounded agents that see real net topology and real token samples, validate their output against the runtime, and self-correct before handing you a result. Every friction point in authoring is a candidate for the same treatment: the harness improving the tools that improve the harness.

Near: richer hands

Executors today speak bash and filesystem. The direction is executor fleets with hot-deployable capability — OSGi/Karaf and Spring Boot executors receiving new command bundles over the same polling channel, plus MCP-speaking handlers. Because executors are disposable, upgrading the hands never risks the brain.

Mid: the self-optimizing default

The event log already contains everything needed for automatic improvement proposals: an organizer net that clusters agent journals, flags transitions where one branch dominates, shadow-runs a deterministic candidate against the corpus, and files a crystallization proposal for human approval. A/B experiments as sibling transitions scored against real history; promotion by evidence. The pieces — usage ledger, crystallize API, variant comparison — exist; the outlook is wiring them into a loop that runs unattended.

Mid: the harness marketplace

NetHub today shares artifacts between peers. The natural next step is a catalog of domain harnesses — a support desk, a research brain, an SRE sentinel pack — installable, versioned, credential-clean, each arriving with its own control-loop instrumentation. Skills marketplaces share prompts; this shares running organizations.

Far: harnesses of harnesses

Nothing in the substrate limits the control loop to one model. A supervisory net can watch the ledgers and event lines of many models — many domains — and route a gardener's attention to whichever harness drifts most. Federation across instances makes that loop cross organizational boundaries. The endpoint of the thesis: operations as a fabric of self-measuring processes, each one gate away from a human, all legible in one formalism.

13 · Candor

Honest limits

14 · Lineage

Roots: fourteen years of Petri nets

Agentic-Nets is not a framework improvised onto the AI wave. It is the direct descendant of a 2012 diploma thesis at the Karlsruhe Institute of Technology — a Java simulation engine for XML-Netze, a higher-order Petri-net variant in which places hold structured documents and transitions are guarded by inscriptions.

The architectural map is nearly one-to-one across fourteen years: typed XML tokens became typed JSON tokens; the thesis's ANTLR-parsed inscription queries became ArcQL; sequential and parallel firing strategies became SINGLE and FOREACH modes; and — most tellingly — the thesis's risk model, which attached likelihoods, impacts and reduction measures to transitions at firing time, became today's governance: capability flags, capacity gates, retry budgets and vaulted credentials, all carried in the same inscription that routes the data. Risk-aware business processes then; risk-aware agents now. As the foundations document puts it, the thesis wanted to simulate not only the fair-weather flights of a process but what happens when things go wrong — "the same intent applies to AI agents; the things that go wrong are different in kind, not in shape."

thesis-editor
Figure 10 — 2012. The KIT-Horus editor from the diploma thesis: places, transitions, a palette, and a risk marker on a transition. Compare with the Studio in Figure 2 — the substrate never changed; the tokens learned to think.
thesis-inscription
Figure 11 — The inscription editor, 2012. A guarded query filtering typed tokens, then a transition mutating and re-emitting them — functionally the ancestor of every inscription in this paper.

The lineage matters for a practical reason: Petri nets carry sixty years of formal results — liveness, reachability, boundedness, soundness — that agent systems need and rarely articulate. These are not vibes; they are decision problems with formal answers, and they are reachable when the system is built on a net substrate rather than chained prompts. An agent that can run a shell command needs every guarantee a business process ever needed, plus a few more.

15 · Next step

See it yourself

forum.agentic-nets.comThe team's public face — post a feature request, watch the thread fill.
gitanalytics.agentic-nets.comThe product the harness builds.
agentic-nets.comStudio, docs, and the read-only monitor of the live team.
project.agentic-nets.comThe auto-managed project board.
github.com/alexejsailer/agentic-netsThe open repository — BSL 1.1, `docker compose up` away.
alexejsailer.comEighteen months of essays behind this paper — from "living automation" to "the harness is the product."

Or start where the thesis starts: pick one process your team runs every week, draw it as five places and four transitions, put an agent at the single point where judgment lives — and then open the event trail after the first week and let the history tell you what to improve. That is the control loop. It compounds from day one.