SDD ledger — plan: C:/Users/megahefm/Dropbox/Miami/Code/claude/fine_tuned_jev/replication_materials/plans/2026-11-25-box-test-plan.md
plans/2026-11-25-box-test-ledger.md · Status: Closed
| Item | Value |
|---|---|
| Status | Closed |
| Version | 1.0 (2026-11-25) |
| 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-25-box-test-plan.md`. It was copied on 2026-11-25 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-25-box-test-plan.md
Setup: worktree fine_tuned_jev-box, branch m7-box at c21449e; spec plans/2026-10-28-box-agentic-plan.md stage 4 and D335-D337 (no separate design doc: the plan holds the design).
Pre-flight: Task 1 -> Task 2: Task 2 consumes sets.csv, truth.csv, inputs.json of Task 1 (columns as in the Interfaces). OK. Task 2 -> Task 3: Task 3 consumes run_one() and the per-image rds files. OK.
Task 1: Ruling: a held-out class qualifies only if its test split has at least 31 defective images (30 for the test set, one more for a reference); underbody screw has 18. Set before the areas of underbody pipes and underbody screw were computed (engine wiring: median 0.022, from the trial of the mask code) — cost if wrong: the most local class (missing screws, like tank screw) stays out.
Task 1: Ruling: the held-out test images get ids with the folder of test/ (engine_wiring_d_<folder>_<file>): AutoVI reuses file names across folders — cost if wrong: none (the ids only name files).
Task 1: Ruling: boxes are drawn with magick frames (d336_outlines()), not magick::image_draw(): the installed magick stops with 'Graphics API version mismatch'; no package was reinstalled — cost if wrong: none (pictures only).
Task 1: held-out class engine_wiring (median truth area 0.022; underbody_pipes 0.080; underbody_screw 0.005 but 18 images, does not qualify); its 30 defective test images: fastening 11, multiple 10, blue_hoop 4, cardboard 4, obstruction 1.
Task 1: complete (commits c21449e..74fdb17, tests: Rscript -e 's <- read.csv("box/results/d336_test/sets.csv"); t <- read.csv("box/results/d336_test/truth.csv"); j <- jsonlite::read_json("box/results/d336_test/inputs.json"); stopifnot(nrow(s) == 160, all(table(s$dataset) == 40), all(s$id[s$defective] %in% t$id), j$heldout == "engine_wiring", all(file.exists(unlist(purrr::map(j[c("fabrid","tank_screw","pipe_clip","engine_wiring")], "crop_files"))))); cat("inputs OK: 160 test images, 4 datasets\n")' → inputs OK: 160 test images, 4 datasets)
Task 2: complete (commits 74fdb17..95b6308, tests: bash -c 'BOX_D336_SMOKE=1 Rscript box/scripts/d336_02_run.R 2>&1 | tail -1 | grep "0 calls in this run"' → done: 4 images; 0 calls in this run; D336 so far 44 calls, USD 0.0103 )
Task 3: Step 1: review before the run by a fresh reviewer (Fable), no paid call. Critical 1: two test images went to Jev before (FabriD IMG_20260506_025325, sent by the pilot of 2026-10-28; pipe_clip_d_0031, the same bytes as development image 0129). Important: I1 results table read summed columns (point_f1, false_boxes_good wrong); I2 image_draw() fails in the results script; I3 a stop in the middle of an image sends its requests again; I4 the frozen code and the scoring script were not in git.
Task 3: Ruling: drop each test image whose MD5 equals an image sent before (pilot, spike, development, references, smoke); no replacement (D339) — a replacement would add a draw after the sets were seen — cost if wrong: FabriD and pipe clip have 29 defective test images, not 30.
Task 3: fixed C1 — d336_01_inputs.R drops by MD5 and writes dropped.csv; the rerun dropped exactly the 2 images; 158 test images, all checks pass.
Task 3: fixed I1 — n_defects and n_boxes, F1 from recall and precision; the synthetic test of the reviewer now gives the values of d303_measure() for all 7 measures.
Task 3: fixed I2 — the sheets use d336_outlines(); the full results script runs on the synthetic data (4 sheets).
Task 3: fixed I3 — jev_ask() replays a saved HTTP 200 answer by request name (TD, Z); the locate() mock replays by the hash of the request body; an L row with an answer error is saved, only a failed request stops the run. Test: a new smoke run (38 calls), its 12 result files deleted, the rerun sent 0 calls and gave 12 of 12 identical results.
Task 3: fixed I4 — commit cea64b9 has 01, 04, 11, 13, d303_*.R, box/README.md, box/results/sets and the D303 summary tables.
Task 3: fixed minors — verdict also needs the sign of the difference; a strategy with no box gives an empty table (tested); cost in USD per 1,000 images; L response files get a time stamp; notes on the recall limit of engine wiring 'multiple', large engine wiring truth boxes, the FabriD near copy. Not fixed (minor): a missing Box answer in TD would stop on that image (0 of about 4,600 earlier Box answers); a failed check does not name the file.
Task 3: Step 2: the test run: 158 images, L, TD and Z once each; 1,478 calls (L 287, TD 1,033, Z 158), none failed, USD 0.375; no L row with an error.
Task 3: Step 3: the rule of the plan: L does better than Z on tank screw (F1 0.80 against 0.00) and pipe clip (0.32 against 0.04); no clear difference in the six other pairs (L against TD on all four datasets; L against Z on FabriD and engine wiring). L is never clearly worse.
Task 3: Ruling: no second whole-branch review after the run — the review before the run (Step 1) read the whole branch; each of its fixes has a test that failed first (synthetic data of the reviewer, replay test); the run changed no code — cost if wrong: a fault of d336_03_results.R found later changes the table but not the answers, which are saved.
Task 3: complete (commits 95b6308..750eb85, tests: Rscript -e 'm <- read.csv("box/results/d336_test/measures.csv"); b <- read.csv("box/results/d336_test/bootstrap.csv"); stopifnot(nrow(m) == 12, nrow(b) == 8, sum(m$calls) == 1478, all(m$failed == 0)); cat("measures 12 rows, bootstrap 8 rows, 1478 calls, 0 failed\n")' → measures 12 rows, bootstrap 8 rows, 1478 calls, 0 failed)