Know whether your checks still match your code.

Run your existing checks. Keep their results tied to the files they verified. Confirm the current state before completion.

illustrative receipt · real v1 schema
$ beforedone check test

PASS Evidence receipt is current

check_id
test
argv
["go", "test", "./..."]
exit_code
0
fingerprint
sha256:7f3c2e9a…d6f8e
verdict
PASS

Bound to the configured relevant files, verifier argv, and current contents.

Check once.
Know what changed.

Use the CLI for a manual check and completion gate, or let an agent integration run the gate automatically. Reuse a result while its configured files still match.

  1. 01

    Agent says done

    A completion claim reaches the Stop Hook.

  2. 02

    Receipts checked

    Required checks are matched to the current relevant-file fingerprint.

  3. 03

    Missing or stale

    Codex receives exactly one continuation with the checks it must run.

    ONE CONTINUATION
  4. 04

    Fresh check passes

    The new receipt matches the current declared relevant files.

    PASS
  5. 05

    Completion allowed

    The final claim now has inspectable support.

That sequence is the Codex pre-Stop path. The Pi integration runs the same gate after agent_settled, so the first unsupported final message may appear before its one corrective follow-on.

Evidence receipt anatomy

A receipt records what actually ran, its exit status, and which configured relevant files were fingerprinted.

{
  "schema_version": 1,
  "check_id": "test",
  "argv": ["go", "test", "./..."],
  "exit_code": 0,
  "relevant_fingerprint": "sha256:7f3c…d6f8e",
  "verdict": "PASS"
}

Measured, not overclaimed

The reproducible technical report includes 144 eligible confirmatory outcomes. One superseded attempt that produced no outcome is retained for audit and excluded from all effectiveness denominators. Every condition observed 0/60 unsupported completions in the claim-supportable subset, so the report makes no superiority claim; it documents the mechanism, auditability, and measured verifier cost. The complete protocol, run records, runner, and analysis live in the separate BeforeDone Paper repository, keeping this product repository focused on the CLI and pinning the study to the evaluated implementation.

Read the technical report and artifact

Find the first observable divergence.

Timeline, diff, receipts, logs, and corrections — without pretending to recover hidden reasoning.

Open the example report
illustrative report view · open the real report above local HTML
  1. 001
    ToolStartedgo test ./...
  2. 002
    ToolFinishedexit: 1 · parser edge case failedFIRST OBSERVABLE DIVERGENCE
  3. 003
    AgentStoppingmissing fresh test receipt
  4. 004
    User correctionhandle escaped delimiters

Event 002 · ToolFinished

command
go test ./...
exit
1
stderr
expected escaped delimiter to remain literal
evidence
log sha256: e3b1…6f9a

Start with your existing checks.

The CLI is enough for a manual workflow. Add one agent integration when you want an automatic completion gate. BeforeDone is useful when work continues after verification; it may add little if your existing test and CI workflow already makes the current state clear.

Install the local evidence engine

Works on Windows, macOS, and Linux. Connect your existing verifier and its file scope, then use beforedone check test and beforedone gate. New configurations default to go test ./... in Go modules; other projects must supply a verifier. See the setup guide for initialization with v1.2.0 or newer.

go install github.com/rrrrrredy/beforedone/cmd/beforedone@latest
Download release archives

Project-local agent integrations

For Codex, run beforedone setup codex, trust the project hooks with /hooks, and remove them with beforedone setup codex --remove. For Pi, run beforedone setup pi, review and trust the generated extension, and remove it with beforedone setup pi --remove.

For upgrades, uninstallation, data removal, and pinned versions, follow the complete README.

Local evidence.
Inspectable rules.

BeforeDone is a local guardrail for accidental early completion and stale evidence. It is inspectable, but it is not a sandbox or an attestation boundary against a malicious process running as the same OS user.

  • 01No telemetry
  • 02No cloud account
  • 03Imported replay cases never control commands
  • 04Apache-2.0

FAQ

Can log text forge a PASS?

Not through the supported check flow. A word such as “PASS” in output cannot override a non-zero exit; beforedone check records the process result and current fingerprint. This is not protection from a malicious same-user process that can read the key, change policy, and rewrite local evidence.

Does BeforeDone decide what to test?

No. BeforeDone verifies project-approved commands and keeps their evidence fresh; it does not infer whether they fully cover a natural-language requirement. Map the task to existing verification commands, review the generated .beforedone.yaml, and state which acceptance criteria the commands cover. Add a focused regression test when a concrete coverage gap falls within the change.

Why Apache-2.0 rather than MIT?

Both are permissive licenses that allow commercial use, modification, and redistribution. Apache-2.0 also provides an explicit patent license and clearer contribution and notice rules, which fit an extensible developer tool. It does not grant rights to the BeforeDone name or logo.

Is a receipt tamper-proof attestation?

No. The key, configuration, and runtime artifacts are local. A malicious process with the same user and repository write access can manufacture a self-consistent PASS. BeforeDone checks missing or stale evidence at a cooperative or fallible Agent's completion boundary; Codex blocks at Stop while Pi corrects after settlement. Hostile Agents require an external trust boundary.

Does replay rerun the model?

No. Analyze mode replays BeforeDone's deterministic decisions. Verify mode can rerun configured checks in a temporary worktree only after explicit --execute.

Does BeforeDone recover chain of thought?

No. It reports only what observable evidence supports: an exact event must explicitly match a verified failing Receipt, a time window must enclose that check, and weaker evidence is marked unlocated. Generic command failures or later corrections do not become invented causality.

Does it isolate verifier network access?

No. Checks and explicit replay execution use the network, credentials, filesystem, and process permissions available to the current user.

Current checks. Clear handoff.