SDD ledger — plan: C:/Users/megahefm/Dropbox/Miami/Code/claude/fine_tuned_jev/replication_materials/plans/2026-11-26-box-pixel-final-plan.md
plans/2026-11-26-box-pixel-final-ledger.md · Status: Closed
| Item | Value |
|---|---|
| Status | Closed |
| Version | 1.0 (2026-11-26) |
| Written by | Claude Code |
This ledger is a copy of the working ledger for the plan `C:/Users/megahefm/Dropbox/Miami/Code/claude/fine_tuned_jev/replication_materials/plans/2026-11-26-box-pixel-final-plan.md`. It was copied on 2026-11-26 at the end of the work. Internal agent IDs are removed.
# SDD ledger — plan: C:/Users/megahefm/Dropbox/Miami/Code/claude/fine_tuned_jev/replication_materials/plans/2026-11-26-box-pixel-final-plan.md
Spec: replication_materials/plans/2026-11-25-box-pixel-design.md (sections B, D, E), D346, and the Ruling and carried lines of plans/2026-11-25-box-pixel-ledger.md; frozen recipe box/results/px/frozen.json (m7-box).
Start: m7-box at 6d5a320 (2026-11-26). fmm gave the go: "Go with your recommendation" (D346).
Pre-flight: T1 -> T2: check_decisions_pin() (T2 Step 5 calls it first) — consistent.
Pre-flight: T1 -> T3: gate_g(), dino_items(), dino_maps() (T3 uses the Stage 5 defaults of dino_maps()) — consistent.
Pre-flight: T2 -> T3: sets.csv with the columns of pool_sets() (method_row() reads s$set), gate_refs.csv, dino_banks.csv, zcal_images.csv, inputs.json — consistent.
Pre-flight: T3 -> T4: px_21 unchanged; run_guard() compares prereg code_commit with HEAD on box/R, box/scripts, box/python, so T4 commits only results — consistent.
Pre-flight: T1 -> T3 (frozen.json): T1 rewrites frozen.json on its code commit; prereg.json records it as frozen_commit — consistent.
Task 1: dispatched (implementer opus, BASE 6d5a320)
Task 1: implementer DONE_WITH_CONCERNS (ecf13db code, a2c6c59 results; suite 724/724; recipe check 10 checks 223/223; DINO rebuild 12/12 identical). Concerns are observations (extra dino_run() holder of the DINO settings, two guards, 7 boxes in the locate_crop test, _G05 text, stale tracked logs); sent to review.
Task 1: review dispatched (sonnet, package review-6d5a320..a2c6c59.diff)
Task 1: review Approved, spec compliant; ⚠️ items resolved by the controller (frozen.json diff = commit and texts only; px_11 parses; TDD evidence in the report: FAIL 9 -> PASS 102; DINO 12/12 identical covers the bank rule of px_19).
Task 1: minor (deferred): dino_maps() pin check greps an exact text of boxseg.py (fails closed); vote_map() complete.cases() needs the 4 coordinate columns; px_19 does not count vote_map() warnings (dev had 0); the tracked logs box/results/px/recipe_check_run.log and dev_results_run.log are stale (new logs in the git-ignored workspace); the _G05 map text still reads ". Then".
Task 1: complete (commits 6d5a320..a2c6c59, review clean)
Task 2: dispatched (implementer opus, BASE a2c6c59)
Task 2: Ruling: the dHash rule (64-bit dHash distance 4 or less, design B and D344) applies to FabriD only; AutoVI images are dropped on the same file MD5 or the same decoded-pixel MD5 (pixel_md5(): MD5 of the RGB pixel data at full size), to a sent image and inside the set — a controller check before dispatch (80 random test images of each class, seed 1) found that 64-bit dHash calls different photos of the fixed AutoVI cameras near twins: images with a near twin of other bytes: tank_screw 61/80, underbody_pipes 55/80, underbody_screw 48/80, pipe_clip 38/80, engine_wiring 7/80; FabriD 0 of 3,160 pairs (median distance 30); so the rule as written would drop most of the AutoVI pool, unevenly; AutoVI ships lossless PNGs, so a copy of a sent image has the same file or the same pixels; the run writes how many images the dHash rule would have dropped (dhash_diagnostic.csv) — cost if wrong: an AutoVI test image that is a lossy or resized copy of a sent image stays in the test (not seen in AutoVI).
Task 2: Ruling: FabriD ids are fabrid_<d|g>_<stem> (FabriD has no type folder); AutoVI ids <dataset>_<d|g>_<type>_<stem> as d336_01_inputs.R:171 — cost if wrong: none (names only).
Task 2: implementer DONE_WITH_CONCERNS (c5e991c; suite 760/760; 546 images drawn: fabrid 60+40, tank_screw 49+40, pipe_clip 60+40, engine_wiring 60+40, underbody_pipes 60+40, underbody_screw 17+40; drops: 276 MD5, 67 FabriD 30 s, 6 pipe_clip twins, 3 reference sources). Concerns carried to Task 3: z-cal maps would collide with test/good maps of the same stem under one root; inputs.json CRLF in the working copy, LF in git (prereg hashes); 63 eligible FabriD good images; two final FabriD photos may be within 30 s of each other. Deviation: 01_scan_spike.R parsed without its 3 key lines (rebuild equals the D336 records); one name-check hit listed, not stopped (pipe_clip_g_good_0055 vs spike pipe_clip_0055 = unclipped/0055).
Task 2: review dispatched (opus; code-only package review-a2c6c59..c5e991c-code.diff; result CSVs read from the tree)
Task 3: Ruling (from Task 2 concern): the z-calibration maps go to their own root C:/Users/megahefm/box_data/maps_final_zcal, because map_file() names a train/good map <dataset>/test/good/<stem>.png and AutoVI repeats stems across folders — cost if wrong: none.
Task 3: Ruling (from Task 2 concern): prereg.json records the git blob id (git rev-parse <commit>:<path>) of sets.csv, inputs.json, gate_refs.csv, dino_banks.csv and zcal_images.csv, not the MD5 of the working copy, because core.autocrlf gives CRLF in the working copy and LF in git — cost if wrong: none.
Task 2: Ruling (concern): two final FabriD photos within 30 s of each other stay in the set; the design applies the 30-s rule to sent images only, and the set is drawn; no rule changes after the draw — cost if wrong: two shots of one scene count as two images (slightly fewer independent images in FabriD).
Task 2: review Approved, spec compliant (opus); the reviewer reproduced the sent vector, the draw (seed 2041), the banks and the z-calibration images from the committed files; 0 final images match a sent or development MD5.
Task 2: Ruling: review Important 1 (plan gap: the token pilot of 2026-10-28, purpose "box pilot tokens", sent downloads/autovi_carousel/tank_screw_good_0002.png, a 1000 x 750 image from the AutoVI web carousel, which no sent list holds; the file is deleted, so no MD5, pixel or dHash check is possible) — accept the residual risk and record it: the name points to a good image 0002; the only final tank_screw image with the stem 0002 is test/missing/0002 (defective); the pilot measured input tokens only and no answer was looked at; Jev keeps no memory between calls, so the risk is to our selection, and there was none — cost if wrong: one tank_screw good image of 40 may be a picture that went to Jev once for a token count.
Task 2: minor (deferred): the name check does not search the old-set id form <ds>_<d|g>_<stem> (0 hits checked by the reviewer); the name-clash exception checks spike$images only (topdown holds the same 20 images); inputs.json holds decisions at the top level, beside the dataset keys (Task 3 must skip it); near_fd computes dHash over all candidates though only FabriD uses it, and the 30-s gap is computed twice; autovi_root/autovi_test_masks/tile() copied from d336 (the engine_wiring identical() test guards the refs path); spike_env() doc says the functions land in its environment, but source() lines put them in the global one and it creates spike_refs/per_image; the draw_final test does not pin the algorithm (the reviewer reproduced it); px_20 is 440 lines (name check and outline() could move to box/R).
Task 2: complete (commits a2c6c59..c5e991c, review clean after 1 ruling)
Task 3: dispatched (implementer opus, BASE c5e991c)
Task 3: implementer DONE_WITH_CONCERNS (b34c191 code and tests, b0d6da1 prereg.json, replay_check.csv, dry_run/; suite 1014/1014; replay check 0 calls, L_box, TTA_vote_G1 and FUSE identical 158/158; dry run = dev_keep_by_dataset.csv within 2.8e-17). Gate replays live in box/results/px/jev/gate/replay. Six gaps decided by the implementer, sent to review with it: unreadable HTTP 200 answer = failure; outage counts only requests sent in this run; the USD 0.01 check includes the gate estimate; DINO box threshold 0.15186 = dev pool F1-max of its 223 maps; a failed z-cal J map counts as 0 in the new-class moments; the TTA is sent when step 1 answered, also after a failed step 2.
Task 3: review dispatched (opus; package review-c5e991c..b0d6da1-code.diff)
Task 3: review Needs fixes (opus): spec ❌ prereg per-dataset good = 0 (final.R:730); Important 1 the same; Important 2 run_locate() saves an unreadable or missing step-2 answer (or a 200 with no answers list in the TTA) as "no box" instead of a failure, and drops the D336 checks (row error, is.null(t2) == is.na(.box_left)); Important 3 with_retries() counts any error (local I/O, code) as a failed API attempt. Caps, guard, outage rule, analysis, replay check verified correct.
Task 3: minor (deferred): Ctrl-C during a locate send hangs inside req_perform_parallel() until a second Ctrl-C (operator note for Task 4); jev_ask() second send after 429/503 is not cap-checked (BOX_PX_MAX_CALLS=n can send n+1; the global margin holds); the DINO step was never run on the final items and blocks done.json if it fails (Task 4 preflight with no call); final_context() doc says the defaults send nothing; the guard does not pin prereg.json, frozen.json, fusion/z_constants.csv or the gate reference images (thresholds and z constants are asserted against prereg/frozen); failure-record replay logic written twice (final.R:384-389, 481-486); final.R about 750 lines mixing draw, run, rows, analysis, prereg.
Task 3: Ruling: implementer gap 5 (a failed z-calibration J map counts as 0 in the new-class moments) stands — rule 7 gives a failed method a map of 0, and the z constants describe the maps as the method makes them; FUSE is descriptive only — cost if wrong: a slightly different FUSE scale on a new class when a z-calibration request fails.
Task 3: Ruling: implementer gaps 1-4 and 6 stand (unreadable 200 = failure, completed by Important 2; outage counts requests sent in this run; the USD 0.01 check includes the gate; DINO box threshold 0.15186 from the dev maps, descriptive; TTA sent after a failed step 2, as the brief says) — cost if wrong: none to the verdict.
Task 3: fix round 1/5 dispatched (resume implementer; Important 1-3)
Task 3: fix round 1 implemented (4e4c641 code and tests, ffed783 prereg.json on code 4e4c641, replay_check.csv, dry_run/; test-final 359, suite 1083; replay check 158/158 with 0 calls; dry run = dev_keep within 2.8e-17); scoped re-review dispatched (opus, review-b0d6da1..ffed783.diff)
Task 3: fix round 1/5 (3 addressed, 0 open — prereg good counts; unreadable step-2/TTA answers fail; only API errors are attempts; commits b0d6da1..ffed783); re-review (opus): all addressed, no new Critical/Important; prereg code_commit 4e4c641 = code at ffed783.
Task 3: minor (deferred): the interrupt pattern "did not finish|was not sent|Interrupted" is not anchored, so an unreadable 200 body with that text would stop the run on its saved answer (final.R:523/551); read_tta() checks only that answers is a list, so a malformed element throws in tta_answers() and stops the run on its saved answer (final.R:590-593); a 200 body that breaks the logger stops the run; an unparsable step-2 200 is left out of answers_cost() (calls one too few, no 30,000-token stand-in in the cost check before TTA); crop_to_image() defined in box/R/bank.R:42 and box/R/tta.R:46 (source order decides; the replay check passes with the current order).
Task 3: Ruling: the two stop-on-a-saved-answer minors are not fixed before the run (a fix needs a new code commit, a new prereg and a review; no such answer occurred in the 223 development TTA answers or the D336 run); instead Task 4 stops and reports if the run stops twice on the same image from a saved answer, and no file under px_final is deleted by hand — cost if wrong: Task 4 pauses for a ruling.
Task 3: complete (commits c5e991c..ffed783, review clean after 1 fix round; code 4e4c641, prereg ffed783)
Task 4: dispatched (implementer opus, BASE ffed783; pre-registration recorded on main 7a93546)
Task 4: implementer DONE (8a87f52 z-calibration 128 calls USD 0.0608; 91140e6 the one-time run 2,030 calls USD 1.0579; total box px final 2,158 calls USD 1.1187, all HTTP 200 — checked by the controller in the call log; no failed request or method; no outage; done.json written; code still 4e4c641 — checked).
Task 4: review dispatched (sonnet; run package review-ffed783..91140e6-run.txt)
Task 4: review Approved (sonnet): started.json 16:31:51Z before the first test call 16:31:53Z; 2,158 calls USD 1.118724 all 200 in 16:28:53Z-16:46:01Z; rows 546 x 6 methods, 0 failed; TTA_vote_G1 USD per image 0.00126-0.00251; z constants finite from the 20 images, no fallback; no key pattern in results or logs; code = 4e4c641. ⚠️ items resolved by the controller: the DINO step ran on all 546 images in the run (rows present), so the preflight is moot; run_guard() refusal is covered by its unit tests and done.json exists; the call log is committed on main (19ebe2ec).
Task 4: minor (deferred): the report does not say that the 154 locate() "none" answers (no step 2) are by design.
Task 4: complete (commits ffed783..91140e6, review clean)
Task 5: Ruling: the controller runs px_22_final_results.R (one pre-written, pre-registered command; no code) and writes the records on main (session ID, record rules), and the final whole-branch review checks the verdict against the rule — cost if wrong: none (the script is the pre-registered code; a fresh reviewer still checks it).
Task 5: Step 1 done (px_22 run by the controller, exit 0; verdict TRUE: better on 5/5 datasets, Holm p 0.002 each; no image-AUROC loss, tank_screw -0.045 Holm p 0.26; results committed 87e410b9)
Final: whole-branch review dispatched (opus; range 6d5a320..87e410b, code package review-6d5a320..87e410b-final-code.diff)
Final: whole-branch review (opus) — With fixes, records only: the verdict recomputed independently (same RNG: p and Holm exact, estimates within 1.7e-16; independent stream: verdict TRUE); maps rebuilt from saved answers on 60 images with 0 difference; the run kept to the pre-registration (prereg 16:19:07Z before the first final call 16:28:53Z; code = 4e4c641; input blobs equal).
Final: Ruling: Important 1 (the AutoVI near-twin rule differs from D344 and only the ledger holds it) — record it as decision D347 (How measurement) and state it in H18 and the report, with the diagnostic (final images within dHash 4 of a sent image: tank_screw 76/89, pipe_clip 57/100, engine_wiring 14/100, underbody_screw 3/57); the token-pilot residual risk goes in the process row and the report — cost if wrong: none (records).
Final: Ruling: Important 2 (false_per_good counts only boxes with score >= 0.5, and vote-map boxes stay below 0.5) — a post hoc count of all boxes on good images at the frozen thresholds is committed (88d4d8d2, post_hoc_false_boxes.csv): TTA_vote_G1 0.89 boxes per good image (70% of good images have one) against L_box 0.53 (53%), family of 5; H18 and the report quote these and never "no false box"; the development claim "no false box on defect-free images" made in the chat report of the development stages was wrong for the same reason and is corrected in the report — cost if wrong: none (descriptive).
Final: Ruling: Important 3 (the tank_screw image-AUROC result stands on ties: 0 of 5,000 resamples favour TTA_vote_G1, 162 tie at AUROC 1.0, so p = 2 x 163/5001 = 0.065, Holm 0.26; with strict counts the verdict would be FALSE) — disclosed in H18 and the report; the rule is not changed — cost if wrong: none (disclosure).
Final: Ruling: Important 4 (crop_to_image() in box/R/bank.R:42-46 and box/R/tta.R:46-56 differ; only the tta.R copy mirrors a flipped crop; this run sourced tta.R only) — no code change on m7-box after the pre-registration; it goes to the open items of the roadmap, to fix before box/R is reused in decisions 0.2.0 — cost if wrong: a port that sources bank.R last would place the boxes of the flipped crop wrongly.
Final: Ruling: no fix wave — every Critical/Important finding is a record or a disclosure, or is deferred by the ruling above; a code change now would make HEAD differ from the pre-registered code 4e4c641 — cost if wrong: none.
Final: minor (deferred): px_22 in non-dry mode checks only done.json, not the code commit, and final_summary.md does not name the code commit; final_context() doc; method_row() lazy default image_score = max(map) after rounding (fragile for reuse); one("L_box", ..., 0) passes the score by position; absolute paths in pool.R:250, final.R:194, px_final_common.R, px_22:209; the jev_ask() resend after 429/503 is not cap-checked (fix before typesafe.R is reused); final.R 847 lines (split before reuse); copies from d336 (autovi_root, autovi_test_masks, tile()); spike_env() doc. The reviewer triaged every earlier deferred minor as "can stay" or "moot" for the merge.
Final: review complete; plan Tasks 1 to 5 done (Task 5 records follow on main).
Task 5: records on main: decision D347, result H18, process row, this ledger copy, roadmap cells and one open item; report to fmm; push and merge of m7-box wait for fmm.
Task 5: complete (commits 87e410b..88d4d8d2 on m7-box; records on main)
Ruling: the SDD workspace of this plan stays until m7-box is merged, as for the development plan, because finishing-a-development-branch waits for fmm — cost if wrong: none (git-ignored scratch).