Agentic Pi Harness is an engineering prototype for controllable, inspectable agent execution. It explores how to surround probabilistic workers with versioned contracts, policy boundaries, durable state, append-only traces, verification, and explicit promotion authority.
The current implementation centers on a hardened Pi ↔ Hermes bridge and a governed execution model for Pi-supervised worker runtimes.
A capable model plus tools is not enough to create a trustworthy autonomous engineering system.
Agent runtimes also need answers to questions such as:
- What exactly was the agent authorized to do?
- Which tools and knowledge sources were available?
- What state survives if the process fails?
- What changed on disk?
- Can execution be replayed or audited?
- Which outputs are merely candidate work versus canonical truth?
- Who has authority to promote an output downstream?
This harness treats those concerns as part of the runtime rather than leaving them to prompt instructions.
- Pi-supervised bounded worker execution
- hardened Pi ↔ Hermes bridge
- versioned execution contracts
- persistent run state
- immutable mission-request records
- structured lifecycle events
- preflight policy decisions and denial persistence
- KB / Wiki access-policy enforcement
- append-only execution traces
- hash-chained run tapes
- deterministic diff/effect inspection
- replay and verification paths
- promotion lineage into canonical knowledge
- bridge-only safety mode for governed execution
Human / Control Surface
↓
Mission
↓
Pi
execution supervisor
↓
governed bridge
↓
Hermes / worker runtime
↓
tools + bounded knowledge
↓
structured effects + traces
↓
verification / promotion decision
Hermes / operator-facing systems provide mission routing, synthesis, and interaction.
Pi acts as execution-level supervisor/governor for bounded runtime lanes.
Worker processes execute within the contract they receive.
The bridge is the required policy boundary for governed execution.
The important design idea is separation of capability from authority: a worker may be technically capable of an action without being authorized to perform it.
The harness can enforce different authority levels across local knowledge stores.
Supported policy targets include:
~/Agentic-KB— governed operational memory / system of record~/My LLM Wiki— broader research, synthesis, and working knowledge
Workers can be granted bounded write zones while canonical knowledge paths remain protected. Promotion into canonical state is a distinct governed action rather than an implicit side effect of generation.
A canonical run produces durable evidence such as:
.pi-out/
tapes/<sessionId>.jsonl
effects/<sessionId>.jsonl
sessions/<sessionId>/
checkpoint.json
metrics.json
policy.jsonl
provenance.json
These artifacts make the execution inspectable after the model process itself is gone.
Requirements:
- Node.js
>=20.11.0 - npm
npm install
npm run build
node dist/cli/index.js run ./.pi-work ./.pi-outVerify the resulting tape:
node dist/cli/index.js verify ./.pi-out/tapes/<sessionId>.jsonlInspect effects:
node dist/cli/index.js what-changed ./.pi-out/effects/<sessionId>.jsonlReplay:
node dist/cli/index.js replay ./.pi-out/tapes/<sessionId>.jsonlThis repository focuses on the execution/harness layer of autonomous engineering.
Mission Control operates at the higher control-plane layer: intent, WorkOrders, policy, verification, evidence, recovery, and publication decisions.
Agentic Pi Harness explores what the lower runtime needs to provide so a control plane can safely delegate bounded work to agents.
Mission Control / Software Factory
↓
execution contract
↓
Agentic Pi Harness
↓
worker runtime
↓
effects + evidence
- Agent capability does not imply agent authority.
- Execution contracts should be versioned and inspectable.
- Policy decisions should survive process failure.
- Side effects should be attributable to the run that caused them.
- Candidate knowledge and canonical knowledge are different states.
- Deterministic verification should surround nondeterministic execution.
- Durable traces are more useful than trusting an agent's summary of what it did.
PI_HERMES_CONTRACT_V2.mdKB_ACCESS_POLICY_V1.mdGOVERNED_EXECUTION_MODEL_V1.mddocs/HERMES-ADAPTER.mddocs/WORKDAY-FACTORY-RUNTIME-ROLE.md
Active engineering prototype. The repository has evolved from a deterministic Tier-A harness proof into a reusable governed-execution model. It is intentionally narrower than a complete software-factory control plane: the focus is execution contracts, policy, traces, effects, replay, and promotion boundaries.