From ba0cfb751e6aae5ef066fa4cfa5cc02b2a33b6ee Mon Sep 17 00:00:00 2001 From: Drew T <50529377+Druthulu@users.noreply.github.com> Date: Thu, 23 Jul 2026 22:38:10 -0600 Subject: [PATCH] fix(workflow): wave_binary drafters MUST copy the winner back to draftDir/.c (a wave's 24 winners were written under scratch names and recovered only from agent transcripts) --- tools/workflows/wave_binary.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/workflows/wave_binary.js b/tools/workflows/wave_binary.js index c3720542b..836005d96 100644 --- a/tools/workflows/wave_binary.js +++ b/tools/workflows/wave_binary.js @@ -60,6 +60,10 @@ PROCESS (you have Bash + Read + Write): 1. Read the target asm and the Ghidra-C (and the matched sibling if one is named above). 2. Write your best C (the function definition + any externs it needs) to: ${draftDir}/${t.name}.c Write ONLY this one draft file. Do NOT edit docs/, src/, config/, or any other tracked file (the orchestrator owns all cookbook/src edits; a drafter appending to the cookbook injects UNVERIFIED idioms). + ⚠️ MANDATORY FINAL STEP — the orchestrator's byte-gate reads ONLY this exact path. If you iterated under + scratch filenames, your LAST action MUST copy the WINNING C back to ${draftDir}/${t.name}.c and verify: + \`cp .c ${draftDir}/${t.name}.c && test -s ${draftDir}/${t.name}.c && grep -q '${t.name}' ${draftDir}/${t.name}.c && echo SAVED\`. + A reported MATCH whose C is not at this path is LOST WORK (a whole wave's winners were nearly lost this way). START the file with TWO comment lines (the gate reads them for the flywheel + backlog): // @class: // @stuck: