FallForge · provable / accountable AI
Prove a redacted document is a faithful, untouched view of a specific committed original, without the verifier ever seeing what was hidden. One page, no server, no AI judging anything.
When an AI or a person redacts a document (names, case numbers, health details, sources), the people who receive it normally have no way to check that only the declared parts were touched. A redaction tool might also have rewritten a sentence, or a line might have quietly gone. Kar-Veil makes that something anyone can check by recomputing, not by trusting the redactor's word.
Before any redaction, you commit the original: Kar-Veil gives you a 64-character fingerprint (the root) to publish, and a secret to keep. Later, whoever redacts it uses the original and the secret to make a veil proof: the exact text of every line left visible, and only a hash for every hidden line. Anyone can recompute the fingerprint from that proof and check it lands on the root that was published first, without seeing anything that was hidden. If a visible line was edited, or a line was added, dropped, moved or folded into another, it does not land, and Kar-Veil says what broke.
Want to see it first? Attack it runs nine kinds of tampering against a sample in this page.
Paste the full, unredacted original. One statement per line works best. Nothing leaves this page.
Paste the exact original again, with its secret. Tick the lines to hide.
You need the proof and the root that was published before the redaction. You never need the original.
The proof alone settles whether its visible lines are the original's. Pasting the copy you were sent adds one more check: that the copy says the same as the proof, line for line.
Commits a sample document under v2 with a fresh secret, hides two lines, then runs the same nine attacks the
measurement uses (attacks.mjs) against the honest proof and verifies each one against the root, here in
your browser. It also runs the two v1 faults, so you can see what v2 closes.
Fault F1, structure forgery. In v1 the line count was not part of the root, and a hidden line's hash could be any 64-hex value, including an inner node of the tree. So two hidden lines could be shown as one, or a whole document as half as many hidden lines, and the proof still landed on the root. v1's page said a dropped line made the root not match; for this kind of drop it did match. v2 binds the line count into the root, so the tree's shape is fixed.
Fault F2, guessable hidden lines. In v1 a hidden line's hash depended only on its position and its text. Anyone who could guess the text (a name from a staff list, "Yes", an amount) could confirm the guess by hashing it. v2 salts every line with a value derived from the committer's secret, so a guess cannot be checked without the secret.
Both faults, the fix and seven claims with their bars were sealed in
CLAIMS-2026-11-05-veil-v2.md on 5 November, in a commit of its own, before
any code that measures them existed. measure.mjs then ran them on 400 random documents from one seeded
stream; CI re-runs it on GitHub's runner and fails if the receipt differs by one byte. The table is read from
receipts/measure.json when this page loads.
| claim | the bar | measured | |
|---|---|---|---|
| reading the receipt… | |||
Re-run it yourself: git clone https://github.com/sjgant80-hub/kar-veil && cd kar-veil && git clone --depth 1 --branch v0.6 https://github.com/sjgant80-hub/witness .witness && node measure.mjs --check
HMAC-SHA-256(secret, "kar-veil:v2:salt:" + i),
and a leaf, SHA-256("kar-veil:v2:leaf:" + i + ":" + salt + ":" + text). Leaves fold in pairs with
SHA-256("kar-veil:v2:node:" + left + ":" + right); an odd hash at any level is promoted unchanged. The root is
SHA-256("kar-veil:v2:root:" + lineCount + ":" + top), so the number of lines is fixed by the root.Four files, zero dependencies, all in the repository. The page imports the first one, so the gated logic is the logic you run here. The gate counts are read from receipts/gate.json; CI re-runs the same gate on GitHub's runner on every push.
| file | what it does | how it is proven (witness v0.6 mutation gate, every change) |
|---|---|---|
veil.mjs | commit, prove, verify and preview: the logic this page runs | reading… |
veilcase.mjs | the cost case below, from the sourced basis | reading… |
attacks.mjs | the seeded stream, the corpus, the nine attacks, the guessing attack and the field mutations | the apparatus; its teeth are shown by the v1 faults it reproduces in every applicable case |
measure.mjs | runs the sealed claims and writes receipts/measure.json | re-run byte for byte on GitHub's runner |
A mutation gate tests the tests: witness changes the kernel one operator at a time (a <
becomes <=, an && becomes ||) and the tests must fail on every change. A change the
tests let through is a gap in them.
For anyone who sends redacted documents others must trust: disclosure and legal teams, freedom-of-information officers, HR investigations, health and care records, and pipelines where an AI does the redacting.
commit(), prove() and verify() from
veil.mjs; this page is the manual version of the same three calls.veil.mjs in their own tools (it runs in any browser or in
Node 20). Once loaded, the page keeps working offline. It can be hosted on your own intranet as it is, over HTTPS: browsers only give pages the Web Crypto API it uses on secure (HTTPS or localhost) addresses.What it does. Every redacted document you send can carry its own proof that only the declared lines were hidden and nothing else changed, checkable by the recipient in seconds without ever seeing the hidden content. It turns "trust our redaction" into arithmetic anyone can repeat.
CEO. A disclosure that cannot be quietly altered removes a class of dispute: about whether the copy someone received is the copy you redacted.
CFO. The checking time it removes is worked out below from your own volumes and the UK median wage (ONS). There is no licence fee: Kar-Veil is MIT.
COO. One extra step at intake (commit) and one at send (make the proof). The checker's line-by-line comparison becomes a verify.
CTO / CISO. One static page and one dependency-free module. No server, no account, no upload: every hash is computed in the browser with the Web Crypto API (SHA-256, HMAC-SHA-256). The logic is mutation-gated and its claims re-run on GitHub's runner. Read veil.mjs; it is short.
Legal and compliance. The verifier never receives the hidden content, which suits data minimisation. Kar-Veil does not decide what must be redacted, and does not timestamp: record the root where your process already keeps evidence.
The teams. Redactors keep their tools. Recipients get a yes or no with the reason, not a judgement call.
What it costs today to confirm by hand that each redacted copy is faithful (open both, compare, ask, chase), against checking a veil proof. Staff time is at the UK median hourly wage with on-costs left out, so this is a floor. Later years rise with UK CPI. Every input is yours.
| year | checking by hand | with veil proofs | saved |
|---|
Supplied by AI Native Solutions; start through that site. Support, any service level, warranty and liability are agreed per deployment, in each deployment's agreement. The software is MIT and keeps running without us.
Disputes about redacted disclosures are disputes about trust. Kar-Veil replaces that trust with a check anyone can repeat, at no licence cost, without sending a single document anywhere. Its own faults were found, published and fixed in the open, and the fix was measured against claims sealed before the code existed.