Skip to content

Argon-teacher Stage 0: leak gate passes, filter gates P, Y and S fail (stop) - #294

Merged
jonfroehlich merged 8 commits into
mainfrom
analysis/argon-teacher-s0
Nov 25, 2026
Merged

jonfroehlich merged 8 commits into
mainfrom
analysis/argon-teacher-s0

Conversation

@jonfroehlich

@jonfroehlich jonfroehlich commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Stage 0 of the "Argon as a teacher for RampNet's open-rig misses" plan. One RampNet forward pass per benchmark pano (469 panos, local RTX 3070, 565 s, ledger row argon-teacher-s0:extract-heatmaps); everything else CPU. No model API call, no spend, Lyon not read.

Result: killed at $0

Gate Bar (go / kill) Measured Verdict
B, leak H2 ≤ 5% H2 0.6% (7 / 1,147) go
P, precision ≥ 0.80 / < 0.65 0.41 (7 TP / 10 FP), held out kill
Y, yield ≥ 30 / < 20 of 65 reached blind ramps 8 kill
S, strict-silent ≥ 10 and ≥ 25% / fewer 8 of 42 (19%) kill

At R, the plan's match radius, this is not a near miss: no candidate filter reaches even the 0.65 kill bar in sample (best of 80, scored on all four splits at once, is 0.64). At 2R (a sensitivity read, committed as filters_at_2R, not a gate) the held-out filter keeps 45 TP / 38 FP (0.54), 38 blind ramps and 28 of 42 strict-silent ones, so Y and S would read go and the stop rests on gate P alone. Stage 1 and Stage 2 do not start.

Full write-up: docs/argon_teacher.md. Reproduce: python scripts/analysis/argon_teacher_s0.py (registered in check_all.py); figures via argon_teacher_s0.py figures.

🤖 Generated with Claude Code — Opus 5.5, claude-opus-5-5; review-1 fixes by claude-opus-5-5

…fails P, Y and S

Runs Stage 0 of the argon-teacher-2026-11-15 plan on the four open-rig splits,
from the Argon, YOLO and op_cache outputs already committed.

Gate B (background leak): H2 leaves 7 of 1,147 sure ramps in background (0.6%,
with budapest_district5 as an upper bound, since it has no labeler run with
stored peaks); H alone is 3.0%. Go.

Gates P / Y / S: of 80 candidate filters (features 1-5 alone and in AND-pairs,
with and without the snap), three of four leave-one-split-out folds find none
at precision >= 0.80; the bayonne fold's choice scores 7 TP / 10 FP (0.41).
8 of 65 reached blind ramps kept, 8 of 42 strict-silent. All three at kill;
no candidate reaches 0.65 even in sample.

Two derived inputs are committed: neighbours.json (projections from the
labeler runs, with input hashes) and heatmap_features.json (one local RampNet
pass over the 469 benchmark panos, ~10 min on the 3070; reproduces all 1,959
op_cache peaks). `run` and `--check` read committed files only; check_all
entry argon_teacher_s0. Amendments are listed in docs/argon_teacher.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jonfroehlich
jonfroehlich changed the base branch from cascade-argon-b0 to main November 17, 2026 14:01

@jonfroehlich jonfroehlich left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review 1 of PR #294 (head 9d039fce)

Verdict: the stop decision is correct and every headline number reproduces. Nothing below changes a gate verdict. There are no blocking code defects; findings 1 to 3 should be fixed before merge because they are repo rules or change how the result should be described.

Interpreter for everything below: D:\Git\RampNet\.venv\Scripts\python.exe (Python 3.12, Windows), run in a worktree detached at 9d039fce.

What I checked and what held

Claim Result
Gate B, H2 0.6% (7 / 1,147) Reproduced with my own distance and leak code: 0 + 0 + 2 + 5. H 34, H + far band 17, H2 on the three splits with neighbour data 2 / 847.
469 panos, 1,147 GT, 196 blind, 65 reached, 105 strict-silent, 42 reached Reproduced (per split 36 / 26 / 76 / 58 blind; 14 / 6 / 32 / 13 reached).
Box funnel 915 / 236 / 10 / 51 / 175 Reproduced.
80 candidates on four splits I rebuilt the features from the two derived inputs and scored all 320 cells with my own greedy matcher: 0 cells differ from results.json.
Gate P 0.41 (7 TP / 10 FP), Y 8 of 65, S 8 of 42 (19%) Reproduced. Only the bayonne fold has an eligible candidate.
Best of 80 in sample is 0.64 Reproduced: f2<=3m & f4_yolo, 25 / 14, 23 blind kept.
OR-pair read 0.48 (37 / 40), amendment 5 Reproduced independently (f3>=q75 | f4_yolo).
Gates as coded match the plan Yes, against my local copy of the plan: bars 0.80 / 0.60 with 10+ boxes / 0.65, 30 / 20, 10 and 25%, 5% leak, R and 2R definitions, the rig mask (49°, same as the labeler's NADIR_MASK_DEG), the 0.30-within-2R drop.
Held out means held out Yes. Selection reads the three training splits only. The only quantities taken over all four splits are the feature 3 and 5 thresholds (label-free, amendment 4); recomputing them per fold gives the same choice and the same 7 / 10.
--check, the PR's tests, check_all.py --ci at the head same; 17 passed (29 with tests/test_docs_index.py); 26 passed, 0 failed, 10 skipped.
Trial merge of origin/main (2a52673c), local only The only conflict is the docs/replication.md table (both sides add or edit a row next to benchmark_power_135; keep this PR's argon_teacher_s0 row and main's version of the benchmark_power_135 row). On the merged tree: --check same; check_all.py --ci 42 passed, 0 failed, 12 skipped; pytest -q 3951 passed, 2 failed, 10 skipped. The two failures (test_mix_training_dirs.py::test_mix_has_every_sparse_pano_and_a_seeded_gsv_sample, test_stage1_bearing_residual.py::test_great_circle_matches_the_geodesic_used_by_stage_1) also fail on origin/main on this machine and are not findings.
heatmap_features.json re-runs I re-ran extract-heatmaps --panos-root D:/Git/RampNet/benchmark into a scratch directory on the same RTX 3070: byte-identical to the committed file (sha256 7676c6a739f9dcdf…), 1,959 / 1,959 op_cache peaks, 576 s wall with CPU checks running alongside.
Other selection choices Eligibility bar at 0.75 / 0.70 / 0.65 / 0.60: held-out precision 0.41 / 0.35 / 0.40 / 0.43. Selecting on precision instead of blind ramps kept: 6 / 21 (0.22). All kill.
Docs index and registry docs/README.md has the row, tests/test_docs_index.py passes, the check is in check_all.py (in --ci, 0.8 s) and in docs/replication.md.

Findings

1. The doc's "not a near miss" holds at R only, and the doc does not give the 2R numbers (should-fix).
The Caveats section says a 2R match "would raise every precision here" and stops. With the match radius at 2R, two of the three filter gates flip and the in-sample statement reverses:

  • Leave-one-split-out at 2R: every fold has an eligible candidate; pooled held-out 45 TP / 38 FP (0.54), 38 blind ramps kept, 28 of 42 strict-silent (67%). Y reads go (38 ≥ 30) and S reads go. P still reads kill (0.54 < 0.65; bayonne 26 / 25, budapest_district5 8 / 11).
  • In sample at 2R: 8 of the 80 candidates are at ≥ 0.80, and one clears the P and Y go bars together (f2<=5m & f4_yolo, 37 / 7 = 0.84, 31 blind kept). The best is 0.875.

So the stop rests on gate P alone once localisation is loosened, and what survives is "precision does not carry from one split to the next", not "no filter separates the boxes". The sentences "The filter result is not a near miss" and "No candidate reaches even the 0.65 kill bar in sample", the PR body's "Not a near miss", and test_no_candidate_reaches_the_kill_bar_in_sample are all true at R and should say so, with the 2R read next to them. R is the plan's radius and the right one for a point label, so the verdict does not change.

Reproduce: in score_candidate, change score_pano(boxes, gt, R_SQ) to R2_SQ and if near(g[0], g[1], boxes, R_SQ): to R2_SQ, then python scripts/analysis/argon_teacher_s0.py run. A committed --match-radius read (or a filters_at_2R key, like filters_without_f2) would put it under --check.

2. The GPU pass has no ledger row (should-fix, repo rule).
The repo's cost rule has free models record time in analysis_out/usage_log.jsonl with paid: false, and other analysis scripts do (for example the input_res_sweep_25.py rows). This PR does not touch the ledger, extract_heatmaps does not time itself, and heatmap_features.json carries no elapsed time, so "10 minutes" exists only in prose. Reproduce: git diff origin/main...9d039fce --stat -- analysis_out/usage_log.jsonl is empty, and grep -c argon_teacher analysis_out/usage_log.jsonl is 0. My re-run measured 576 s for 469 panos (1.23 s per pano, load included, desktop under load), which matches the claim; the fix is a timed re-run that writes the row.

3. The PR body needs two edits (should-fix, before merge).

  • Delete the last sentence of the "Not a near miss" paragraph (the one beginning "Because nothing ships"). The repo's rule for public text is to state the practical constraint only. The committed doc, the commit message and the code are clean; I grepped the diff.
  • "Stacked on #289 (cascade-argon-b0). Retarget to main after #289 merges." is stale: #289 merged on 2026-11-17 and the base is already main. The doc's Replication section has the same stale wording ("on analysis/argon-teacher-s0 (based on cascade-argon-b0, b3868c8)").
    No session links anywhere.

4. The plan the doc executes is not reachable from a clone (should-fix).
docs/argon_teacher.md cites argon-teacher-2026-11-15 as the source of every bar and rule, and the eleven amendments are written against its wording. There is no such file in the repo and no issue or PR that holds it. I could compare code to plan only because a copy exists on this machine. Commit the Stage 0 part of the plan (its definitions line and section 3: the three leak rules, gate B, the six features, the candidate rule, the P / Y / S table) as an appendix or under docs/, Stage 0 text only. Two wording points while there: the doc calls the plan "pre-registered", but the plan's own header reads "proposed", and the doc itself says the bars were set after the per-split precisions were published; "bars fixed in the plan before this script was written" is what the record supports. The docs/README.md row repeats "pre-registered".

5. Y and S have ceilings below their denominators, and the doc does not say so (should-fix).
"Reached" counts any zero-shot box within R of a blind ramp (65; 42 strict-silent). The filter only ever sees the 175 Argon-only boxes left after the rig mask and the 0.30-within-2R drop. With no filter at all those 175 boxes keep 48 blind ramps and 38 strict-silent ones (51 TP / 119 FP, 0.30). So gate Y's go bar is 30 of an attainable 48, not 30 of 65, and S's ceiling is 38 of 42. The 17 other reached ramps are reached only by boxes that the plan's own definitions remove. The verdict at 8 is unaffected. Reproduce: score a candidate whose predicate is always true over results.json's features rows.

6. Two inputs to the derived files are not retrievable, and the doc does not say where they are or what would unblock them (should-fix).

  • neighbours.json is built from runs/laurens/results.jsonl, runs/bayonne/results.jsonl and runs/juneau/results.jsonl in the labeler repo. All three are git-ignored there (runs/**), the juneau one is read from a local worktree (sal-juneau), and the re-fused site files were written to scratch. The doc gives hashes, which is good, but a clone cannot rebuild the file. Say that next to the Replication commands and name what would unblock it (publishing the three run files and the three site files, or the archive they live in).
  • extract-heatmaps needs the benchmark panos, and docs/replication.md records that laurens_mapillary, bayonne and juneau are not uploaded to rampnet-benchmark yet; only budapest_district5 is. The doc says "<dir holding <split>/panos/>" without naming a source.
  • Worth stating in the doc, because it limits the damage: no verdict depends on neighbours.json. H alone (3.0%) and H + far band (1.5%) pass gate B's 5% without it, and the doc already shows all three filter gates at kill with feature 2 removed.
  • Nit, same area: heatmap_features.json records "model": "projectsidewalk/rampnet-model" with no revision. The 1,959 / 1,959 peak match ties it to the op_cache's checkpoint in practice.

7. A doc number comes from a read that was not committed (should-fix).
Amendment 5: "The OR reading was checked once, by hand, in sample on all four splits (not committed)". The number is right (I get 37 / 40), but the repo rule is that a number in a doc comes from a committed script. It is a few lines in score_candidate (an any in place of all) and a key in results.json.

8. The tests do not exercise the leave-one-split-out selection, the feature table or the counts (should-fix).
The test docstring lists "the LOSO choice" among the hand-worked cases, but no test calls filters(), features() or base_counts(); the three "committed results" tests read results.json and do not rebuild it. I ran 37 single-change mutants against tests/test_argon_teacher_s0.py and --check:

Mutant group Survive pytest Survive --check
Gate bars (11): P_KILL, P_GO, P_SPLIT_N, Y_GO, Y_KILL, S_GO_N, S_GO_FRAC, S "and" to "or", LEAK_BAR, SELECT_PRECISION 3: P_GO 0.80 → 0.85, S_GO_N 10 → 8, SELECT_PRECISION 0.80 → 0.75 1: S "and" to "or" (same output on this data; pytest catches it)
Held-out assignment (5): training set includes the held-out split; choice scored on a training split; objective is precision; two tie-break reversals all 5 2: the two tie-break reversals
Leak definition (9): disc R instead of 2R, peak floor, YOLO floor, far band 6° → 10°, far-band ramps out of the denominator, no Argon discs, no neighbour discs, E matched on sequence only, gate B reading only the splits with data 2: far band 6° → 10°, far-band ramps out of the denominator 2: E on sequence only, gate B on the splits with data (pytest catches both)
Yield and strict-silent (6): "reached" at 2R, "blind" at 2R, every kept ramp counted as blind, kept box within 2R, S over all strict-silent ramps, strict-silent at R 3: "reached" at 2R, "blind" at 2R, every kept ramp counted as blind 0
Scoring and features (6): scored at 2R, P kill on plain precision, Argon-only at 2R, no rig mask, no 0.30 drop, pairs as OR 4: Argon-only at 2R, no rig mask, no 0.30 drop, pairs as OR 1: P kill on plain precision (pytest catches it)

Seventeen mutants pass pytest. Only the two tie-break reversals pass both, and those are output-neutral here because one fold has eligible candidates. Since --check is in check_all.py --ci, CI does catch the rest, so this is not blocking. The gap is that the held-out logic is protected only by a byte-compare against its own output: a synthetic three-or-four-split case where the in-sample best and the held-out choice differ, plus one for base_counts and the feature drops, would close it.

9. Nits.

  • H2 counts the 195 sure ramps in the far band (17% of 1,147; 9 / 57 / 64 / 65 by split) as not leaked. That is the plan's rule, but the doc never gives the count, and it is most of what separates H (34) from H2 (7): the far band alone removes 17, the neighbour discs 10 more.
  • Y (8) is larger than TP (7) on the same boxes because Y counts ramps within R of any kept box and P counts one-to-one greedy matches. One line in the Method section would stop a reader from suspecting an error.
  • heatmap_features.json and neighbours.json are keyed by the position of each box in gemini-4-argon__<split>.json, and neither features() nor the extract steps check lengths or record that file's hash. Lengths agree on all 469 panos today; an assert costs nothing.
  • filters_without_f2 repeats the selection loop of filters(); one helper taking the candidate table would keep the two from drifting.
  • The index row has no issue number and no issue records this run. If the teacher idea is likely to be proposed again, a short closed issue pointing at the doc would make the negative result findable.

Not verified

  • neighbours.json was not rebuilt (it needs the labeler runs and a re-fuse; I checked only that the three run files exist locally, are git-ignored, and that the recorded counts and hashes in the file match the doc).
  • The plan comparison used the local plan file; nobody working from a clone can repeat it (finding 4).
  • The two PNG figures were not regenerated or compared.
  • Lyon data was not read, per the run's rules.

🤖 Generated with Claude Code — Fable 5.2, claude-fable-5-2

jonfroehlich and others added 4 commits November 24, 2026 21:13
# Conflicts:
#	docs/replication.md
…tests (PR 294 review 1)

- results.json gains filters.in_sample, filters_at_2R, filters_or_pairs,
  filter_ceilings and leak.*.n_far_band. Every pre-existing key is
  unchanged (key-by-key diff against 9d039fc: 0 changed, 0 removed).
  At 2R, Y and S read go and P still reads kill; this is a sensitivity
  read, not a gate. The gates, bars and stop decision are unchanged.
- filters() and filters_without_f2() share one selection helper
  (select_loso); output is byte-identical.
- features() refuses a derived file whose box count differs from the
  Argon file it is keyed on.
- extract-heatmaps times itself and appends a paid:false row to the
  ledger (--usage-log, --out-dir). One timed re-run on the RTX 3070:
  469 panos in 565 s, byte-identical to the committed
  heatmap_features.json; its row is in analysis_out/usage_log.jsonl.
- Tests call base_counts(), features() and filters() on synthetic data,
  including four toy splits where the in-sample best and the held-out
  choice differ. All 17 mutants from the review that passed pytest now
  fail it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d, plan appendix (PR 294 review 1)

- "Not a near miss" and "no candidate reaches 0.65 in sample" now say
  "at R", with the 2R read beside them: at 2R, Y and S read go and the
  stop rests on gate P alone (0.54 held out). Verdicts unchanged.
- States the Y and S ceilings (48 of 65, 38 of 42), the far-band count
  (195), why Y can exceed TP, and that no verdict depends on
  neighbours.json.
- Amendment 5's OR read now points at the committed filters_or_pairs.
- Replication: drops the stale branch wording; says which inputs a clone
  cannot rebuild, where they are and what would unblock them; records the
  Hub revision the weights resolve to; the GPU time and its ledger row.
- Appendix: the plan's definitions line and Stage 0 section, verbatim.
- "Pre-registered" replaced by what the record supports, here and in the
  docs/README.md row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Kills the one mutant that still passed pytest after the refactor: 2R as
candidate_table's default match radius (the filters() path).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jonfroehlich

Copy link
Copy Markdown
Member Author

Review 1: answers

I reproduced each finding before changing anything. No gate verdict, bar or the stop decision changed. Commits: 0f25976e (merge of main; the only conflict was the docs/replication.md row next to benchmark_power_135, resolved as the review describes), 0a0f1e46 (script, tests, results, ledger row), 0a239e8a (doc, docs index row), df333b58 (one more test).

results.json: a key-by-key diff against 9d039fce gives 0 changed and 0 removed leaves, and 9 added paths: filters.in_sample, filters_at_2R, filters_or_pairs, filter_ceilings, and leak.per_split.<split>.n_far_band / leak.pooled.n_far_band. Both figures regenerate byte-identical.

1. Fixed (0a0f1e46, 0a239e8a). I re-derived the 2R read myself and got the review's numbers. Leave-one-split-out at 2R: 45 TP / 38 FP (0.54), 38 blind ramps kept, 28 of 42 strict-silent kept. Y and S read go and P reads kill (bayonne 26 / 25 and budapest_district5 8 / 11, both under 0.60 with 10+ boxes). In sample at 2R: 8 of 80 candidates are at ≥ 0.80, f2<=5m & f4_yolo is 37 / 7 (0.84) with 31 blind kept, and the best is 0.875. One detail: two candidates tie at 0.875 (14 / 2 each), and the committed tie-break (more blind kept) names f1>=0.02 & f3>=q75. The read is committed as filters_at_2R (match radius 2R for the score and for "kept box within 2R of the ramp"; blind and strict-silent unchanged), so --check covers it. The 2R gates read the plan's R denominators. Counted within 2R, Argon reaches 112 blind and 58 strict-silent ramps, and S would still read go (28 of 58). The doc's Result section, Figure 2 caption, Caveats, the docs index row and the PR body now say "at R" and give the 2R read beside it, including that at 2R the stop rests on gate P alone. The test is now test_no_candidate_reaches_the_kill_bar_in_sample_at_R, and a new test_at_2R_the_stop_rests_on_gate_P_alone pins the 2R verdicts.

2. Fixed (0a0f1e46). extract-heatmaps now times itself and appends one paid: false row (the shape perspective_photos_218.usage_row writes) to --usage-log, which defaults to the main checkout's ledger. --out-dir writes the file elsewhere for comparison. The timing goes to the ledger, not into heatmap_features.json, so the pinned bytes do not change. One timed re-run on the RTX 3070 (2026-11-24): 469 panos in 565 s (1.2 s per pano; model load 1.9 s, excluded), output byte-identical to the committed file (sha256 7676c6a739f9dcdf…), and 1,959 / 1,959 op_cache peaks reproduced. The row is in this branch's analysis_out/usage_log.jsonl (label argon-teacher-s0:extract-heatmaps).

3. Fixed (PR body, before any other change). Both edits are made. The doc's stale "based on cascade-argon-b0" Replication line is replaced (0a239e8a).

4. Fixed (0a239e8a). docs/argon_teacher.md has an appendix with the plan's definitions line and section 3 (Stage 0), verbatim, dated 2026-11-15. No other section is included. "Pre-registered" is replaced in the doc and the docs index row: the bars were fixed in the plan before this script was written, the plan was marked "proposed", and the plan says the bars were set after the per-split precisions were published.

5. Fixed (0a0f1e46, 0a239e8a). filter_ceilings keeps every featured box, with and without the snap. That gives 48 blind and 38 strict-silent ramps (51 TP / 119 FP / 5 ignored, 0.30), and 36 and 34 with the snap. A filter keeps a subset of those boxes, so it can keep at most 48 of 65 and 38 of 42. The doc states this beside the box funnel. The verdict at 8 is unaffected.

6. Fixed (0a239e8a). The Replication section now says what a clone cannot rebuild and what would unblock each input:

  • neighbours.json: the three labeler run files are git-ignored and not published, and the re-fused site files were not kept. Publishing the run files would unblock it.
  • heatmap_features.json: laurens_mapillary, bayonne and juneau are not on rampnet-benchmark yet, per docs/replication.md.

The Gate B section says that no verdict depends on neighbours.json. Model revision: the op_cache records none either, so I left heatmap_features.json untouched and wrote the revision into the doc and the ledger row instead. On this desktop the weights resolve to Hub revision 606a11956743f7eb328d9207769034752f6191f4 (model.safetensors sha256 f2119e3becb0b551…), and decode_e2e_221.md found the Hub's two revisions tensor-identical.

7. Fixed (0a0f1e46, 0a239e8a). filters_or_pairs scores the 62 pair candidates (with and without the snap) joined by OR, in sample on all four splits. The best is f3>=q75 | f4_yolo at 0.48 (37 / 40), and none reaches 0.65. Amendment 5 now points at the key.

8. Fixed (0a0f1e46, df333b58). First I re-ran your 37 mutants on 9d039fce and got the same 17 survivors. The new tests call:

  • base_counts(): blind, strict-silent and reached, each at its radius.
  • features(): the Argon-only, rig-mask and 0.30-within-2R drops, the feature values, and the new length guard.
  • filters() end to end on four toy splits. There the in-sample best (f5_elev, 4 / 0) differs from the held-out choice in the D fold (f4_yolo: 12 / 1 in training, 0 / 4 held out), and one candidate sits at 0.78, just under the eligibility bar.
  • select_loso() directly for the two tie-breaks.
  • the gates at their exact bars, and the 2R, OR and no-filter paths of score_candidate.

Re-running the mutants on the new code with pytest only (the patterns follow the refactor; the 2R and OR mutants are applied at both the function default and the filters() path), all 17 former survivors fail pytest. These include all five held-out mutants and both tie-break reversals. One new mutant still passed pytest after the refactor: 2R as candidate_table's default radius, which is the filters() path. test_candidate_table_scores_at_R_by_default (df333b58) now fails on it. So of the 39 mutants in the adapted set, none passes pytest. The file has 30 tests (was 17).

9. Nits.

  • Far band: fixed. leak.*.n_far_band = 195 (9 / 57 / 64 / 65). The doc says the far band removes 17 of the 27 ramps between H and H2 and the neighbour discs 10.
  • Y against TP: fixed, one line in Method.
  • Length asserts: fixed. features() raises if either derived file's box count differs from gemini-4-argon__<split>.json (it checks with an explicit raise, not assert). I did not add the Argon file's hash to the derived files, because that would change their pinned bytes. The doc's hash table already lists them.
  • Shared helper: fixed. filters() and filters_without_f2() both use select_loso(), and the output is byte-identical.
  • Closed issue recording the run: left for Jon, since it is his call whether the negative result gets an issue. My recommendation: a short closed issue linking docs/argon_teacher.md, then add its number to the docs index row.

Checks on the clean tree at df333b58: argon_teacher_s0.py --check same; pytest tests/test_argon_teacher_s0.py tests/test_docs_index.py tests/test_check_all.py 170 passed; check_all.py --ci 42 passed, 0 failed, 12 skipped (argon_teacher_s0 PASS).

One thing to know: the merge commit 0f25976e has no Co-Authored-By trailer. I did not amend it, because it was already pushed.

🤖 Generated with Claude Code — Opus 5.5, claude-opus-5-5

@jonfroehlich jonfroehlich left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review 2 of PR #294 (range 9d039fce..df333b58, head df333b58)

Scope: the three fix commits 0a0f1e46, 0a239e8a, df333b58 and the conflict resolution in merge 0f25976e; the rest of the merge from main is out of scope. Same interpreter as review 1 (D:\Git\RampNet\.venv\Scripts\python.exe, Python 3.12, Windows), worktree detached at df333b58.

Verdict: all nine findings from review 1 are closed, the fixes changed no existing number, and nothing blocking remains. Three nits are left (below); none needs another round.

Checks on the clean tree at df333b58

  • argon_teacher_s0.py --check: same.
  • pytest tests/test_argon_teacher_s0.py tests/test_docs_index.py tests/test_check_all.py: 170 passed (the PR's file: 30, was 17).
  • check_all.py --ci: 42 passed, 0 failed, 12 skipped; argon_teacher_s0 PASS.
  • CI on the head: checks, pytest (3.10), pytest (3.12) all pass. The PR reads MERGEABLE.

The fixer's claims, checked

Claim Result
results.json: 0 changed, 0 removed leaves against 9d039fce; 9 added paths Confirmed with my own leaf walk: 4,954 leaves before, 5,218 after, 0 changed, 0 removed. Added: filters.in_sample, filters_at_2R, filters_or_pairs, filter_ceilings, four leak.per_split.<split>.n_far_band, leak.pooled.n_far_band. Gate verdicts and bars are among the unchanged leaves.
Both figures byte-identical Confirmed: git diff 9d039fce df333b58 -- docs/figures/argon_teacher is empty, as is the diff of neighbours.json and heatmap_features.json.
2R leave-one-split-out 45 / 38 (0.54), 38 blind, 28 of 42 Matches my review-1 derivation, fold by fold (bayonne 26 / 25, budapest_district5 8 / 11).
In sample at 2R: 8 of 80 at ≥ 0.80, f2<=5m & f4_yolo 37 / 7 with 31 blind, best 0.875 Matches. Two candidates do tie at 14 / 2; f1>=0.02 & f3>=q75 keeps 12 blind ramps against 11, so the committed tie-break names it.
Within 2R Argon reaches 112 blind and 58 strict-silent ramps Recomputed with my own code: 112 and 58.
Ceilings 48 and 38 (51 / 119 / 5 ignored); 36 and 34 with the snap 48 / 38 match review 1. The snap arm, recomputed with my own matcher: 46 / 125 / 4, 36 blind, 34 strict-silent.
OR best 0.48 (37 / 40) over 62 pair candidates Matches (f3>=q75 | f4_yolo; 31 pairs, with and without the snap).
Far band 195 (9 / 57 / 64 / 65) Matches.
Refactor preserves behaviour Yes: the zero-changed-leaves result covers filters, filters_without_f2 and the leak. select_loso() is the old loop moved; score_candidate's new arguments default to the old behaviour.
--usage-log cannot write during tests or --check Confirmed by reading: the only write is at the end of extract_heatmaps, which no test calls and --check / run never reach.
Ledger row One line appended at the end of analysis_out/usage_log.jsonl, same keys as the perspective_photos_218.usage_row rows (issue is null): paid: false, 469 panos, 565.057 s, 1.2048 s per pano, label argon-teacher-s0:extract-heatmaps, host and GPU recorded.
Appendix is the plan's definitions line and section 3, verbatim, nothing else Confirmed by a string compare against the local plan file: identical, 2,654 characters. No other section of the plan appears in the doc.
Hub revision statement Accurate: the local snapshot 606a1195… holds model.safetensors with sha256 f2119e3becb0b551…, decode_e2e_221.md does say the two Hub revisions are tensor-identical, and the doc says plainly that neither heatmap_features.json nor the op_cache records a revision.
Public text PR body, answer comment, doc and the three commit messages: the sentence review 1 asked to delete is gone, "stacked on" is gone, no session links.

Review-1 findings

  1. 2R read: closed. The doc's Result section, Figure 2 caption, Caveats, the index row and the PR body all say "at R" and give the 2R read beside it, including that at 2R the stop rests on gate P alone. The read is committed (filters_at_2R) and under --check.
  2. Ledger row: closed. See the table. The 565 s agrees with my 576 s re-run in review 1.
  3. PR body: closed.
  4. Plan text: closed. Appendix verified verbatim. "Pre-registered" is replaced in the doc and the index row by what the plan itself says.
  5. Ceilings: closed. Stated beside the box funnel and committed as filter_ceilings.
  6. Replication gaps: closed. The doc names the three git-ignored labeler run files, the three splits not yet on rampnet-benchmark, what would unblock each, and that no verdict depends on neighbours.json.
  7. OR read: closed. Committed as filters_or_pairs; amendment 5 points at it.
  8. Tests: closed for everything review 1 named. I re-ran the 17 mutants that passed pytest at 9d039fce, re-targeted at the refactored code: all 17 now fail pytest. See nit 1 for the code added in this range.
  9. Nits: closed, except the optional closed issue, which is left as a recommendation.

What still stands (all nits)

Nit 1. The new sensitivity reads are protected by --check only, and usage_row() by nothing. I ran 31 further mutants against the code added in this range. 18 pass pytest:

Mutant pytest --check
candidate_table ignores join (always AND) pass fail
filters_at_2R scores at R pass fail
blind follows the match radius in score_candidate pass fail
OR pairs joined by AND; OR read also takes single tests (2) pass fail
ceilings take the smaller of snap / no snap, for Y and for S (2); the snap arm does not snap pass fail
in_sample: tie-break prefers fewer blind kept; kill count on the wrong bar; p_go_and_y_go on the Y kill bar (3) pass fail
far_band_count boundary moved pass fail
filters_without_f2 keeps the f2 candidates, or drops f3 instead (2) pass fail
reached_within and far_band_count count unconfirmed panos (2) pass pass (output-neutral: all 469 panos are recall-confirmed)
ledger row paid: true; s_per_pano inverted (2) pass pass

Fourteen of the 18 are caught by --check, which CI runs, and two are output-neutral on this data. The two that matter are the ledger-row mutants: usage_row() has no test and is outside --check, so a wrong row would only show up after the next GPU run. A three-line test of usage_row(469, 565.0, ...) (keys, paid is False, s_per_pano) would cover it. Reproduce: change "paid": False to True in usage_row, then run pytest tests/test_argon_teacher_s0.py and --check; both pass.

Nit 2. The ledger line will conflict with other open PRs, at merge time only. Against today's origin/main (2a52673c) the branch merges cleanly. PR #299 also appends rows after the same last line of analysis_out/usage_log.jsonl, so whichever of the two merges second gets a textual conflict at the end of that file; the resolution is to keep both sides' lines. The same applies to any other branch that appends there. Nothing to change in this PR.

Nit 3. Small things.

  • extract_heatmaps resolves the Hub revision (hf_hub_download(..., local_files_only=True)) after the pano loop and before appending the row. If that lookup fails, the run has finished and the row is lost. Resolving it before the loop, or catching the failure and writing revision unknown, would keep the row.
  • The doc dates the timed re-run 2026-11-24; the row's ts is 2026-11-25T05:19:01Z. Same run, local date against UTC; saying "UTC" once would stop a reader from looking for a second row.
  • Merge commit 0f25976e has no Co-Authored-By trailer. The repo's attribution rule covers commits, so strictly this one is missing it, but its only hand-made content is the one-row docs/replication.md resolution, the answer comment on this PR records who made it, and adding the trailer now would need a force-push of a reviewed branch. I would leave it and put the attribution in the PR's merge commit message.

Not verified

  • neighbours.json was not rebuilt, as in review 1.
  • That the plan's bars were fixed before the script was written rests on the plan file's date (2026-11-15) and the doc's statement; I cannot check it from the repo.
  • The figures were compared as committed bytes only; I did not regenerate them.
  • I did not re-run the GPU pass in this round (review 1's re-run was byte-identical).
  • Lyon data was not read.

🤖 Generated with Claude Code — Fable 5.2, claude-fable-5-2

…in UTC (PR 294 review 2)

Tests only, plus one doc phrase. New hand-made cases for usage_row(),
candidate_table's join, the 2R read (blind stays at R; filters_at_2R
scores at 2R), the OR read, the ceilings, in_sample's ranking and
counts, and filters_without_f2's candidate set. The far-band and
reached-within cases gain an unconfirmed pano. All 48 mutants of the
review-2 set now fail pytest. No analysis code, results, ledger row or
figure changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jonfroehlich

Copy link
Copy Markdown
Member Author

Review 2: answers to the three nits

One commit, e4bcb015: tests plus one doc phrase. No analysis code, results.json, ledger row, figure, gate verdict or bar changed.

Nit 1. Done (e4bcb015, tests only). test_usage_row checks usage_row(469, 565.0, …): its key set, paid is False, est_cost_usd 0, s_per_pano 1.2047 and gpu_hours. I re-ran your review-2 mutant script (pr294_r2_mutate.py, 48 mutants) on the new tests. Both ledger-row mutants (paid: true, s_per_pano inverted) now fail pytest. They still pass --check, as expected, since the row is outside it.

The other mutants that --check alone caught each now have a small hand-made case:

  • candidate_table passes join through.
  • At 2R, blind is still judged at R.
  • filters_at_2R scores at 2R: on two one-ramp splits with a box 1.5R off, nothing is eligible at R and both folds select at 2R.
  • The OR read: 62 pair candidates, joined by OR, no single tests.
  • The ceilings take the larger of snap and no snap, and the snap arm snaps.
  • in_sample: the blind-kept tie-break, the kill count and the P-and-Y-go list.
  • filters_without_f2 drops exactly the f2 candidates. Dropping f3 instead also leaves 48, so the test checks the choice, not just the count.
  • The far_band_count boundary.

The far-band and reached-within cases also gained an unconfirmed pano, so the two output-neutral mutants fail too. All 48 mutants in the set now fail pytest; the file has 38 tests (was 30).

Nit 2. No change. When this PR or #299 (or any other branch appending to analysis_out/usage_log.jsonl) merges second, the conflict at the end of that file is resolved by keeping both sides' lines.

Nit 3.

  • Hub revision lookup after the pano loop: not done, left as a follow-up. It is a change in the GPU path that can only be exercised by another GPU run, and this round is not reviewed again. So I left the path as it ran and was byte-checked. The fix is small: resolve the revision before the loop, or catch the failure and write revision unknown. It should go in with the next change that touches extract-heatmaps.
  • Date: done (e4bcb015). The doc now says the timed re-run was on 2026-11-24 local time, 2026-11-25T05:19Z UTC in the row's ts.
  • Merge commit 0f25976e without a Co-Authored-By trailer: left as is, since adding it would need a force-push of a reviewed branch. The attribution can go in the PR's merge commit message.

Checks on the clean tree at e4bcb015: argon_teacher_s0.py --check same; pytest tests/test_argon_teacher_s0.py tests/test_docs_index.py tests/test_check_all.py 178 passed; check_all.py --ci 42 passed, 0 failed, 12 skipped (argon_teacher_s0 PASS).

🤖 Generated with Claude Code — Opus 5.5, claude-opus-5-5

# Conflicts:
#	analysis_out/usage_log.jsonl
# Conflicts:
#	.gitignore
#	docs/README.md
#	docs/replication.md
#	scripts/check_all.py
@jonfroehlich
jonfroehlich merged commit 170a4c9 into main Nov 25, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant