Project Verifier
Project-owned executable guidance that lets agents prove their own work by driving the real product
Project Verifier
A Project Verifier is the app-specific knowledge that lets an agent prove its own work. Instead of handing a finished change to a human to click through, the agent drives the real product, observes what happened, and keeps going until the behavior works or a real blocker is named. The human stops being the bottleneck for "does it actually work?".
verify-behavior is the single entrypoint. It carries the portable proof protocol; the project supplies the executable knowledge below .agents/skills/verify-behavior/references/.
This page explains the ideas and the parts. Project Verification Flow shows how the skills run inside delivery.
Why verification is infrastructure
The framing comes from poteto's pstack guide, The Complete Guide to pstack Pt. 1 — Verification is all you need. Harness adapts its procedures and keeps these ideas:
- Verification means self-proof. Passing unit tests or reading source is not proof that a user can do the thing. The agent has to exercise the real path.
- A verification skill is critical infrastructure, not just a markdown skill. If it drifts, every later run trusts a stale map. It needs an owner, live proof that it works, and maintenance.
- Build the Lever. Give agents executable tools, not only prose. In Harness these are app-owned helper scripts, each with an explicit invocation condition and exact command, so an agent knows when to reach for one.
- The Feature Map is materialized memory. A compact, searchable map of app features, how a user reaches each, and how an agent drives it. The agent reads one small entry instead of rediscovering the app from source, which saves context tokens on every run.
Shape
Project-owned references live below .agents/skills/verify-behavior/references/:
- one index for apps and Cross-App Journeys;
- one directory per independently runnable app, holding a Surface Verification Reference whose
README.mdco-locates Launch, Doctor, Drive, Evidence, and Cleanup; - a Feature Map per app, with one entry per behavior, disclosed only when the selected scenario needs it;
- optional app-owned helper scripts.
Cross-App Journeys compose app references in scenario order and point to them rather than repeating launch or driver instructions.
Each Feature Map entry states the user-facing behavior, how a user reaches it, the driver recipe, the observable end state, variants, side effects, prerequisites, and gotchas. It links product and domain authority for meaning instead of copying it, and it records a Scenario Falsifier: the observable result that would disprove the expected behavior. Important behavior also names a Relevant Negative Condition and the actual downstream result to inspect. The creator writes each entry in the four upstream sections: Sub-features, How to get to it (user point of view), Driving it with the selected harness, and Gotchas.
Observation Manifest
Each entry also records its Observation Manifest: the fields and stages a run captures, read from the generated DTOs and the source predicates that decide the outcome. Where the behavior has them, it covers public state, exact release or intent, classifier operands, resource ownership, and correlated operation, receipt, and error stages with timings. A run completes the manifest before its first Drive.
Each assertion carries one expectation class:
| Class | Source | Effect |
|---|---|---|
invariant | A business rule from product authority | Gates the result. |
output semantics | A field or value the generated DTO or contract defines | Gates the result. |
speculative | An assumption no requirement or contract supports | Observed and reported; gates nothing. |
Readiness, authorization, lifecycle, concurrency, and cleanup checks always gate.
Launch Model
- A short-lived CLI: Launch prepares the binary once, and each Drive uses a fresh isolated session.
- A server or UI: one owned long-lived instance, driven serially.
- Ambiguous or shared instance ownership is refused.
During delivery, the run reuses the caller's Owned Stack, the runtime the delivery started and owns, after a controlled reset instead of a new Launch. Validation Gates defines the Owned Stack.
Knowledge Authority
The Feature Map owns executable knowledge: how a user reaches behavior, how an agent drives it, which observable state proves it, and which prerequisites apply. Wiki specifications, behavior pages, flows, and domain knowledge stay authoritative for product meaning. Creation uses them to seed the map and reconciles them with current code and runtime entry points.
How Harness differs from pstack
Harness borrows the idea and the creator and maintenance procedures, and adapts them to delivery:
- One entrypoint.
verify-behavioris the only verification skill an agent invokes to prove behavior. App references are files under it, not separateverify-<app>skills. - Lazy, targeted coverage. Coverage is created when a delivery hits an uncovered scenario, only for that scenario. There is no broad seeding pass, no daily maintenance routine, and no cloud-agent fan-out. An explicit full-audit invocation is the only broad maintenance; it may read source with concurrent readonly readers, but one coordinator alone drives the app and edits references.
- Joined to the delivery. The updater is named
update-verification-skill, and its changes land on the current delivery branch and pull request, not a separate maintenance pull request. - Delivery-driven triggers.
implement-specinvokes the creator for an Uncovered Surface and the updater for an Uncovered Behavior, then resumes the original scenario.debugging-phaseusesverify-behaviorinreproducemode.
The repository interview, live proof, evidence, cleanup, Feature Map, source reconciliation, and product-regression triage remain intact.
Ownership
Harness owns the verify-behavior protocol and the creator and updater skills. The project owns its app references, Feature Maps, journeys, and helpers. hi update and scaffold post-command flows leave that project-owned content byte-for-byte untouched.
docs-ingest-phase may update ordinary wiki knowledge, but it never invokes the updater or writes Feature Maps. Treat the map like infrastructure: it changes through delivery work with live proof, not through documentation passes.
Privacy And Cleanup
Verification runs only against authorized, run-owned state. Credentials, secrets, personal data, and sensitive state stay out of prompts, screenshots, recordings, reports, and retained evidence; a missing prerequisite is named without its value. Required human authentication or approval stays with the human. Cleanup removes only resources proven to belong to the run, including after failure, and reports unexpected ownership as a blocker instead of deleting it.
See Project Verification Flow for the lifecycle, modes, and results.