Commit Graph

149 Commits

Author SHA1 Message Date
Drew T 37cc7d8dd6 feat(phase-23): lora-grind gate — +12 fns x0 propagated (fleet 63.76%) 2026-06-30 06:08:18 -06:00
Drew T fb1fe5e226 feat(phase-23): lora-grind gate — +25 fns x0 propagated (fleet 63.75%) 2026-06-30 05:53:40 -06:00
Drew T cba2addc1d feat(phase-23): lora-grind gate — +19 fns x0 propagated (fleet 63.74%) 2026-06-30 05:47:52 -06:00
Drew T c7775eb8b5 feat(phase-23): lora-grind gate — +15 fns x0 propagated (fleet 63.74%) 2026-06-30 05:36:16 -06:00
Drew T 0188638afd feat(phase-23): lora-grind gate — +1 fns x0 propagated (fleet 63.73%) 2026-06-30 05:29:37 -06:00
Drew T 865d185a8a feat(phase-23): lora-grind gate — +9 fns x0 propagated (fleet 63.73%) 2026-06-30 05:24:51 -06:00
Drew T 238a1c00d8 feat(phase-23): lora-grind gate — +17 fns x0 propagated (fleet 63.73%) 2026-06-30 05:18:19 -06:00
Drew T 9623afd3fa feat(phase-23): lora-grind gate — +10 fns x0 propagated (fleet 63.73%) 2026-06-30 05:12:09 -06:00
Drew T b03fdb1dcb feat(phase-23): lora-grind gate — +19 fns x0 propagated (fleet 63.72%) 2026-06-30 05:06:04 -06:00
Drew T 758ab7de65 feat(phase-23): lora-grind gate — +14 fns x0 propagated (fleet 63.72%) 2026-06-30 05:00:13 -06:00
Drew T aec384eccd feat(phase-23): lora-grind gate — +9 fns x0 propagated (fleet 63.68%) 2026-06-30 04:46:49 -06:00
Drew T 4359e64750 feat(phase-23): lora-grind gate — +8 fns x0 propagated (fleet 63.67%) 2026-06-30 04:40:13 -06:00
Drew T b6019333dd feat(phase-23): lora-grind gate — +4 fns x0 propagated (fleet 63.67%) 2026-06-30 04:29:10 -06:00
Drew T 5c44a317b3 feat(phase-23): lora-grind gate — +3 fns x0 propagated (fleet 63.67%) 2026-06-30 01:38:00 -06:00
Drew T 117081c7d8 feat(phase-23): grinder gate — +3 fns x0 propagated (fleet 63.67%) 2026-06-30 00:52:14 -06:00
Drew T bff03dbdb5 fix(phase-23): T7 — lora_grind broad-rotation banking (two gate bugs); ov_SC01_000 7/15
The 500-fn calibration banked 0/222 across the binary rotation. Root-caused (R14, by
reading the code + the run's own backlog — resolving a flat contradiction between two
scout agents) to TWO independent bugs in lora_grind's use of gate_stage.run_gate, NOT
model quality:
- Bug A: good_sha() passed the sha1sum line "<sha>  <name>" vs harvest_verify's bare
  sha1() -> 0 banks for EVERY binary incl. 077 (so the "0/12" was a bug artifact, not
  an exhausted tail)
- Bug B: the gate call left src/asm/out at the hardcoded ov_SC01_077 defaults -> non-077
  drafts dropped at the 077 stub-filter, silently (and the asm mis-resolution contaminated
  the backlog near-miss classification)

Fix (tools/gate_stage.py): run_gate resolves src/asm/out/good_sha from `binary` when unset
(binary-agnostic, no silent ov_SC01_077 default an overlay inherits; good_sha bare-hash
normalized) + a loud negative-control guard (0-overlap binary/src mismatch warns, so a 0
can never again masquerade as 'nothing matched'). tools/lora_grind.good_sha fixed at source.
Byte-neutral: make check-all 136/136.

Proof: ov_SC01_000 spot-run banked 7/15 (47%) byte-identical (@commit:0322); reach-2
func_8017CE24 propagated x2. ROI finding: 6/7 banks are reach-1 (overlay-unique) -> broad
rotation is high bank-RATE / low fleet-% ROI; the fleet lever is reach>=2 targeting (T9) +
corpus-v3 (T8). Backlog now correctly classified (4x close=1 = grinder fuel).

- docs/gen2-mips-matching-model.md: T7 RESULT section
- phase-ends/CURRENT_PHASE.md: T7 done; next = T8 corpus-v3 / T9 reach>=2 selection
2026-06-29 23:44:12 -06:00
Drew T 8016481036 feat(phase-23): lora-grind gate — +7 fns x0 propagated (fleet 63.67%) 2026-06-29 23:32:57 -06:00
Drew T b4c312a30c feat(phase-22): FIRST free-local-model banks — 4 open stubs matched by the v2 LoRA
The fine-tuned 7B (bfm-match-7b-v2) drafted real OPEN ov_SC01_077 stubs; whole-binary gate banked 4
(func_80160B34 func_8015CC74 func_8016084C func_801705C0). Sample: 9/22 match_one proxy -> 4/22
whole-binary banked (18%; the proxy->gate gap is the TU-plumbing wall). Model is format-robust (raw .s
== normalized). api_draft: NORMALIZE_ASM bridge (unused — model handles raw .s) + ghidra_c-empty fix.
2026-06-29 21:58:09 -06:00
Drew T 6d5fe3dfde feat(phase-22): bank 4 fns from cheap-tier A/B experiment (byte-verified, fleet 63.66->63.67)
Whole-binary SHA gate (gate_stage) banked 4 of 15 match_one-proxy matches:
func_80138BE0 func_8012F828 func_8012E9C0 (ov_SC01_077_a) + func_80141100 (main).
The other 11 are self-match-but-gate-rejected (TU declaration plumbing); logged to
the backlog as recovery fuel. ov_SC01_077 stays byte-identical (d19c9580).
2026-06-29 12:51:40 -06:00
Drew T c1230fa6ea feat(phase-22): T2 close=0 recovery batch — 14 fns ×134 (fleet 63.29%->63.66%)
- R14 corrects cookbook §26 ('close=0 recovery exhausted'): recover_giant + the
  whole-binary gate still banks a ~15-20%% tail. Banked 7 close=0 reach-134 fns
  (func_80156ECC/80147E44/8015ADB0/801661CC/80166054/8012CFA8/8012A62C); dedup_propagate
  --auto-from swept those + 7 pre-existing inline-matched bonus fns ×134 (14 total)
- the other ~33 close=0 are the genuine DEF-side loose-typing / masked-residual wall
- func_80132784 HARD-DEFER (hoist-vs-remat + register-lifetime-reuse not C-expressible)
- §28c distilled: close=0-not-exhausted recipe + the dedup_propagate registry-skip
  recovery (register via append_groups; bytes were already check-all-correct)
- make check-all 136/136 byte-identical (R22); dedup 1619->1633 validated/0 failed;
  0 NON_MATCHING (G4)
2026-06-26 04:14:06 -06:00
Drew T d789d9c242 feat(phase-22): T2 — giant func_80163C2C banked ×134 via Blk16/Buf32 type-lift (fleet 63.25%->63.29%)
- second struct-walled close=0 giant (167 ins): lift Blk16(u32x4)+Buf32(2xBlk16) to
  src/shared/engine_types.h, remove the Blk16 dupes from ov_SC01_077.c + the -O0 split
  ov_SC01_077_a.c (byte-neutral), recover_giant, harvest_verify MATCH, dedup_propagate
  ×134 (+22378 ins byte-weighted)
- struct-walled trio done: func_80156B74 + func_80163C2C banked; func_8014F74C is a
  masked residual (grinder fuel, not type-liftable)
- make check-all 136/136 byte-identical (R22); dedup 1618->1619 validated/0 failed;
  0 NON_MATCHING (G4)
2026-06-26 03:51:11 -06:00
Drew T b5a1fe6dab feat(phase-22): T2 — giant func_80156B74 banked ×134 via engine_types.h type-lift (fleet 63.22%->63.25%)
- struct-walled close=0 giant (cookbook §28 case #3) is bankable: lift the S8/B8
  typedefs from ov_SC01_077.c's prelude to src/shared/engine_types.h (shared via
  engine_core.h; byte-neutral), recover_giant block-scopes externs, whole-binary
  harvest_verify MATCH, dedup_propagate ×134 (214 ins, +28676 ins byte-weighted)
- cookbook §28b: the type-lift recipe + the serialize-make-jobs gotcha (concurrent
  make corrupted an .o and dropped the registry write; re-ran dedup_propagate idempotent)
- make check-all 136/136 byte-identical (R22); dedup 1617->1618 validated/0 failed;
  0 NON_MATCHING (G4)
2026-06-26 03:45:35 -06:00
Drew T 75dc869099 feat(phase-22): T1 — calibrate hand-loop; func_8015126C banked x134 (fleet 63.18%->63.22%)
- func_8015126C (254-ins top-5 giant): cracked the §25 coalescing residual with a
  register-pin idiom (cmp79 __asm__("$4") + lazy in-&& assign -> $a0, not hoisted)
  + the canonical-extern recovery (rewrite each engine_core.h-callee extern to its
  canonical def-sig, move ALL externs block-scope) so it banks whole-binary, not just
  match_one. dedup_propagate x134; make check-all 136/136 byte-identical; dedup-check
  1617 validated / 0 failed
- proves the Phase-22 loop end-to-end (hand-crack -> bank -> x134 propagate -> verify)
- CURRENT_PHASE.md: T0/T1 closed; the close=0-giant wall = draft self-contained externs
  conflicting with engine_core.h canonical sigs, deterministically fixable (T4 lever)
2026-06-26 02:54:39 -06:00
Drew T ac7f2dcddd feat(phase-21): worker gate — +6 fns x0 propagated (fleet 63.18%) 2026-06-25 21:28:23 -06:00
Drew T 3d9e8f0a9a feat(phase-21): worker gate — +10 fns x0 propagated (fleet 63.17%) 2026-06-25 20:30:30 -06:00
Drew T 1ca0faef29 feat(phase-21): sched-idiom gate — +1 fns x0 propagated (fleet 63.17%) 2026-06-25 01:06:36 -06:00
Drew T e5ae5958d5 feat(phase-21): recover-a gate — +1 fns x1 propagated (fleet 63.17%) 2026-06-25 00:57:32 -06:00
Drew T 1c1b75026a feat(phase-21): worker gate — +7 fns x4 propagated (fleet 63.13%) 2026-06-24 23:16:18 -06:00
Drew T 3943c34ac4 feat(phase-21): worker gate — +6 fns x4 propagated (fleet 62.98%) 2026-06-24 22:48:09 -06:00
Drew T 05e98070ba feat(phase-21): drop-straggler propagation banks 3 _a fns x134 (fleet 216104 / 344010 = 62.82%)
dedup_propagate now isolates+drops cross-overlay stragglers instead of all-or-nothing
revert. Wave-2: 2 loose-typing stragglers (func_8012E5CC/func_8012C750 compile-fail
ov_SC01_000) auto-dropped + kept x1; 3 clean fns propagated x134.
2026-06-24 22:09:47 -06:00
Drew T 881e462e0e feat(phase-21): worker gate — +6 fns x0 propagated (fleet 62.7%) 2026-06-24 21:53:10 -06:00
Drew T 1e3410ffc1 feat(phase-21): propagate 10 _a-wave fns x134 — _a vein is a real x134 lever (fleet 215699 / 344010 = 62.70%) 2026-06-24 20:35:19 -06:00
Drew T 19c163d3b7 feat(phase-21): worker gate — +11 fns x0 propagated (fleet 62.31%) 2026-06-24 20:13:51 -06:00
Drew T ccd61d6528 feat(phase-21): worker gate — +1 fns x1 propagated (fleet 62.31%) 2026-06-23 19:35:21 -06:00
Drew T b5eb1718af feat(phase-21): grinder gate — +1 fns x1 propagated (fleet 62.27%) 2026-06-23 14:15:31 -06:00
Drew T 3074584982 feat(phase-21): grinder gate — +1 fns x1 propagated (fleet 62.23%) 2026-06-23 12:45:22 -06:00
Drew T c2bad12d6c feat(phase-21): worker gate — +13 fns x12 propagated (fleet 62.19%) 2026-06-23 12:39:39 -06:00
Drew T c9e7c26af4 feat(phase-21): grinder gate — +1 fns x0 propagated (fleet 61.73%) 2026-06-23 12:19:06 -06:00
Drew T 296d834467 feat(phase-21): worker gate — +13 fns x13 propagated (fleet 61.73%) 2026-06-23 12:18:12 -06:00
Drew T 50070aad94 feat(phase-21): grinder gate — +2 fns x0 propagated (fleet 61.22%) 2026-06-23 12:01:50 -06:00
Drew T 1e2d905b5c feat(phase-21): worker gate — +8 fns x0 propagated (fleet 61.22%) 2026-06-23 11:48:21 -06:00
Drew T 6420413571 feat(phase-21): worker gate — +13 fns x0 propagated (fleet 61.22%) 2026-06-23 11:09:23 -06:00
Drew T 80ba81ffa8 feat(phase-21): worker gate — +14 fns x0 propagated (fleet 61.21%) 2026-06-23 10:33:43 -06:00
Drew T 50bc85d72b feat(phase-21): worker gate — +11 fns x0 propagated (fleet 61.21%) 2026-06-23 03:36:16 -06:00
Drew T b58aef625c feat(phase-21): worker gate — +17 fns x0 propagated (fleet 61.21%) 2026-06-23 03:07:39 -06:00
Drew T cbdbe04229 feat(phase-21): worker gate — +17 fns x0 propagated (fleet 61.2%) 2026-06-23 02:43:01 -06:00
Drew T fea30940b3 feat(phase-21): worker gate — +16 fns x0 propagated (fleet 61.2%) 2026-06-23 02:20:05 -06:00
Drew T df88ca83ba feat(phase-21): worker gate — +16 fns x0 propagated (fleet 61.19%) 2026-06-23 02:02:54 -06:00
Drew T c20d87207e feat(phase-21): worker gate — +21 fns x0 propagated (fleet 61.19%) 2026-06-23 01:38:06 -06:00
Drew T 8484dfc6f1 feat(phase-21): worker gate — +18 fns x0 propagated (fleet 61.18%) 2026-06-23 01:25:51 -06:00