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
;; evolve-test.lisp — golden test for evolve.lisp (self-optimization with
;; receipts). Deterministic: scripted proposers, stubbed bench seam (real
;; timings are never golden data), kg cleared up front.
;; ── 1. A slow implementation evolves into a fast equivalent ─────────────
;; ── 2. A wrong candidate is rejected with the counterexample ────────────
;; (off by one at exactly n=7; the binding must stay untouched)
;; ── 3. A trojan is rejected STATICALLY — it never runs ──────────────────
;; The candidate would write a file; the effect gate rejects before any
;; execution, so the file must not exist afterwards.
;; ── 4. The speed gate: correct but slower is refused ────────────────────
;; Stub the bench seam (called OLD first, then NEW per the contract).
; old 100, new 300 -> not faster
; old 300, new 100 -> faster
;; ── 5. Proposer seat: bad proposals cost attempts, then one lands ───────
; right
;; A proposer that never lands: failure is a verdict, not a crash.
;; ── 6. Raise-tolerance: equivalence includes agreeing on raises ─────────
; raises at n=0
; both raise at 0 -> ok
; hides the raise -> rejected
;; ── 7. Receipts: the audit trail is queryable data ───────────────────────