Log date · Sat
Do passing tests prove an AI app rebuild is correct?
No. Two toy implementations pass visible tests, but the one that memorizes answers fails every held-out case.
Does a passing suite prove an agentic rebuild works?
No. Tests establish agreement only for the inputs they check. In our own toy quoting example, both the reference rule and an implementation that memorizes answers passed 3/3 visible cases; on three held-out inputs, the latter passed 0/3. Observable inputs and outputs help describe behavior, but finite examples do not establish the complete rule.
Parker Fawcett submitted v1 of the Rebuild Dossier paper at 01:26 UTC on 2026-08-22; v2 and v3 followed. [1] It studies agentic rebuilds of the author’s own applications. Our Node.js 20.19.5 example illustrates a related test blind spot; it is not a run of rebuild-dossier, a test of its version, or a replication of the paper.
| Question | Result or recommendation |
|---|---|
| Visible cases | Both implementations: 3/3. |
| Held-out cases | Reference: 3/3; memorized answers: 0/3. |
| Does this prove a real app secure? | No; this checks a toy quoting function. |
What the paper actually reports
The paper presents an open-source tool that locks an application’s inputs and outputs before coding, then uses automated checks to enforce one-test-at-a-time work. The repository says it produces specifications, contracts and tests for a separate coding agent; it does not itself rebuild the app and is MIT licensed. [1][2] What a specification describes and whether a workflow is actually enforced are separate questions.
In one small comparison reported in the abstract, the compliant agent failed a held-back test while the rule-breaking agent passed all tests. Against giving a weaker model the source and one instruction, the approach tied on a small app and lost on a larger one where the automated check was not running. The author stresses that the findings have different amounts of evidence and cross-checks agent reports, automated logs and actual files, catching even a bug in the logging code. [1] These results are not success-rate estimates for all models or apps.
Compare two implementations on held-out inputs
We defined a fictional quote rule: charge 10 per item below quantity 10, and 8 per item from 10 onward. The other implementation remembers only the answers for 1, 5 and 10 and returns zero otherwise. We selected the visible and held-out inputs ourselves. The reference function supplies expected values, so its own passes check the test loop, not an independent proof.
const reference = n => n >= 10 ? n * 8 : n * 10;
const memorized = n => ({1:10, 5:50, 10:80}[n] ?? 0);
const visible = [1, 5, 10];
const held = [2, 9, 11];We compared each sample value with Node’s strict assertions, counted assertion failures, and rethrew other errors. [3] The held-out inputs fall below and above the threshold, exposing behavior the memorized implementation does not cover.
reference | visible | 3/3
reference | held-out | 3/3
memorized | visible | 3/3
memorized | held-out | 0/3
input 2 | expected 20 | memorized 0
input 9 | expected 90 | memorized 0
input 11 | expected 88 | memorized 0Visible cases are useful development feedback, but an implementer who sees every answer can pass by memorizing them. Design an independent held-out set and reserve it for acceptance. It is still a sample: boundaries, errors and state changes can be missed. A pass rate is not proof of complete equivalence.
Use observable behavior in the threat model
For teams protecting an app, an input-output inventory is both test material and an exposure to assess. Displayed prices, public API responses and offline file formats can reveal parts of a rule. Whether observations suffice depends on query access, state and rule complexity; our example does not measure the cost of rebuilding a real app.
Server-held state can reduce what must be shipped to the client, but a queryable interface still exposes its outputs and introduces latency, availability and offline tradeoffs. Decide which rules must work offline, then check the release package for unnecessary source, debugging material and internal documents. Shipping less does not eliminate behavioral observation.
| Question | Result or recommendation |
|---|---|
| Agent refactors critical logic | Reserve independent acceptance cases; check reports, logs and files. |
| Pricing or licensing must work offline | Inventory client rules and accept the exposure and offline constraints explicitly. |
| Feature can be online | Evaluate server state, authorization and query limits; test failure behavior too. |
| Suite passes but lacks boundaries | Add threshold, error and state-transition cases before acceptance. |
These are engineering recommendations, not benefits measured by our experiment. Query limits need to accommodate legitimate users, accessibility and false positives; rate limits do not replace authorization.
Run a check on your own app
Build independent cases for a feature you own or are authorized to check. Record inputs, expected outputs, state and provenance; use dedicated test accounts and data. Cases on both sides of a boundary, invalid inputs, permission changes and repeated calls are often more informative than the happy path alone.
node --version
node path/to/your-app/your-test.jsFor your acceptance set, derive expected results from an independent rule, human review or a trusted prior version, rather than generating them from the implementation under test. Ask the agent for specific changes and test commands, retain exit status and logs, and inspect actual files and build artifacts. Introduce a harmless error deliberately to confirm a test can fail; restore it and run the full check again.
Finally, verify the execution environment: confirm the intended tests actually ran, inspect skipped cases, and match logs and artifacts to the same build. Manage access to the held-out set separately from development feedback, and update case provenance and expected results when rules change.
Your checklist
- Inventory observable inputs, outputs and state for core features.
- Independently design held-out cases for boundaries, errors and state changes.
- Compare agent reports with actual logs and build artifacts.
- Confirm tests ran and use a harmless change to check they can fail.
- Inventory client contents and assess the offline and server boundary.
Primary sources
- arXiv: Rebuild Dossier: Mechanically-Enforced Specs for Agentic App Rebuilds, and What Model-Tier Failures Reveal · Source date 2026-08-22 · Checked 2026-10-12
- rebuild-dossier repository · Checked 2026-11-11
- Node.js 20: Assert · Checked 2026-11-11