SecondPass is an offline photo workbench for testing a second look at visible loose metal in shredded electronics. It suggests where to look first; the sorter decides what to pick.
Open site/index.html in Chromium, Chrome, or Brave. No sign-in or network is needed. Use Larger photos if you want a closer look at the untimed example, then choose a photo. Start the three 20-second rounds directly or practice on three new photos without a timer. Practice checks what counts as loose metal and shows how a suggestion differs from a selection. It uses different photos from the timed demo and the formal photo pilot. After all three timed rounds, you can review the photos you picked, the target photos you missed, and the other pieces you selected. Use Larger review photos for a bigger view of that round without changing any scores. No labels are shown during timed rounds. Choose Inspect the benchmark to view the separate research replay. The visitor trays are for demonstration; a user's three trays differ and their scores do not establish a ranking advantage.
Build the same HTML with python build.py. Start a local server with python -m http.server --directory site 8080 if you prefer HTTP.
Keep the root .gitattributes when publishing this source. It preserves LF line endings on Windows Git checkouts so the checked evidence and rebuilt page retain their recorded checksums.
Choose Audit your own lot to log a second-pass trial on your material. Record the initial discard decision before the second pass, then add the final outcome and independently checked material type for each group. The result compares verified target mass discarded before and after in the same logged lot. Unknown material and unweighed rows block the saving estimate; there is no percentage if the first pass discarded zero verified target mass. The worked example is illustrative.
For an existing weigh sheet, choose Import CSV draft. Use a UTF-8 CSV with exactly two columns in this order: label,grams (e.g. "Wire, tray 1",12.5). Leave grams blank if not weighed. If the app rejects the encoding, export the sheet again as UTF-8 rather than changing the labels by hand. Up to 1,000 rows are imported as an unlocked draft; material and decisions stay unchecked. No partial import is applied if a row is invalid. Save a JSON audit to reopen the draft later.
Once the lot is named, each used row has a distinct label, and its initial decision is entered, optionally choose Lock first-pass plan. Repeated spacing or invisible separators copied from a spreadsheet do not make two group labels distinct. Set these before recording final outcomes to avoid unlocking the plan just to name the lot or distinguish two groups. This fixes the lot name, included pieces, and initial decisions while leaving masses, material checks, and final outcomes editable. Revise first-pass plan unlocks the ledger and marks the baseline as revised, including after reopening an export. The lock prevents edits in the workbench, not retrospective entries or changes to a local file outside the app. Older files without a recorded plan open unlocked. Previously saved locked files still open as saved; revise the plan to correct a missing lot name or repeated group label in one of those earlier locks.
Download the audit as JSON to save or reopen it locally. Once checks are complete and the lot and every used group are named without duplicate group labels, Download readable report saves a separate offline HTML snapshot of the lot totals, logged rows, and local lock/revision notes. Open it in a browser to read or print. It does not save the editable JSON file or independently verify diversion. Jump to first item to fix takes you to the first missing check or report prerequisite without changing your work. If a locked plan blocks an edit, it takes you to the revision control without unlocking the plan. Nothing is uploaded or stored automatically. Unsaved audit inputs prompt before replacement, and the app requests a leave warning when supported by the browser. Browser downloads can be canceled or fail. Check for the new JSON file before confirming it was saved. If you edit after requesting the download, save again. Reopening the exact JSON also clears the warning. A warning is not a backup. The ledger does not assess purity or buyer acceptance. Run the audit tests with node --test tests/*.test.cjs.
The benchmark gives each method the same 20% inspection budget, uses real source-fragment weights, and assumes perfect review of the shortlisted pieces. A model trained on the opposite lot generated the predictions. Against the stronger weight-aware ranking, area cues left 8.0% less visual-target mass on phones and 1.1% more on appliances. This is neither a human trial nor observed waste diverted. Some boards and components contain metal but are outside this visual target label.
The checked benchmark is in benchmark/results.json; see benchmark/README.md for reproduction. The public demo does not contain the future human pilot's trays or any participant data.
Photo and data provenance and license. The photo/data license is separate from any license applied to the SecondPass source code.
The experimental pane does not change the original product cues or use the own-lot audit. Against the same weight-aware ranking and a fixed 20% shortlist in each lot (440 appliance and 620 phone slots), hybrid-area left 34.2083 g versus 42.9961 g of target mass pooled (20.4% less); the four-head blend left 27.7774 g (35.4% less). The four-head method averages rank percentiles from four regressors trained using the opposite lot: raw, square-root, moderate-mass-weighted, and log target-mass heads. Both original lots had already been examined during development. These are exploratory shortlist results assuming perfect review, not independent validation or matched-time operator or plant results.
The four-head stress check replaces its one or two heaviest additional target picks with the next shortlist ranks. The earlier hybrid check excludes its largest phone addition without backfill, so the stress checks are not interchangeable. Source aggregates are in benchmark/hybrid-replay.json and benchmark/robust-ensemble-results.json; the latter is the unmodified research output (SHA-256 15cdc83e3c4673616c30f5f83f404910a64ccf73d1285308c6c96dcda63ba05f). build.py reconciles both replays against the original baseline, per-lot budget, and available sensitivity arithmetic before embedding the display numbers.
The expandable “What if a sorter misses a piece?” control switches between the same inspection counts after zero, one, or two simulated misses. The expanded missed-pick details show absolute target grams left after zero, one and two misses. Build checks reconcile all three with the exact frozen arithmetic audit, the reported percentages, and the unchanged per-lot budgets. This is the same familiar replay, not a fresh tray or operator measurement.
The missing-photo example uses benchmark/capture-omission-display.json, a
compact extract of the known-lot stress replay, not an additional dataset.
It omits the largest 1% by projected area from both methods before ranking
and leaves all original material in the outcome denominator. The builder
checks the original and stress inspection counts and reconciles displayed
percentages to paired grams. It does not change the main score or the
timed study. This is not a measured capture failure rate.
Use the optional Review supporting files shortcut near the start of Audit your own lot to jump past the ledger to the file checks.
The digital capture, repeat-weighing, and multi-tray viewers under Audit
your own lot read local files and do not change this audit. The capture
viewer uses its separately saved capture pin. For the two report viewers,
save the SHA-256 of the entire report file with the record; for example,
run sha256sum report.json where the report is produced and retain that
value separately. A matching digest checks byte identity, not custody,
collection chronology, instrument accuracy, or field performance.
The multi-tray viewer accepts the current checked cohort report schema. It separately shows the worst target remainder under up to two misses across the batch and the number of trays meeting every per-tray check. It never turns the pooled result into a per-tray pass. Generated reports remain marked as generated. If browser file hashing is unavailable, read the original JSON locally instead of weakening the check.
The repeat-photo viewer accepts both single-tray and cross-tray reports with their separately recorded report-file digest. It shows counts but keeps tray and photo IDs in the original report. Similarity only suggests closer review; it does not establish physical reuse, tray independence, or the completeness of the photo record. No selection or measurement changes.