File size: 20,541 Bytes
19dab08
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c05d175
 
19dab08
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8f43292
 
 
 
19dab08
 
 
 
 
 
 
8f43292
 
 
 
 
 
 
f55788a
8f43292
 
 
 
19dab08
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
117e4b0
19dab08
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0b3cc44
19dab08
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>BeforeDone — Make coding agents prove they're done</title>
  <meta name="description" content="BeforeDone is an open-source evidence gate and incident replay toolkit for Codex. Fresh evidence before completion; a replayable incident report when things go wrong.">
  <meta name="theme-color" content="#0b0b0c">
  <meta property="og:type" content="website">
  <meta property="og:title" content="BeforeDone — Make coding agents prove they're done">
  <meta property="og:description" content="Fresh evidence before completion. A replayable incident report when things go wrong.">
  <meta property="og:url" content="https://rrrrrredy.github.io/beforedone/">
  <meta property="og:image" content="https://rrrrrredy.github.io/beforedone/assets/og.png">
  <meta name="twitter:card" content="summary_large_image">
  <link rel="canonical" href="https://rrrrrredy.github.io/beforedone/">
  <link rel="icon" href="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2064%2064'%3E%3Crect%20width='64'%20height='64'%20rx='12'%20fill='%230b0b0c'/%3E%3Cpath%20d='M42%208L22%2056'%20stroke='%23e54836'%20stroke-width='9'%20stroke-linecap='square'/%3E%3C/svg%3E">
  <link rel="stylesheet" href="./styles.css">
  <script src="./app.js" defer></script>
</head>
<body>
  <a class="skip-link" href="#main">Skip to content</a>

  <header class="site-header" data-theme="dark">
    <a class="brand" href="./" aria-label="BeforeDone home">BeforeDone<span class="brand-mark" aria-hidden="true">/</span></a>
    <nav aria-label="Primary navigation">
      <a href="#product">Product</a>
      <a href="#install">Install</a>
      <a href="https://rrrrrredy.github.io/beforedone/guide.html">Guide</a>
      <a href="#faq">FAQ</a>
      <a href="https://github.com/rrrrrredy/beforedone" rel="noreferrer">GitHub <span aria-hidden="true"></span></a>
    </nav>
  </header>

  <aside class="space-notice" aria-label="Hugging Face Space notice">
    Interactive explainer only. This Space does not execute BeforeDone, inspect your repository, or upload evidence.
    <a href="https://github.com/rrrrrredy/beforedone">Install and run it locally from GitHub.</a>
    Research: <a href="https://github.com/rrrrrredy/beforedone-paper">technical report and reproducibility artifact</a>, archived at
    <a href="https://doi.org/10.5281/zenodo.21766277">10.5281/zenodo.21766277</a>.
  </aside>

  <main id="main">
    <section class="hero section-dark" id="product">
      <div class="hero-copy">
        <h1>Make coding agents prove they're done.</h1>
        <p>Fresh evidence before completion. A replayable incident report when things go wrong.</p>
        <div class="hero-actions">
          <a class="button button-primary" href="#install">Install BeforeDone</a>
          <a class="button button-ghost" href="https://github.com/rrrrrredy/beforedone" rel="noreferrer">View on GitHub</a>
        </div>
      </div>

      <div class="terminal" aria-label="Interactive evidence receipt demonstration">
        <div class="terminal-titlebar">
          <span class="terminal-dot"></span>
          <span>illustrative receipt · real v1 schema</span>
          <button class="state-toggle" type="button" data-receipt-toggle aria-pressed="false">Show stale state</button>
        </div>
        <div class="terminal-command"><span>$</span> <b>beforedone</b> check test</div>

        <div class="receipt receipt-pass" data-receipt="pass">
          <p class="verdict verdict-pass"><span aria-hidden="true"></span> PASS <span>Evidence receipt is current</span></p>
          <dl>
            <div><dt>check_id</dt><dd>test</dd></div>
            <div><dt>argv</dt><dd>["go", "test", "./..."]</dd></div>
            <div><dt>exit_code</dt><dd>0</dd></div>
            <div><dt>fingerprint</dt><dd>sha256:7f3c2e9a…d6f8e</dd></div>
            <div><dt>verdict</dt><dd>PASS</dd></div>
          </dl>
          <p class="receipt-note">Bound to the configured relevant files, verifier argv, and current contents.</p>
        </div>

        <div class="receipt receipt-stale" data-receipt="stale" hidden>
          <p class="verdict verdict-stale"><span aria-hidden="true">×</span> STALE <span>Fingerprint mismatch</span></p>
          <dl>
            <div><dt>recorded</dt><dd>sha256:7f3c2e9a…d6f8e</dd></div>
            <div><dt>current</dt><dd>sha256:3b8d4f1c…e7d10</dd></div>
            <div><dt>verdict</dt><dd>INCONCLUSIVE</dd></div>
            <div><dt>next</dt><dd>Run beforedone check test</dd></div>
          </dl>
          <p class="receipt-note receipt-note-red">The old PASS no longer supports completion.</p>
        </div>
      </div>
    </section>

    <section class="proof-sequence section-paper" aria-labelledby="proof-heading">
      <div class="section-intro">
        <h2 id="proof-heading">No fresh evidence.<br>No credible done.</h2>
        <p>BeforeDone evaluates explicit verifier results against their declared relevant-file scope. It asks Codex for one corrective continuation when the proof is missing, failed, or stale.</p>
      </div>

      <ol class="gate-steps">
        <li>
          <span class="step-number">01</span>
          <h3>Agent says done</h3>
          <p>A completion claim reaches the Stop Hook.</p>
        </li>
        <li>
          <span class="step-number">02</span>
          <h3>Receipts checked</h3>
          <p>Required checks are matched to the current relevant-file fingerprint.</p>
        </li>
        <li class="step-alert">
          <span class="step-number">03</span>
          <h3>Missing or stale</h3>
          <p>Codex receives exactly one continuation with the checks it must run.</p>
          <span class="stamp stamp-red">ONE CONTINUATION</span>
        </li>
        <li>
          <span class="step-number">04</span>
          <h3>Fresh check passes</h3>
          <p>The new receipt matches the current declared relevant files.</p>
          <span class="stamp stamp-green">PASS</span>
        </li>
        <li>
          <span class="step-number">05</span>
          <h3>Completion allowed</h3>
          <p>The final claim now has inspectable support.</p>
        </li>
      </ol>

      <div class="receipt-anatomy">
        <div>
          <h3>Evidence receipt anatomy</h3>
          <p>A receipt records what actually ran, its exit status, and which configured relevant files were fingerprinted.</p>
        </div>
        <pre aria-label="Evidence receipt JSON example"><code>{
  "schema_version": 1,
  "check_id": "test",
  "argv": ["go", "test", "./..."],
  "exit_code": 0,
  "relevant_fingerprint": "sha256:7f3c…d6f8e",
  "verdict": "PASS"
}</code></pre>
      </div>

      <div class="receipt-anatomy">
        <div>
          <h3>Measured, not overclaimed</h3>
          <p>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 <a href="https://github.com/rrrrrredy/beforedone-paper" rel="noreferrer">BeforeDone Paper repository</a>, keeping this product repository focused on the CLI and pinning the study to the evaluated implementation.</p>
        </div>
        <p><a href="https://doi.org/10.5281/zenodo.21766277" rel="noreferrer">Read the technical report and artifact <span aria-hidden="true"></span></a></p>
      </div>
    </section>

    <section class="incident section-dark" id="incident" aria-labelledby="incident-heading">
      <div class="incident-heading">
        <div>
          <h2 id="incident-heading">Find the first observable divergence.</h2>
          <p>Timeline, diff, receipts, logs, and corrections — without pretending to recover hidden reasoning.</p>
        </div>
        <a class="text-link" href="./demo/incident.html">Open the example report <span aria-hidden="true"></span></a>
      </div>

      <div class="report-shell">
        <div class="report-toolbar">
          <span>illustrative report view · open the real report above</span>
          <span>local HTML</span>
        </div>
        <div class="report-layout">
          <ol class="timeline" aria-label="Incident event timeline">
            <li>
              <span class="event-index">001</span>
              <time>10:22:31.214Z</time>
              <div><b>ToolStarted</b><small>go test ./...</small></div>
            </li>
            <li class="divergence">
              <span class="event-index">002</span>
              <time>10:22:32.276Z</time>
              <div><b>ToolFinished</b><small>exit: 1 · parser edge case failed</small><strong>FIRST OBSERVABLE DIVERGENCE</strong></div>
            </li>
            <li>
              <span class="event-index">003</span>
              <time>10:22:33.001Z</time>
              <div><b>AgentStopping</b><small>missing fresh test receipt</small></div>
            </li>
            <li class="correction">
              <span class="event-index">004</span>
              <time>10:24:02.884Z</time>
              <div><b>User correction</b><small>handle escaped delimiters</small></div>
            </li>
          </ol>

          <div class="event-detail">
            <p class="detail-label">Event 002 · ToolFinished</p>
            <dl>
              <div><dt>command</dt><dd>go test ./...</dd></div>
              <div><dt>exit</dt><dd>1</dd></div>
              <div><dt>stderr</dt><dd>expected escaped delimiter to remain literal</dd></div>
              <div><dt>evidence</dt><dd>log sha256: e3b1…6f9a</dd></div>
            </dl>
          </div>

          <aside class="evidence-matrix">
            <h3>Claim / Evidence</h3>
            <ul>
              <li><span>Tests ran</span><b class="supported">Supported</b></li>
              <li><span>Tests passed</span><b class="unsupported">Contradicted</b></li>
              <li><span>Implementation was correct</span><b class="unknown">Not observable</b></li>
            </ul>
            <p>Precision</p>
            <strong class="precision">exact_event</strong>
          </aside>
        </div>
      </div>
    </section>

    <section class="install section-paper" id="install" aria-labelledby="install-heading">
      <div class="section-intro install-intro">
        <h2 id="install-heading">One core. Choose one Codex route.</h2>
        <p>The CLI is the source of truth and is always required. Then choose exactly one integration: the Git Marketplace Plugin for hooks plus both bundled skills, the standalone Skills Pack for a manual workflow, or project-local hooks from <code>beforedone setup codex</code>. Combining routes duplicates hooks or workflows.</p>
      </div>

      <div class="install-switcher" data-tabs>
        <div class="tab-list" role="tablist" aria-label="Installation method">
          <button role="tab" id="tab-cli" aria-controls="panel-cli" aria-selected="true" tabindex="0" data-tab="cli"><span>01</span> CLI</button>
          <button role="tab" id="tab-plugin" aria-controls="panel-plugin" aria-selected="false" tabindex="-1" data-tab="plugin"><span>02</span> Codex Plugin</button>
          <button role="tab" id="tab-skills" aria-controls="panel-skills" aria-selected="false" tabindex="-1" data-tab="skills"><span>03</span> Skills Pack</button>
        </div>

        <div class="tab-panel" id="panel-cli" role="tabpanel" aria-labelledby="tab-cli" data-panel="cli">
          <h3>Install the local evidence engine</h3>
          <p>Works on Windows, macOS, and Linux. From the target Git repository, run <code>beforedone init</code>, review <code>.beforedone.yaml</code>, then run <code>beforedone doctor</code>.</p>
          <div class="copy-row">
            <code>go install github.com/rrrrrredy/beforedone/cmd/beforedone@latest</code>
            <button type="button" data-copy="go install github.com/rrrrrredy/beforedone/cmd/beforedone@latest">Copy</button>
          </div>
          <a href="https://github.com/rrrrrredy/beforedone/releases/latest">Download release archives <span aria-hidden="true"></span></a>
        </div>

        <div class="tab-panel" id="panel-plugin" role="tabpanel" aria-labelledby="tab-plugin" data-panel="plugin" hidden>
          <h3>Add the public Git marketplace</h3>
          <p>Install the CLI first, add the marketplace below, restart the desktop app, then open the Plugins Directory, select the <code>beforedone</code> source, and install BeforeDone in the UI. Review and trust the hooks with <code>/hooks</code>, then start a new task. Do not also install the standalone pack or project hooks. Hooks never download executables silently.</p>
          <div class="copy-row">
            <code>codex plugin marketplace add rrrrrredy/beforedone</code>
            <button type="button" data-copy="codex plugin marketplace add rrrrrredy/beforedone">Copy</button>
          </div>
        </div>

        <div class="tab-panel" id="panel-skills" role="tabpanel" aria-labelledby="tab-skills" data-panel="skills" hidden>
          <h3>Use the manual workflows</h3>
          <p>Choose this instead of the Git Plugin or project hooks. The standalone Skills guide verification and incident analysis, but cannot capture lifecycle events or enforce a Stop Hook. Run both exact installer prompts, then start a new Codex turn.</p>
          <div class="copy-row">
            <code>$skill-installer install https://github.com/rrrrrredy/beforedone/tree/main/skills/verify-before-done</code>
            <button type="button" data-copy="$skill-installer install https://github.com/rrrrrredy/beforedone/tree/main/skills/verify-before-done">Copy</button>
          </div>
          <div class="copy-row">
            <code>$skill-installer install https://github.com/rrrrrredy/beforedone/tree/main/skills/investigate-agent-incident</code>
            <button type="button" data-copy="$skill-installer install https://github.com/rrrrrredy/beforedone/tree/main/skills/investigate-agent-incident">Copy</button>
          </div>
          <p>Optional third-party installer, with its telemetry disabled:</p>
          <div class="copy-row">
            <code>DISABLE_TELEMETRY=1 npx skills add rrrrrredy/beforedone --skill verify-before-done --skill investigate-agent-incident --agent codex --global --yes</code>
            <button type="button" data-copy="DISABLE_TELEMETRY=1 npx skills add rrrrrredy/beforedone --skill verify-before-done --skill investigate-agent-incident --agent codex --global --yes">Copy</button>
          </div>
          <a href="https://github.com/rrrrrredy/beforedone/tree/main/skills">Inspect both skills <span aria-hidden="true"></span></a>
        </div>
      </div>
      <div class="receipt-anatomy">
        <div>
          <h3>Project-local hook alternative</h3>
          <p>Instead of the Plugin or standalone Skills, run <code>beforedone setup codex</code>, trust the project hooks with <code>/hooks</code>, and start a new task. Remove them with <code>beforedone setup codex --remove</code>.</p>
        </div>
        <p>For upgrades, uninstallation, data removal, and pinned versions, follow the <a href="https://github.com/rrrrrredy/beforedone#readme">complete README</a>.</p>
      </div>
    </section>

    <section class="trust section-dark" id="faq" aria-labelledby="trust-heading">
      <div class="trust-copy">
        <h2 id="trust-heading">Local evidence.<br>Inspectable rules.</h2>
        <p>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.</p>
        <ul class="trust-list">
          <li><span>01</span>No telemetry</li>
          <li><span>02</span>No cloud account</li>
          <li><span>03</span>Imported replay cases never control commands</li>
          <li><span>04</span>Apache-2.0</li>
        </ul>
      </div>

      <div class="faq-list">
        <h3>FAQ</h3>
        <details open>
          <summary>Can log text forge a PASS?</summary>
          <p>Not through the supported check flow. A word such as “PASS” in output cannot override a non-zero exit; <code>beforedone check</code> 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.</p>
        </details>
        <details>
          <summary>Does BeforeDone decide what to test?</summary>
          <p>No. BeforeDone verifies project-approved commands and keeps their evidence fresh; it does not infer whether they fully cover a natural-language requirement. Ask Codex to map the task to existing tests or a focused regression test, review the generated <code>.beforedone.yaml</code>, and report any uncovered criterion as unverified.</p>
        </details>
        <details>
          <summary>Why Apache-2.0 rather than MIT?</summary>
          <p>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.</p>
        </details>
        <details>
          <summary>Is a receipt tamper-proof attestation?</summary>
          <p>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 on a cooperative or fallible Agent's first Stop attempt; hostile Agents require an external trust boundary.</p>
        </details>
        <details>
          <summary>Does replay rerun the model?</summary>
          <p>No. Analyze mode replays BeforeDone's deterministic decisions. Verify mode can rerun configured checks in a temporary worktree only after explicit <code>--execute</code>.</p>
        </details>
        <details>
          <summary>Does BeforeDone recover chain of thought?</summary>
          <p>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.</p>
        </details>
        <details>
          <summary>Does it isolate verifier network access?</summary>
          <p>No. Checks and explicit replay execution use the network, credentials, filesystem, and process permissions available to the current user.</p>
        </details>
      </div>
    </section>

    <section class="closing section-dark" aria-label="Project links">
      <h2>Prove it before done.</h2>
      <div class="closing-links">
        <a href="https://rrrrrredy.github.io/beforedone/"><small>Project site</small>rrrrrredy.github.io/beforedone/</a>
        <a href="https://github.com/rrrrrredy/beforedone"><small>GitHub repository</small>github.com/rrrrrredy/beforedone</a>
      </div>
    </section>
  </main>

  <footer class="site-footer">
    <p>BeforeDone is open source under Apache-2.0.</p>
    <div>
      <a href="https://rrrrrredy.github.io/beforedone/privacy.html">Privacy</a>
      <a href="https://rrrrrredy.github.io/beforedone/terms.html">Terms</a>
      <a href="https://github.com/rrrrrredy/beforedone/blob/main/SECURITY.md">Security</a>
      <span>© <span data-year>2026</span> BeforeDone contributors</span>
    </div>
    <p class="space-source">HF showcase from source commit <a href="https://github.com/rrrrrredy/beforedone/commit/f7b834dab209ccd8375f74255a21bd42cffff9b5">f7b834d</a>; current engineering release <a href="https://github.com/rrrrrredy/beforedone/releases/tag/v1.0.2">v1.0.2</a>.</p>
  </footer>
</body>
</html>