Skip to content

Commit 81e6191

Browse files
Release 0.16.0 — a candidate meets its class property before it meets the suite
CHANGELOG entry for everything since 0.15.0: the property gate in the loop, refusals that name the judge, the fail-open guard, the placement law and its left-minus correction, span classes, the sibling class taught from one real commit, and the measurements behind each. Version 0.16.0. Also commits two small research data files and the teaching-cycle page that were untracked. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
1 parent 0076f28 commit 81e6191

5 files changed

Lines changed: 171 additions & 1 deletion

File tree

‎CHANGELOG.md‎

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,52 @@
11
# Changelog
22

3+
## 0.16.0 — 2026-09-22
4+
5+
**A candidate now meets its class property before it meets the suite.** A property is algebra over the
6+
rewrite — checked exhaustively over a bounded domain, before any test runs — and it can refuse what the
7+
suite would have accepted. Measured 2026-09-19: rich's own suite accepted `* len(text) - 1`; the property
8+
refutes it at `{'__L': 1, 'k': 2}`. The refusal costs no suite run and the refusal report says which judge
9+
spoke.
10+
11+
- **`teach_property(kind, statement, checker)`** in a dictionary file, beside `register()`. `load_dictionary`
12+
supplies it and `propcheck` (`agree_over`, `free_names`, `rhs`, `nth_boolop_swapped`). Verdicts are
13+
PROVEN / REFUTED / UNPROVEN; a check that evaluated zero inputs is UNPROVEN, never PROVEN, and a checker
14+
that raises passes nothing. (`src/fluidfix/props.py`, `propcheck.py`)
15+
- **The loop asks the property** before writing a candidate; REFUTED is logged with its refuting input and
16+
never written. `Result.refuted_by_property`; the summary says how many. (`loop.py`)
17+
- **A refusal names the judge.** When no suite run was paid, the headline and the HARVEST hint say "refuted
18+
by class property", not "rejected by the suite" — which was false and hid the one judge that cost
19+
nothing. (`guard.py`)
20+
- **The gate fails open, and now says so.** Properties live in a file; load classes without it and every
21+
check is UNPROVEN and passes. `props.classes_without_properties(kinds)` names the classes the gate cannot
22+
speak for; `gate(..., strict=True)` refuses UNPROVEN. Found 2026-09-20 when a composed descent shipped
23+
the rich incident with `0 blocked` because the properties file was not loaded.
24+
- **The placement law.** Classes that insert a token (`- 1`, `+ 1`) no longer decide where it goes: the body
25+
measures the operator context into a situation word and a superoptimizer-found law rules TRAIL or WRAP
26+
(`src/fluidfix/place.py`, `laws/place.c`). `k * len(x)` went 0/12 → 12/12; the rich line is placed as the
27+
maintainer placed it.
28+
- **The law's table was wrong for a left-hand minus** — `+` and `-` shared a class, but `k - len(x) - 1`
29+
is off by two from `k - (len(x) - 1)`. Found by a class property, not by checking the law against its
30+
table; fixed in the body's measurement (`_left_class`), the law byte-for-byte unchanged. Corollary kept:
31+
verifying a law against its spec does not verify the spec.
32+
- **Span classes.** A candidate containing `\n` becomes several lines and always did; the limit was in the
33+
appliers. `examples/taught-2026-09-19/spans.py`: 0/24 → 24/24 on unseen generated instances, 0 → 4 of 14
34+
real fixes. (2026-09-19)
35+
- **One class taught from one commit, tested on real history.** `examples/taught-2026-09-22/
36+
sibling_attribute.py`: 84/84 exact across seven never-taught positions, 0/12 wrong accepts; on 15 held-out
37+
real commits the right name is in the file's evidence for 8 and every one of those is reached under the
38+
candidate cap. A pre-registered ranking change was tested blind and not adopted.
39+
40+
Measured in this range, in `research/`: the six gates certify fixes fluidfix did not write, 14/14 accepted,
41+
29/29 adversarial refused (2026-09-18); more than one fault at a time by descent on the failing-test count,
42+
three faults from three classes in 11 suite runs (2026-09-20); the current vocabulary reaches 10 of 565
43+
real fixes — 75% of single-token mechanical ones, ~2% of everything, because most real one-line fixes are
44+
data and docstrings (2026-09-22). Earlier in the range: a real-repository study, 7/22 exact at zero tokens
45+
(2026-09-16); the router fused per guard, 36 s against 904 s (2026-09-18).
46+
47+
`docs/FLUIDNET.md` is the account of the whole; `docs/media/fluidnet-demo/` is a 3:52 recording of every
48+
command above running live.
49+
350
## 0.15.0 — 2026-09-07
451

552
**0.14.0 was never released.** Its central change — measuring ambiguity across
Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1">
6+
<title>fluidnet — the teaching cycle</title>
7+
<style>
8+
:root{
9+
--surface-0:#FAF9F7; --surface-1:#F1EFE8; --surface-2:#FFFFFF;
10+
--text-primary:#2C2C2A; --text-secondary:#5F5E5A; --text-muted:#888780; --text-accent:#185FA5;
11+
--border:rgba(0,0,0,.12); --border-strong:rgba(0,0,0,.24);
12+
--amber-fill:#FAEEDA; --amber-line:#854F0B; --amber-title:#633806; --amber-sub:#854F0B;
13+
--green-fill:#EAF3DE; --green-line:#3B6D11; --green-title:#27500A; --green-sub:#3B6D11;
14+
--radius:8px;
15+
}
16+
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
17+
--surface-0:#1A1A19; --surface-1:#252523; --surface-2:#2C2C2A;
18+
--text-primary:#EDEBE6; --text-secondary:#B4B2A9; --text-muted:#888780; --text-accent:#85B7EB;
19+
--border:rgba(255,255,255,.14); --border-strong:rgba(255,255,255,.28);
20+
--amber-fill:#633806; --amber-line:#EF9F27; --amber-title:#FAC775; --amber-sub:#EF9F27;
21+
--green-fill:#27500A; --green-line:#97C459; --green-title:#C0DD97; --green-sub:#97C459;
22+
}}
23+
:root[data-theme="dark"]{
24+
--surface-0:#1A1A19; --surface-1:#252523; --surface-2:#2C2C2A;
25+
--text-primary:#EDEBE6; --text-secondary:#B4B2A9; --text-muted:#888780; --text-accent:#85B7EB;
26+
--border:rgba(255,255,255,.14); --border-strong:rgba(255,255,255,.28);
27+
--amber-fill:#633806; --amber-line:#EF9F27; --amber-title:#FAC775; --amber-sub:#EF9F27;
28+
--green-fill:#27500A; --green-line:#97C459; --green-title:#C0DD97; --green-sub:#97C459;
29+
}
30+
*{box-sizing:border-box}
31+
body{margin:0;padding:2.5rem 1.25rem;background:var(--surface-0);color:var(--text-primary);
32+
font-family:ui-sans-serif,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;line-height:1.7}
33+
main{max-width:720px;margin:0 auto}
34+
h1{font-size:22px;font-weight:500;margin:0 0 .4rem}
35+
p.lede{font-size:15px;color:var(--text-secondary);margin:0 0 2rem}
36+
svg{display:block;width:100%;height:auto}
37+
.th{font-size:14px;font-weight:500;fill:var(--text-primary)}
38+
.ts{font-size:12px;fill:var(--text-secondary)}
39+
.a .th{fill:var(--amber-title)} .a .ts{fill:var(--amber-sub)}
40+
.g .th{fill:var(--green-title)} .g .ts{fill:var(--green-sub)}
41+
.a rect{fill:var(--amber-fill);stroke:var(--amber-line)}
42+
.g rect{fill:var(--green-fill);stroke:var(--green-line)}
43+
.box{fill:var(--surface-2);stroke:var(--border-strong)}
44+
.arr{stroke:var(--text-secondary);stroke-width:1.5;fill:none}
45+
.ctl{display:flex;align-items:center;gap:12px;margin:1.8rem 0 1rem}
46+
label{font-size:14px;color:var(--text-secondary)}
47+
input[type=range]{flex:1;accent-color:var(--text-accent)}
48+
#out{font-size:14px;font-weight:500;min-width:30px;text-align:right}
49+
#nets{display:flex;gap:10px;flex-wrap:wrap}
50+
.net{background:var(--surface-1);border-radius:var(--radius);padding:8px 10px}
51+
.net h2{font-size:12px;font-weight:400;color:var(--text-secondary);margin:0 0 6px}
52+
.slots{display:flex;gap:4px}
53+
.slot{width:13px;height:13px;border-radius:3px;border:.5px solid var(--border-strong)}
54+
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-top:1.6rem}
55+
.card{background:var(--surface-1);border-radius:var(--radius);padding:1rem}
56+
.card .k{font-size:13px;color:var(--text-secondary)}
57+
.card .v{font-size:24px;font-weight:500}
58+
footer{margin-top:2.5rem;padding-top:1rem;border-top:.5px solid var(--border);
59+
font-size:13px;color:var(--text-muted)}
60+
</style>
61+
</head>
62+
<body>
63+
<main>
64+
<h1>fluidnet — the teaching cycle</h1>
65+
<p class="lede">Your work splits into shapes a net already owns, which come back repaired and proved, and
66+
open-ended work you solve yourself and may then teach, feeding the vocabulary. Seven of your own classes
67+
fit in a guard, and the cap is per process — so the vocabulary grows by adding nets.</p>
68+
69+
<svg viewBox="0 0 680 258" role="img"><title>the teaching cycle</title><desc>Your vocabulary sits at the top. Work splits into taught shapes, which a net repairs and proves without your attention, and open-ended work, which you solve and may then teach, feeding back into the vocabulary.</desc>
70+
<defs><marker id="ar" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse"><path d="M2 1L8 5L2 9" fill="none" stroke="context-stroke" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></marker></defs>
71+
<g class="a"><rect x="40" y="40" width="600" height="50" rx="4" stroke-width=".5"/><text x="340" y="63" class="th" text-anchor="middle">Your vocabulary</text><text x="340" y="80" class="ts" text-anchor="middle" id="voc">7 shapes taught, across 1 net</text></g>
72+
<g><rect x="40" y="145" width="110" height="56" rx="4" class="box" stroke-width=".5"/><text x="95" y="168" class="th" text-anchor="middle">Your work</text><text x="95" y="186" class="ts" text-anchor="middle">a failing test</text></g>
73+
<line x1="150" y1="162" x2="179" y2="140" class="arr" marker-end="url(#ar)"/>
74+
<line x1="150" y1="184" x2="179" y2="208" class="arr" marker-end="url(#ar)"/>
75+
<g class="g"><rect x="183" y="112" width="190" height="52" rx="4" stroke-width=".5"/><text x="278" y="135" class="th" text-anchor="middle">Taught shape</text><text x="278" y="153" class="ts" text-anchor="middle">the net owns this</text></g>
76+
<line x1="373" y1="138" x2="391" y2="138" class="arr" marker-end="url(#ar)"/>
77+
<g class="g"><rect x="393" y="112" width="207" height="52" rx="4" stroke-width=".5"/><text x="496" y="135" class="th" text-anchor="middle">Repaired, with a proof</text><text x="496" y="153" class="ts" text-anchor="middle">no attention from you</text></g>
78+
<g><rect x="183" y="186" width="190" height="52" rx="4" class="box" stroke-width=".5"/><text x="278" y="209" class="th" text-anchor="middle">Open-ended</text><text x="278" y="227" class="ts" text-anchor="middle">nothing taught matches</text></g>
79+
<line x1="373" y1="212" x2="391" y2="212" class="arr" marker-end="url(#ar)"/>
80+
<g class="a"><rect x="393" y="186" width="207" height="52" rx="4" stroke-width=".5"/><text x="496" y="209" class="th" text-anchor="middle">You solve it</text><text x="496" y="227" class="ts" text-anchor="middle">then teach the shape</text></g>
81+
<path d="M600 212 L620 212 L620 94" class="arr" marker-end="url(#ar)"/>
82+
</svg>
83+
84+
<div class="ctl">
85+
<label for="n">Shapes taught</label>
86+
<input type="range" min="1" max="35" value="7" step="1" id="n">
87+
<span id="out">7</span>
88+
</div>
89+
<div id="nets"></div>
90+
91+
<div class="cards">
92+
<div class="card"><div class="k">real fixes that are 1 line</div><div class="v">37%</div></div>
93+
<div class="card"><div class="k">5 lines or fewer</div><div class="v">70%</div></div>
94+
<div class="card"><div class="k">20 lines or fewer</div><div class="v">91%</div></div>
95+
</div>
96+
97+
<footer>The seven-slot arithmetic is exact — a dictionary holds 16 kinds, 7 of them reserved for your own
98+
classes, and the cap is per process. The 37 / 70 / 91 figures are measured on real maintainer fixes across
99+
click, arrow, rich and python-sortedcontainers. How fast your own split shifts from the lower lane to the
100+
upper one is not measured — that depends on how repetitive your work is.</footer>
101+
</main>
102+
<script>
103+
(function(){
104+
var sl=document.getElementById('n');
105+
function render(){
106+
var n=parseInt(sl.value,10),nets=Math.ceil(n/7),left=n,out='';
107+
document.getElementById('out').textContent=n;
108+
document.getElementById('voc').textContent=n+' shape'+(n===1?'':'s')+' taught, across '+nets+' net'+(nets===1?'':'s');
109+
for(var i=0;i<nets;i++){
110+
var f=Math.min(7,left);left-=f;
111+
var d='';
112+
for(var s=0;s<7;s++)d+='<div class="slot" style="background:'+(s<f?'var(--text-accent)':'transparent')+'"></div>';
113+
out+='<div class="net"><h2>net '+(i+1)+' · '+f+'/7</h2><div class="slots">'+d+'</div></div>';
114+
}
115+
document.getElementById('nets').innerHTML=out;
116+
}
117+
sl.addEventListener('input',render);render();
118+
})();
119+
</script>
120+
</body>
121+
</html>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"N -> N": [18, 34, 68, 69, 78, 79, 151, 152, 163, 164, 165, 192, 197, 214, 215, 231, 233, 244, 255, 259, 262, 263, 280, 285, 339, 368, 403, 429, 432, 446, 450, 451, 454, 464, 487, 501, 503, 509, 511, 563], "S -> S": [14, 47, 49, 50, 51, 54, 64, 83, 88, 89, 90, 93, 162, 184, 199, 208, 217, 283, 317, 328, 333, 343, 357, 359, 367, 370, 379, 383, 416, 448, 474, 507, 517, 518, 526, 532, 544], "# -> #": [119, 235, 238, 305, 389, 431, 471], "N -> ": [157, 237, 484]}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"import": ["1a60d8bb80c6ff4b29ca594eaf3626e77375fe0e", "1be016dad415f820836e3f82e6a25025d04a64b7", "19655099e6cc7955879ccf5059e5043a5464c2eb", "0030136148ce19f9cf2a12970364ce622fa71ac9", "ae4a70cd78b145c042ecd4f456df6a82a409f910", "ac69488768e9c54cdef26e45b26a1b42ebf2f5d3", "0138b18950b3d21f6fdb52b1e2e2ab3ef459d256", "88bc65df2b3e5a9a2368aaec0f6348509172cacd", "774b5e21151c22968e9f10d99ed43ed05550c86b"], "return": [], "guard": ["1011d9bdddbe430ec5751df0a20ee1154dbaac58", "0551bf53588ae87f462d336f24f853a156fefe3a", "f957fba83bf53141c3fdfda5ee4a40a5227f15ce", "99ef35e3b4919b5dc33d1ee4b1e04b437b6307a5", "262c275d8513a377fdc741695c7ab11920fc8391", "0f20511f41e8d99acd074b063cadaa0b9f8aecf0", "4e2a3291613f6903afa179396676d4aebb340eb1", "53ab610cc4615888f3fcf2fa1d5d340440247a2a", "a34914be5d1cc9dc298ca92e5c9af757157a0bb7", "720800e6930d85ad027b1e9bd0cbb96b5e994ce3", "fd77a473f622fbbf479b363db62b4d2a540d79dc", "b7ddacf415f50633195db26d559923f596c3cedb", "8a74a97563dad3437ce537ed07dc72e031c54638", "0c34ddcb67f5adff14917ac297d8473a78289b6c", "b74e5bae2d6b1ba9d8237f5f769e6ae7eba677f6"]}

‎src/fluidfix/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from .oracle import Oracle
2222
from .router import pack, route, route_packed
2323

24-
__version__ = "0.15.0"
24+
__version__ = "0.16.0"
2525
__all__ = [
2626
"route", "route_packed", "pack",
2727
"EMIT", "ADVANCE", "HALT", "mask_of", "kind_of",

0 commit comments

Comments
 (0)