# E394-M — Final report: Verifiable Compaction and True Erasure

**AGI: NOT ESTABLISHED · RSI: EXPERIMENTAL**

**Preregistered verdict: VERIFIABLE_COMPACTION_SUPPORTED.** E392-M named the open limit: "true byte-level erasure needs
compaction and is not claimed". E394-M closes it for one store: compact the first 100 of
200 signed records, erase their payload bytes, and let an auditor reprove the prefix root while
the retained suffix still chains from the certified tail.

## Measured

| property | measured |
|---|---|
| records before / compacted / retained | **200 / 100 / 100** |
| retained suffix verifies | **True** |
| suffix links to certified tail | **True** |
| auditor reproduces signed prefix root | **True** |
| erased payload markers in db + WAL | **0** |
| retained payload markers | **100** |
| file size before -> after | **77824 -> 45056 bytes (-42.11%)** |
| altered prefix root detected | **True** |

## Hypotheses

| Hypothesis | Verdict | Detail |
|---|---|---|
| H1_suffix_still_chains | **SUPPORTED** | the retained suffix verifies and its first prev equals the certified tail hash |
| H2_auditor_recomputes_prefix | **SUPPORTED** | an auditor with the pre-deletion prefix hashes reproduces the signed prefix root |
| H3_true_erasure | **SUPPORTED** | erased payload markers are absent from the database and WAL after VACUUM while retained ones remain |
| H4_no_retained_loss | **SUPPORTED** | exactly the retained records remain and all verify |
| H5_tamper_detected | **SUPPORTED** | an altered prefix root fails the auditor's recomputation |
| H6_size_reduced | **SUPPORTED** | the database file is smaller after compaction |
| H7_external_review | **BLOCKED** | external review NOT OBTAINED |

## What the run shows

1. **Compaction preserves proof.** The retained suffix still verifies and its first `prev` is the certified
   tail hash, so the chain is unbroken across the deletion.
2. **An auditor can reprove the prefix.** Given the prefix hashes exported *before* deletion, the auditor
   recomputes the signed Merkle root exactly.
3. **Erasure is real at the byte level here.** After `VACUUM` and a WAL checkpoint, no erased payload marker
   survives anywhere in the database or WAL, while all retained markers remain.
4. **Nothing retained was lost.** Exactly the retained records remain and all signatures verify.
5. **Tampering is caught.** An altered prefix root fails the auditor's recomputation.

## What this is not

Single host, SQLite with `VACUUM`, **not deployed**. The auditor needs the pre-deletion prefix hashes (a small
commitment, not the payloads). Erasure covers the stored payload bytes; **backups, page-cache copies and
replicas are not covered**. The certificate proves the prefix existed, not that its content was true. One
host, 0 model calls, $0 API; engine source withheld; external reviewer **NOT OBTAINED**; no third-party audit. AGI: NOT ESTABLISHED · RSI: EXPERIMENTAL
