Read-only evidence · recorded runs and replay
VERIFICATION PIPELINELEDGERLAB
From observation to repair
01Kane observesReal browser state↘
02Invariant evaluatesDeterministic contracts↘
03Codex repairsScoped implementation changes↘
04Kane + Invariant re-verifyRe-observe and re-evaluate↘
Latest bundled runVERIFIED
PHASE 2 · HISTORICAL BENCHMARK
Recorded balance comparison
INV-001 Conservation / $100 transferKane workflow PASSEDInvariant VIOLATED
- Expected combined balance
- $1,500.00
- Observed combined balance
- $1,600.00
- Unexplained change
- +$100.00
Before transfer
- Alice
- $1,000.00
- Bob
- $500.00
- Combined
- $1,500.00
After transfer
- Alice
- $1,000.00
- Bob
- $600.00
- Combined
- $1,600.00
→The accepted patch adds the sender debit to the same transaction update that credits the recipient.
diff --git a/before.ts.txt b/candidate.ts.txtindex 4e2d9d6..bdc29b3 100644--- a/before.ts.txt+++ b/candidate.ts.txt@@ -31,9 +31,13 @@ export const transactions: TransactionLogic = {3131 transfer(ledger, transaction) {3232 if (ledger.history.some((entry) => entry.id === transaction.id)) throw new Error("Transaction identifier already used.");3333 validateTransfer(ledger, transaction);34- const { recipient, cents } = transaction;34+ const { sender, recipient, cents } = transaction;3535 return {36- balances: { ...ledger.balances, [recipient]: ledger.balances[recipient] + cents },36+ balances: {37+ ...ledger.balances,38+ [sender]: ledger.balances[sender] - cents,39+ [recipient]: ledger.balances[recipient] + cents,40+ },3741 history: [transaction, ...ledger.history],3842 };3943 },
POST-REPAIR COVERAGE
Conservation scenarios
INV-001The same conservation contract evaluated each of these recorded transfers.