Skip to content

Latest commit

 

History

295 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Agentic Pi Harness

Governed agent execution, not just agent invocation

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.

CI

Why this exists

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.

Implemented capabilities

  • 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

Runtime model

Human / Control Surface
        ↓
     Mission
        ↓
      Pi
 execution supervisor
        ↓
 governed bridge
        ↓
 Hermes / worker runtime
        ↓
 tools + bounded knowledge
        ↓
 structured effects + traces
        ↓
 verification / promotion decision

Authority boundaries

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.

Knowledge governance

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.

Execution artifacts

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.

Quick start

Requirements:

  • Node.js >=20.11.0
  • npm
npm install
npm run build
node dist/cli/index.js run ./.pi-work ./.pi-out

Verify the resulting tape:

node dist/cli/index.js verify ./.pi-out/tapes/<sessionId>.jsonl

Inspect effects:

node dist/cli/index.js what-changed ./.pi-out/effects/<sessionId>.jsonl

Replay:

node dist/cli/index.js replay ./.pi-out/tapes/<sessionId>.jsonl

Relationship to AI Software Factories

This 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

Design principles

  1. Agent capability does not imply agent authority.
  2. Execution contracts should be versioned and inspectable.
  3. Policy decisions should survive process failure.
  4. Side effects should be attributable to the run that caused them.
  5. Candidate knowledge and canonical knowledge are different states.
  6. Deterministic verification should surround nondeterministic execution.
  7. Durable traces are more useful than trusting an agent's summary of what it did.

Key documentation

Status

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.

About

Governed agent execution harness with versioned contracts, durable state, policy enforcement, replay, provenance, and bounded worker runtimes.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages