From d8b7fb4e4980f6277ab41118b58f4a9c014a484a Mon Sep 17 00:00:00 2001 From: Drew T <50529377+Druthulu@users.noreply.github.com> Date: Mon, 31 Aug 2026 20:02:56 -0600 Subject: [PATCH] =?UTF-8?q?docs(playbook):=20=C2=A71b=20=E2=80=94=20the=20?= =?UTF-8?q?=C2=A7332=20walls=20are=20now=20ENUMERATED,=20wire=20the=20swee?= =?UTF-8?q?p=20into=20the=20draw?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit tools/wall_sweep.py --emit-exclude feeds draw_waves --exclude directly. 10 functions / 1,027 instructions over 1,378 open-stub .s files, against §332's '6 fleet-wide' with two named. Recorded what it caught immediately: main/func_8005D734 was already escalated to Fable at closeness 8 when the sweep listed it, and its site is exactly the residual that agent described -- stopped. Filtering the live queue dropped two more before they were drafted (func_8005D9C4 133 ins, func_8005F450 159 ins). The §188 epilogue half is still NOT built and is now named as such rather than left implied: its detector exists inside oracle_reorder.py and has never been run as a sweep. --- docs/wave-playbook.md | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/docs/wave-playbook.md b/docs/wave-playbook.md index b6eeac5a20..a22fac8bad 100644 --- a/docs/wave-playbook.md +++ b/docs/wave-playbook.md @@ -60,11 +60,28 @@ PAYING an agent to hit it. Measured twice in S68, both on `main`: Neither was on any list beforehand, and neither is a model failure — an agent handed a wall always returns a NEAR with an unexplainable tail, which is indistinguishable from a hard function. -**THE FIX, NOT YET BUILT:** run the §188 epilogue-shape detector over every open stub **at draw -time** and exclude or flag them. The detector already exists inside `oracle_reorder.py`; it has -simply never been run as a sweep. Until then, treat "NEAR with an epilogue-shaped tail" as a -walls-ledger candidate and CHECK IT WITH THE ORACLE before escalating — an escalation cannot beat -the toolchain, so that spend is guaranteed waste. +**HALF OF THIS IS NOW BUILT — USE IT.** `tools/wall_sweep.py` enumerates the §332 class (a `%lo` +in a delay slot, i.e. the second half of an assembler macro gcc emits as ONE atomic insn, so C can +never put it there): + +``` +python3 tools/wall_sweep.py # report, with the branch/slot pair for each hit +python3 tools/wall_sweep.py --emit-exclude # binary:fn lines, straight into draw_waves --exclude +``` + +Current answer: **10 functions, 1,027 instructions** over 1,378 open-stub `.s` files. §332 had said +"6 fleet-wide" and named two — **a count without an enumeration cannot drive a filter**, which is +why the draw kept spending agents on them. + +It repaid itself within minutes of existing: `main/func_8005D734` was in the list AND had just been +escalated to Fable at closeness 8; its sweep site was exactly the residual the drafting agent +described, so that escalation could never have succeeded. Filtering the live queue then dropped two +more (`func_8005D9C4` 133 ins, `func_8005F450` 159 ins) before they were ever drafted. + +**STILL NOT BUILT:** the same treatment for §188's epilogue shape. The detector exists inside +`oracle_reorder.py` and has never been run as a sweep. Until it is, treat "NEAR with an +epilogue-shaped tail" as a walls candidate and CHECK IT WITH THE ORACLE before escalating — an +escalation cannot beat the toolchain, so that spend is guaranteed waste. ## 2. Cards — and make sure the twin is on them