fix(phase-30): treelock.sh — an flock MUTEX for tree-writing campaigns (incident 2: a poll is not a mutex)

I gated 8 binaries in parallel while wave-2's propagation loop was still running, then ran
'make clean' on top. check-all 77/140; the corpus denominator moved, so the apparent 91.4% instr
was a half-written tree, not a gain. Reverted to commit:1245 (last R22-verified) — 140/140 restored,
all 58 drafts survived because agents only ever write .run/.

ROOT CAUSE, and it was structural not unlucky: my guard was
  while pgrep -f dedup_propagate; do sleep; done
A CAMPAIGN is a LOOP of short-lived processes (15 sequential invocations), so it has gaps where no
process matches. The poll sampled a gap and started. Presence-of-a-process cannot express 'a
campaign owns the tree'.

treelock.sh holds one flock for the WHOLE campaign, released by the kernel on exit OR kill, with
--status; both drivers refuse to run unlocked. LAW: guard the CAMPAIGN, not the process.
Corollary (twice today): a killed process performs no undo — a fleet-tier write needs a lock ABOVE
it, not cleanup inside it.
This commit is contained in:
Drew T
2026-07-30 22:00:32 -06:00
parent ed2b0f8c2a
commit f3ec6ef588
4 changed files with 1532 additions and 1468 deletions
+1316 -1323
View File
File diff suppressed because it is too large Load Diff
+145 -145
View File
@@ -4,157 +4,157 @@
# cross-binary collapsible-byte leverage: docs/duplicates.cross.md.
# THREE progress metrics (all matter — see the labels):
FLEET fn-count byte-ident: 326538 / 353720 = 92.32% (REAL+LINKED+empties; FUNCTION-count, ×134-inflated — one crack counts per overlay)
FLEET instr-weighted : 11556034 / 13141652 = 87.9% (shipped .text across main + resident + 138 overlays; the decomp.dev-DISPLAY number)
FLEET distinct-code(uniq): 4411986 / 5634875 = 78.3% (70094/87459 unique fns; the DISTINCT-RE number)
FLEET fn-count byte-ident: 327125 / 353691 = 92.49% (REAL+LINKED+empties; FUNCTION-count, ×134-inflated — one crack counts per overlay)
FLEET instr-weighted : 12008151 / 13141652 = 91.4% (shipped .text across main + resident + 138 overlays; the decomp.dev-DISPLAY number)
FLEET distinct-code(uniq): 4757034 / 5634875 = 84.4% (75305/87459 unique fns; the DISTINCT-RE number)
MAIN game-code weighted : 436 / 60201 = 0.7% (INCLUDED in the fleet numbers above since 2026-07-22 — roadmap §1 metrics contract; LINKED-excluding Ghidra sig dated 2026-06-14; caveat is R34: no independent second oracle for a PS-X EXE, NOT drift)
(fleet EXCLUDING main, for continuity with pre-2026-07-22 readings: 11555598 / 13081451 = 88.3%)
(fleet EXCLUDING main, for continuity with pre-2026-07-22 readings: 12007715 / 13081451 = 91.8%)
FLEET REAL substantive : 324683 (of which dedup-shared 240081 via 1890 groups / 240155 instances)
FLEET REAL substantive : 325270 (of which dedup-shared 240625 via 1894 groups / 240699 instances)
FLEET LINKED PsyQ objs : 959
FLEET NON_MATCHING : 7 (0 in any default build — G4)
FLEET INCLUDE_ASM stubs : 27175
FLEET matchable : 353720
FLEET INCLUDE_ASM stubs : 26559
FLEET matchable : 353691
| binary | REAL | shared | LINKED | byte-ident | matchable | byte-ident % |
|---|---:|---:|---:|---:|---:|---:|
| main | 54 | 2 | 959 | 1055 | 2096 | 50.3% |
| resident | 129 | 0 | 0 | 131 | 145 | 90.3% |
| ov_SC01_000 | 2319 | 1746 | 0 | 2319 | 2403 | 96.5% |
| ov_SC01_001 | 2326 | 1747 | 0 | 2328 | 2466 | 94.4% |
| ov_SC01_004 | 2317 | 1738 | 0 | 2318 | 2414 | 96.0% |
| ov_SC01_005 | 2348 | 1761 | 0 | 2348 | 2503 | 93.8% |
| ov_SC01_006 | 2348 | 1761 | 0 | 2348 | 2503 | 93.8% |
| ov_SC01_008 | 2317 | 1738 | 0 | 2319 | 2426 | 95.6% |
| ov_SC01_009 | 2342 | 1739 | 0 | 2343 | 2507 | 93.5% |
| ov_SC01_074 | 2323 | 1739 | 0 | 2325 | 2425 | 95.9% |
| ov_SC01_077 | 2490 | 1706 | 0 | 2492 | 2585 | 96.4% |
| ov_SC01_080 | 2357 | 1742 | 0 | 2357 | 2512 | 93.8% |
| ov_SC01_084 | 2367 | 1742 | 0 | 2372 | 2579 | 92.0% |
| ov_SC02_000 | 2420 | 1777 | 0 | 2420 | 2683 | 90.2% |
| ov_SC02_003 | 2420 | 1777 | 0 | 2420 | 2683 | 90.2% |
| ov_SC02_004 | 2322 | 1742 | 0 | 2322 | 2401 | 96.7% |
| ov_SC02_005 | 2445 | 1738 | 0 | 2455 | 2927 | 83.9% |
| ov_SC02_011 | 2453 | 1745 | 0 | 2464 | 2893 | 85.2% |
| ov_SC02_015 | 2327 | 1744 | 0 | 2327 | 2414 | 96.4% |
| ov_SC02_016 | 2365 | 1744 | 0 | 2368 | 2545 | 93.0% |
| ov_SC02_017 | 2414 | 1744 | 0 | 2422 | 2732 | 88.7% |
| ov_SC02_021 | 2332 | 1744 | 0 | 2332 | 2437 | 95.7% |
| ov_SC02_026 | 2347 | 1742 | 0 | 2353 | 2572 | 91.5% |
| ov_SC02_027 | 2371 | 1742 | 0 | 2380 | 2692 | 88.4% |
| ov_SC02_028 | 2373 | 1742 | 0 | 2383 | 2701 | 88.2% |
| ov_SC02_031 | 2360 | 1743 | 0 | 2365 | 2562 | 92.3% |
| ov_SC02_035 | 2334 | 1742 | 0 | 2337 | 2520 | 92.7% |
| ov_SC02_039 | 2318 | 1742 | 0 | 2318 | 2416 | 95.9% |
| ov_SC02_041 | 2361 | 1742 | 0 | 2364 | 2561 | 92.3% |
| ov_SC03_001 | 2462 | 1743 | 0 | 2479 | 2869 | 86.4% |
| ov_SC03_002 | 2380 | 1747 | 0 | 2395 | 2631 | 91.0% |
| ov_SC03_003 | 2328 | 1742 | 0 | 2329 | 2423 | 96.1% |
| ov_SC03_006 | 2402 | 1748 | 0 | 2411 | 2767 | 87.1% |
| ov_SC03_007 | 2379 | 1742 | 0 | 2383 | 2623 | 90.9% |
| ov_SC03_010 | 2337 | 1742 | 0 | 2337 | 2471 | 94.6% |
| ov_SC03_011 | 2344 | 1742 | 0 | 2350 | 2527 | 93.0% |
| ov_SC03_012 | 2319 | 1742 | 0 | 2320 | 2406 | 96.4% |
| ov_SC03_013 | 2343 | 1742 | 0 | 2343 | 2493 | 94.0% |
| ov_SC03_014 | 2404 | 1767 | 0 | 2404 | 2685 | 89.5% |
| ov_SC03_015 | 2406 | 1767 | 0 | 2406 | 2685 | 89.6% |
| ov_SC03_023 | 2330 | 1742 | 0 | 2331 | 2435 | 95.7% |
| ov_SC03_024 | 2395 | 1747 | 0 | 2402 | 2641 | 91.0% |
| ov_SC03_028 | 2364 | 1742 | 0 | 2368 | 2664 | 88.9% |
| ov_SC03_029 | 2375 | 1744 | 0 | 2385 | 2644 | 90.2% |
| ov_SC03_030 | 2341 | 1747 | 0 | 2343 | 2495 | 93.9% |
| ov_SC03_031 | 2337 | 1742 | 0 | 2340 | 2514 | 93.1% |
| ov_SC03_089 | 2353 | 1742 | 0 | 2360 | 2581 | 91.4% |
| ov_SC03_090 | 2356 | 1742 | 0 | 2364 | 2625 | 90.1% |
| ov_SC03_091 | 2358 | 1742 | 0 | 2366 | 2640 | 89.6% |
| ov_SC03_092 | 2374 | 1742 | 0 | 2386 | 2587 | 92.2% |
| ov_SC03_093 | 2345 | 1742 | 0 | 2349 | 2563 | 91.7% |
| ov_SC03_094 | 2340 | 1742 | 0 | 2346 | 2577 | 91.0% |
| ov_SC03_095 | 2329 | 1742 | 0 | 2332 | 2474 | 94.3% |
| ov_SC03_096 | 2330 | 1742 | 0 | 2333 | 2465 | 94.6% |
| ov_SC03_097 | 2366 | 1742 | 0 | 2373 | 2603 | 91.2% |
| ov_SC03_098 | 2337 | 1742 | 0 | 2340 | 2541 | 92.1% |
| ov_SC03_099 | 2331 | 1742 | 0 | 2334 | 2504 | 93.2% |
| ov_SC03_100 | 2340 | 1742 | 0 | 2344 | 2539 | 92.3% |
| ov_SC03_101 | 2343 | 1742 | 0 | 2347 | 2528 | 92.8% |
| ov_SC03_102 | 2331 | 1742 | 0 | 2334 | 2492 | 93.7% |
| ov_SC03_103 | 2336 | 1744 | 0 | 2339 | 2510 | 93.2% |
| ov_SC03_104 | 2360 | 1742 | 0 | 2367 | 2616 | 90.5% |
| ov_SC03_105 | 2355 | 1742 | 0 | 2362 | 2597 | 91.0% |
| ov_SC03_108 | 2321 | 1742 | 0 | 2321 | 2443 | 95.0% |
| ov_SC03_109 | 2326 | 1742 | 0 | 2328 | 2424 | 96.0% |
| ov_SC03_110 | 2328 | 1742 | 0 | 2328 | 2468 | 94.3% |
| ov_SC03_111 | 2340 | 1742 | 0 | 2343 | 2510 | 93.3% |
| ov_SC03_112 | 2337 | 1744 | 0 | 2339 | 2526 | 92.6% |
| ov_SC03_113 | 2331 | 1744 | 0 | 2334 | 2468 | 94.6% |
| ov_SC03_114 | 2317 | 1742 | 0 | 2319 | 2415 | 96.0% |
| ov_SC03_115 | 2337 | 1742 | 0 | 2339 | 2472 | 94.6% |
| ov_SC03_116 | 2325 | 1742 | 0 | 2328 | 2438 | 95.5% |
| ov_SC03_117 | 2361 | 1742 | 0 | 2367 | 2557 | 92.6% |
| ov_SC03_118 | 2408 | 1766 | 0 | 2409 | 2685 | 89.7% |
| ov_SC03_119 | 2404 | 1766 | 0 | 2405 | 2685 | 89.6% |
| ov_SC03_121 | 2333 | 1742 | 0 | 2336 | 2459 | 95.0% |
| ov_SC03_124 | 2424 | 1738 | 0 | 2444 | 2741 | 89.2% |
| ov_SC03_125 | 2367 | 1742 | 0 | 2379 | 2588 | 91.9% |
| ov_SC03_126 | 2330 | 1744 | 0 | 2330 | 2423 | 96.2% |
| ov_SC04_000 | 2350 | 1746 | 0 | 2359 | 2546 | 92.7% |
| ov_SC04_002 | 2372 | 1742 | 0 | 2376 | 2636 | 90.1% |
| ov_SC04_003 | 2343 | 1742 | 0 | 2347 | 2502 | 93.8% |
| ov_SC04_004 | 2352 | 1742 | 0 | 2354 | 2558 | 92.0% |
| ov_SC04_005 | 2362 | 1742 | 0 | 2368 | 2612 | 90.7% |
| ov_SC04_006 | 2329 | 1742 | 0 | 2331 | 2454 | 95.0% |
| ov_SC04_007 | 2356 | 1742 | 0 | 2360 | 2569 | 91.9% |
| ov_SC04_008 | 2322 | 1742 | 0 | 2322 | 2415 | 96.1% |
| ov_SC04_009 | 2336 | 1742 | 0 | 2339 | 2441 | 95.8% |
| ov_SC04_010 | 2326 | 1742 | 0 | 2327 | 2419 | 96.2% |
| ov_SC04_011 | 2385 | 1742 | 0 | 2391 | 2803 | 85.3% |
| ov_SC04_012 | 2324 | 1742 | 0 | 2325 | 2420 | 96.1% |
| ov_SC04_015 | 2394 | 1743 | 0 | 2405 | 2611 | 92.1% |
| ov_SC04_016 | 2326 | 1742 | 0 | 2328 | 2440 | 95.4% |
| ov_SC04_018 | 2460 | 1777 | 0 | 2460 | 2857 | 86.1% |
| ov_SC04_019 | 2460 | 1777 | 0 | 2460 | 2857 | 86.1% |
| ov_SC04_020 | 2355 | 1742 | 0 | 2367 | 2567 | 92.2% |
| ov_SC04_021 | 2330 | 1744 | 0 | 2330 | 2423 | 96.2% |
| ov_SC05_000 | 2328 | 1746 | 0 | 2331 | 2422 | 96.2% |
| ov_SC05_001 | 2350 | 1742 | 0 | 2355 | 2574 | 91.5% |
| ov_SC05_002 | 2335 | 1742 | 0 | 2338 | 2442 | 95.7% |
| ov_SC05_003 | 2330 | 1742 | 0 | 2331 | 2481 | 94.0% |
| ov_SC05_004 | 2327 | 1742 | 0 | 2329 | 2464 | 94.5% |
| ov_SC05_005 | 2331 | 1742 | 0 | 2332 | 2491 | 93.6% |
| ov_SC05_006 | 2324 | 1742 | 0 | 2324 | 2430 | 95.6% |
| ov_SC05_007 | 2335 | 1742 | 0 | 2340 | 2482 | 94.3% |
| ov_SC05_008 | 2355 | 1742 | 0 | 2357 | 2543 | 92.7% |
| ov_SC05_009 | 2329 | 1742 | 0 | 2333 | 2438 | 95.7% |
| ov_SC05_010 | 2357 | 1742 | 0 | 2361 | 2588 | 91.2% |
| ov_SC05_011 | 2325 | 1742 | 0 | 2326 | 2409 | 96.6% |
| ov_SC05_017 | 2447 | 1739 | 0 | 2458 | 2842 | 86.5% |
| ov_SC05_018 | 2386 | 1742 | 0 | 2399 | 2673 | 89.7% |
| ov_SC05_019 | 2330 | 1744 | 0 | 2330 | 2423 | 96.2% |
| ov_SC06_000 | 2406 | 1751 | 0 | 2409 | 2691 | 89.5% |
| ov_SC06_006 | 2349 | 1742 | 0 | 2350 | 2511 | 93.6% |
| ov_SC06_008 | 2370 | 1744 | 0 | 2376 | 2542 | 93.5% |
| ov_SC06_010 | 2349 | 1742 | 0 | 2354 | 2517 | 93.5% |
| ov_SC06_011 | 2334 | 1742 | 0 | 2338 | 2468 | 94.7% |
| ov_SC06_013 | 2328 | 1742 | 0 | 2329 | 2425 | 96.0% |
| ov_SC06_014 | 2335 | 1742 | 0 | 2337 | 2453 | 95.3% |
| ov_SC06_015 | 2333 | 1742 | 0 | 2333 | 2421 | 96.4% |
| ov_SC06_016 | 2349 | 1742 | 0 | 2351 | 2549 | 92.2% |
| ov_SC06_018 | 2364 | 1744 | 0 | 2371 | 2665 | 89.0% |
| ov_SC06_020 | 2338 | 1744 | 0 | 2339 | 2518 | 92.9% |
| ov_SC06_022 | 2363 | 1742 | 0 | 2371 | 2642 | 89.7% |
| ov_SC06_024 | 2372 | 1742 | 0 | 2378 | 2667 | 89.2% |
| ov_SC06_025 | 2357 | 1742 | 0 | 2362 | 2572 | 91.8% |
| ov_SC06_027 | 2317 | 1742 | 0 | 2318 | 2408 | 96.3% |
| ov_SC06_029 | 2378 | 1742 | 0 | 2390 | 2662 | 89.8% |
| ov_SC06_030 | 2332 | 1742 | 0 | 2332 | 2456 | 95.0% |
| ov_SC06_032 | 2358 | 1743 | 0 | 2365 | 2658 | 89.0% |
| ov_SC06_033 | 2359 | 1743 | 0 | 2366 | 2631 | 89.9% |
| ov_SC07_000 | 2345 | 1746 | 0 | 2347 | 2521 | 93.1% |
| ov_SC07_001 | 2329 | 1742 | 0 | 2331 | 2454 | 95.0% |
| ov_SC07_002 | 2356 | 1742 | 0 | 2360 | 2579 | 91.5% |
| ov_SC07_006 | 2218 | 1558 | 0 | 2298 | 2456 | 93.6% |
| ov_SC07_007 | 2238 | 1590 | 0 | 2322 | 2613 | 88.9% |
| ov_SC07_008 | 2314 | 1742 | 0 | 2314 | 2386 | 97.0% |
| ov_SC07_009 | 2324 | 1742 | 0 | 2326 | 2430 | 95.7% |
| ov_SC07_010 | 2241 | 1612 | 0 | 2324 | 2524 | 92.1% |
| ov_SC07_011 | 2238 | 1589 | 0 | 2318 | 2449 | 94.7% |
| ov_SC01_000 | 2323 | 1750 | 0 | 2323 | 2403 | 96.7% |
| ov_SC01_001 | 2330 | 1751 | 0 | 2332 | 2466 | 94.6% |
| ov_SC01_004 | 2321 | 1742 | 0 | 2322 | 2414 | 96.2% |
| ov_SC01_005 | 2352 | 1765 | 0 | 2352 | 2503 | 94.0% |
| ov_SC01_006 | 2352 | 1765 | 0 | 2352 | 2503 | 94.0% |
| ov_SC01_008 | 2321 | 1742 | 0 | 2323 | 2426 | 95.8% |
| ov_SC01_009 | 2346 | 1743 | 0 | 2347 | 2507 | 93.6% |
| ov_SC01_074 | 2327 | 1743 | 0 | 2329 | 2425 | 96.0% |
| ov_SC01_077 | 2512 | 1710 | 0 | 2514 | 2586 | 97.2% |
| ov_SC01_080 | 2361 | 1746 | 0 | 2361 | 2512 | 94.0% |
| ov_SC01_084 | 2374 | 1746 | 0 | 2379 | 2579 | 92.2% |
| ov_SC02_000 | 2424 | 1781 | 0 | 2424 | 2683 | 90.3% |
| ov_SC02_003 | 2424 | 1781 | 0 | 2424 | 2683 | 90.3% |
| ov_SC02_004 | 2326 | 1746 | 0 | 2326 | 2401 | 96.9% |
| ov_SC02_005 | 2455 | 1742 | 0 | 2465 | 2927 | 84.2% |
| ov_SC02_011 | 2463 | 1749 | 0 | 2474 | 2893 | 85.5% |
| ov_SC02_015 | 2331 | 1748 | 0 | 2331 | 2414 | 96.6% |
| ov_SC02_016 | 2369 | 1748 | 0 | 2372 | 2545 | 93.2% |
| ov_SC02_017 | 2418 | 1748 | 0 | 2426 | 2732 | 88.8% |
| ov_SC02_021 | 2336 | 1748 | 0 | 2336 | 2437 | 95.9% |
| ov_SC02_026 | 2357 | 1746 | 0 | 2363 | 2572 | 91.9% |
| ov_SC02_027 | 2375 | 1746 | 0 | 2384 | 2692 | 88.6% |
| ov_SC02_028 | 2377 | 1746 | 0 | 2387 | 2701 | 88.4% |
| ov_SC02_031 | 2364 | 1747 | 0 | 2369 | 2562 | 92.5% |
| ov_SC02_035 | 2338 | 1746 | 0 | 2341 | 2520 | 92.9% |
| ov_SC02_039 | 2322 | 1746 | 0 | 2322 | 2416 | 96.1% |
| ov_SC02_041 | 2365 | 1746 | 0 | 2368 | 2561 | 92.5% |
| ov_SC03_001 | 2466 | 1747 | 0 | 2483 | 2869 | 86.5% |
| ov_SC03_002 | 2384 | 1751 | 0 | 2399 | 2631 | 91.2% |
| ov_SC03_003 | 2332 | 1746 | 0 | 2333 | 2423 | 96.3% |
| ov_SC03_006 | 2406 | 1752 | 0 | 2415 | 2767 | 87.3% |
| ov_SC03_007 | 2383 | 1746 | 0 | 2387 | 2623 | 91.0% |
| ov_SC03_010 | 2341 | 1746 | 0 | 2341 | 2471 | 94.7% |
| ov_SC03_011 | 2348 | 1746 | 0 | 2354 | 2527 | 93.2% |
| ov_SC03_012 | 2323 | 1746 | 0 | 2324 | 2406 | 96.6% |
| ov_SC03_013 | 2347 | 1746 | 0 | 2347 | 2493 | 94.1% |
| ov_SC03_014 | 2409 | 1771 | 0 | 2409 | 2685 | 89.7% |
| ov_SC03_015 | 2410 | 1771 | 0 | 2410 | 2685 | 89.8% |
| ov_SC03_023 | 2334 | 1746 | 0 | 2335 | 2435 | 95.9% |
| ov_SC03_024 | 2399 | 1751 | 0 | 2406 | 2641 | 91.1% |
| ov_SC03_028 | 2368 | 1746 | 0 | 2372 | 2664 | 89.0% |
| ov_SC03_029 | 2379 | 1748 | 0 | 2389 | 2644 | 90.4% |
| ov_SC03_030 | 2345 | 1751 | 0 | 2347 | 2495 | 94.1% |
| ov_SC03_031 | 2341 | 1746 | 0 | 2344 | 2514 | 93.2% |
| ov_SC03_089 | 2357 | 1746 | 0 | 2364 | 2581 | 91.6% |
| ov_SC03_090 | 2360 | 1746 | 0 | 2368 | 2625 | 90.2% |
| ov_SC03_091 | 2362 | 1746 | 0 | 2370 | 2640 | 89.8% |
| ov_SC03_092 | 2378 | 1746 | 0 | 2390 | 2587 | 92.4% |
| ov_SC03_093 | 2349 | 1746 | 0 | 2353 | 2563 | 91.8% |
| ov_SC03_094 | 2344 | 1746 | 0 | 2350 | 2577 | 91.2% |
| ov_SC03_095 | 2333 | 1746 | 0 | 2336 | 2474 | 94.4% |
| ov_SC03_096 | 2334 | 1746 | 0 | 2337 | 2465 | 94.8% |
| ov_SC03_097 | 2370 | 1746 | 0 | 2377 | 2603 | 91.3% |
| ov_SC03_098 | 2341 | 1746 | 0 | 2344 | 2541 | 92.2% |
| ov_SC03_099 | 2335 | 1746 | 0 | 2338 | 2504 | 93.4% |
| ov_SC03_100 | 2344 | 1746 | 0 | 2348 | 2539 | 92.5% |
| ov_SC03_101 | 2347 | 1746 | 0 | 2351 | 2528 | 93.0% |
| ov_SC03_102 | 2335 | 1746 | 0 | 2338 | 2492 | 93.8% |
| ov_SC03_103 | 2340 | 1748 | 0 | 2343 | 2510 | 93.3% |
| ov_SC03_104 | 2364 | 1746 | 0 | 2371 | 2616 | 90.6% |
| ov_SC03_105 | 2359 | 1746 | 0 | 2366 | 2597 | 91.1% |
| ov_SC03_108 | 2325 | 1746 | 0 | 2325 | 2443 | 95.2% |
| ov_SC03_109 | 2330 | 1746 | 0 | 2332 | 2424 | 96.2% |
| ov_SC03_110 | 2332 | 1746 | 0 | 2332 | 2468 | 94.5% |
| ov_SC03_111 | 2344 | 1746 | 0 | 2347 | 2510 | 93.5% |
| ov_SC03_112 | 2341 | 1748 | 0 | 2343 | 2526 | 92.8% |
| ov_SC03_113 | 2335 | 1748 | 0 | 2338 | 2468 | 94.7% |
| ov_SC03_114 | 2321 | 1746 | 0 | 2323 | 2415 | 96.2% |
| ov_SC03_115 | 2341 | 1746 | 0 | 2343 | 2472 | 94.8% |
| ov_SC03_116 | 2329 | 1746 | 0 | 2332 | 2438 | 95.7% |
| ov_SC03_117 | 2365 | 1746 | 0 | 2371 | 2556 | 92.8% |
| ov_SC03_118 | 2412 | 1770 | 0 | 2413 | 2685 | 89.9% |
| ov_SC03_119 | 2408 | 1770 | 0 | 2409 | 2685 | 89.7% |
| ov_SC03_121 | 2337 | 1746 | 0 | 2340 | 2459 | 95.2% |
| ov_SC03_124 | 2428 | 1742 | 0 | 2448 | 2741 | 89.3% |
| ov_SC03_125 | 2371 | 1746 | 0 | 2383 | 2588 | 92.1% |
| ov_SC03_126 | 2334 | 1748 | 0 | 2334 | 2423 | 96.3% |
| ov_SC04_000 | 2354 | 1750 | 0 | 2363 | 2546 | 92.8% |
| ov_SC04_002 | 2376 | 1746 | 0 | 2380 | 2636 | 90.3% |
| ov_SC04_003 | 2347 | 1746 | 0 | 2351 | 2502 | 94.0% |
| ov_SC04_004 | 2356 | 1746 | 0 | 2358 | 2558 | 92.2% |
| ov_SC04_005 | 2366 | 1746 | 0 | 2372 | 2612 | 90.8% |
| ov_SC04_006 | 2333 | 1746 | 0 | 2335 | 2454 | 95.2% |
| ov_SC04_007 | 2360 | 1746 | 0 | 2364 | 2569 | 92.0% |
| ov_SC04_008 | 2326 | 1746 | 0 | 2326 | 2415 | 96.3% |
| ov_SC04_009 | 2340 | 1746 | 0 | 2343 | 2441 | 96.0% |
| ov_SC04_010 | 2330 | 1746 | 0 | 2331 | 2418 | 96.4% |
| ov_SC04_011 | 2389 | 1746 | 0 | 2395 | 2802 | 85.5% |
| ov_SC04_012 | 2328 | 1746 | 0 | 2329 | 2419 | 96.3% |
| ov_SC04_015 | 2398 | 1747 | 0 | 2409 | 2610 | 92.3% |
| ov_SC04_016 | 2330 | 1746 | 0 | 2332 | 2439 | 95.6% |
| ov_SC04_018 | 2465 | 1781 | 0 | 2465 | 2856 | 86.3% |
| ov_SC04_019 | 2464 | 1781 | 0 | 2464 | 2856 | 86.3% |
| ov_SC04_020 | 2359 | 1746 | 0 | 2371 | 2566 | 92.4% |
| ov_SC04_021 | 2334 | 1748 | 0 | 2334 | 2422 | 96.4% |
| ov_SC05_000 | 2332 | 1750 | 0 | 2335 | 2421 | 96.4% |
| ov_SC05_001 | 2354 | 1746 | 0 | 2359 | 2573 | 91.7% |
| ov_SC05_002 | 2339 | 1746 | 0 | 2342 | 2441 | 95.9% |
| ov_SC05_003 | 2334 | 1746 | 0 | 2335 | 2480 | 94.2% |
| ov_SC05_004 | 2331 | 1746 | 0 | 2333 | 2463 | 94.7% |
| ov_SC05_005 | 2335 | 1746 | 0 | 2336 | 2490 | 93.8% |
| ov_SC05_006 | 2328 | 1746 | 0 | 2328 | 2429 | 95.8% |
| ov_SC05_007 | 2339 | 1746 | 0 | 2344 | 2481 | 94.5% |
| ov_SC05_008 | 2359 | 1746 | 0 | 2361 | 2542 | 92.9% |
| ov_SC05_009 | 2333 | 1746 | 0 | 2337 | 2437 | 95.9% |
| ov_SC05_010 | 2361 | 1746 | 0 | 2365 | 2587 | 91.4% |
| ov_SC05_011 | 2329 | 1746 | 0 | 2330 | 2408 | 96.8% |
| ov_SC05_017 | 2451 | 1743 | 0 | 2462 | 2841 | 86.7% |
| ov_SC05_018 | 2390 | 1746 | 0 | 2403 | 2672 | 89.9% |
| ov_SC05_019 | 2334 | 1748 | 0 | 2334 | 2422 | 96.4% |
| ov_SC06_000 | 2410 | 1755 | 0 | 2413 | 2690 | 89.7% |
| ov_SC06_006 | 2353 | 1746 | 0 | 2354 | 2511 | 93.7% |
| ov_SC06_008 | 2374 | 1748 | 0 | 2380 | 2542 | 93.6% |
| ov_SC06_010 | 2353 | 1746 | 0 | 2358 | 2517 | 93.7% |
| ov_SC06_011 | 2338 | 1746 | 0 | 2342 | 2468 | 94.9% |
| ov_SC06_013 | 2332 | 1746 | 0 | 2333 | 2425 | 96.2% |
| ov_SC06_014 | 2339 | 1746 | 0 | 2341 | 2453 | 95.4% |
| ov_SC06_015 | 2337 | 1746 | 0 | 2337 | 2421 | 96.5% |
| ov_SC06_016 | 2353 | 1746 | 0 | 2355 | 2549 | 92.4% |
| ov_SC06_018 | 2370 | 1748 | 0 | 2377 | 2665 | 89.2% |
| ov_SC06_020 | 2342 | 1748 | 0 | 2343 | 2518 | 93.1% |
| ov_SC06_022 | 2367 | 1746 | 0 | 2375 | 2642 | 89.9% |
| ov_SC06_024 | 2376 | 1746 | 0 | 2382 | 2667 | 89.3% |
| ov_SC06_025 | 2361 | 1746 | 0 | 2366 | 2572 | 92.0% |
| ov_SC06_027 | 2321 | 1746 | 0 | 2322 | 2408 | 96.4% |
| ov_SC06_029 | 2382 | 1746 | 0 | 2394 | 2662 | 89.9% |
| ov_SC06_030 | 2336 | 1746 | 0 | 2336 | 2456 | 95.1% |
| ov_SC06_032 | 2362 | 1747 | 0 | 2369 | 2658 | 89.1% |
| ov_SC06_033 | 2363 | 1747 | 0 | 2370 | 2631 | 90.1% |
| ov_SC07_000 | 2349 | 1750 | 0 | 2351 | 2521 | 93.3% |
| ov_SC07_001 | 2333 | 1746 | 0 | 2335 | 2454 | 95.2% |
| ov_SC07_002 | 2360 | 1746 | 0 | 2364 | 2579 | 91.7% |
| ov_SC07_006 | 2220 | 1560 | 0 | 2300 | 2456 | 93.6% |
| ov_SC07_007 | 2240 | 1592 | 0 | 2324 | 2613 | 88.9% |
| ov_SC07_008 | 2318 | 1746 | 0 | 2318 | 2385 | 97.2% |
| ov_SC07_009 | 2328 | 1746 | 0 | 2330 | 2429 | 95.9% |
| ov_SC07_010 | 2243 | 1614 | 0 | 2326 | 2523 | 92.2% |
| ov_SC07_011 | 2240 | 1591 | 0 | 2320 | 2448 | 94.8% |
+23
View File
@@ -109,6 +109,29 @@ the T2 log entries; check both background tasks' outcomes first (`git log` for t
## Per-task log
### ⚠️ INCIDENT 2 (mine) — a POLL is not a MUTEX: concurrent tree writers broke 63/140; reverted clean
**What I did.** Wave-3 gated 8 binaries in parallel (correct — the byte-gate IS per-binary) while
wave-2's propagation loop was still running, then I ran `make clean` (deleting `asm/`) on top of
both. `check-all` → **77/140**, and the corpus denominator itself moved (353,720 → 353,691), so the
apparent "91.4% instr" was an artifact of a half-written tree, not a gain.
**Root cause — the guard was structurally unsound, not merely unlucky.** My gate waited on
`while pgrep -f dedup_propagate; do sleep; done`. But a CAMPAIGN is a **loop of short-lived
processes** — 15 sequential `dedup_propagate` invocations — so between every pair there is a window
with no matching process. The poll sampled one of those gaps, read "clear", and started. Presence-
of-a-process is a sampling test on a gappy signal; it cannot express "a campaign owns the tree."
**Recovery (clean, nothing lost that mattered).** Killed the writers; `git checkout -- src/ config/`
back to `commit:1245` (the last R22-verified 140/140 commit); all 58 drafts survive untouched in
`.run/` because agents never write the tree — the discipline that made this cheap. Re-verifying
baseline, then re-gating and re-propagating serially under the lock.
**Fix shipped: `tools/treelock.sh`** — an flock(1) mutex held for the WHOLE campaign, released by
the kernel on exit or kill, with `--status`. Both drivers now refuse to run unlocked.
**The general law (worth a rule at close): guard the CAMPAIGN, not the process.**
Corollary, the second time this session a killed writer hurt: **a killed process performs no undo**,
so a fleet-tier write needs a lock ABOVE it, not cleanup inside it.
### T3 BEHEMOTH WAVE (10 agents, 3.23M tok) — **7/10 CONFIRMED byte-matches at 700–970 ins**, 0 disputed
Drew asked for up to 10 agents on the behemoths; grouping analysis first showed the ≥700-ins band is
**structured, not 29 singletons**: one 16-member family @947, one 14-member @884, a 5-member @793, a
+48
View File
@@ -0,0 +1,48 @@
#!/usr/bin/env bash
# treelock.sh — THE mutex for tree-writing campaigns. Source it or wrap a command with it.
#
# tools/treelock.sh <name> <command…> # acquire, run, release (even on failure/kill)
# tools/treelock.sh --status # who holds it
#
# WHY (P30, twice in one session — the second time I caused it myself):
# `src/`, `config/`, `asm/` and `build/` are ONE shared mutable state. Any two of {gate_stage,
# dedup_propagate, family_sweep, jtbl_family_bank, make clean/extract/check} running at once can
# interleave writes and leave the fleet incoherent — and a killed writer performs NO undo, so the
# damage outlives the process.
#
# The first attempt at a guard was `while pgrep -f dedup_propagate; do sleep; done`. That is
# STRUCTURALLY WRONG and it failed within the hour: a CAMPAIGN is a LOOP of short-lived processes
# (15 sequential dedup_propagate invocations), so between every pair there is a window with no
# matching process. A parallel gate polled during one of those windows, saw "clear", and started —
# then a `make clean` deleted asm/ under the still-running campaign. Result: 63 of 140 binaries
# failed check-all and every uncommitted bank had to be reverted.
#
# The lesson, stated generally: **guard the CAMPAIGN, not the process.** Presence-of-a-process is a
# sampling test on a gappy signal; a lock file is a statement of intent that spans the gaps.
# Uses flock(1) — held for the WHOLE wrapped command, released by the kernel on exit or kill.
set -uo pipefail
REPO="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
LOCK="$REPO/.run/tree.lock"
mkdir -p "$(dirname "$LOCK")"
if [ "${1:-}" = "--status" ]; then
if flock -n "$LOCK" true 2>/dev/null; then echo "tree lock: FREE"; else
echo "tree lock: HELD by -> $(cat "$LOCK.owner" 2>/dev/null || echo '(unknown)')"; fi
exit 0
fi
NAME="${1:?usage: treelock.sh <name> <command...>}"; shift
[ $# -gt 0 ] || { echo "treelock: no command given" >&2; exit 2; }
exec 9>"$LOCK"
if ! flock -w "${TREELOCK_WAIT:-14400}" 9; then
echo "treelock: timed out waiting for the tree (held by $(cat "$LOCK.owner" 2>/dev/null))" >&2
exit 75
fi
echo "$NAME pid=$$ since=$(date +%H:%M:%S)" > "$LOCK.owner"
trap 'rm -f "$LOCK.owner"' EXIT
echo "[treelock] acquired by $NAME"
"$@"
rc=$?
echo "[treelock] released by $NAME (rc=$rc)"
exit $rc