Independent assurance for autonomous software.
The agent says done. Proofline reruns the owner's checks, reconciles the agent's report with the results, and decides from evidence whether the work can be accepted.
As agents move from assisting developers to building, changing and maintaining software with less supervision, the system that does the work cannot be the final authority on whether it succeeded. Proofline is that independent authority: the owner approves and signs checkable terms before the work starts, Proofline verifies the result against them, and each decision leaves evidence that someone else can verify later.
Today Proofline does this for coding-agent work in Git repositories, as a local-first CLI and MCP server, Git hooks and a GitHub Action, free under Apache-2.0. The longer-term direction is the same assurance across more autonomous software delivery and operation; the roadmap keeps current capabilities and directions apart.
- An agent's report is a claim. Agents can report work that was not done, write tests that pass without proving the change, skip or weaken tests, or edit outside the task.
examples/demo/catch.mjsreproduces five of these, and Proofline catches each one. - Checking every agent change by hand takes the reviewer time that agents were meant to save. An independent, automated acceptance check lets people spend review time where judgment is needed.
- As agents delegate to other agents, acceptance has to sit outside any single agent, model or vendor, with evidence that outlasts the session.
Proofline is built as an independent assurance layer, with coding-agent verification as its first product. These pages set out the proposition and keep what exists apart from what is planned:
- Capability baseline: what is implemented, published, planned or hypothesized, with the evidence for each.
- Vision: three horizons, from AI-assisted development to continuously evolving software.
- Investment thesis: why now, the initial wedge, differentiation, and what is not yet proven.
- Product strategy: three stages, commercial milestones and dependencies.
- Market and competitive landscape: adjacent categories, substitutes and defensibility.
- Commercial model: the buyer, the open-source core and pricing hypotheses.
- Evidence and validation: measured results, demonstrations and the validation programme.
Proofline is a local-first CLI and MCP server for coding-agent verification. It gives an agent one task from a JSON contract, checks acceptance criteria independently, scans for forbidden changes, gates commits and pushes through Git hooks, and writes evidence and reports. It does not establish that the contract itself is sufficient or that arbitrary software is correct.
Current package version: 0.2.0. Proofline requires Node.js 22 or newer and is licensed under Apache-2.0. Its runtime dependency is @optitransfer/agentkey 0.1.1; it is not a zero-dependency package.
Proofline sits between you (the owner) and your coding agent. You decide what gets built and sign it; the agent does the work; Proofline checks every task itself before it counts as done.
you: "build X"
│
├─ plan, option A (human in the loop): you write the scope file
│ proofline plan --by human docs/scopes/x.scope.json
│
└─ plan, option B (inference): the agent breaks your words into tasks
proofline plan --by agent "build X" → the agent's planning brief
the agent writes the scope file, then proposes it (plan --by human, or MCP contract_propose)
│
▼ a proposal: tasks with checkable acceptance criteria. Nothing is applied yet.
you review and sign, in both options. The agent never approves or signs:
proofline contract approve <hash> (shows the diff)
proofline contract sign (your owner key, pinned in guard/owner.pub)
│
▼
proofline handoff BLOCKED until the signature verifies; then the agent's kickoff
│
▼ the agent, one task at a time (AGENTS.md): next → failing test → fix → verify → commit/push → gate
Proofline re-runs the checks, refuses what is not done, and tells the agent exactly what to fix
│
▼
done = PASS on the pushed HEAD, with the agent's claims matching the evidence. The gate reports come back to you.
Connect your agent with proofline setup --agent claude-code: it adds the Stop hook, registers the MCP server in the project's .mcp.json, and copies AGENTS.md into the repository (existing files are left as they are). Any other agent can use the CLI or npx proofline mcp. Proofline itself calls no model: the planning inference is the agent's, and every decision about done is Proofline's own checks.
proofline/1JSON contracts with phases, dependencies, optional owners, scope rules, stop rules, and ten verifier types:command,test_red_green,test_exists,metric,grep,wiring,scope,docs,pushed, andfile_exists.- Guided
setup → task → contract approve → nextflow,plan --by human|agentfor planning with an owner-signed handoff (handoff), plus manual contract creation, scaffolding, merging, decomposition, validation, signing, and coverage commands. - Independent
verifyandgatedecisions, corrective instructions, claim reconciliation, and derived task status. - Pre-commit and pre-push hooks, byte-specific approval markers, and owner-contract signatures checked against
guard/owner.pubwhen that pin exists. - A hash-chained local evidence log, JSON and Markdown gate reports, and optional reuse of passing
commandandmetricresults. - Contract-bound DSSE receipts at L0 (unsigned) or L1 (agent-signed), offline receipt verification, and a separate zero-config receipt inference path.
- An MCP stdio server with eleven tools (including
plan_briefandcontract_propose) and a Claude Code Stop-hook integration for zero-config receipts. - Opt-in
--isolatedexecution forverify,gate, andreceiptwhen the contract supplies a supported pinned image and a container runtime is available. - A root GitHub Action for a one-step consumer pull-request check, plus a repository self-gate workflow that re-runs the configured CI gate and uploads
.proofline/reports/.
There is no hosted service in the current implementation. A hosted GitHub App is future direction, not a current capability; see Product direction. The root Action v0.2.0 is published on GitHub Marketplace as Proofline Acceptance Gate, and the CLI is on npm as @optitransfer/proofline@0.2.0.
Run these commands in an existing Git repository. setup requires both AGENTKEY_HOME and an executable agentkey on PATH; installing both packages locally and using npx satisfies the latter.
npm install --save-dev @optitransfer/proofline @optitransfer/agentkey
export AGENTKEY_HOME="$HOME/.proofline-owner"
npx proofline setup
npx proofline task "Add a greeting function"
npx proofline contract approve <proposal-hash>
npx proofline contract sign
npx proofline nextWith an agent doing the planning and the work (see How it is used):
npm install --save-dev @optitransfer/proofline @optitransfer/agentkey
export AGENTKEY_HOME="$HOME/.proofline-owner"
npx proofline setup --agent claude-code
npx proofline plan --by agent "what to build, in plain words"
# The agent reads that brief, writes docs/scopes/<name>.scope.json and proposes it
# (plan --by human, or MCP contract_propose). It gives you the proposal hash. You review and sign:
npx proofline contract approve <proposal-hash>
npx proofline contract sign
npx proofline handoff
# The agent works task by task (AGENTS.md). When handoff says DONE, every task is verified;
# the gate reports are in .proofline/reports/.To plan without inference, write the scope file yourself (format) and run npx proofline plan --by human docs/scopes/<name>.scope.json; the review, the signature and the handoff are the same.
The single-task guided sequence is setup → task → approve → next. task prints the proposal hash and writes a generic feature proposal under .proofline/proposals/; it does not change proofline.json. Review the diff in contract approve and answer y to apply it. Any other answer leaves the contract unchanged.
setup pins guard/owner.pub, so the approved contract must be signed before next, verify, or gate. Run contract sign after each approved contract change. next selects an unblocked task, prints its full brief, marks it active, and pins its base revision in the local evidence log.
setup adds .proofline/ and, in a Node project, node_modules/ to .gitignore. Before next pins a task's base, it commits Proofline's own setup files as one "Add Proofline" commit when they are new or changed (.gitignore, proofline.json, proofline.json.sig, guard/owner.pub, the .mcp.json and AGENTS.md agent setup writes, scope files under docs/scopes/, and package.json with its lockfile while the Proofline install itself is uncommitted); if Git has no user identity configured, that one commit is made as "Proofline", so the task's diff holds only the task's work; push or merge that commit with the task. The task task writes fits the repository: its suite check runs npm test when package.json has a real test script and node --test otherwise, and it asks for a push to the remote's default branch, or for no push when the repository has no remote. On a feature branch, gate says when the work is pushed but not yet merged.
Follow the brief: write the failing test first, implement the change, and re-run verification until it passes:
npx proofline verify TASK
# Commit and push with the installed hooks enabled, then reconcile the report:
npx proofline gate TASK --claims 'TASK | done | <commit> | test/change.test.mjs | - | -'
npx proofline nextUse the task ID and test names from the actual brief and repository. Include measured metric values when the contract has metrics. In a fresh clone without the local base pin, pass --base <revision> to verify and gate, or use a Proofline-Base: <sha> commit trailer. A task with scope or red-green checks never passes on an empty diff: when nothing changed since its base, the decision is BLOCKED with the reason. To gate a repository's root commit as a whole, use --base EMPTY (Git's empty tree).
The Git hooks find Proofline when they run: the repository's own node_modules/@optitransfer/proofline first, then the install that ran init; with neither, they refuse with the install command. init warns when the hooks directory is shared by several worktrees.
proofline watch [TASK] is an optional bounded status view, not a replacement for next, verify, or gate. For a manual contract, use proofline init, proofline contract create --from task.json, and the approval/signature flow above. See the example contract.
| Area | Commands |
|---|---|
| Guided flow | setup, task, contract approve, watch |
| Planning and handoff | plan --by human <scope.json>, plan --by agent "<words>", handoff |
| Contract | init, contract create, scaffold, merge, coverage, decompose, validate, show, propose, sign, verify-sig |
| Work and evidence | next, brief, verify, gate, report, status, evidence record, evidence verify, evidence log |
| Receipts | receipt, verify-receipt |
| Integrations | hook pre-commit, hook pre-push, hook stop, connect claude-code, mcp |
Run proofline for command-specific flags. Global flags are --json and --root <dir>. Gate exit codes are 0 for PASS, 1 for FAIL, and 2 for BLOCKED; general usage errors exit 3, while an unknown flag exits 2. proofline --version prints the installed package version.
| Verifier | Current behavior |
|---|---|
command |
Runs the configured command with a timeout and checks its exit code and optional test-count/skip limits. A fail-then-pass result is flaky, not a pass. |
test_red_green |
Replays the new test against the base in a Git worktree, requiring red there and green on the current tree. |
test_exists |
Checks that a test file, and optionally a test name, exists. |
metric |
Reads a number from bench JSON, checks the target and optional baseline regression limit, and can block on a busy machine. |
grep |
Checks that a pattern is present or absent. This is heuristic. |
wiring |
Follows static imports from an entry point and checks for a symbol call. This is heuristic. |
scope |
Compares changed paths from the base with the task allowlist. |
docs |
Runs a generator and requires no diff in declared paths. |
pushed |
Requires a clean tree and HEAD at or beneath the configured remote branch tip. |
file_exists |
Checks that a declared path exists. |
The gate also scans the base-relative diff for forbidden test weakening and hook bypasses, checks contract changes for owner approval, verifies the evidence chain, and optionally reconciles claim lines. Verification is only as strong as the configured commands and acceptance criteria.
- Gate decisions: PASS, FAIL, BLOCKED.
- Criterion results:
pass,fail,flaky,error, orblocked. - Derived task statuses from
proofline status:not_started,in_progress,verified,failed, orblocked. - Claim lines use
done,partial,not done, orblocked; these are claims to check, not gate decisions.
The older partial/unverified terminal-state model in early design documents is not the current CLI decision vocabulary.
Local state is under .proofline/, which init adds to .gitignore:
.proofline/evidence.jsonl: append-only, hash-chained entries..proofline/reports/<TASK>-latest.mdand.json: latest gate report; timestamped copies are retained alongside them..proofline/receipts/<head-sha7>.json: default contract-receipt destination..proofline/proposals/,.proofline/cache/,.proofline/active, and.proofline/config.json: proposals, optional result cache, active task, and local configuration.
Create a contract receipt separately from the gate:
npx proofline receipt TASK --role claude-codeThe command reruns checks with fresh results. L1 requires a usable agentkey role, a resolved base, and a clean worktree. Otherwise Proofline writes an L0 envelope with no signatures, reports the reason on stderr, and preserves the verifier exit code. An unsigned receipt can still contain a PASS decision; it does not establish authenticity. L2 is reserved for future CI attestation and is not produced by this command. See the receipt guide.
Local execution is the default. --isolated is available on verify, gate, and receipt and applies to command, test_red_green, and metric checks. Other checks still run on the host.
The contract must set env.image to the supported digest form node:22.11.0@sha256:<64-lowercase-hex>. Proofline probes Docker, Podman, or bubblewrap and blocks sandboxed checks if the image, runtime, or Node version probe is unavailable. Sandboxes use no network, a fresh HOME, and a read-only repository except declared writable paths. Isolation is opt-in and is not exposed as an MCP tool argument.
Start the stdio server with proofline mcp; examples/mcp-config.json shows the configuration shape, and proofline setup --agent claude-code writes it to the project's .mcp.json. The eleven tools are:
plan_brief, contract_propose, contract_create, task_next, evidence_record, verify, gate, report, status, receipt, and verify_receipt.
plan_brief and contract_propose are the agent's planning tools: they write a brief and a proposal, never proofline.json or its signature. task_next refuses while the contract is not owner-signed.
Agent-entered evidence is recorded but never substitutes for independent verification. See AGENTS.md for planning, the task loop and exact report-line rules. proofline setup --agent claude-code adds the Claude Code Stop hook after existing Stop hooks, registers the MCP server in .mcp.json and copies AGENTS.md into the repository when those files are absent; proofline connect claude-code adds only the Stop hook. The Stop hook uses the zero-config receipt path for new session commits. There is no general normalized agent-event adapter in the current implementation.
Add the root Action as one consumer workflow step. This example uses a reviewed full commit SHA; update it deliberately to another reviewed 40-character release commit rather than a moving branch, version tag, or package dist-tag. Replace TASK-1 with the contract's task ID.
name: proofline
on:
pull_request:
push:
branches: [main]
permissions:
contents: read
jobs:
proofline:
name: proofline
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
with:
fetch-depth: 0
- uses: Optitransfer/proofline@74f80ce849e2bdc63c6cfee91ee73f65891142a7
with:
task: TASK-1
base: ${{ github.event.pull_request.base.sha || github.event.before }}The job reports PASS, FAIL, or BLOCKED, the first actionable failure, and exact base/head revisions. The Action writes a sanitized summary and exposes sanitized report/receipt paths for optional artifact upload. Use pull_request, never pull_request_target; fork runs need no secrets or write permissions. Require the proofline job in the default branch's branch-protection rule or ruleset. The Action sends no telemetry by default and creates no unsolicited PR comments.
The GitHub integration guide gives the exact permissions, fork behavior, sanitized-artifact handling, required-check setup, and L0/L1/L2 receipt trust distinctions. Running the Action does not create an L2 attestation. No public seeded-failure consumer fixture is available at this revision.
.github/workflows/proofline.yml is this repository's self-gate, separate from the consumer root Action. It runs on pushes to main and on pull requests, uses Node 22, installs the lockfile with npm ci --ignore-scripts, and runs:
node bin/proofline.mjs gate --ci [--base <previous-main-tip-for-pushes>]--ci selects ci.tasks and skips pushed criteria. The workflow uploads .proofline/reports/ as the proofline-report artifact even when the gate fails. These PR-code self-tests are not an independent security boundary, and this workflow is not an L2 attestation service. All third-party actions in the workflow are pinned to full reviewed commit SHAs.
The roadmap and product strategy describe three stages; only Stage 1, the product documented here, exists today. The Apache-2.0 local CLI and root Action are intended to remain free. The Action is published on GitHub Marketplace. The distribution ledger records actual channel status and the remaining owner-only release and publication steps.
PLANNED, not available: a hosted GitHub App with managed runners, key management, retention/export controls, and GitHub billing. These are product-direction items only. The hosted app is not implemented or production-ready, and no customer or adoption claims are made.
- Proofline shares a machine and permissions with the agent. A shell-capable agent can alter
.proofline/orproofline.json; hash-chain and contract checks detect some tampering, but CODEOWNERS and branch protection are needed for a stronger boundary. - Local Git hooks can be skipped with
--no-verify. Repository CI re-runs the configured gate, but PR-code self-tests are not an independent security boundary; other repositories need equivalent CI enforcement and protected review of workflow, contract, and verifier changes. - Forbidden-pattern, grep, and wiring checks are static heuristics. Computed dynamic imports and dependency injection are not followed.
- Red-green tests that need services or build steps need a verifier
setupcommand. - Metric checks trust the committed bench script; changing its command is a contract change, but the bench remains code under review.
- Contracts are JSON only. YAML is not parsed.
- Configured host commands run through Bash with the user's permissions. There is no general command allowlist, and captured output is not automatically secret-redacted. Use explicit optional isolation and avoid secrets in command output.
- With
defaults.reuse_resultsenabled, only clean-tree PASS results forcommandandmetricare reused. The key covers the verifier, HEAD, Node version, and named environment variables, not gitignored files, other environment variables, or external tools; use--freshwhen those matter. - L0 receipts are unauthenticated. L1 is a local agentkey signature, not independent CI verification. L2 is not implemented.
The gate report also prints the implementation's KNOWN_LIMITS list.
The documentation index separates current implementation references from design and future material. CONTRIBUTING.md covers development and sign-off; SECURITY.md covers vulnerability reports.
- GitHub Discussions: questions, design discussion, and feedback.
- GitHub Issues: reproducible bugs and focused feature requests.
Apache-2.0. See LICENSE and NOTICE. Contributions are accepted under the same licence with a Developer Certificate of Origin sign-off on each commit.