Repository navigation
fix(substrate): a test binary never writes the operator's records; a boot with no knee for the remembered model takes the last measured one - #4266
Conversation
…nder test the continuum home is a per-process temp dir; and a boot that remembers a model with no decode curve takes the last measured one The M5, 2026-09-20 15:38Z boot: serving.decode_knee.clamped model=coder-14b knee=17 — a HARNESS FIXTURE name. A local cargo test run of the serving daemon on this box settled its fake lane and save()d coder-14b into ~/.continuum/state/served-window.json; the boot remembered that model, found no knee for it, planned 17 lanes unclamped → 8 × 49k with a 12.6 GB cache grant on a box whose 27B knee is 2, swapped 4.6 GB, and drew 13 minds. The re-home law healed the lanes 100 s later; the residency did not. 1. commands::benchmark::continuum_home(): under cfg(test), with no declared, the home is std::env::temp_dir()/continuum-test-home-<pid>. Every store (served-window, decode-knee, resting seats, roster hold, standing config, citizens) resolves through it — one guard, 26 call sites. Pinned: a_test_binary_never_resolves_the_operators_home. 2. decode_knee::last_measured_knee(): the curve this box measured most recently answers when the remembered model has none; the daemon takes it, probed once per fallback model (serving.decode_knee.fallback). Pure last_measured pinned. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…the guard's test and the pure lookup The rest of the fix the first push of this branch was missing: a_test_binary_never_resolves_the_operators_home, decode_knee::last_measured_knee / last_measured (pinned), and the daemon's fallback probed once per fallback model (serving.decode_knee.fallback). Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
APPROVE with one condition — reviewed at exact head 17742d8 (cargo test running at read time). The home half is right: one resolver, every store through it, and under The condition is the knee half. "The last measured curve IS this box's decode ceiling" is not true across models: a knee is a (box, model) fact, and the newest curve on the box may be a 1.5B's (a benchmark lane, an exam, a smaller tier served an hour ago) with a knee of 6 or 8 — the same shape as today's incident (13 minds drawn on 8 lanes) reached through the fallback instead of around it. The evidence THIS box has about a model it has never measured is the most conservative curve it holds, not the newest: take the MINIMUM knee across measured curves (or the knee of the most capable measured model, which is the same number in practice — the biggest model has the lowest knee), name which one answered in the probe, and pin it: curves {27b: knee 2 at t=1000, 1.5b: knee 8 at t=5000}, remembered "coder-14b" → 2, not 8. |
… knee, never its newest — Cormac's condition on #4266 A knee is a (box, model) fact: the newest curve may be a 1.5B exam's with a knee of 8, and a boot remembering a 27B with no curve would plan past its knee of 2 — today's shape by another road. decode_knee::conservative(curves, now): the lowest knee across measured curves, newest breaking ties, named in the probe. Pinned: {27b: knee 2 @ t=1000, 1.5b: knee 8 @ t=5000} → the 27B's 2. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
Condition taken at 2026697: decode_knee::conservative — the lowest knee across measured curves, newest breaking ties, named in serving.decode_knee.fallback; pinned with {27b: 2 @ t=1000, 1.5b: 8 @ t=5000} → 2. The cfg(test) note is taken as a named seam (the guard rides any(test, feature = "test-fixtures") when a tests/ harness exists). @cormac a fresh word at 2026697, please. |
…s that it is far above the 27B's 2 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
APPROVE — reviewed at exact head 323873c (lib test and windows check running at read time; the diff since 17742d8 is the condition, nothing else). The knee condition is taken as asked: |
What happened (the M5, 2026-09-20 15:38Z boot)
serving.decode_knee.clamped model=coder-14b knee=17— a harness fixture name. A localcargo testrun of the serving daemon on this box settled its fake lane andsave()d "coder-14b" into~/.continuum/state/served-window.json. The boot remembered that model, found no knee for it, planned 17 lanes unclamped → 8 × 49k with a 12.6 GB cache grant on a box whose 27B knee is 2, swapped 4.6 GB, and drew 13 minds. The re-home law healed the lanes 100 s later; the residency did not (this hour's health line: 13 resident, 8 lanes max, 0 acts).The fix, two halves
continuum_home()undercfg(test)(no$CONTINUUM_HOMEdeclared) resolves totemp_dir()/continuum-test-home-<pid>. Every store — served-window, decode-knee, resting seats, roster hold, standing config, citizens — resolves through it: one guard, 26 call sites, nothing to remember per test. Pinned bya_test_binary_never_resolves_the_operators_home.decode_knee::last_measured_knee(): when the remembered model has no curve, the curve this box measured most recently bounds the lanes (probed once per fallback model,serving.decode_knee.fallback). Purelast_measuredpinned.Why both
(1) closes the poisoning; (2) makes a poisoned or foreign record unable to unclamp the roster — the box's own decode evidence rules until a lane reports. Card #4241's boot-knee gap.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo