diff --git a/review/2026-11-14/s1-scoring-code/MANIFEST.json b/review/2026-11-14/s1-scoring-code/MANIFEST.json new file mode 100644 index 000000000..0a8af51bc --- /dev/null +++ b/review/2026-11-14/s1-scoring-code/MANIFEST.json @@ -0,0 +1,82 @@ +{ + "kind": "S1 scoring code and synthetic verification only", + "parent": "a86a74cbd943e0687ee69fb1cccdc003250113cc", + "files": { + "README.md": { + "bytes": 11134, + "sha256": "6a246a26e09a4b01d8d6ed6ba3d065c8816f1c11bf07e2ea02abe367aff88c8f" + }, + "evaluate_s1_shortfall.py": { + "bytes": 3258, + "sha256": "9839afe56e6035ad185fbd8efdc81b9e9f3abc1912bd080425dd3b037896cec9" + }, + "fold_table.csv": { + "bytes": 43474, + "sha256": "867802a68294382e34adb391f21e423f959c6a71b916ef1b395e0dbc007bf256" + }, + "implementation_rulings.txt": { + "bytes": 2633, + "sha256": "c065ba4042698e887d23bee024eb441f6a4db60a4c4e11c95469082e9bfd5d57" + }, + "m2_protocol_source.md": { + "bytes": 23196, + "sha256": "512b42e6d103c7645397bce184d39a586dfc29703393f3061849179e8ad824a5" + }, + "o2_rep.py": { + "bytes": 4357, + "sha256": "8c784ea04f6c14fd47ab79e1f2160c19ed48344bf24e6ab4255ac23ab3eb2003" + }, + "plan_s1_queries.py": { + "bytes": 3710, + "sha256": "af9a914bfbea155f3c9ed7311a6a267023907fd0aa1d013e9fe566d64acf9f56" + }, + "query_cost.csv": { + "bytes": 4435, + "sha256": "7e3e2eb5c9abf692bccc5b6f6f18a35b348373ee7a923d953fbd6abe4ff65b14" + }, + "query_cost.json": { + "bytes": 20634, + "sha256": "92fb53adbce889abb81b6a99c78ebec03a5835d1af199273cb67d94060b94126" + }, + "s1_scoring.py": { + "bytes": 21214, + "sha256": "323d12dad2f65a8bb25af4cc609856ab530b350fc239fc034aeeed50cb4ce2a9" + }, + "s1_scoring_io.py": { + "bytes": 3653, + "sha256": "928474c7c003c717ee4b7f971a6bf1d2e22b240e9240ac555c015bc2c5e664aa" + }, + "s1_seed_vectors.py": { + "bytes": 1857, + "sha256": "5b35b2bee7b94bdada341d4afe262f2fccf8bb0f4180de29e284ec2f852d8f33" + }, + "scope_source.txt": { + "bytes": 2845, + "sha256": "040fe7560095a493e7ba1b32a23a85468e00f53eaa445027f9ab372b094bc692" + }, + "sharing_authorization.md": { + "bytes": 766, + "sha256": "88d5c4f84f985194c7c4c96071d57e3bf8ed44f601d86af66f5573c15361c11d" + }, + "summary.csv": { + "bytes": 5670, + "sha256": "9102ebbb3af9a8b67d25b7a820f8d724f9126f3033a777e170ef182c2619ed63" + }, + "synthetic_seed_vectors.json": { + "bytes": 9288, + "sha256": "1fe6ccd51d34ce3c4ac056e527d4b459d16f27546ca58184fc19383dbad001a2" + }, + "synthetic_tests.log": { + "bytes": 1043, + "sha256": "39f0076346c4455be1138452d31a01cf3adbec84e00ce0d80d22a9e1c2934ff0" + }, + "test_s1_scoring.py": { + "bytes": 15734, + "sha256": "e3cbf85b8ab73fde7f01277cbea390b6fb7e87bdbcb9055e6681c471036f91ff" + }, + "verification.json": { + "bytes": 2435, + "sha256": "6049495a4586cda3650576e306e245998868d405806827c0671a7fed358867cd" + } + } +} diff --git a/review/2026-11-14/s1-scoring-code/README.md b/review/2026-11-14/s1-scoring-code/README.md new file mode 100644 index 000000000..f5fff0908 --- /dev/null +++ b/review/2026-11-14/s1-scoring-code/README.md @@ -0,0 +1,86 @@ +# S1 M2 v1.2 scorer: code review packet + +This packet implements the six-arm scorer and its synthetic checks. It contains **no real S1 scores, fitted real-data ranks, or model training**. Only the released panel CSV and fold CSV were read to calculate the query cost. The input adapter has been exercised on generated temporary NPZ files only. + +Authority and fixed inputs: + +- [Claude code-review scope, 15:36:39](https://arcticnimbus.slack.com/archives/C0C78UFKGRM/p1794641799442609). +- [Actual start and implementation questions](https://arcticnimbus.slack.com/archives/C0C78UFKGRM/p1794642190451619). +- [Claude interval/RNG rulings, 15:43:44](https://arcticnimbus.slack.com/archives/C0C78UFKGRM/p1794642224144079). This adds source bootstrap 1407 to the earlier Drive seed table. +- Released O2 panel/shortfall parent `a86a74cbd943e0687ee69fb1cccdc003250113cc`; original draws `94011fd8efe0512e6579c7c541ccd585dc710c2e`. No numerical producer, original draw, field or eligibility mask was modified. +- Current M2 source snapshot and both Slack rulings are included verbatim. Historical sections of that document retain earlier definitions; its v1.2 section and the later rulings take precedence. + +## What to review + +`s1_scoring.py` is the pure numerical API. `score_fold(training, test)` returns all node scores, neighbors, rank maps, actual weights, permutation/clipping diagnostics, per-part ratios and paired query replicates. `summarize_folds` reports all arms and contrasts, each seed and the mean of all five seeds. `s1_scoring_io.py` reads frozen sampled outputs and converts NA to JSON null. There is deliberately no real-panel launch command in this code-review packet: the future supervised launcher must pin the released input manifests, verify the current process release, fix wall/RSS limits and persist each complete fold before moving on. This is an execution prerequisite, not another information-sharing approval. + +### Coordinates and ranks + +Columns are `[d/t_part, gate_distance/R_g, g12, g23, gate_q1, gate_q2, edge_mean_q1, edge_max_q1, edge_mean_q2, edge_max_q2]`. + +| Arm | Dimensions | Training modification | +|---|---:|---| +| A | 2 | none | +| A+S | 6 | permute columns 2:6 as a single block within each part | +| B | 6 | none | +| B+edge_shuffle | 10 | permute columns 6:10 as a single block within each part | +| C | 10 | none | +| B+stratified_edge_shuffle | 10 | jointly permute gap-normalized edge block within exact positive-gap strata; multiply receiver gaps | + +Queries always retain their true descriptors. Each fold fits ten true-column midrank maps once. Eligible node weight is `c/(P*K_pE)`; there is no second mass factor. Exact equal values have a common midrank, constant columns remain in the denominator and take 0.5 at their training value. Strict tails map to 0/1. Query audits include both slices, weighted draw-slot tail fractions and raw ranges. Reconstructed control references receive per-part tail audits against the same frozen maps. Shuffled values are never refitted. + +### Distances and identity + +Each distinct eligible physical node contributes exactly one reference slot, even when its draw multiplicity exceeds one. Different physical nodes with equal descriptors remain distinct. Physical key is `(source_key, case, stable anchor node ID)`; raw-node identity is checked against the draw file by the adapter. Training parts are sorted by `(source,case)` and nodes retain ascending anchor ID order. One representative per source is enforced; test source leakage fails. + +Distance is `sqrt(mean((rank(query)-rank(reference))**2))`. Node M2 is the mean of eight nearest distances. Exact cKDTree Euclidean search finds the eighth radius; a second radius query with `nextafter(d8*(1+64*eps), +inf)` gathers boundary candidates, then direct RMS distances and physical IDs determine the final eight. This retrieval padding does not round distances into ties or alter them. Independent brute-force tests include repeated descriptor ties in 2, 6 and 10 dimensions. A tie-heavy dataset can expand to all references; the cost plan includes this bound. Zero-distance counts and neighbor-source concentration are retained per query. + +### Random numbers + +All generators are PCG64 with NumPy SeedSequence; NumPy 1.26.4 is the replay environment. Different numerical library versions are not claimed bitwise identical. + +- Ordinary permutations: `[2026111401..2026111405, prefix]`, fresh generator per part/seed. A+S and plain edge shuffle share the same row index. Mapping is reproducibly regenerated from the same sorted eligible nodes across folds. +- Normalized shuffle: a separate fresh generator initialized with the same part/seed. Strata order `(0,0),(0,1),(1,0),(1,1)` uses exact `gap>0`. Only strata of size at least eight consume a permutation. Smaller strata keep exact original raw edge blocks. Zero-gap normalized channels are zero. No rejection, clipping, repair or redraw. Audits report exact violations and diagnostics above tolerance `1e-10`, plus donor modes, index changes, value changes and denominators. +- Query bootstrap: `[2026111406,prefix]`, 200 sequential replicates; each draws 2,000 original draw-slot indices on the real panel. Six arms, slices and five seeds share the resulting counts. Synthetic tests use smaller explicitly generated draw lists. No new nearest-neighbor queries. +- Source bootstrap: `[2026111407]`, 2,000 sequential resamples of the 24 lexicographically sorted source keys with replacement. One shared index matrix for all arms/contrasts/slices/seeds. No prefix for this source-level generator. + +`synthetic_seed_vectors.json` contains complete small permutations, query/source first-three vectors and digests over dtype, shape and full bytes. This is the targeted independent replay material for Grok, together with the hand-ranked example below. + +### Ratios, intervals and interpretation + +Per-part whole/near scores use `sum(c*H*score)/sum(c*H)`, selecting accepted entries before multiplication. Zero denominator is NA. Near-wall only restricts queries to `0 P`. + +Query SE is the valid replicate sample standard deviation (ddof=1), without division by sqrt(200). Both intervals use two-sided 95% percentile quantiles with linear interpolation. Original point NA or fewer than two valid replicates suppresses its interval; valid/total replicate counts are recorded. Pair differences are formed inside each replicate. The five-seed mean is taken before interval construction, with all five seed results retained. + +For each primary contrast, the **source interval** strictly below zero means ranks ahead, strictly above zero ranks behind, otherwise no ranking difference; touching zero is not a win. No effect-size margin. Primary contrasts are B−(A+S) and C−(B+edge_shuffle); C−(B+stratified_edge_shuffle) is secondary, B−A and C−B descriptive. No joint scientific success claim is inferred from one contrast. All arms' scores and both levels of interval are available, but cross-dimension differences do not establish improved geometry information. + +Source intervals resample the fixed LOPO source statistics; they do not refit overlapping training folds, ranks, or reference pools. Query intervals condition on these same realized objects and measure draw-slot variation only. Neither interval validates filling accuracy, physical bias, remeshing robustness or model generalization. + +## Hand expectations and tests + +The tests write expected values independently of the scorer: + +- Three-part midrank fixture: eligible weights `[1/9,2/9]`, `[1/6,1/6]`, `[1/4,1/12]`. Masses at values 0,1,2 are 5/18,17/36,1/4. Ranks at 0,1,2 are **5/36,37/72,7/8**; rank at unseen 1.5 is 3/4. +- Three training parts each have ten distinct physical nodes at identical ten descriptor levels across columns. Eight-neighbor endpoint score is `(3*0+3*.1+2*.2)/8 = 7/80`; interior is `(3*0+5*.1)/8 = 1/16`. Ten test nodes with multiplicities `[1,2,1,1,1,1,1,1,1,1]` give whole **59/880**, first-three near slice **11/160**. +- Part statistics 1,3,10 from sources a,a,b give source-equal **6**, part-equal **14/3**. Replicates 1,2,3 give SE **1**, interval **[1.05,2.95]**. Hand-chosen paired source resamples produce **[-2.925,-1.075]**. +- Additional checks cover constant-column `a -> a/sqrt(2)`, all-arm rigid motion with the gate (plus an unmoved-gate negative control), seed byte replay, ordinary block tuples, normalized zero/positive strata and cross-channel order, strict shortfall endpoints, distinct node identity, NA propagation, source leakage, input hashes and JSON null serialization. + +Initial test correction is disclosed: an assertion that `sqrt(a*a/2)` and `a/sqrt(2)` are bitwise equal failed by one FP64 ULP (0.21213203435596426 versus 0.21213203435596423). The test now checks exact agreement with the defined RMS evaluation and agreement with the algebraic alternative within relative `2e-16`. No scorer formula was changed for this failure. + +Run synthetic verification from the packet directory with Python 3.10, NumPy 1.26.4, SciPy 1.15.3: + +``` +OMP_NUM_THREADS=2 OPENBLAS_NUM_THREADS=2 python test_s1_scoring.py +python s1_seed_vectors.py replay.json +python plan_s1_queries.py --summary summary.csv --folds fold_table.csv --out local-plan +``` + +## Cost and next execution boundary + +Every fold evaluates 18 configurations: A/B/C once plus three shuffled controls times five seeds. This is one 2D, six 6D and eleven 10D configurations. All true baselines are reused across seeds. Near-wall slices reuse query scores; neither 200 query replicates nor 2,000 source replicates add kNN calls. + +Across 24 folds there are **43,656 eligible unique test nodes**, **785,808 logical 8NN queries**, **785,808 additional radius queries**, and **432 tree builds**. `query_cost.csv` lists every fold. Worst-case radius tie expansion totals 32,868,059,868 candidate distance evaluations; it is a conservative bound, not a measured workload. Matrix byte counts in the table are component sizes, not an RSS guarantee. No scoring-runtime extrapolation is claimed from the earlier O2 integrations. + +Claude is the full reviewer. Grok's scope is independent seed replay and weighted-midrank formula checking. Real S1 execution remains pending this review and an explicit supervised execution scope with wall/RSS limits. Information-sharing authorization is already present and does not need to be requested again. diff --git a/review/2026-11-14/s1-scoring-code/SHA256SUMS b/review/2026-11-14/s1-scoring-code/SHA256SUMS new file mode 100644 index 000000000..05147e66d --- /dev/null +++ b/review/2026-11-14/s1-scoring-code/SHA256SUMS @@ -0,0 +1,20 @@ +acf98356b802cbc476d70d494cc1f96a1c564e2477bf231ac1a2dc3e2390bb33 MANIFEST.json +6a246a26e09a4b01d8d6ed6ba3d065c8816f1c11bf07e2ea02abe367aff88c8f README.md +9839afe56e6035ad185fbd8efdc81b9e9f3abc1912bd080425dd3b037896cec9 evaluate_s1_shortfall.py +867802a68294382e34adb391f21e423f959c6a71b916ef1b395e0dbc007bf256 fold_table.csv +c065ba4042698e887d23bee024eb441f6a4db60a4c4e11c95469082e9bfd5d57 implementation_rulings.txt +512b42e6d103c7645397bce184d39a586dfc29703393f3061849179e8ad824a5 m2_protocol_source.md +8c784ea04f6c14fd47ab79e1f2160c19ed48344bf24e6ab4255ac23ab3eb2003 o2_rep.py +af9a914bfbea155f3c9ed7311a6a267023907fd0aa1d013e9fe566d64acf9f56 plan_s1_queries.py +7e3e2eb5c9abf692bccc5b6f6f18a35b348373ee7a923d953fbd6abe4ff65b14 query_cost.csv +92fb53adbce889abb81b6a99c78ebec03a5835d1af199273cb67d94060b94126 query_cost.json +323d12dad2f65a8bb25af4cc609856ab530b350fc239fc034aeeed50cb4ce2a9 s1_scoring.py +928474c7c003c717ee4b7f971a6bf1d2e22b240e9240ac555c015bc2c5e664aa s1_scoring_io.py +5b35b2bee7b94bdada341d4afe262f2fccf8bb0f4180de29e284ec2f852d8f33 s1_seed_vectors.py +040fe7560095a493e7ba1b32a23a85468e00f53eaa445027f9ab372b094bc692 scope_source.txt +88d5c4f84f985194c7c4c96071d57e3bf8ed44f601d86af66f5573c15361c11d sharing_authorization.md +9102ebbb3af9a8b67d25b7a820f8d724f9126f3033a777e170ef182c2619ed63 summary.csv +1fe6ccd51d34ce3c4ac056e527d4b459d16f27546ca58184fc19383dbad001a2 synthetic_seed_vectors.json +39f0076346c4455be1138452d31a01cf3adbec84e00ce0d80d22a9e1c2934ff0 synthetic_tests.log +e3cbf85b8ab73fde7f01277cbea390b6fb7e87bdbcb9055e6681c471036f91ff test_s1_scoring.py +6049495a4586cda3650576e306e245998868d405806827c0671a7fed358867cd verification.json diff --git a/review/2026-11-14/s1-scoring-code/evaluate_s1_shortfall.py b/review/2026-11-14/s1-scoring-code/evaluate_s1_shortfall.py new file mode 100644 index 000000000..f8094ca6a --- /dev/null +++ b/review/2026-11-14/s1-scoring-code/evaluate_s1_shortfall.py @@ -0,0 +1,55 @@ +"""Frozen v1.2 LOPO shortfall gate only; no scoring or training.""" +import csv +import hashlib +import json +from pathlib import Path + + +def read(p):return json.loads(Path(p).read_text()) +def sha(p):return hashlib.sha256(Path(p).read_bytes()).hexdigest() + + +def decision(nrefs): + if not nrefs or any(n is None for n in nrefs): + return dict(comparable=False,reason='missing_training_result',below_500=None,below_1000=None) + assert all(isinstance(n,int) and n>=0 for n in nrefs) + below500=sum(n<500 for n in nrefs);below1000=sum(n<1000 for n in nrefs) + # Strictly greater than 20 percent, expressed exactly with integer arithmetic. + fail=below500>0 or 5*below1000>len(nrefs) + return dict(comparable=not fail,reason='shortfall' if fail else 'PASS',below_500=below500,below_1000=below1000) + + +def main(): + assert decision([500,1000,1000,1000,1000])['comparable'] + assert not decision([499,1000,1000,1000,1000])['comparable'] + assert decision([999,1000,1000,1000,1000])['comparable'] + assert not decision([999,999,1000,1000,1000])['comparable'] + assert not decision([None,2000])['comparable'] + out=Path('artifacts/s1-sampled-o2-2026-11-14') + release=read(out/'review_release.json');assert release['process_hold_cleared'] + c=read(out/'execution_contract.json');assert read(out/'verification.json')['status']=='PASS' + assert len(read(out/'panel.completion.json')['records'])==24 + foldpath=Path('artifacts/s1-sampled-draw-2026-11-14/fold_table.csv') + folds=list(csv.DictReader(foldpath.open()));rows=[];inputs={} + for f in folds: + test=int(f['test_panel_index']);training=list(map(int,f['train_panel_indices'].split(';'))) + assert training==[i for i in range(24) if i!=test] + nrefs=[] + for i in training: + s=c['panel'][i];p=out/'panel'/(s['job']+'.supervisor.json');sup=read(p);inputs[str(p)]=sha(p) + nrefs.append(sup['n_ref'] if sup['status']=='PASS' else None) + d=decision(nrefs) + rows.append(dict(fold_index=int(f['fold_index']),test_panel_index=test,test_case=f['test_case'],training_parts=len(training),training_min_n_ref=min(nrefs) if all(n is not None for n in nrefs) else None,**d)) + with (out/'shortfall.csv').open('x') as f: + w=csv.DictWriter(f,fieldnames=list(rows[0]),lineterminator='\n');w.writeheader();w.writerows(rows) + result=dict(status='COMPLETE',folds=rows,comparable_folds=sum(r['comparable'] for r in rows), + authority='https://arcticnimbus.slack.com/archives/C0C78UFKGRM/p1794640949342329', + rule='Any training n_ref<500 OR fraction(training n_ref<1000)>0.20 is not comparable; equality endpoints do not trigger.', + boundary_tests='PASS: 499/500, 999/1000, exactly20percent/above20percent, missing result', + fold_table_sha256=sha(foldpath),supervisor_sha256=inputs,code_sha256=sha(__file__), + process_release_sha256=sha(out/'review_release.json'),S1_scoring=False,training=False) + with (out/'shortfall.json').open('x') as f:json.dump(result,f,indent=2);f.write('\n') + print(json.dumps(dict(folds=len(rows),comparable_folds=result['comparable_folds'],shortfall_failures=sum(not r['comparable'] for r in rows),S1_scoring=False),indent=2)) + + +if __name__=='__main__':main() diff --git a/review/2026-11-14/s1-scoring-code/fold_table.csv b/review/2026-11-14/s1-scoring-code/fold_table.csv new file mode 100644 index 000000000..e34dce2cd --- /dev/null +++ b/review/2026-11-14/s1-scoring-code/fold_table.csv @@ -0,0 +1,25 @@ +fold_index,test_panel_index,test_case,test_source_key,test_numeric_prefix,train_panel_indices,train_cases,train_source_keys,train_numeric_prefixes,validation_split +0,0,00000993_ac4ba032d4b5431ca04f542c_step_000,ac4ba032d4b5431ca04f542c,993,1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;17;18;19;20;21;22;23,00000329_12a935cd9b684f879c0505fe_step_000;00000418_ce5b31679ee845a69ba89d6f_step_000;00000103_52f7124261ae4c558f800775_step_000;00001067_8a2edcf36bcd435092f4c8ae_step_001;00000162_4dcda9fab6dd46cf98fb194e_step_000;00001490_6c8ef6d2f5564d139a5077f8_step_001;00001387_60cf3ad636dd42e0bcec6946_step_000;00000280_5a6ef3285b89452ea6b390e7_step_001;00000140_2fc54fcd110d4f49969163c4_step_003;00000161_a583c6c3cdc143bab3f6c856_step_000;00001041_6baf25f5fe2947e8927797d8_step_000;00000411_305e45c9479f43979b0d7b53_step_000;00000996_6d71695ba3fd475c927a00a7_step_000;00001106_ba88e7579ced4a0aa2de629c_step_000;00000060_767e4372b5f94a88a7a17d90_step_001;00000723_8ed79b6bcb024d1a9f2aa5e7_step_000;00000405_f3759bbb4682423caf207e8e_step_002;00000206_27417003e762409185cb2b69_step_000;00001417_a45f6c99e2154f3b94955175_step_001;00000408_36bcb4030e36417b8dc74b87_step_000;00000364_38d899e2706a4d09960705dd_step_001;00001358_2e314c6e080b40fcb6a6db96_step_001;00001040_74c42207fa764831b03f7658_step_000,12a935cd9b684f879c0505fe;ce5b31679ee845a69ba89d6f;52f7124261ae4c558f800775;8a2edcf36bcd435092f4c8ae;4dcda9fab6dd46cf98fb194e;6c8ef6d2f5564d139a5077f8;60cf3ad636dd42e0bcec6946;5a6ef3285b89452ea6b390e7;2fc54fcd110d4f49969163c4;a583c6c3cdc143bab3f6c856;6baf25f5fe2947e8927797d8;305e45c9479f43979b0d7b53;6d71695ba3fd475c927a00a7;ba88e7579ced4a0aa2de629c;767e4372b5f94a88a7a17d90;8ed79b6bcb024d1a9f2aa5e7;f3759bbb4682423caf207e8e;27417003e762409185cb2b69;a45f6c99e2154f3b94955175;36bcb4030e36417b8dc74b87;38d899e2706a4d09960705dd;2e314c6e080b40fcb6a6db96;74c42207fa764831b03f7658,329;418;103;1067;162;1490;1387;280;140;161;1041;411;996;1106;60;723;405;206;1417;408;364;1358;1040,none +1,1,00000329_12a935cd9b684f879c0505fe_step_000,12a935cd9b684f879c0505fe,329,0;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;17;18;19;20;21;22;23,00000993_ac4ba032d4b5431ca04f542c_step_000;00000418_ce5b31679ee845a69ba89d6f_step_000;00000103_52f7124261ae4c558f800775_step_000;00001067_8a2edcf36bcd435092f4c8ae_step_001;00000162_4dcda9fab6dd46cf98fb194e_step_000;00001490_6c8ef6d2f5564d139a5077f8_step_001;00001387_60cf3ad636dd42e0bcec6946_step_000;00000280_5a6ef3285b89452ea6b390e7_step_001;00000140_2fc54fcd110d4f49969163c4_step_003;00000161_a583c6c3cdc143bab3f6c856_step_000;00001041_6baf25f5fe2947e8927797d8_step_000;00000411_305e45c9479f43979b0d7b53_step_000;00000996_6d71695ba3fd475c927a00a7_step_000;00001106_ba88e7579ced4a0aa2de629c_step_000;00000060_767e4372b5f94a88a7a17d90_step_001;00000723_8ed79b6bcb024d1a9f2aa5e7_step_000;00000405_f3759bbb4682423caf207e8e_step_002;00000206_27417003e762409185cb2b69_step_000;00001417_a45f6c99e2154f3b94955175_step_001;00000408_36bcb4030e36417b8dc74b87_step_000;00000364_38d899e2706a4d09960705dd_step_001;00001358_2e314c6e080b40fcb6a6db96_step_001;00001040_74c42207fa764831b03f7658_step_000,ac4ba032d4b5431ca04f542c;ce5b31679ee845a69ba89d6f;52f7124261ae4c558f800775;8a2edcf36bcd435092f4c8ae;4dcda9fab6dd46cf98fb194e;6c8ef6d2f5564d139a5077f8;60cf3ad636dd42e0bcec6946;5a6ef3285b89452ea6b390e7;2fc54fcd110d4f49969163c4;a583c6c3cdc143bab3f6c856;6baf25f5fe2947e8927797d8;305e45c9479f43979b0d7b53;6d71695ba3fd475c927a00a7;ba88e7579ced4a0aa2de629c;767e4372b5f94a88a7a17d90;8ed79b6bcb024d1a9f2aa5e7;f3759bbb4682423caf207e8e;27417003e762409185cb2b69;a45f6c99e2154f3b94955175;36bcb4030e36417b8dc74b87;38d899e2706a4d09960705dd;2e314c6e080b40fcb6a6db96;74c42207fa764831b03f7658,993;418;103;1067;162;1490;1387;280;140;161;1041;411;996;1106;60;723;405;206;1417;408;364;1358;1040,none +2,2,00000418_ce5b31679ee845a69ba89d6f_step_000,ce5b31679ee845a69ba89d6f,418,0;1;3;4;5;6;7;8;9;10;11;12;13;14;15;16;17;18;19;20;21;22;23,00000993_ac4ba032d4b5431ca04f542c_step_000;00000329_12a935cd9b684f879c0505fe_step_000;00000103_52f7124261ae4c558f800775_step_000;00001067_8a2edcf36bcd435092f4c8ae_step_001;00000162_4dcda9fab6dd46cf98fb194e_step_000;00001490_6c8ef6d2f5564d139a5077f8_step_001;00001387_60cf3ad636dd42e0bcec6946_step_000;00000280_5a6ef3285b89452ea6b390e7_step_001;00000140_2fc54fcd110d4f49969163c4_step_003;00000161_a583c6c3cdc143bab3f6c856_step_000;00001041_6baf25f5fe2947e8927797d8_step_000;00000411_305e45c9479f43979b0d7b53_step_000;00000996_6d71695ba3fd475c927a00a7_step_000;00001106_ba88e7579ced4a0aa2de629c_step_000;00000060_767e4372b5f94a88a7a17d90_step_001;00000723_8ed79b6bcb024d1a9f2aa5e7_step_000;00000405_f3759bbb4682423caf207e8e_step_002;00000206_27417003e762409185cb2b69_step_000;00001417_a45f6c99e2154f3b94955175_step_001;00000408_36bcb4030e36417b8dc74b87_step_000;00000364_38d899e2706a4d09960705dd_step_001;00001358_2e314c6e080b40fcb6a6db96_step_001;00001040_74c42207fa764831b03f7658_step_000,ac4ba032d4b5431ca04f542c;12a935cd9b684f879c0505fe;52f7124261ae4c558f800775;8a2edcf36bcd435092f4c8ae;4dcda9fab6dd46cf98fb194e;6c8ef6d2f5564d139a5077f8;60cf3ad636dd42e0bcec6946;5a6ef3285b89452ea6b390e7;2fc54fcd110d4f49969163c4;a583c6c3cdc143bab3f6c856;6baf25f5fe2947e8927797d8;305e45c9479f43979b0d7b53;6d71695ba3fd475c927a00a7;ba88e7579ced4a0aa2de629c;767e4372b5f94a88a7a17d90;8ed79b6bcb024d1a9f2aa5e7;f3759bbb4682423caf207e8e;27417003e762409185cb2b69;a45f6c99e2154f3b94955175;36bcb4030e36417b8dc74b87;38d899e2706a4d09960705dd;2e314c6e080b40fcb6a6db96;74c42207fa764831b03f7658,993;329;103;1067;162;1490;1387;280;140;161;1041;411;996;1106;60;723;405;206;1417;408;364;1358;1040,none +3,3,00000103_52f7124261ae4c558f800775_step_000,52f7124261ae4c558f800775,103,0;1;2;4;5;6;7;8;9;10;11;12;13;14;15;16;17;18;19;20;21;22;23,00000993_ac4ba032d4b5431ca04f542c_step_000;00000329_12a935cd9b684f879c0505fe_step_000;00000418_ce5b31679ee845a69ba89d6f_step_000;00001067_8a2edcf36bcd435092f4c8ae_step_001;00000162_4dcda9fab6dd46cf98fb194e_step_000;00001490_6c8ef6d2f5564d139a5077f8_step_001;00001387_60cf3ad636dd42e0bcec6946_step_000;00000280_5a6ef3285b89452ea6b390e7_step_001;00000140_2fc54fcd110d4f49969163c4_step_003;00000161_a583c6c3cdc143bab3f6c856_step_000;00001041_6baf25f5fe2947e8927797d8_step_000;00000411_305e45c9479f43979b0d7b53_step_000;00000996_6d71695ba3fd475c927a00a7_step_000;00001106_ba88e7579ced4a0aa2de629c_step_000;00000060_767e4372b5f94a88a7a17d90_step_001;00000723_8ed79b6bcb024d1a9f2aa5e7_step_000;00000405_f3759bbb4682423caf207e8e_step_002;00000206_27417003e762409185cb2b69_step_000;00001417_a45f6c99e2154f3b94955175_step_001;00000408_36bcb4030e36417b8dc74b87_step_000;00000364_38d899e2706a4d09960705dd_step_001;00001358_2e314c6e080b40fcb6a6db96_step_001;00001040_74c42207fa764831b03f7658_step_000,ac4ba032d4b5431ca04f542c;12a935cd9b684f879c0505fe;ce5b31679ee845a69ba89d6f;8a2edcf36bcd435092f4c8ae;4dcda9fab6dd46cf98fb194e;6c8ef6d2f5564d139a5077f8;60cf3ad636dd42e0bcec6946;5a6ef3285b89452ea6b390e7;2fc54fcd110d4f49969163c4;a583c6c3cdc143bab3f6c856;6baf25f5fe2947e8927797d8;305e45c9479f43979b0d7b53;6d71695ba3fd475c927a00a7;ba88e7579ced4a0aa2de629c;767e4372b5f94a88a7a17d90;8ed79b6bcb024d1a9f2aa5e7;f3759bbb4682423caf207e8e;27417003e762409185cb2b69;a45f6c99e2154f3b94955175;36bcb4030e36417b8dc74b87;38d899e2706a4d09960705dd;2e314c6e080b40fcb6a6db96;74c42207fa764831b03f7658,993;329;418;1067;162;1490;1387;280;140;161;1041;411;996;1106;60;723;405;206;1417;408;364;1358;1040,none +4,4,00001067_8a2edcf36bcd435092f4c8ae_step_001,8a2edcf36bcd435092f4c8ae,1067,0;1;2;3;5;6;7;8;9;10;11;12;13;14;15;16;17;18;19;20;21;22;23,00000993_ac4ba032d4b5431ca04f542c_step_000;00000329_12a935cd9b684f879c0505fe_step_000;00000418_ce5b31679ee845a69ba89d6f_step_000;00000103_52f7124261ae4c558f800775_step_000;00000162_4dcda9fab6dd46cf98fb194e_step_000;00001490_6c8ef6d2f5564d139a5077f8_step_001;00001387_60cf3ad636dd42e0bcec6946_step_000;00000280_5a6ef3285b89452ea6b390e7_step_001;00000140_2fc54fcd110d4f49969163c4_step_003;00000161_a583c6c3cdc143bab3f6c856_step_000;00001041_6baf25f5fe2947e8927797d8_step_000;00000411_305e45c9479f43979b0d7b53_step_000;00000996_6d71695ba3fd475c927a00a7_step_000;00001106_ba88e7579ced4a0aa2de629c_step_000;00000060_767e4372b5f94a88a7a17d90_step_001;00000723_8ed79b6bcb024d1a9f2aa5e7_step_000;00000405_f3759bbb4682423caf207e8e_step_002;00000206_27417003e762409185cb2b69_step_000;00001417_a45f6c99e2154f3b94955175_step_001;00000408_36bcb4030e36417b8dc74b87_step_000;00000364_38d899e2706a4d09960705dd_step_001;00001358_2e314c6e080b40fcb6a6db96_step_001;00001040_74c42207fa764831b03f7658_step_000,ac4ba032d4b5431ca04f542c;12a935cd9b684f879c0505fe;ce5b31679ee845a69ba89d6f;52f7124261ae4c558f800775;4dcda9fab6dd46cf98fb194e;6c8ef6d2f5564d139a5077f8;60cf3ad636dd42e0bcec6946;5a6ef3285b89452ea6b390e7;2fc54fcd110d4f49969163c4;a583c6c3cdc143bab3f6c856;6baf25f5fe2947e8927797d8;305e45c9479f43979b0d7b53;6d71695ba3fd475c927a00a7;ba88e7579ced4a0aa2de629c;767e4372b5f94a88a7a17d90;8ed79b6bcb024d1a9f2aa5e7;f3759bbb4682423caf207e8e;27417003e762409185cb2b69;a45f6c99e2154f3b94955175;36bcb4030e36417b8dc74b87;38d899e2706a4d09960705dd;2e314c6e080b40fcb6a6db96;74c42207fa764831b03f7658,993;329;418;103;162;1490;1387;280;140;161;1041;411;996;1106;60;723;405;206;1417;408;364;1358;1040,none +5,5,00000162_4dcda9fab6dd46cf98fb194e_step_000,4dcda9fab6dd46cf98fb194e,162,0;1;2;3;4;6;7;8;9;10;11;12;13;14;15;16;17;18;19;20;21;22;23,00000993_ac4ba032d4b5431ca04f542c_step_000;00000329_12a935cd9b684f879c0505fe_step_000;00000418_ce5b31679ee845a69ba89d6f_step_000;00000103_52f7124261ae4c558f800775_step_000;00001067_8a2edcf36bcd435092f4c8ae_step_001;00001490_6c8ef6d2f5564d139a5077f8_step_001;00001387_60cf3ad636dd42e0bcec6946_step_000;00000280_5a6ef3285b89452ea6b390e7_step_001;00000140_2fc54fcd110d4f49969163c4_step_003;00000161_a583c6c3cdc143bab3f6c856_step_000;00001041_6baf25f5fe2947e8927797d8_step_000;00000411_305e45c9479f43979b0d7b53_step_000;00000996_6d71695ba3fd475c927a00a7_step_000;00001106_ba88e7579ced4a0aa2de629c_step_000;00000060_767e4372b5f94a88a7a17d90_step_001;00000723_8ed79b6bcb024d1a9f2aa5e7_step_000;00000405_f3759bbb4682423caf207e8e_step_002;00000206_27417003e762409185cb2b69_step_000;00001417_a45f6c99e2154f3b94955175_step_001;00000408_36bcb4030e36417b8dc74b87_step_000;00000364_38d899e2706a4d09960705dd_step_001;00001358_2e314c6e080b40fcb6a6db96_step_001;00001040_74c42207fa764831b03f7658_step_000,ac4ba032d4b5431ca04f542c;12a935cd9b684f879c0505fe;ce5b31679ee845a69ba89d6f;52f7124261ae4c558f800775;8a2edcf36bcd435092f4c8ae;6c8ef6d2f5564d139a5077f8;60cf3ad636dd42e0bcec6946;5a6ef3285b89452ea6b390e7;2fc54fcd110d4f49969163c4;a583c6c3cdc143bab3f6c856;6baf25f5fe2947e8927797d8;305e45c9479f43979b0d7b53;6d71695ba3fd475c927a00a7;ba88e7579ced4a0aa2de629c;767e4372b5f94a88a7a17d90;8ed79b6bcb024d1a9f2aa5e7;f3759bbb4682423caf207e8e;27417003e762409185cb2b69;a45f6c99e2154f3b94955175;36bcb4030e36417b8dc74b87;38d899e2706a4d09960705dd;2e314c6e080b40fcb6a6db96;74c42207fa764831b03f7658,993;329;418;103;1067;1490;1387;280;140;161;1041;411;996;1106;60;723;405;206;1417;408;364;1358;1040,none +6,6,00001490_6c8ef6d2f5564d139a5077f8_step_001,6c8ef6d2f5564d139a5077f8,1490,0;1;2;3;4;5;7;8;9;10;11;12;13;14;15;16;17;18;19;20;21;22;23,00000993_ac4ba032d4b5431ca04f542c_step_000;00000329_12a935cd9b684f879c0505fe_step_000;00000418_ce5b31679ee845a69ba89d6f_step_000;00000103_52f7124261ae4c558f800775_step_000;00001067_8a2edcf36bcd435092f4c8ae_step_001;00000162_4dcda9fab6dd46cf98fb194e_step_000;00001387_60cf3ad636dd42e0bcec6946_step_000;00000280_5a6ef3285b89452ea6b390e7_step_001;00000140_2fc54fcd110d4f49969163c4_step_003;00000161_a583c6c3cdc143bab3f6c856_step_000;00001041_6baf25f5fe2947e8927797d8_step_000;00000411_305e45c9479f43979b0d7b53_step_000;00000996_6d71695ba3fd475c927a00a7_step_000;00001106_ba88e7579ced4a0aa2de629c_step_000;00000060_767e4372b5f94a88a7a17d90_step_001;00000723_8ed79b6bcb024d1a9f2aa5e7_step_000;00000405_f3759bbb4682423caf207e8e_step_002;00000206_27417003e762409185cb2b69_step_000;00001417_a45f6c99e2154f3b94955175_step_001;00000408_36bcb4030e36417b8dc74b87_step_000;00000364_38d899e2706a4d09960705dd_step_001;00001358_2e314c6e080b40fcb6a6db96_step_001;00001040_74c42207fa764831b03f7658_step_000,ac4ba032d4b5431ca04f542c;12a935cd9b684f879c0505fe;ce5b31679ee845a69ba89d6f;52f7124261ae4c558f800775;8a2edcf36bcd435092f4c8ae;4dcda9fab6dd46cf98fb194e;60cf3ad636dd42e0bcec6946;5a6ef3285b89452ea6b390e7;2fc54fcd110d4f49969163c4;a583c6c3cdc143bab3f6c856;6baf25f5fe2947e8927797d8;305e45c9479f43979b0d7b53;6d71695ba3fd475c927a00a7;ba88e7579ced4a0aa2de629c;767e4372b5f94a88a7a17d90;8ed79b6bcb024d1a9f2aa5e7;f3759bbb4682423caf207e8e;27417003e762409185cb2b69;a45f6c99e2154f3b94955175;36bcb4030e36417b8dc74b87;38d899e2706a4d09960705dd;2e314c6e080b40fcb6a6db96;74c42207fa764831b03f7658,993;329;418;103;1067;162;1387;280;140;161;1041;411;996;1106;60;723;405;206;1417;408;364;1358;1040,none +7,7,00001387_60cf3ad636dd42e0bcec6946_step_000,60cf3ad636dd42e0bcec6946,1387,0;1;2;3;4;5;6;8;9;10;11;12;13;14;15;16;17;18;19;20;21;22;23,00000993_ac4ba032d4b5431ca04f542c_step_000;00000329_12a935cd9b684f879c0505fe_step_000;00000418_ce5b31679ee845a69ba89d6f_step_000;00000103_52f7124261ae4c558f800775_step_000;00001067_8a2edcf36bcd435092f4c8ae_step_001;00000162_4dcda9fab6dd46cf98fb194e_step_000;00001490_6c8ef6d2f5564d139a5077f8_step_001;00000280_5a6ef3285b89452ea6b390e7_step_001;00000140_2fc54fcd110d4f49969163c4_step_003;00000161_a583c6c3cdc143bab3f6c856_step_000;00001041_6baf25f5fe2947e8927797d8_step_000;00000411_305e45c9479f43979b0d7b53_step_000;00000996_6d71695ba3fd475c927a00a7_step_000;00001106_ba88e7579ced4a0aa2de629c_step_000;00000060_767e4372b5f94a88a7a17d90_step_001;00000723_8ed79b6bcb024d1a9f2aa5e7_step_000;00000405_f3759bbb4682423caf207e8e_step_002;00000206_27417003e762409185cb2b69_step_000;00001417_a45f6c99e2154f3b94955175_step_001;00000408_36bcb4030e36417b8dc74b87_step_000;00000364_38d899e2706a4d09960705dd_step_001;00001358_2e314c6e080b40fcb6a6db96_step_001;00001040_74c42207fa764831b03f7658_step_000,ac4ba032d4b5431ca04f542c;12a935cd9b684f879c0505fe;ce5b31679ee845a69ba89d6f;52f7124261ae4c558f800775;8a2edcf36bcd435092f4c8ae;4dcda9fab6dd46cf98fb194e;6c8ef6d2f5564d139a5077f8;5a6ef3285b89452ea6b390e7;2fc54fcd110d4f49969163c4;a583c6c3cdc143bab3f6c856;6baf25f5fe2947e8927797d8;305e45c9479f43979b0d7b53;6d71695ba3fd475c927a00a7;ba88e7579ced4a0aa2de629c;767e4372b5f94a88a7a17d90;8ed79b6bcb024d1a9f2aa5e7;f3759bbb4682423caf207e8e;27417003e762409185cb2b69;a45f6c99e2154f3b94955175;36bcb4030e36417b8dc74b87;38d899e2706a4d09960705dd;2e314c6e080b40fcb6a6db96;74c42207fa764831b03f7658,993;329;418;103;1067;162;1490;280;140;161;1041;411;996;1106;60;723;405;206;1417;408;364;1358;1040,none +8,8,00000280_5a6ef3285b89452ea6b390e7_step_001,5a6ef3285b89452ea6b390e7,280,0;1;2;3;4;5;6;7;9;10;11;12;13;14;15;16;17;18;19;20;21;22;23,00000993_ac4ba032d4b5431ca04f542c_step_000;00000329_12a935cd9b684f879c0505fe_step_000;00000418_ce5b31679ee845a69ba89d6f_step_000;00000103_52f7124261ae4c558f800775_step_000;00001067_8a2edcf36bcd435092f4c8ae_step_001;00000162_4dcda9fab6dd46cf98fb194e_step_000;00001490_6c8ef6d2f5564d139a5077f8_step_001;00001387_60cf3ad636dd42e0bcec6946_step_000;00000140_2fc54fcd110d4f49969163c4_step_003;00000161_a583c6c3cdc143bab3f6c856_step_000;00001041_6baf25f5fe2947e8927797d8_step_000;00000411_305e45c9479f43979b0d7b53_step_000;00000996_6d71695ba3fd475c927a00a7_step_000;00001106_ba88e7579ced4a0aa2de629c_step_000;00000060_767e4372b5f94a88a7a17d90_step_001;00000723_8ed79b6bcb024d1a9f2aa5e7_step_000;00000405_f3759bbb4682423caf207e8e_step_002;00000206_27417003e762409185cb2b69_step_000;00001417_a45f6c99e2154f3b94955175_step_001;00000408_36bcb4030e36417b8dc74b87_step_000;00000364_38d899e2706a4d09960705dd_step_001;00001358_2e314c6e080b40fcb6a6db96_step_001;00001040_74c42207fa764831b03f7658_step_000,ac4ba032d4b5431ca04f542c;12a935cd9b684f879c0505fe;ce5b31679ee845a69ba89d6f;52f7124261ae4c558f800775;8a2edcf36bcd435092f4c8ae;4dcda9fab6dd46cf98fb194e;6c8ef6d2f5564d139a5077f8;60cf3ad636dd42e0bcec6946;2fc54fcd110d4f49969163c4;a583c6c3cdc143bab3f6c856;6baf25f5fe2947e8927797d8;305e45c9479f43979b0d7b53;6d71695ba3fd475c927a00a7;ba88e7579ced4a0aa2de629c;767e4372b5f94a88a7a17d90;8ed79b6bcb024d1a9f2aa5e7;f3759bbb4682423caf207e8e;27417003e762409185cb2b69;a45f6c99e2154f3b94955175;36bcb4030e36417b8dc74b87;38d899e2706a4d09960705dd;2e314c6e080b40fcb6a6db96;74c42207fa764831b03f7658,993;329;418;103;1067;162;1490;1387;140;161;1041;411;996;1106;60;723;405;206;1417;408;364;1358;1040,none +9,9,00000140_2fc54fcd110d4f49969163c4_step_003,2fc54fcd110d4f49969163c4,140,0;1;2;3;4;5;6;7;8;10;11;12;13;14;15;16;17;18;19;20;21;22;23,00000993_ac4ba032d4b5431ca04f542c_step_000;00000329_12a935cd9b684f879c0505fe_step_000;00000418_ce5b31679ee845a69ba89d6f_step_000;00000103_52f7124261ae4c558f800775_step_000;00001067_8a2edcf36bcd435092f4c8ae_step_001;00000162_4dcda9fab6dd46cf98fb194e_step_000;00001490_6c8ef6d2f5564d139a5077f8_step_001;00001387_60cf3ad636dd42e0bcec6946_step_000;00000280_5a6ef3285b89452ea6b390e7_step_001;00000161_a583c6c3cdc143bab3f6c856_step_000;00001041_6baf25f5fe2947e8927797d8_step_000;00000411_305e45c9479f43979b0d7b53_step_000;00000996_6d71695ba3fd475c927a00a7_step_000;00001106_ba88e7579ced4a0aa2de629c_step_000;00000060_767e4372b5f94a88a7a17d90_step_001;00000723_8ed79b6bcb024d1a9f2aa5e7_step_000;00000405_f3759bbb4682423caf207e8e_step_002;00000206_27417003e762409185cb2b69_step_000;00001417_a45f6c99e2154f3b94955175_step_001;00000408_36bcb4030e36417b8dc74b87_step_000;00000364_38d899e2706a4d09960705dd_step_001;00001358_2e314c6e080b40fcb6a6db96_step_001;00001040_74c42207fa764831b03f7658_step_000,ac4ba032d4b5431ca04f542c;12a935cd9b684f879c0505fe;ce5b31679ee845a69ba89d6f;52f7124261ae4c558f800775;8a2edcf36bcd435092f4c8ae;4dcda9fab6dd46cf98fb194e;6c8ef6d2f5564d139a5077f8;60cf3ad636dd42e0bcec6946;5a6ef3285b89452ea6b390e7;a583c6c3cdc143bab3f6c856;6baf25f5fe2947e8927797d8;305e45c9479f43979b0d7b53;6d71695ba3fd475c927a00a7;ba88e7579ced4a0aa2de629c;767e4372b5f94a88a7a17d90;8ed79b6bcb024d1a9f2aa5e7;f3759bbb4682423caf207e8e;27417003e762409185cb2b69;a45f6c99e2154f3b94955175;36bcb4030e36417b8dc74b87;38d899e2706a4d09960705dd;2e314c6e080b40fcb6a6db96;74c42207fa764831b03f7658,993;329;418;103;1067;162;1490;1387;280;161;1041;411;996;1106;60;723;405;206;1417;408;364;1358;1040,none +10,10,00000161_a583c6c3cdc143bab3f6c856_step_000,a583c6c3cdc143bab3f6c856,161,0;1;2;3;4;5;6;7;8;9;11;12;13;14;15;16;17;18;19;20;21;22;23,00000993_ac4ba032d4b5431ca04f542c_step_000;00000329_12a935cd9b684f879c0505fe_step_000;00000418_ce5b31679ee845a69ba89d6f_step_000;00000103_52f7124261ae4c558f800775_step_000;00001067_8a2edcf36bcd435092f4c8ae_step_001;00000162_4dcda9fab6dd46cf98fb194e_step_000;00001490_6c8ef6d2f5564d139a5077f8_step_001;00001387_60cf3ad636dd42e0bcec6946_step_000;00000280_5a6ef3285b89452ea6b390e7_step_001;00000140_2fc54fcd110d4f49969163c4_step_003;00001041_6baf25f5fe2947e8927797d8_step_000;00000411_305e45c9479f43979b0d7b53_step_000;00000996_6d71695ba3fd475c927a00a7_step_000;00001106_ba88e7579ced4a0aa2de629c_step_000;00000060_767e4372b5f94a88a7a17d90_step_001;00000723_8ed79b6bcb024d1a9f2aa5e7_step_000;00000405_f3759bbb4682423caf207e8e_step_002;00000206_27417003e762409185cb2b69_step_000;00001417_a45f6c99e2154f3b94955175_step_001;00000408_36bcb4030e36417b8dc74b87_step_000;00000364_38d899e2706a4d09960705dd_step_001;00001358_2e314c6e080b40fcb6a6db96_step_001;00001040_74c42207fa764831b03f7658_step_000,ac4ba032d4b5431ca04f542c;12a935cd9b684f879c0505fe;ce5b31679ee845a69ba89d6f;52f7124261ae4c558f800775;8a2edcf36bcd435092f4c8ae;4dcda9fab6dd46cf98fb194e;6c8ef6d2f5564d139a5077f8;60cf3ad636dd42e0bcec6946;5a6ef3285b89452ea6b390e7;2fc54fcd110d4f49969163c4;6baf25f5fe2947e8927797d8;305e45c9479f43979b0d7b53;6d71695ba3fd475c927a00a7;ba88e7579ced4a0aa2de629c;767e4372b5f94a88a7a17d90;8ed79b6bcb024d1a9f2aa5e7;f3759bbb4682423caf207e8e;27417003e762409185cb2b69;a45f6c99e2154f3b94955175;36bcb4030e36417b8dc74b87;38d899e2706a4d09960705dd;2e314c6e080b40fcb6a6db96;74c42207fa764831b03f7658,993;329;418;103;1067;162;1490;1387;280;140;1041;411;996;1106;60;723;405;206;1417;408;364;1358;1040,none +11,11,00001041_6baf25f5fe2947e8927797d8_step_000,6baf25f5fe2947e8927797d8,1041,0;1;2;3;4;5;6;7;8;9;10;12;13;14;15;16;17;18;19;20;21;22;23,00000993_ac4ba032d4b5431ca04f542c_step_000;00000329_12a935cd9b684f879c0505fe_step_000;00000418_ce5b31679ee845a69ba89d6f_step_000;00000103_52f7124261ae4c558f800775_step_000;00001067_8a2edcf36bcd435092f4c8ae_step_001;00000162_4dcda9fab6dd46cf98fb194e_step_000;00001490_6c8ef6d2f5564d139a5077f8_step_001;00001387_60cf3ad636dd42e0bcec6946_step_000;00000280_5a6ef3285b89452ea6b390e7_step_001;00000140_2fc54fcd110d4f49969163c4_step_003;00000161_a583c6c3cdc143bab3f6c856_step_000;00000411_305e45c9479f43979b0d7b53_step_000;00000996_6d71695ba3fd475c927a00a7_step_000;00001106_ba88e7579ced4a0aa2de629c_step_000;00000060_767e4372b5f94a88a7a17d90_step_001;00000723_8ed79b6bcb024d1a9f2aa5e7_step_000;00000405_f3759bbb4682423caf207e8e_step_002;00000206_27417003e762409185cb2b69_step_000;00001417_a45f6c99e2154f3b94955175_step_001;00000408_36bcb4030e36417b8dc74b87_step_000;00000364_38d899e2706a4d09960705dd_step_001;00001358_2e314c6e080b40fcb6a6db96_step_001;00001040_74c42207fa764831b03f7658_step_000,ac4ba032d4b5431ca04f542c;12a935cd9b684f879c0505fe;ce5b31679ee845a69ba89d6f;52f7124261ae4c558f800775;8a2edcf36bcd435092f4c8ae;4dcda9fab6dd46cf98fb194e;6c8ef6d2f5564d139a5077f8;60cf3ad636dd42e0bcec6946;5a6ef3285b89452ea6b390e7;2fc54fcd110d4f49969163c4;a583c6c3cdc143bab3f6c856;305e45c9479f43979b0d7b53;6d71695ba3fd475c927a00a7;ba88e7579ced4a0aa2de629c;767e4372b5f94a88a7a17d90;8ed79b6bcb024d1a9f2aa5e7;f3759bbb4682423caf207e8e;27417003e762409185cb2b69;a45f6c99e2154f3b94955175;36bcb4030e36417b8dc74b87;38d899e2706a4d09960705dd;2e314c6e080b40fcb6a6db96;74c42207fa764831b03f7658,993;329;418;103;1067;162;1490;1387;280;140;161;411;996;1106;60;723;405;206;1417;408;364;1358;1040,none +12,12,00000411_305e45c9479f43979b0d7b53_step_000,305e45c9479f43979b0d7b53,411,0;1;2;3;4;5;6;7;8;9;10;11;13;14;15;16;17;18;19;20;21;22;23,00000993_ac4ba032d4b5431ca04f542c_step_000;00000329_12a935cd9b684f879c0505fe_step_000;00000418_ce5b31679ee845a69ba89d6f_step_000;00000103_52f7124261ae4c558f800775_step_000;00001067_8a2edcf36bcd435092f4c8ae_step_001;00000162_4dcda9fab6dd46cf98fb194e_step_000;00001490_6c8ef6d2f5564d139a5077f8_step_001;00001387_60cf3ad636dd42e0bcec6946_step_000;00000280_5a6ef3285b89452ea6b390e7_step_001;00000140_2fc54fcd110d4f49969163c4_step_003;00000161_a583c6c3cdc143bab3f6c856_step_000;00001041_6baf25f5fe2947e8927797d8_step_000;00000996_6d71695ba3fd475c927a00a7_step_000;00001106_ba88e7579ced4a0aa2de629c_step_000;00000060_767e4372b5f94a88a7a17d90_step_001;00000723_8ed79b6bcb024d1a9f2aa5e7_step_000;00000405_f3759bbb4682423caf207e8e_step_002;00000206_27417003e762409185cb2b69_step_000;00001417_a45f6c99e2154f3b94955175_step_001;00000408_36bcb4030e36417b8dc74b87_step_000;00000364_38d899e2706a4d09960705dd_step_001;00001358_2e314c6e080b40fcb6a6db96_step_001;00001040_74c42207fa764831b03f7658_step_000,ac4ba032d4b5431ca04f542c;12a935cd9b684f879c0505fe;ce5b31679ee845a69ba89d6f;52f7124261ae4c558f800775;8a2edcf36bcd435092f4c8ae;4dcda9fab6dd46cf98fb194e;6c8ef6d2f5564d139a5077f8;60cf3ad636dd42e0bcec6946;5a6ef3285b89452ea6b390e7;2fc54fcd110d4f49969163c4;a583c6c3cdc143bab3f6c856;6baf25f5fe2947e8927797d8;6d71695ba3fd475c927a00a7;ba88e7579ced4a0aa2de629c;767e4372b5f94a88a7a17d90;8ed79b6bcb024d1a9f2aa5e7;f3759bbb4682423caf207e8e;27417003e762409185cb2b69;a45f6c99e2154f3b94955175;36bcb4030e36417b8dc74b87;38d899e2706a4d09960705dd;2e314c6e080b40fcb6a6db96;74c42207fa764831b03f7658,993;329;418;103;1067;162;1490;1387;280;140;161;1041;996;1106;60;723;405;206;1417;408;364;1358;1040,none +13,13,00000996_6d71695ba3fd475c927a00a7_step_000,6d71695ba3fd475c927a00a7,996,0;1;2;3;4;5;6;7;8;9;10;11;12;14;15;16;17;18;19;20;21;22;23,00000993_ac4ba032d4b5431ca04f542c_step_000;00000329_12a935cd9b684f879c0505fe_step_000;00000418_ce5b31679ee845a69ba89d6f_step_000;00000103_52f7124261ae4c558f800775_step_000;00001067_8a2edcf36bcd435092f4c8ae_step_001;00000162_4dcda9fab6dd46cf98fb194e_step_000;00001490_6c8ef6d2f5564d139a5077f8_step_001;00001387_60cf3ad636dd42e0bcec6946_step_000;00000280_5a6ef3285b89452ea6b390e7_step_001;00000140_2fc54fcd110d4f49969163c4_step_003;00000161_a583c6c3cdc143bab3f6c856_step_000;00001041_6baf25f5fe2947e8927797d8_step_000;00000411_305e45c9479f43979b0d7b53_step_000;00001106_ba88e7579ced4a0aa2de629c_step_000;00000060_767e4372b5f94a88a7a17d90_step_001;00000723_8ed79b6bcb024d1a9f2aa5e7_step_000;00000405_f3759bbb4682423caf207e8e_step_002;00000206_27417003e762409185cb2b69_step_000;00001417_a45f6c99e2154f3b94955175_step_001;00000408_36bcb4030e36417b8dc74b87_step_000;00000364_38d899e2706a4d09960705dd_step_001;00001358_2e314c6e080b40fcb6a6db96_step_001;00001040_74c42207fa764831b03f7658_step_000,ac4ba032d4b5431ca04f542c;12a935cd9b684f879c0505fe;ce5b31679ee845a69ba89d6f;52f7124261ae4c558f800775;8a2edcf36bcd435092f4c8ae;4dcda9fab6dd46cf98fb194e;6c8ef6d2f5564d139a5077f8;60cf3ad636dd42e0bcec6946;5a6ef3285b89452ea6b390e7;2fc54fcd110d4f49969163c4;a583c6c3cdc143bab3f6c856;6baf25f5fe2947e8927797d8;305e45c9479f43979b0d7b53;ba88e7579ced4a0aa2de629c;767e4372b5f94a88a7a17d90;8ed79b6bcb024d1a9f2aa5e7;f3759bbb4682423caf207e8e;27417003e762409185cb2b69;a45f6c99e2154f3b94955175;36bcb4030e36417b8dc74b87;38d899e2706a4d09960705dd;2e314c6e080b40fcb6a6db96;74c42207fa764831b03f7658,993;329;418;103;1067;162;1490;1387;280;140;161;1041;411;1106;60;723;405;206;1417;408;364;1358;1040,none +14,14,00001106_ba88e7579ced4a0aa2de629c_step_000,ba88e7579ced4a0aa2de629c,1106,0;1;2;3;4;5;6;7;8;9;10;11;12;13;15;16;17;18;19;20;21;22;23,00000993_ac4ba032d4b5431ca04f542c_step_000;00000329_12a935cd9b684f879c0505fe_step_000;00000418_ce5b31679ee845a69ba89d6f_step_000;00000103_52f7124261ae4c558f800775_step_000;00001067_8a2edcf36bcd435092f4c8ae_step_001;00000162_4dcda9fab6dd46cf98fb194e_step_000;00001490_6c8ef6d2f5564d139a5077f8_step_001;00001387_60cf3ad636dd42e0bcec6946_step_000;00000280_5a6ef3285b89452ea6b390e7_step_001;00000140_2fc54fcd110d4f49969163c4_step_003;00000161_a583c6c3cdc143bab3f6c856_step_000;00001041_6baf25f5fe2947e8927797d8_step_000;00000411_305e45c9479f43979b0d7b53_step_000;00000996_6d71695ba3fd475c927a00a7_step_000;00000060_767e4372b5f94a88a7a17d90_step_001;00000723_8ed79b6bcb024d1a9f2aa5e7_step_000;00000405_f3759bbb4682423caf207e8e_step_002;00000206_27417003e762409185cb2b69_step_000;00001417_a45f6c99e2154f3b94955175_step_001;00000408_36bcb4030e36417b8dc74b87_step_000;00000364_38d899e2706a4d09960705dd_step_001;00001358_2e314c6e080b40fcb6a6db96_step_001;00001040_74c42207fa764831b03f7658_step_000,ac4ba032d4b5431ca04f542c;12a935cd9b684f879c0505fe;ce5b31679ee845a69ba89d6f;52f7124261ae4c558f800775;8a2edcf36bcd435092f4c8ae;4dcda9fab6dd46cf98fb194e;6c8ef6d2f5564d139a5077f8;60cf3ad636dd42e0bcec6946;5a6ef3285b89452ea6b390e7;2fc54fcd110d4f49969163c4;a583c6c3cdc143bab3f6c856;6baf25f5fe2947e8927797d8;305e45c9479f43979b0d7b53;6d71695ba3fd475c927a00a7;767e4372b5f94a88a7a17d90;8ed79b6bcb024d1a9f2aa5e7;f3759bbb4682423caf207e8e;27417003e762409185cb2b69;a45f6c99e2154f3b94955175;36bcb4030e36417b8dc74b87;38d899e2706a4d09960705dd;2e314c6e080b40fcb6a6db96;74c42207fa764831b03f7658,993;329;418;103;1067;162;1490;1387;280;140;161;1041;411;996;60;723;405;206;1417;408;364;1358;1040,none +15,15,00000060_767e4372b5f94a88a7a17d90_step_001,767e4372b5f94a88a7a17d90,60,0;1;2;3;4;5;6;7;8;9;10;11;12;13;14;16;17;18;19;20;21;22;23,00000993_ac4ba032d4b5431ca04f542c_step_000;00000329_12a935cd9b684f879c0505fe_step_000;00000418_ce5b31679ee845a69ba89d6f_step_000;00000103_52f7124261ae4c558f800775_step_000;00001067_8a2edcf36bcd435092f4c8ae_step_001;00000162_4dcda9fab6dd46cf98fb194e_step_000;00001490_6c8ef6d2f5564d139a5077f8_step_001;00001387_60cf3ad636dd42e0bcec6946_step_000;00000280_5a6ef3285b89452ea6b390e7_step_001;00000140_2fc54fcd110d4f49969163c4_step_003;00000161_a583c6c3cdc143bab3f6c856_step_000;00001041_6baf25f5fe2947e8927797d8_step_000;00000411_305e45c9479f43979b0d7b53_step_000;00000996_6d71695ba3fd475c927a00a7_step_000;00001106_ba88e7579ced4a0aa2de629c_step_000;00000723_8ed79b6bcb024d1a9f2aa5e7_step_000;00000405_f3759bbb4682423caf207e8e_step_002;00000206_27417003e762409185cb2b69_step_000;00001417_a45f6c99e2154f3b94955175_step_001;00000408_36bcb4030e36417b8dc74b87_step_000;00000364_38d899e2706a4d09960705dd_step_001;00001358_2e314c6e080b40fcb6a6db96_step_001;00001040_74c42207fa764831b03f7658_step_000,ac4ba032d4b5431ca04f542c;12a935cd9b684f879c0505fe;ce5b31679ee845a69ba89d6f;52f7124261ae4c558f800775;8a2edcf36bcd435092f4c8ae;4dcda9fab6dd46cf98fb194e;6c8ef6d2f5564d139a5077f8;60cf3ad636dd42e0bcec6946;5a6ef3285b89452ea6b390e7;2fc54fcd110d4f49969163c4;a583c6c3cdc143bab3f6c856;6baf25f5fe2947e8927797d8;305e45c9479f43979b0d7b53;6d71695ba3fd475c927a00a7;ba88e7579ced4a0aa2de629c;8ed79b6bcb024d1a9f2aa5e7;f3759bbb4682423caf207e8e;27417003e762409185cb2b69;a45f6c99e2154f3b94955175;36bcb4030e36417b8dc74b87;38d899e2706a4d09960705dd;2e314c6e080b40fcb6a6db96;74c42207fa764831b03f7658,993;329;418;103;1067;162;1490;1387;280;140;161;1041;411;996;1106;723;405;206;1417;408;364;1358;1040,none +16,16,00000723_8ed79b6bcb024d1a9f2aa5e7_step_000,8ed79b6bcb024d1a9f2aa5e7,723,0;1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;17;18;19;20;21;22;23,00000993_ac4ba032d4b5431ca04f542c_step_000;00000329_12a935cd9b684f879c0505fe_step_000;00000418_ce5b31679ee845a69ba89d6f_step_000;00000103_52f7124261ae4c558f800775_step_000;00001067_8a2edcf36bcd435092f4c8ae_step_001;00000162_4dcda9fab6dd46cf98fb194e_step_000;00001490_6c8ef6d2f5564d139a5077f8_step_001;00001387_60cf3ad636dd42e0bcec6946_step_000;00000280_5a6ef3285b89452ea6b390e7_step_001;00000140_2fc54fcd110d4f49969163c4_step_003;00000161_a583c6c3cdc143bab3f6c856_step_000;00001041_6baf25f5fe2947e8927797d8_step_000;00000411_305e45c9479f43979b0d7b53_step_000;00000996_6d71695ba3fd475c927a00a7_step_000;00001106_ba88e7579ced4a0aa2de629c_step_000;00000060_767e4372b5f94a88a7a17d90_step_001;00000405_f3759bbb4682423caf207e8e_step_002;00000206_27417003e762409185cb2b69_step_000;00001417_a45f6c99e2154f3b94955175_step_001;00000408_36bcb4030e36417b8dc74b87_step_000;00000364_38d899e2706a4d09960705dd_step_001;00001358_2e314c6e080b40fcb6a6db96_step_001;00001040_74c42207fa764831b03f7658_step_000,ac4ba032d4b5431ca04f542c;12a935cd9b684f879c0505fe;ce5b31679ee845a69ba89d6f;52f7124261ae4c558f800775;8a2edcf36bcd435092f4c8ae;4dcda9fab6dd46cf98fb194e;6c8ef6d2f5564d139a5077f8;60cf3ad636dd42e0bcec6946;5a6ef3285b89452ea6b390e7;2fc54fcd110d4f49969163c4;a583c6c3cdc143bab3f6c856;6baf25f5fe2947e8927797d8;305e45c9479f43979b0d7b53;6d71695ba3fd475c927a00a7;ba88e7579ced4a0aa2de629c;767e4372b5f94a88a7a17d90;f3759bbb4682423caf207e8e;27417003e762409185cb2b69;a45f6c99e2154f3b94955175;36bcb4030e36417b8dc74b87;38d899e2706a4d09960705dd;2e314c6e080b40fcb6a6db96;74c42207fa764831b03f7658,993;329;418;103;1067;162;1490;1387;280;140;161;1041;411;996;1106;60;405;206;1417;408;364;1358;1040,none +17,17,00000405_f3759bbb4682423caf207e8e_step_002,f3759bbb4682423caf207e8e,405,0;1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;18;19;20;21;22;23,00000993_ac4ba032d4b5431ca04f542c_step_000;00000329_12a935cd9b684f879c0505fe_step_000;00000418_ce5b31679ee845a69ba89d6f_step_000;00000103_52f7124261ae4c558f800775_step_000;00001067_8a2edcf36bcd435092f4c8ae_step_001;00000162_4dcda9fab6dd46cf98fb194e_step_000;00001490_6c8ef6d2f5564d139a5077f8_step_001;00001387_60cf3ad636dd42e0bcec6946_step_000;00000280_5a6ef3285b89452ea6b390e7_step_001;00000140_2fc54fcd110d4f49969163c4_step_003;00000161_a583c6c3cdc143bab3f6c856_step_000;00001041_6baf25f5fe2947e8927797d8_step_000;00000411_305e45c9479f43979b0d7b53_step_000;00000996_6d71695ba3fd475c927a00a7_step_000;00001106_ba88e7579ced4a0aa2de629c_step_000;00000060_767e4372b5f94a88a7a17d90_step_001;00000723_8ed79b6bcb024d1a9f2aa5e7_step_000;00000206_27417003e762409185cb2b69_step_000;00001417_a45f6c99e2154f3b94955175_step_001;00000408_36bcb4030e36417b8dc74b87_step_000;00000364_38d899e2706a4d09960705dd_step_001;00001358_2e314c6e080b40fcb6a6db96_step_001;00001040_74c42207fa764831b03f7658_step_000,ac4ba032d4b5431ca04f542c;12a935cd9b684f879c0505fe;ce5b31679ee845a69ba89d6f;52f7124261ae4c558f800775;8a2edcf36bcd435092f4c8ae;4dcda9fab6dd46cf98fb194e;6c8ef6d2f5564d139a5077f8;60cf3ad636dd42e0bcec6946;5a6ef3285b89452ea6b390e7;2fc54fcd110d4f49969163c4;a583c6c3cdc143bab3f6c856;6baf25f5fe2947e8927797d8;305e45c9479f43979b0d7b53;6d71695ba3fd475c927a00a7;ba88e7579ced4a0aa2de629c;767e4372b5f94a88a7a17d90;8ed79b6bcb024d1a9f2aa5e7;27417003e762409185cb2b69;a45f6c99e2154f3b94955175;36bcb4030e36417b8dc74b87;38d899e2706a4d09960705dd;2e314c6e080b40fcb6a6db96;74c42207fa764831b03f7658,993;329;418;103;1067;162;1490;1387;280;140;161;1041;411;996;1106;60;723;206;1417;408;364;1358;1040,none +18,18,00000206_27417003e762409185cb2b69_step_000,27417003e762409185cb2b69,206,0;1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;17;19;20;21;22;23,00000993_ac4ba032d4b5431ca04f542c_step_000;00000329_12a935cd9b684f879c0505fe_step_000;00000418_ce5b31679ee845a69ba89d6f_step_000;00000103_52f7124261ae4c558f800775_step_000;00001067_8a2edcf36bcd435092f4c8ae_step_001;00000162_4dcda9fab6dd46cf98fb194e_step_000;00001490_6c8ef6d2f5564d139a5077f8_step_001;00001387_60cf3ad636dd42e0bcec6946_step_000;00000280_5a6ef3285b89452ea6b390e7_step_001;00000140_2fc54fcd110d4f49969163c4_step_003;00000161_a583c6c3cdc143bab3f6c856_step_000;00001041_6baf25f5fe2947e8927797d8_step_000;00000411_305e45c9479f43979b0d7b53_step_000;00000996_6d71695ba3fd475c927a00a7_step_000;00001106_ba88e7579ced4a0aa2de629c_step_000;00000060_767e4372b5f94a88a7a17d90_step_001;00000723_8ed79b6bcb024d1a9f2aa5e7_step_000;00000405_f3759bbb4682423caf207e8e_step_002;00001417_a45f6c99e2154f3b94955175_step_001;00000408_36bcb4030e36417b8dc74b87_step_000;00000364_38d899e2706a4d09960705dd_step_001;00001358_2e314c6e080b40fcb6a6db96_step_001;00001040_74c42207fa764831b03f7658_step_000,ac4ba032d4b5431ca04f542c;12a935cd9b684f879c0505fe;ce5b31679ee845a69ba89d6f;52f7124261ae4c558f800775;8a2edcf36bcd435092f4c8ae;4dcda9fab6dd46cf98fb194e;6c8ef6d2f5564d139a5077f8;60cf3ad636dd42e0bcec6946;5a6ef3285b89452ea6b390e7;2fc54fcd110d4f49969163c4;a583c6c3cdc143bab3f6c856;6baf25f5fe2947e8927797d8;305e45c9479f43979b0d7b53;6d71695ba3fd475c927a00a7;ba88e7579ced4a0aa2de629c;767e4372b5f94a88a7a17d90;8ed79b6bcb024d1a9f2aa5e7;f3759bbb4682423caf207e8e;a45f6c99e2154f3b94955175;36bcb4030e36417b8dc74b87;38d899e2706a4d09960705dd;2e314c6e080b40fcb6a6db96;74c42207fa764831b03f7658,993;329;418;103;1067;162;1490;1387;280;140;161;1041;411;996;1106;60;723;405;1417;408;364;1358;1040,none +19,19,00001417_a45f6c99e2154f3b94955175_step_001,a45f6c99e2154f3b94955175,1417,0;1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;17;18;20;21;22;23,00000993_ac4ba032d4b5431ca04f542c_step_000;00000329_12a935cd9b684f879c0505fe_step_000;00000418_ce5b31679ee845a69ba89d6f_step_000;00000103_52f7124261ae4c558f800775_step_000;00001067_8a2edcf36bcd435092f4c8ae_step_001;00000162_4dcda9fab6dd46cf98fb194e_step_000;00001490_6c8ef6d2f5564d139a5077f8_step_001;00001387_60cf3ad636dd42e0bcec6946_step_000;00000280_5a6ef3285b89452ea6b390e7_step_001;00000140_2fc54fcd110d4f49969163c4_step_003;00000161_a583c6c3cdc143bab3f6c856_step_000;00001041_6baf25f5fe2947e8927797d8_step_000;00000411_305e45c9479f43979b0d7b53_step_000;00000996_6d71695ba3fd475c927a00a7_step_000;00001106_ba88e7579ced4a0aa2de629c_step_000;00000060_767e4372b5f94a88a7a17d90_step_001;00000723_8ed79b6bcb024d1a9f2aa5e7_step_000;00000405_f3759bbb4682423caf207e8e_step_002;00000206_27417003e762409185cb2b69_step_000;00000408_36bcb4030e36417b8dc74b87_step_000;00000364_38d899e2706a4d09960705dd_step_001;00001358_2e314c6e080b40fcb6a6db96_step_001;00001040_74c42207fa764831b03f7658_step_000,ac4ba032d4b5431ca04f542c;12a935cd9b684f879c0505fe;ce5b31679ee845a69ba89d6f;52f7124261ae4c558f800775;8a2edcf36bcd435092f4c8ae;4dcda9fab6dd46cf98fb194e;6c8ef6d2f5564d139a5077f8;60cf3ad636dd42e0bcec6946;5a6ef3285b89452ea6b390e7;2fc54fcd110d4f49969163c4;a583c6c3cdc143bab3f6c856;6baf25f5fe2947e8927797d8;305e45c9479f43979b0d7b53;6d71695ba3fd475c927a00a7;ba88e7579ced4a0aa2de629c;767e4372b5f94a88a7a17d90;8ed79b6bcb024d1a9f2aa5e7;f3759bbb4682423caf207e8e;27417003e762409185cb2b69;36bcb4030e36417b8dc74b87;38d899e2706a4d09960705dd;2e314c6e080b40fcb6a6db96;74c42207fa764831b03f7658,993;329;418;103;1067;162;1490;1387;280;140;161;1041;411;996;1106;60;723;405;206;408;364;1358;1040,none +20,20,00000408_36bcb4030e36417b8dc74b87_step_000,36bcb4030e36417b8dc74b87,408,0;1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;17;18;19;21;22;23,00000993_ac4ba032d4b5431ca04f542c_step_000;00000329_12a935cd9b684f879c0505fe_step_000;00000418_ce5b31679ee845a69ba89d6f_step_000;00000103_52f7124261ae4c558f800775_step_000;00001067_8a2edcf36bcd435092f4c8ae_step_001;00000162_4dcda9fab6dd46cf98fb194e_step_000;00001490_6c8ef6d2f5564d139a5077f8_step_001;00001387_60cf3ad636dd42e0bcec6946_step_000;00000280_5a6ef3285b89452ea6b390e7_step_001;00000140_2fc54fcd110d4f49969163c4_step_003;00000161_a583c6c3cdc143bab3f6c856_step_000;00001041_6baf25f5fe2947e8927797d8_step_000;00000411_305e45c9479f43979b0d7b53_step_000;00000996_6d71695ba3fd475c927a00a7_step_000;00001106_ba88e7579ced4a0aa2de629c_step_000;00000060_767e4372b5f94a88a7a17d90_step_001;00000723_8ed79b6bcb024d1a9f2aa5e7_step_000;00000405_f3759bbb4682423caf207e8e_step_002;00000206_27417003e762409185cb2b69_step_000;00001417_a45f6c99e2154f3b94955175_step_001;00000364_38d899e2706a4d09960705dd_step_001;00001358_2e314c6e080b40fcb6a6db96_step_001;00001040_74c42207fa764831b03f7658_step_000,ac4ba032d4b5431ca04f542c;12a935cd9b684f879c0505fe;ce5b31679ee845a69ba89d6f;52f7124261ae4c558f800775;8a2edcf36bcd435092f4c8ae;4dcda9fab6dd46cf98fb194e;6c8ef6d2f5564d139a5077f8;60cf3ad636dd42e0bcec6946;5a6ef3285b89452ea6b390e7;2fc54fcd110d4f49969163c4;a583c6c3cdc143bab3f6c856;6baf25f5fe2947e8927797d8;305e45c9479f43979b0d7b53;6d71695ba3fd475c927a00a7;ba88e7579ced4a0aa2de629c;767e4372b5f94a88a7a17d90;8ed79b6bcb024d1a9f2aa5e7;f3759bbb4682423caf207e8e;27417003e762409185cb2b69;a45f6c99e2154f3b94955175;38d899e2706a4d09960705dd;2e314c6e080b40fcb6a6db96;74c42207fa764831b03f7658,993;329;418;103;1067;162;1490;1387;280;140;161;1041;411;996;1106;60;723;405;206;1417;364;1358;1040,none +21,21,00000364_38d899e2706a4d09960705dd_step_001,38d899e2706a4d09960705dd,364,0;1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;17;18;19;20;22;23,00000993_ac4ba032d4b5431ca04f542c_step_000;00000329_12a935cd9b684f879c0505fe_step_000;00000418_ce5b31679ee845a69ba89d6f_step_000;00000103_52f7124261ae4c558f800775_step_000;00001067_8a2edcf36bcd435092f4c8ae_step_001;00000162_4dcda9fab6dd46cf98fb194e_step_000;00001490_6c8ef6d2f5564d139a5077f8_step_001;00001387_60cf3ad636dd42e0bcec6946_step_000;00000280_5a6ef3285b89452ea6b390e7_step_001;00000140_2fc54fcd110d4f49969163c4_step_003;00000161_a583c6c3cdc143bab3f6c856_step_000;00001041_6baf25f5fe2947e8927797d8_step_000;00000411_305e45c9479f43979b0d7b53_step_000;00000996_6d71695ba3fd475c927a00a7_step_000;00001106_ba88e7579ced4a0aa2de629c_step_000;00000060_767e4372b5f94a88a7a17d90_step_001;00000723_8ed79b6bcb024d1a9f2aa5e7_step_000;00000405_f3759bbb4682423caf207e8e_step_002;00000206_27417003e762409185cb2b69_step_000;00001417_a45f6c99e2154f3b94955175_step_001;00000408_36bcb4030e36417b8dc74b87_step_000;00001358_2e314c6e080b40fcb6a6db96_step_001;00001040_74c42207fa764831b03f7658_step_000,ac4ba032d4b5431ca04f542c;12a935cd9b684f879c0505fe;ce5b31679ee845a69ba89d6f;52f7124261ae4c558f800775;8a2edcf36bcd435092f4c8ae;4dcda9fab6dd46cf98fb194e;6c8ef6d2f5564d139a5077f8;60cf3ad636dd42e0bcec6946;5a6ef3285b89452ea6b390e7;2fc54fcd110d4f49969163c4;a583c6c3cdc143bab3f6c856;6baf25f5fe2947e8927797d8;305e45c9479f43979b0d7b53;6d71695ba3fd475c927a00a7;ba88e7579ced4a0aa2de629c;767e4372b5f94a88a7a17d90;8ed79b6bcb024d1a9f2aa5e7;f3759bbb4682423caf207e8e;27417003e762409185cb2b69;a45f6c99e2154f3b94955175;36bcb4030e36417b8dc74b87;2e314c6e080b40fcb6a6db96;74c42207fa764831b03f7658,993;329;418;103;1067;162;1490;1387;280;140;161;1041;411;996;1106;60;723;405;206;1417;408;1358;1040,none +22,22,00001358_2e314c6e080b40fcb6a6db96_step_001,2e314c6e080b40fcb6a6db96,1358,0;1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;17;18;19;20;21;23,00000993_ac4ba032d4b5431ca04f542c_step_000;00000329_12a935cd9b684f879c0505fe_step_000;00000418_ce5b31679ee845a69ba89d6f_step_000;00000103_52f7124261ae4c558f800775_step_000;00001067_8a2edcf36bcd435092f4c8ae_step_001;00000162_4dcda9fab6dd46cf98fb194e_step_000;00001490_6c8ef6d2f5564d139a5077f8_step_001;00001387_60cf3ad636dd42e0bcec6946_step_000;00000280_5a6ef3285b89452ea6b390e7_step_001;00000140_2fc54fcd110d4f49969163c4_step_003;00000161_a583c6c3cdc143bab3f6c856_step_000;00001041_6baf25f5fe2947e8927797d8_step_000;00000411_305e45c9479f43979b0d7b53_step_000;00000996_6d71695ba3fd475c927a00a7_step_000;00001106_ba88e7579ced4a0aa2de629c_step_000;00000060_767e4372b5f94a88a7a17d90_step_001;00000723_8ed79b6bcb024d1a9f2aa5e7_step_000;00000405_f3759bbb4682423caf207e8e_step_002;00000206_27417003e762409185cb2b69_step_000;00001417_a45f6c99e2154f3b94955175_step_001;00000408_36bcb4030e36417b8dc74b87_step_000;00000364_38d899e2706a4d09960705dd_step_001;00001040_74c42207fa764831b03f7658_step_000,ac4ba032d4b5431ca04f542c;12a935cd9b684f879c0505fe;ce5b31679ee845a69ba89d6f;52f7124261ae4c558f800775;8a2edcf36bcd435092f4c8ae;4dcda9fab6dd46cf98fb194e;6c8ef6d2f5564d139a5077f8;60cf3ad636dd42e0bcec6946;5a6ef3285b89452ea6b390e7;2fc54fcd110d4f49969163c4;a583c6c3cdc143bab3f6c856;6baf25f5fe2947e8927797d8;305e45c9479f43979b0d7b53;6d71695ba3fd475c927a00a7;ba88e7579ced4a0aa2de629c;767e4372b5f94a88a7a17d90;8ed79b6bcb024d1a9f2aa5e7;f3759bbb4682423caf207e8e;27417003e762409185cb2b69;a45f6c99e2154f3b94955175;36bcb4030e36417b8dc74b87;38d899e2706a4d09960705dd;74c42207fa764831b03f7658,993;329;418;103;1067;162;1490;1387;280;140;161;1041;411;996;1106;60;723;405;206;1417;408;364;1040,none +23,23,00001040_74c42207fa764831b03f7658_step_000,74c42207fa764831b03f7658,1040,0;1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;17;18;19;20;21;22,00000993_ac4ba032d4b5431ca04f542c_step_000;00000329_12a935cd9b684f879c0505fe_step_000;00000418_ce5b31679ee845a69ba89d6f_step_000;00000103_52f7124261ae4c558f800775_step_000;00001067_8a2edcf36bcd435092f4c8ae_step_001;00000162_4dcda9fab6dd46cf98fb194e_step_000;00001490_6c8ef6d2f5564d139a5077f8_step_001;00001387_60cf3ad636dd42e0bcec6946_step_000;00000280_5a6ef3285b89452ea6b390e7_step_001;00000140_2fc54fcd110d4f49969163c4_step_003;00000161_a583c6c3cdc143bab3f6c856_step_000;00001041_6baf25f5fe2947e8927797d8_step_000;00000411_305e45c9479f43979b0d7b53_step_000;00000996_6d71695ba3fd475c927a00a7_step_000;00001106_ba88e7579ced4a0aa2de629c_step_000;00000060_767e4372b5f94a88a7a17d90_step_001;00000723_8ed79b6bcb024d1a9f2aa5e7_step_000;00000405_f3759bbb4682423caf207e8e_step_002;00000206_27417003e762409185cb2b69_step_000;00001417_a45f6c99e2154f3b94955175_step_001;00000408_36bcb4030e36417b8dc74b87_step_000;00000364_38d899e2706a4d09960705dd_step_001;00001358_2e314c6e080b40fcb6a6db96_step_001,ac4ba032d4b5431ca04f542c;12a935cd9b684f879c0505fe;ce5b31679ee845a69ba89d6f;52f7124261ae4c558f800775;8a2edcf36bcd435092f4c8ae;4dcda9fab6dd46cf98fb194e;6c8ef6d2f5564d139a5077f8;60cf3ad636dd42e0bcec6946;5a6ef3285b89452ea6b390e7;2fc54fcd110d4f49969163c4;a583c6c3cdc143bab3f6c856;6baf25f5fe2947e8927797d8;305e45c9479f43979b0d7b53;6d71695ba3fd475c927a00a7;ba88e7579ced4a0aa2de629c;767e4372b5f94a88a7a17d90;8ed79b6bcb024d1a9f2aa5e7;f3759bbb4682423caf207e8e;27417003e762409185cb2b69;a45f6c99e2154f3b94955175;36bcb4030e36417b8dc74b87;38d899e2706a4d09960705dd;2e314c6e080b40fcb6a6db96,993;329;418;103;1067;162;1490;1387;280;140;161;1041;411;996;1106;60;723;405;206;1417;408;364;1358,none diff --git a/review/2026-11-14/s1-scoring-code/implementation_rulings.txt b/review/2026-11-14/s1-scoring-code/implementation_rulings.txt new file mode 100644 index 000000000..4da804180 --- /dev/null +++ b/review/2026-11-14/s1-scoring-code/implementation_rulings.txt @@ -0,0 +1,31 @@ + (2 total) === + +--- Reply 1 of 2 --- +From: ClaudeWorker (local) (U0C7SSQLBJ7) +Time: 2026-11-14 15:43:11 CST +Message TS: 1794642191.974109 +Accepted; working on: “@⁠TRON MeltAstra 实际开工:已回读15:36:39裁量,未发现既有评分源码/任务。现在只制作六臂评分代码、手算synthet…” + +--- Reply 2 of 2 --- +From: ClaudeWorker (local) (U0C7SSQLBJ7) +Time: 2026-11-14 15:43:44 CST +Message TS: 1794642224.144079 +*Claude: rulings on the two S1 implementation questions, plus one addition* + +*① Intervals: adopted, with one level added.* +• *Query level, as you proposed:* 200 query-only bootstrap replicates. Each paired difference is computed within the same replicate, and the two-sided 95 % percentile interval uses linear quantiles at 0.025 and 0.975. Fewer than 2 valid replicates gives NA. +• *Added: a source-level interval.* The query bootstrap covers only the sampling error within each test part. The question S1 asks is about unseen *sources*, so the main source of variation is between the 24 sources. For every contrast, compute the paired difference for each test source, then a *source-bootstrap*: 2,000 resamples of the 24 sources with replacement, generator PCG64(SeedSequence([2026111407])), the same two-sided 95 % percentile interval, and source-equal weights within each resample. +• *Reported:* the point estimate, the source-level interval and the query-level interval. +• *S1 is ranking only,* so there is no effect-size margin. The S2 decision table with m does not apply here. Reading: + • an organised arm "ranks ahead" only if the *source-level* interval for B − (A+S), or for C − (B + edge shuffle), lies entirely below 0 (lower M2 means more familiar); + • an interval crossing 0 means "no ranking difference"; + • an interval entirely above 0 means "ranks behind". +• The difference is the absolute difference in M2, in rank-distance units. + +*② Permutation reuse: adopted as written.* +• For each part and each seed 1401–1405, A+S and the plain edge shuffle reuse the same row index. +• The stratified normalised shuffle uses its own Generator, rebuilt from the same seed, with strata processed in the fixed order (0,0), (0,1), (1,0), (1,1). Only strata with at least 8 slots draw a permutation. +• Each part's mapping is reused across folds. +• Bootstrap seed 1406 generates the 2,000 draw-slot indices in replicate order, shared by every arm, slice and seed. +• Seed 1407 is added to the pre-run seed table and is used only for the source bootstrap. + diff --git a/review/2026-11-14/s1-scoring-code/m2_protocol_source.md b/review/2026-11-14/s1-scoring-code/m2_protocol_source.md new file mode 100644 index 000000000..e1d597352 --- /dev/null +++ b/review/2026-11-14/s1-scoring-code/m2_protocol_source.md @@ -0,0 +1,104 @@ +# S1 / M2|未见来源节点的输入覆盖度量(MoldAstra,2026-11-14,纸面评审稿) + +## M2 v1.2 sampled|已通过评审,主抽样已放行(2026-11-14) + +**最终种子表。** 各件以数字前缀 prefix 派生 PCG64 子流,主抽样基数为 2026111400,五个置换基数为 2026111401 至 2026111405,bootstrap 基数为 2026111406。三者均使用 SeedSequence([base_seed, prefix])。[Claude 最终裁决(14:18:35)](https://arcticnimbus.slack.com/archives/C0C78UFKGRM/p1794637115335019) + +**版本范围。** 沿用 v1.1 的 24 件名单、来源隔离、六臂列定义、共同资格、固定 O2-rep v1.1a、近壁切片和主/辅助对照。以下条款替代 v1.1 的全体合格节点秩拟合、无放回参照池、全节点查询平均与旧短缺门。面板的 106,144,201,654 是全节点预检邻居计数和。抽样只改变读出锚点;固定核的源场、R、真四面体边邻接及全件 R_g、t_part 均按原定义。边端 q 只需该锚点的 B,无需为未抽中的邻居另做锚点积分。[Claude 14:06:30 四项裁决](https://arcticnimbus.slack.com/archives/C0C78UFKGRM/p1794636390808049) · [14:03:38 抽样设计](https://arcticnimbus.slack.com/archives/C0C78UFKGRM/p1794636218422299) · [24 件仅计数固定提交 81f56af](https://gitea.frank14f.online/Frank14f/MeltMind/src/commit/81f56afaca38304a4b5f48921927f97669ebbac9/review/2026-11-14/s1-panel-precheck) + +### 一次抽样,三种用途 + +每件在全体 dᵢ>0 节点上以 pᵢ=mᵢ/M₊ 独立有放回抽 n=2000 次,M₊=Σ_{dᵢ>0}mᵢ;原始姿态,每来源一个面板代表件。按原节点 ID 稳定顺序建概率表,生成器为 PCG64(SeedSequence([2026111400, numeric_prefix]))。保存 2000 个有序 draw ID、不同 ID 集 U、每 ID 次数 cᵢ、原始质量和完整面板/折身份。每个不同 ID 至多评一次核;资格 Eᵢ 用既定共同门(其中 N_eff≥64、谱有效、门方向已定义、边块完整)。仅抽样时 d>0,不能预先删去之后可能不合格的锚点。全体面板共用已公布名单;训练与测试仍在来源级隔离,各折不重抽同一件。 + +| 用途 | 取哪些数据 | 权重与分母 | +|---|---|---| +| 训练折的 sample-based mid-rank | 各训练件抽中且共同合格的不同 ID | 若有 P 个训练件,件 p 中节点 i 权重为 (1/P)cᵢ/Σ_{j∈U_p}cⱼEⱼ,限 Eᵢ=1。用这些权重算低于 x 的质量加等于 x 质量的一半;每折每个原始列拟合一次。越界截 0/1,保留两侧比例。 | +| kNN 参照池及训练块置换 | 每训练件 U_p 中的不同合格 ID | 每物理节点一个等权槽,n_ref=Σ_{i∈U_p} Eᵢ;八个不同近邻。cᵢ 不产生副本或额外置换槽,六臂共用 ID。 | +| 测试件的查询积分 | 同一件轮为测试时用原抽样次数 | 使用 cᵢ,既不等权对不同 ID 平均,也不再乘 mᵢ。查询描述符始终真实。 | + +如果任一训练件 n_ref<500,或 n_ref<1000 的件数严格超过该折训练件数的 20%,该折记不可比。等于 500、1000 及恰好 20% 按上述严格不等式执行。正常重复不单列为失败,重复通过影响不同合格 ID 数进入门槛。零合格训练件直接命中第一条,不能悄悄删件再分配来源权重。逐件报告正距候选数、draw 数、不同抽中数、合格 draw 数及 n_ref。旧“少于 2000 就计作短缺”的门槛退出 v1.2。 + +### 条件查询目标、覆盖与不确定性 + +固定训练折、已实现的参照池、秩映射及置换后,记 δᵢ 为某臂查询的八邻均距。取 Hᵢ=Eᵢ(全域),或 Hᵢ=Eᵢ·1{00}mᵢHᵢδᵢ/Σ_{d>0}mᵢHᵢ,估计为 Σ_{H=1}cᵢδᵢ/Σ_{H=1}cᵢ。只给合格查询取 δ,不能对缺失值做零乘。此为一致的条件比率估计,不能以“无条件无偏 HH 均值”对外报告。更精确地说,固定打分函数且接受数非零时,独立有放回抽样的接受样本均值条件于接受数是无偏的;这不定义零接受数情形,也不涵盖训练池估计误差。零分母记 NA,并保留件/来源及失败原因。 + +以 ΣcᵢHᵢ/2000 报合格比例、合格且近壁比例,再分别乘已知 M₊/M_total 报全件集总质量贡献。另报 M₊/M_total、未评分边界份额;“合格且近壁占全件”与“近壁占合格节点”注明各自分母。每件先算条件分数及臂间配对差,再来源内等件、来源间等权,另列件等权总体。本面板每来源一件时两种汇总相同。不能将各件的 2000 次记录拼在一起再算总比率,否则合格率较高的来源会获得更高权重。 + +**Bootstrap(200 次)。** 对每个测试件的 2000 个原始 draw 槽等概率有放回重抽 2000 次,等价于对不同 ID 用 Multinomial(2000,{cᵢ/2000}) 生成新计数。每次在该件内重算全域/近壁分子和分母,六臂、配对差及五个置换结果使用相同的重抽位置;不从已去重的 ID 均匀抽。每个 bootstrap replicate 内保持每个来源原有权重,先算件比率再汇总;各件使用独立子流。以有效复本统计量的样本标准差报 SE,不再除以 √200。原样本或复本分母为零标 NA,公开各切片有效复本数;固定来源集合的汇总遇所需件缺失则该复本 NA,不暗改权重。少于两个有效复本不报 SE。此 SE 条件于已选面板、训练样本/参照池、拟合好的秩及置换,只反映查询抽样误差,不涵盖未见来源总体、训练抽样、重剖或核偏差。每件用 PCG64(SeedSequence([2026111406, prefix])) 按稳定复本顺序生成 200 次重抽。 + +### 预算与放行 + +MeltAstra 已获准主抽样,随后按件公布抽样回执和 V_vis=Σ_{i∈U}counts[i],其中 counts 是固定提交按原节点 ID 保存的逐锚点邻居计数,U 包含所有抽中的不同 ID,含核后可能不合格的点。既不按 cᵢ 重计,也不用 unique/N 均匀外推。这个和对已发表计数定义精确;0.73 μs×V_vis 只是规划核时间,不能从访问数推出实际 RSS 或总墙钟。须单列内存预算及监督办法,维持每场 30 分钟/1.25 GiB,超预算交领队裁量,不能凭比例估算擅自替换面板件。只有样本及实际访问量公布并获准后才运行抽样锚点 O2,再到 S1。本文只改纸面契约,不产生抽样名单、核场或分数。 + + +## v1.1 历史契约|六臂及预检放行(2026-11-14 13:38:59,上海时间) + +[Claude 最终裁决](https://arcticnimbus.slack.com/archives/C0C78UFKGRM/p1794634657902719) · [Grok 确认](https://arcticnimbus.slack.com/archives/C0C78UFKGRM/p1794634739970979) · [零谱隙与审计口径](https://arcticnimbus.slack.com/archives/C0C78UFKGRM/p1794634760408159)。本节优先于下方历史提案。M2 探查在既定参照池和节点测度下的输入覆盖。各对照只改变训练池,测试查询始终保持真实。 + +| 臂 | 固定列与维数 | 作用 | +|---|---|---| +| A | d/t_part、到单浇口的距离/R_g,2 维 | 基线 | +| A+S | A + 件内整体置换的 (g₁₂,g₂₃,q₁gate,q₂gate),6 维 | B 的主对照 | +| B | A + 真实的上述四列,6 维 | 与 A+S 同维比较 | +| B+普通边块置换 | B + 件内整体置换的四列边块,10 维 | C 的主对照 | +| C | B + 本节点所有有效真 tet 边端读数的 (mean q₁,max q₁,mean q₂,max q₂),10 维 | 与普通边块置换同维比较 | +| B+分层归一化边块置换 | B + 按下述规则构造的边块,10 维 | 预声明的辅助敏感性分析 | + +**第六臂。** 在秩变换之前按件、在 b 个实际参照槽内,以修正谱的严格布尔对 (g₁₂>0,g₂₃>0) 分层,不另加 epsilon。每个通道取供体的 (mean q,max q)/g;零谱隙通道用零作占位,方向比值无定义。将四个数在同层内按同一行置换,再分别乘接收节点对应的 g。层内不足 8 槽时保留原块并记层数与槽数。两条 gap 均正时,对共同边方向有 q₁/g₁₂≤q₂/g₂₃,故通道间的归一化均值和最大值也分别满足这个次序。分层防止零 gap 占位被移入非零通道;它并未重建接收件的边方向,也未保证与门方向或邻接结构联合可实现。q/g 仅在辅助臂临时使用,在 gap 趋零时没有方向连续性或重剖稳定保证。 + +**原单位审计。** 两种 C 对照均在映射到秩前审计接收节点的 0≤mean q≤max q≤g,报告违例比例和超出幅度,并在双正接收槽核对归一化均值/最大值的跨通道次序。普通置换可违反上界或跨通道次序;辅助臂理论上应保持这些必要条件。分列供体/接收零模式数、未置换小层、槽 ID 改变率、实际块值改变率及各自分母。预先登记浮点诊断容差,只报告违例,不截断、不重抽。若 C 仅优于普通对照,写为「C 的优势未在保持逐通道上界的对照中复现」;不据此判 C 失败、推断失败原因或否定主比较。B−A、C−B 仅作描述。 + +**秩、参照与查询。** 六臂同一资格集(含 d>0、门方向已定义、N_eff≥64),clipped 仅审计;每条边的邻居不必是合格查询点。R_g 和 t_part 在全件、资格筛选前计算。所有原始列的加权中秩按训练折的全体合格节点一次拟合,件等权、件内按 m_i 归一,重复值共秩;严格越界者截至 0/1 并报两侧质量。六臂复用列映射,变换辅助臂的是重组后的四列 q 摘要。每训练件按质量逐次无放回抽最多 2000 个不同物理节点,六臂同 ID;槽在近邻检索中等权。入选概率一般不精确正比于 m_i,小件全取时池内是节点等槽。逐件报告合格数、实取数、采样率和短缺;严格超过 20% 的训练件短缺时该折不可比。禁止在参照槽上再次按 m_i 拟合。M2 为 RMS 列距离的 8 个不同物理参照节点均值,按件内合格质量加权汇总,再来源等权,同时列件等权结果。近壁指标 00、gate方向可定义和 N_eff≥64 等条件,clipped 仅审计。训练加权中秩、并列共秩、超范围截到 0/1 并报两侧质量。RMS 距离,8 个不同物理训练节点的均距。b=2000,按节点质量逐次无放回取样,跨臂同 ID;不足则全取,短缺件数严格超过训练件数 20% 则该折不可比。五个预先声明的置换种子用于件内参照槽的整块重配,跨折/切片共用,测试查询始终真实;报告每次、均值与实际改变比例。来源等权汇总,并列件等权总体;近壁 d/t_part≤0.25 只限制测试查询。B−A、C−B 为描述,主读数为两组各自的同维配对差。 + +**实现口径建议,待领队核对。** + +1. 用全件真实四面体集总节点质量 m_i 算 x̄=Σm_i x_i/Σm_i,再用同一全集算 R_g,包括 d=0 和随后被公共门排除的节点。在资格筛选前固定,避免换筛选条件时连几何尺度也改变。刚体搬移下数学上不变;此节点二阶矩是离散量,不要求重剖不变。R_g 非正或非有限时标记不可评。t_part 同样在既有全件定义上固定。 +2. 明列秩拟合集与 kNN 候选集。此前「采纳原文」的中秩用当前折每个入选训练件的**全体合格节点**,每件权重 1/P,件内按 m_i 归一;先拟合再抽 b 个参照槽。若在已按质量抽样的 b 个槽上又按原 m_i 拟合,稀抽情形的有效权重可接近 m_i²;不足 b 而全取的件又遵循不同规律。五臂均复用同一组已拟合的列映射。置换保持参照槽等权经验分布。权重抽样不能把两个同 ID 的点计为两个近邻。 +3. “每来源一个入口”和“每件最多 b 个节点”可同时实现:若训练来源含多件,先用事前声明、与 O2 及标签无关的规则选一个代表件,再在代表件内抽节点;若面板设计已保证每来源恰一件则自然满足。保留代表件选择表、短缺清单及实际槽数 b_p。多件测试来源在来源内等件平均后,来源之间等权。原场/旋转副本不重复计入。全取的小件在欧氏 kNN 中只有 b_p 次候选机会,等件权汇总不会消除这项差异;同臂共用参照 ID 可保持配对可比。 +4. 置换按块的同一行索引作用于四列,比较前后整行是否改变,同时报告槽数;零改变或大量并列时,控制强度不足应标出。归因上,打乱 B 新块会打断它与 A 的配对,打乱 C 的边块还可能破坏原本必有的 max q_k≤g_k。后一控制可产生真实几何不可能出现的组合,赢过它支持测度对联合结构敏感,不能单独证实跨件泛化或重剖稳定。无需新增实验臂。运行清单应写明抽样/置换的数值种子或生成规则及 RNG,保证相同折和切片能复用。 + +本节只复核书面定义、列明来源及实施口径,未计算任何节点、分数或相关性。 + +## 以下为 13:30 裁决前的原提案 + +M2 要回答的问题是:在事先规定的节点测度、参照池大小和描述符距离下,未见来源的节点在训练参照池中能否找到近邻?观测对象是几何与工况输入。覆盖改善不能直接推出填充预测精度或样本效率。以下沿用 Claude 与 Grok 已同意的 k=8、公共节点集合和近壁切片;新增的节点配对、距离与抽样细则供二人裁决。六场包审核为运行前置条件。[Claude / Grok 的 S1 修正](https://arcticnimbus.slack.com/archives/C0C78UFKGRM/p1794633463119889) · [O2-rep 冻结增补](https://drive.google.com/file/d/1eGrFT8_VDoE_nEQ-Z8n1WymfpukdxPN5/view) · [E6 代理的原始定义](https://gitea.frank14f.online/Frank14f/MeltMind/src/commit/5850e615a71f3dff76c4fe2cf802dadf188a92e6/review/2026-11-14/e6/README.md) + +## 一、先解决两个定义缺口 + +**单元代理须先配到节点。** E6 的 ρ_e=2 d_P1(c_e)/h_e 定义在四面体重心 c_e,h_e 为沿单元梯度方向过重心的弦长。已有按体积分位数没有节点对应关系。候选定义为 ρ_i=Σ_{e∋i,有效}(V_e/4)ρ_e / Σ_{e∋i,有效}V_e/4,即用有效入射单元的集总体积做节点平均,另列有效入射体积占比。分母零时该点在所有臂共同排除。它是新定义的**节点投影代理**,与 E6 重心原量分别命名,不能将旧分位数填给每个节点。需先确认逐单元值、有效位和 tet—节点映射可用;缺失时请 Claude 决定是否授权从已有输入构造,或将此列从全部臂共同删除并另记版本。本轮不构造、不估计 gap–proxy 相关性。 + +**包围盒对角线未必姿态不变。** 如果 L 是实验室坐标轴对齐盒的对角线,长宽 2、1 的矩形旋转 45° 前后 L 从 √5 变成 3,门到节点的物理距离完全相同。挤出同一高度也保留反例。建议保留 Claude 的盒尺度口径,在原始制件上计算一次并作为随变换携带的元数据;这足以比较同一件的原场与增强场,独立装载的任意摆放 CAD 仍可能产生不同尺度。若要求跨任意摆放也严格不变,可由 Claude 在选件前改用几何直径或其他明确旋转不变的尺度,并记预处理成本。不能把旋转后重新求轴对齐盒的 A 称为姿态不变量。 + +## 二、节点、特征与参照池 + +每个来源及确认近重复组件只落在一个集合。原场和旋转副本共用来源,只取每个物理件的一份原场进池;重复工况/制件的权重单位先由数据卡定。单件节点质量 m_i=Σ_{e∋i}V_e/4。先全件定义 t_part=4×按 m_i 加权的全节点壁距中位数(包括 d=0,沿用 E6 尺度代理;取累计质量首次达到一半的值,若档案已有冻结值则沿用并核对定义)。L、t_part 必须有限且为正。近壁标志固定为 00、有定义的 gate 方向、有效谱、A/B/C 全部特征有限且至少一条有效真边的节点。gate 容差沿用 v1.1a。按件报告去重后共同排除节点数、质量及逐原因含重叠标志,分母保留整件总质量;边界未评分单列。N_eff 筛选若采用,须事先给所有臂同一口径并报覆盖;clipped 始终只审计。单一已指定 gate 时按下表。多 gate 要先确定一致的固定维编码或单列适用范围,不能暗取最早到达或分别删除槽位。 +- A(3 维)取 (d/t_part, ρ_i, ‖x_gate−x_i‖/L)。B(7 维)追加 (g₁₂,g₂₃,q₁(gate),q₂(gate)),μᵢ=λᵢ⁺/τ₊ 降序,g₁₂=μ₁−μ₂,g₂₃=μ₂−μ₃;μ₃=(1−g₁₂−2g₂₃)/3。C(11 维)再加当前节点张量在有效无向真 tet 边方向上的 (mean q₁,max q₁,mean q₂,max q₂)。使用该节点端的读数,每个唯一邻居一次,均值为算术平均;不要求邻居本身也可作查询点。C 的增量包括网格方向和节点度数的影响。即使重新剖分同一连续形状,最大值也可能改变。 +- 每件在秩拟合及查询平均中等权,件内按共同合格质量归一。参照池本身还要控制**点数密度**:将权重仅放在最终平均,无法阻止细网格靠更多近邻占优。建议每训练件用同一数目 b 的不同物理节点,按 m_i 相对权重不放回抽取(逐次概率与余下质量成比例),全臂复用一套节点 ID。b 和种子由 Claude 审前固定;若有件不够 b,记录并采用预先规定的共同缩减规则,或宣布该折不可比。旋转副本、重复抽样的同一节点一律不补足第八邻居。不同物理节点碰巧具有相同描述符可分别计入,零距离率和近邻来源集中度一起报。这里 k=8 指 8 个不同物理训练节点,不要求 8 个不同来源。 + +## 三、固定距离、秩与打乱对照 + +训练折内对每个原始标量列 ℓ 建立一次共同变换。令训练件数为 P,合格节点权重 w_pi=m_pi/(P Σ_j m_pj),用**全部合格训练节点**定义加权中秩 Rℓ(x)=Σw·1(Xℓ0。追加一个常数列后 RMS 距离从 a 降为 a/√2,八个近邻均未改变,也没有新几何信息。故 B−A、C−B 仅描述不同坐标体系的变化。主解释须同时看同维 B−(A+S)、C−(B+打乱边);按 Claude 要求,相应两项差值都偏低才可提出“组织后输入更熟悉”的候选解释。若只赢同维对照,报告结构依赖,不能声称相对原表示覆盖更好。 + +**打乱的对象和可解释范围。** A+S(7 维)保持训练 A 不动,将四维 B 新块按同一个置换整体重配;C 的对照(11 维)保持训练 B 不动,同样整体重配四维边块。这样保留块内相关与联合可取值,打断块与原节点的联结。测试查询始终保留真实组合,两个对照均只打乱训练池。优先在每个训练件的等数 b 个参照槽内独立均匀置换,避免将不同物料/拓扑或工况的整件指纹跨件拼接。参照槽在 kNN 中等权,这个置换精确保留各件池内块的经验分布;它不声称精确保留原全网格的体积加权分布。预先固定置换种子列表,同一折、全域与近壁切片共用,不选最有利种子;报告各次与均值。无需拒绝随机固定点;同时报告实际改变比例(同值很多时对照可能弱)。该对照刻意破坏真实配对,可能产生物理上不可能的组合,优于它只支持关联结构有用。若全池跨件置换更符合领队要回答的问题,须另行标明其同时破坏件级差异,不能悄悄换口径。 + +## 四、比较与放行条件 + +先在每件计算全域 Σ_i m_i M2_i/Σ_i m_i,近壁主切片用相同公式,**只限制测试查询,继续使用同一训练池**,因此回答近壁输入在整个可见训练池中的覆盖。预先报告近壁/整件质量、共同合格率;空切片记 NA,并列有效件/来源分母。使用相同件的配对差,测试来源内先等权平均其件差,再给每个来源等权汇总(另列件等权总体,来源件数不等时二者不同)。节点不当作独立重复;样本不足 8 个不同训练节点、来源泄漏、各臂资格集或维度不一致均不评分。 + +请 Claude / Grok 在选面板前裁决:节点投影代理是否可用;L 的姿态口径;b、置换次数/种子及件内置换;是否采用 N_eff 公共筛选。六场包未通过审核前不启动 S1。30 分钟/1.25 GiB 及 5e8 告警沿原契约,778 例外不外推;超预算件列清单与筛选分母。本稿未运行预检、面板、kNN 或模型,也未修订 O2-rep。 + diff --git a/review/2026-11-14/s1-scoring-code/o2_rep.py b/review/2026-11-14/s1-scoring-code/o2_rep.py new file mode 100644 index 000000000..7a5ad4bff --- /dev/null +++ b/review/2026-11-14/s1-scoring-code/o2_rep.py @@ -0,0 +1,66 @@ +"""Frozen O2-rep v1.1 + v1.1a FP64 readout. No learned or physical type labels.""" +import numpy as np + +TAU_MIN=1e-10 +EPS_PSD=1e-12 +EDGE_REL=1e-12 +GATE_REL=1e-6 +STATUS={0:'valid',1:'unscored',2:'invalid_kernel_mass',3:'invalid_tensor',4:'invalid_trace',5:'invalid_psd'} +TAU_REASON={0:'defined',1:'unscored',2:'no_positive_finite_kernel_mass',3:'tensor_missing_or_nonfinite',4:'trace_nonfinite'} +DIRECTION_REASON={0:'defined',1:'missing_L_med',2:'vector_nonfinite',3:'at_or_below_length_tolerance'} + + +def readout(tensor,kernel_mass,scored,neff): + t=np.asarray(tensor,dtype=np.float64);w=np.asarray(kernel_mass);scored=np.asarray(scored,bool);n=len(w) + if t.shape!=(n,3,3):raise ValueError('Expected one 3x3 tensor per anchor') + status=np.ones(n,np.uint8);reason=np.ones(n,np.uint8);tau0=np.full(n,np.nan);taup=np.full(n,np.nan) + values=np.full((n,3),np.nan);mu=np.zeros((n,3));g=np.zeros((n,2));B=np.zeros((n,2,3,3));corrected=np.zeros((n,3,3));clipped=np.zeros(n,bool) + positive=scored&np.isfinite(w)&(w>0);status[scored&~positive]=2;reason[scored&~positive]=2 + finite=positive&np.isfinite(t).all((1,2));status[positive&~finite]=3;reason[positive&~finite]=3 + with np.errstate(over='ignore',invalid='ignore'):trace=np.trace(t,axis1=1,axis2=2) + defined=finite&np.isfinite(trace);tau0[defined]=trace[defined];reason[defined]=0 + status[finite&~defined]=4;reason[finite&~defined]=4 + eligible=defined&(trace>TAU_MIN);status[defined&~eligible]=4 + ids=np.flatnonzero(eligible) + if len(ids): + v,U=np.linalg.eigh(.5*t[ids]+.5*t[ids].transpose(0,2,1));v=v[:,::-1];U=U[:,:,::-1];values[ids]=v + psd=v[:,-1]>=-EPS_PSD*tau0[ids];status[ids[~psd]]=5 + good=ids[psd];v=v[psd];U=U[psd];status[good]=0;clipped[good]=(v<0).any(1) + vp=np.maximum(v,0);taup[good]=vp.sum(1);m=vp/taup[good,None];mu[good]=m;gg=m[:,:-1]-m[:,1:];g[good]=gg + P1=U[:,:,0,None]*U[:,None,:,0];P3=U[:,:,2,None]*U[:,None,:,2] + B[good,0]=gg[:,0,None,None]*P1 + B[good,1]=gg[:,1,None,None]*(np.eye(3)-P3) + # Exact repeated gaps yield an exact zero, never a chosen axis channel. + corrected[good]=(U*m[:,None,:])@U.transpose(0,2,1) + h=(values[:,:-1]-values[:,1:])/np.maximum(values[:,:1],1e-12) + historical=np.full(n,-1,np.int8);historical[~scored]=-2 + historical[eligible]=(h[eligible,0]>.1).astype(np.int8)+2*(h[eligible,1]>.1).astype(np.int8) + return dict(tau0=tau0,tau0_reason=reason,tau_plus=taup,status=status,valid=status==0,clipped=clipped, + neff_pass=np.isfinite(neff)&(np.asarray(neff)>=64),mu=mu,g=g,B=B,normalized_corrected=corrected, + raw_eigenvalues=values,historical_h=h,historical_mode=historical) + + +def directions(vectors,L_med,kind): + if kind not in ['edge','gate']:raise ValueError('Unknown direction kind') + v=np.asarray(vectors,dtype=np.float64);length=np.linalg.norm(v,axis=-1);unit=np.zeros_like(v);reason=np.ones(length.shape,np.uint8) + if L_med is None or not np.isfinite(L_med) or L_med<=0: + return dict(length=length,unit=unit,valid=np.zeros(length.shape,bool),reason=reason) + finite=np.isfinite(v).all(-1)&np.isfinite(length);reason[~finite]=2 + valid=finite&(length>(EDGE_REL if kind=='edge' else GATE_REL)*L_med) + reason[finite&~valid]=3;reason[valid]=0;unit[valid]=v[valid]/length[valid,None] + return dict(length=length,unit=unit,valid=valid,reason=reason) + + +def contract_direction(B,mu,spectral_valid,vectors,L_med,kind): + d=directions(vectors,L_med,kind);ok=d['valid']&np.asarray(spectral_valid,bool) + q=np.einsum('ni,nkij,nj->nk',d['unit'],B,d['unit']);q[~ok]=0 + return dict(q=q,direction_valid=d['valid'],channel_valid=ok,length=d['length'],direction_reason=d['reason']) + + +def acceptance(r): + ok=r['valid'];B=r['B'][ok];mu=r['mu'][ok];g=r['g'][ok] + if not len(mu):return dict(valid_count=0,mu_sum_error=0.,mu_min=None,ordering_violation=0.,B_symmetry_error=0.,B_min_eigenvalue=None,reconstruction_max=0.) + recon=mu[:,2,None,None]*np.eye(3)+B.sum(1) + return dict(valid_count=int(ok.sum()),mu_sum_error=float(abs(mu.sum(1)-1).max()),mu_min=float(mu.min()), + ordering_violation=float(np.maximum(-g,0).max()),B_symmetry_error=float(abs(B-B.transpose(0,1,3,2)).max()), + B_min_eigenvalue=float(np.linalg.eigvalsh(B).min()),reconstruction_max=float(abs(recon-r['normalized_corrected'][ok]).max())) diff --git a/review/2026-11-14/s1-scoring-code/plan_s1_queries.py b/review/2026-11-14/s1-scoring-code/plan_s1_queries.py new file mode 100644 index 000000000..971e31943 --- /dev/null +++ b/review/2026-11-14/s1-scoring-code/plan_s1_queries.py @@ -0,0 +1,46 @@ +"""Metadata-only S1 cost accounting; never loads NPZ or calls a scorer.""" +import argparse +import csv +import hashlib +import json +from pathlib import Path + + +def plan(summary,folds): + rows=list(csv.DictReader(Path(summary).open()));frows=list(csv.DictReader(Path(folds).open())) + if len(rows)!=24 or len(frows)!=24:raise ValueError('Expected frozen 24-part LOPO') + if len({r['source_key'] for r in rows})!=24:raise ValueError('Sources not distinct') + if [int(r['panel_index']) for r in rows]!=list(range(24)):raise ValueError('Unexpected panel order') + if sorted(int(f['test_panel_index']) for f in frows)!=list(range(24)):raise ValueError('Missing or repeated test part') + if any(r['status']!='PASS' for r in rows):raise ValueError('Incomplete O2 panel') + result=[] + for f in frows: + ti=int(f['test_panel_index']);train=list(map(int,f['train_panel_indices'].split(';'))) + if train!=[i for i in range(24) if i!=ti]:raise ValueError('Not the frozen LOPO split') + test=rows[ti] + if f['test_case']!=test['case'] or f['test_source_key']!=test['source_key']:raise ValueError('Fold identity mismatch') + q=int(test['n_ref']);nr=sum(int(rows[i]['n_ref']) for i in train) + result.append(dict(fold_index=int(f['fold_index']),test_case=test['case'],test_source=test['source_key'], + eligible_unique_queries=q,training_distinct_references=nr,configurations=18, + query_2D=q,query_6D=6*q,query_10D=11*q,logical_8NN_queries=18*q, + tie_radius_queries=18*q,total_tree_search_calls=36*q,tree_builds=18, + extra_near_slice_queries=0,extra_query_bootstrap_queries=0,extra_source_bootstrap_queries=0, + worst_case_tie_candidate_distances=18*q*nr,worst_case_tie_distance_components=148*q*nr, + ranked_reference_matrix_bytes=nr*10*8,query_bootstrap_counts_bytes=200*int(test['unique_anchors'])*8)) + return dict(scope='METADATA_ONLY; no real rank fitting, scoring, bootstrap evaluation or training',folds=result, + inputs={str(p):hashlib.sha256(Path(p).read_bytes()).hexdigest() for p in [summary,folds]}, + numerical_parent='a86a74cbd943e0687ee69fb1cccdc003250113cc', + totals={k:sum(r[k] for r in result) for k in ['eligible_unique_queries','logical_8NN_queries','tie_radius_queries','total_tree_search_calls','tree_builds','worst_case_tie_candidate_distances','worst_case_tie_distance_components']}, + configurations='A/B/C once each plus 3 shuffled controls times 5 seeds = 18; dimensions 2:1, 6:6, 10:11.', + bootstrap=dict(query_seed=2026111406,query_replicates=200,source_seed=2026111407,source_replicates=2000,source_index_bytes=2000*24*8), + runtime_and_rss='No real-score timing measured. Matrix sizes are component sizes, not a total RSS bound. Worst-case ties can scan all references.', + proposed_execution='After review and explicit execution scope: one supervised fold at a time, persist/release full fold arrays before next fold; agree wall/RSS limits before starting.') + + +if __name__=='__main__': + ap=argparse.ArgumentParser();ap.add_argument('--summary',type=Path,required=True);ap.add_argument('--folds',type=Path,required=True);ap.add_argument('--out',type=Path,required=True);args=ap.parse_args() + report=plan(args.summary,args.folds);args.out.mkdir(parents=True,exist_ok=True) + with (args.out/'query_cost.json').open('w') as f:json.dump(report,f,indent=2,allow_nan=False);f.write('\n') + with (args.out/'query_cost.csv').open('w') as f: + writer=csv.DictWriter(f,fieldnames=list(report['folds'][0]),lineterminator='\n');writer.writeheader();writer.writerows(report['folds']) + print(json.dumps(report['totals'],indent=2)) diff --git a/review/2026-11-14/s1-scoring-code/query_cost.csv b/review/2026-11-14/s1-scoring-code/query_cost.csv new file mode 100644 index 000000000..3f873fe96 --- /dev/null +++ b/review/2026-11-14/s1-scoring-code/query_cost.csv @@ -0,0 +1,25 @@ +fold_index,test_case,test_source,eligible_unique_queries,training_distinct_references,configurations,query_2D,query_6D,query_10D,logical_8NN_queries,tie_radius_queries,total_tree_search_calls,tree_builds,extra_near_slice_queries,extra_query_bootstrap_queries,extra_source_bootstrap_queries,worst_case_tie_candidate_distances,worst_case_tie_distance_components,ranked_reference_matrix_bytes,query_bootstrap_counts_bytes +0,00000993_ac4ba032d4b5431ca04f542c_step_000,ac4ba032d4b5431ca04f542c,1382,42274,18,1382,8292,15202,24876,24876,49752,18,0,0,0,1051608024,8646554864,3381920,2211200 +1,00000329_12a935cd9b684f879c0505fe_step_000,12a935cd9b684f879c0505fe,1625,42031,18,1625,9750,17875,29250,29250,58500,18,0,0,0,1229406750,10108455500,3362480,2600000 +2,00000418_ce5b31679ee845a69ba89d6f_step_000,ce5b31679ee845a69ba89d6f,1633,42023,18,1633,9798,17963,29394,29394,58788,18,0,0,0,1235224062,10156286732,3361840,2612800 +3,00000103_52f7124261ae4c558f800775_step_000,52f7124261ae4c558f800775,1570,42086,18,1570,9420,17270,28260,28260,56520,18,0,0,0,1189350360,9779102960,3366880,2512000 +4,00001067_8a2edcf36bcd435092f4c8ae_step_001,8a2edcf36bcd435092f4c8ae,1745,41911,18,1745,10470,19195,31410,31410,62820,18,0,0,0,1316424510,10823934860,3352880,2792000 +5,00000162_4dcda9fab6dd46cf98fb194e_step_000,4dcda9fab6dd46cf98fb194e,1803,41853,18,1803,10818,19833,32454,32454,64908,18,0,0,0,1358297262,11168221932,3348240,2884800 +6,00001490_6c8ef6d2f5564d139a5077f8_step_001,6c8ef6d2f5564d139a5077f8,1833,41823,18,1833,10998,20163,32994,32994,65988,18,0,0,0,1379908062,11345910732,3345840,2932800 +7,00001387_60cf3ad636dd42e0bcec6946_step_000,60cf3ad636dd42e0bcec6946,1803,41853,18,1803,10818,19833,32454,32454,64908,18,0,0,0,1358297262,11168221932,3348240,2884800 +8,00000280_5a6ef3285b89452ea6b390e7_step_001,5a6ef3285b89452ea6b390e7,1845,41811,18,1845,11070,20295,33210,33210,66420,18,0,0,0,1388543310,11416911660,3344880,2952000 +9,00000140_2fc54fcd110d4f49969163c4_step_003,2fc54fcd110d4f49969163c4,1835,41821,18,1835,11010,20185,33030,33030,66060,18,0,0,0,1381347630,11357747180,3345680,2936000 +10,00000161_a583c6c3cdc143bab3f6c856_step_000,a583c6c3cdc143bab3f6c856,1862,41794,18,1862,11172,20482,33516,33516,67032,18,0,0,0,1400767704,11517423344,3343520,2979200 +11,00001041_6baf25f5fe2947e8927797d8_step_000,6baf25f5fe2947e8927797d8,1885,41771,18,1885,11310,20735,33930,33930,67860,18,0,0,0,1417290030,11653273580,3341680,3016000 +12,00000411_305e45c9479f43979b0d7b53_step_000,305e45c9479f43979b0d7b53,1845,41811,18,1845,11070,20295,33210,33210,66420,18,0,0,0,1388543310,11416911660,3344880,2952000 +13,00000996_6d71695ba3fd475c927a00a7_step_000,6d71695ba3fd475c927a00a7,1871,41785,18,1871,11226,20581,33678,33678,67356,18,0,0,0,1407235230,11570600780,3342800,2993600 +14,00001106_ba88e7579ced4a0aa2de629c_step_000,ba88e7579ced4a0aa2de629c,1880,41776,18,1880,11280,20680,33840,33840,67680,18,0,0,0,1413699840,11623754240,3342080,3008000 +15,00000060_767e4372b5f94a88a7a17d90_step_001,767e4372b5f94a88a7a17d90,1875,41781,18,1875,11250,20625,33750,33750,67500,18,0,0,0,1410108750,11594227500,3342480,3000000 +16,00000723_8ed79b6bcb024d1a9f2aa5e7_step_000,8ed79b6bcb024d1a9f2aa5e7,1901,41755,18,1901,11406,20911,34218,34218,68436,18,0,0,0,1428772590,11747685740,3340400,3041600 +17,00000405_f3759bbb4682423caf207e8e_step_002,f3759bbb4682423caf207e8e,1919,41737,18,1919,11514,21109,34542,34542,69084,18,0,0,0,1441679454,11853808844,3338960,3070400 +18,00000206_27417003e762409185cb2b69_step_000,27417003e762409185cb2b69,1923,41733,18,1923,11538,21153,34614,34614,69228,18,0,0,0,1444546062,11877378732,3338640,3076800 +19,00001417_a45f6c99e2154f3b94955175_step_001,a45f6c99e2154f3b94955175,1909,41747,18,1909,11454,20999,34362,34362,68724,18,0,0,0,1434510414,11794863404,3339760,3054400 +20,00000408_36bcb4030e36417b8dc74b87_step_000,36bcb4030e36417b8dc74b87,1905,41751,18,1905,11430,20955,34290,34290,68580,18,0,0,0,1431641790,11771276940,3340080,3048000 +21,00000364_38d899e2706a4d09960705dd_step_001,38d899e2706a4d09960705dd,1929,41727,18,1929,11574,21219,34722,34722,69444,18,0,0,0,1448844894,11912724684,3338160,3086400 +22,00001358_2e314c6e080b40fcb6a6db96_step_001,2e314c6e080b40fcb6a6db96,1934,41722,18,1934,11604,21274,34812,34812,69624,18,0,0,0,1452426264,11942171504,3337760,3097600 +23,00001040_74c42207fa764831b03f7658_step_000,74c42207fa764831b03f7658,1944,41712,18,1944,11664,21384,34992,34992,69984,18,0,0,0,1459586304,12001042944,3336960,3110400 diff --git a/review/2026-11-14/s1-scoring-code/query_cost.json b/review/2026-11-14/s1-scoring-code/query_cost.json new file mode 100644 index 000000000..cf79428e0 --- /dev/null +++ b/review/2026-11-14/s1-scoring-code/query_cost.json @@ -0,0 +1,557 @@ +{ + "scope": "METADATA_ONLY; no real rank fitting, scoring, bootstrap evaluation or training", + "folds": [ + { + "fold_index": 0, + "test_case": "00000993_ac4ba032d4b5431ca04f542c_step_000", + "test_source": "ac4ba032d4b5431ca04f542c", + "eligible_unique_queries": 1382, + "training_distinct_references": 42274, + "configurations": 18, + "query_2D": 1382, + "query_6D": 8292, + "query_10D": 15202, + "logical_8NN_queries": 24876, + "tie_radius_queries": 24876, + "total_tree_search_calls": 49752, + "tree_builds": 18, + "extra_near_slice_queries": 0, + "extra_query_bootstrap_queries": 0, + "extra_source_bootstrap_queries": 0, + "worst_case_tie_candidate_distances": 1051608024, + "worst_case_tie_distance_components": 8646554864, + "ranked_reference_matrix_bytes": 3381920, + "query_bootstrap_counts_bytes": 2211200 + }, + { + "fold_index": 1, + "test_case": "00000329_12a935cd9b684f879c0505fe_step_000", + "test_source": "12a935cd9b684f879c0505fe", + "eligible_unique_queries": 1625, + "training_distinct_references": 42031, + "configurations": 18, + "query_2D": 1625, + "query_6D": 9750, + "query_10D": 17875, + "logical_8NN_queries": 29250, + "tie_radius_queries": 29250, + "total_tree_search_calls": 58500, + "tree_builds": 18, + "extra_near_slice_queries": 0, + "extra_query_bootstrap_queries": 0, + "extra_source_bootstrap_queries": 0, + "worst_case_tie_candidate_distances": 1229406750, + "worst_case_tie_distance_components": 10108455500, + "ranked_reference_matrix_bytes": 3362480, + "query_bootstrap_counts_bytes": 2600000 + }, + { + "fold_index": 2, + "test_case": "00000418_ce5b31679ee845a69ba89d6f_step_000", + "test_source": "ce5b31679ee845a69ba89d6f", + "eligible_unique_queries": 1633, + "training_distinct_references": 42023, + "configurations": 18, + "query_2D": 1633, + "query_6D": 9798, + "query_10D": 17963, + "logical_8NN_queries": 29394, + "tie_radius_queries": 29394, + "total_tree_search_calls": 58788, + "tree_builds": 18, + "extra_near_slice_queries": 0, + "extra_query_bootstrap_queries": 0, + "extra_source_bootstrap_queries": 0, + "worst_case_tie_candidate_distances": 1235224062, + "worst_case_tie_distance_components": 10156286732, + "ranked_reference_matrix_bytes": 3361840, + "query_bootstrap_counts_bytes": 2612800 + }, + { + "fold_index": 3, + "test_case": "00000103_52f7124261ae4c558f800775_step_000", + "test_source": "52f7124261ae4c558f800775", + "eligible_unique_queries": 1570, + "training_distinct_references": 42086, + "configurations": 18, + "query_2D": 1570, + "query_6D": 9420, + "query_10D": 17270, + "logical_8NN_queries": 28260, + "tie_radius_queries": 28260, + "total_tree_search_calls": 56520, + "tree_builds": 18, + "extra_near_slice_queries": 0, + "extra_query_bootstrap_queries": 0, + "extra_source_bootstrap_queries": 0, + "worst_case_tie_candidate_distances": 1189350360, + "worst_case_tie_distance_components": 9779102960, + "ranked_reference_matrix_bytes": 3366880, + "query_bootstrap_counts_bytes": 2512000 + }, + { + "fold_index": 4, + "test_case": "00001067_8a2edcf36bcd435092f4c8ae_step_001", + "test_source": "8a2edcf36bcd435092f4c8ae", + "eligible_unique_queries": 1745, + "training_distinct_references": 41911, + "configurations": 18, + "query_2D": 1745, + "query_6D": 10470, + "query_10D": 19195, + "logical_8NN_queries": 31410, + "tie_radius_queries": 31410, + "total_tree_search_calls": 62820, + "tree_builds": 18, + "extra_near_slice_queries": 0, + "extra_query_bootstrap_queries": 0, + "extra_source_bootstrap_queries": 0, + "worst_case_tie_candidate_distances": 1316424510, + "worst_case_tie_distance_components": 10823934860, + "ranked_reference_matrix_bytes": 3352880, + "query_bootstrap_counts_bytes": 2792000 + }, + { + "fold_index": 5, + "test_case": "00000162_4dcda9fab6dd46cf98fb194e_step_000", + "test_source": "4dcda9fab6dd46cf98fb194e", + "eligible_unique_queries": 1803, + "training_distinct_references": 41853, + "configurations": 18, + "query_2D": 1803, + "query_6D": 10818, + "query_10D": 19833, + "logical_8NN_queries": 32454, + "tie_radius_queries": 32454, + "total_tree_search_calls": 64908, + "tree_builds": 18, + "extra_near_slice_queries": 0, + "extra_query_bootstrap_queries": 0, + "extra_source_bootstrap_queries": 0, + "worst_case_tie_candidate_distances": 1358297262, + "worst_case_tie_distance_components": 11168221932, + "ranked_reference_matrix_bytes": 3348240, + "query_bootstrap_counts_bytes": 2884800 + }, + { + "fold_index": 6, + "test_case": "00001490_6c8ef6d2f5564d139a5077f8_step_001", + "test_source": "6c8ef6d2f5564d139a5077f8", + "eligible_unique_queries": 1833, + "training_distinct_references": 41823, + "configurations": 18, + "query_2D": 1833, + "query_6D": 10998, + "query_10D": 20163, + "logical_8NN_queries": 32994, + "tie_radius_queries": 32994, + "total_tree_search_calls": 65988, + "tree_builds": 18, + "extra_near_slice_queries": 0, + "extra_query_bootstrap_queries": 0, + "extra_source_bootstrap_queries": 0, + "worst_case_tie_candidate_distances": 1379908062, + "worst_case_tie_distance_components": 11345910732, + "ranked_reference_matrix_bytes": 3345840, + "query_bootstrap_counts_bytes": 2932800 + }, + { + "fold_index": 7, + "test_case": "00001387_60cf3ad636dd42e0bcec6946_step_000", + "test_source": "60cf3ad636dd42e0bcec6946", + "eligible_unique_queries": 1803, + "training_distinct_references": 41853, + "configurations": 18, + "query_2D": 1803, + "query_6D": 10818, + "query_10D": 19833, + "logical_8NN_queries": 32454, + "tie_radius_queries": 32454, + "total_tree_search_calls": 64908, + "tree_builds": 18, + "extra_near_slice_queries": 0, + "extra_query_bootstrap_queries": 0, + "extra_source_bootstrap_queries": 0, + "worst_case_tie_candidate_distances": 1358297262, + "worst_case_tie_distance_components": 11168221932, + "ranked_reference_matrix_bytes": 3348240, + "query_bootstrap_counts_bytes": 2884800 + }, + { + "fold_index": 8, + "test_case": "00000280_5a6ef3285b89452ea6b390e7_step_001", + "test_source": "5a6ef3285b89452ea6b390e7", + "eligible_unique_queries": 1845, + "training_distinct_references": 41811, + "configurations": 18, + "query_2D": 1845, + "query_6D": 11070, + "query_10D": 20295, + "logical_8NN_queries": 33210, + "tie_radius_queries": 33210, + "total_tree_search_calls": 66420, + "tree_builds": 18, + "extra_near_slice_queries": 0, + "extra_query_bootstrap_queries": 0, + "extra_source_bootstrap_queries": 0, + "worst_case_tie_candidate_distances": 1388543310, + "worst_case_tie_distance_components": 11416911660, + "ranked_reference_matrix_bytes": 3344880, + "query_bootstrap_counts_bytes": 2952000 + }, + { + "fold_index": 9, + "test_case": "00000140_2fc54fcd110d4f49969163c4_step_003", + "test_source": "2fc54fcd110d4f49969163c4", + "eligible_unique_queries": 1835, + "training_distinct_references": 41821, + "configurations": 18, + "query_2D": 1835, + "query_6D": 11010, + "query_10D": 20185, + "logical_8NN_queries": 33030, + "tie_radius_queries": 33030, + "total_tree_search_calls": 66060, + "tree_builds": 18, + "extra_near_slice_queries": 0, + "extra_query_bootstrap_queries": 0, + "extra_source_bootstrap_queries": 0, + "worst_case_tie_candidate_distances": 1381347630, + "worst_case_tie_distance_components": 11357747180, + "ranked_reference_matrix_bytes": 3345680, + "query_bootstrap_counts_bytes": 2936000 + }, + { + "fold_index": 10, + "test_case": "00000161_a583c6c3cdc143bab3f6c856_step_000", + "test_source": "a583c6c3cdc143bab3f6c856", + "eligible_unique_queries": 1862, + "training_distinct_references": 41794, + "configurations": 18, + "query_2D": 1862, + "query_6D": 11172, + "query_10D": 20482, + "logical_8NN_queries": 33516, + "tie_radius_queries": 33516, + "total_tree_search_calls": 67032, + "tree_builds": 18, + "extra_near_slice_queries": 0, + "extra_query_bootstrap_queries": 0, + "extra_source_bootstrap_queries": 0, + "worst_case_tie_candidate_distances": 1400767704, + "worst_case_tie_distance_components": 11517423344, + "ranked_reference_matrix_bytes": 3343520, + "query_bootstrap_counts_bytes": 2979200 + }, + { + "fold_index": 11, + "test_case": "00001041_6baf25f5fe2947e8927797d8_step_000", + "test_source": "6baf25f5fe2947e8927797d8", + "eligible_unique_queries": 1885, + "training_distinct_references": 41771, + "configurations": 18, + "query_2D": 1885, + "query_6D": 11310, + "query_10D": 20735, + "logical_8NN_queries": 33930, + "tie_radius_queries": 33930, + "total_tree_search_calls": 67860, + "tree_builds": 18, + "extra_near_slice_queries": 0, + "extra_query_bootstrap_queries": 0, + "extra_source_bootstrap_queries": 0, + "worst_case_tie_candidate_distances": 1417290030, + "worst_case_tie_distance_components": 11653273580, + "ranked_reference_matrix_bytes": 3341680, + "query_bootstrap_counts_bytes": 3016000 + }, + { + "fold_index": 12, + "test_case": "00000411_305e45c9479f43979b0d7b53_step_000", + "test_source": "305e45c9479f43979b0d7b53", + "eligible_unique_queries": 1845, + "training_distinct_references": 41811, + "configurations": 18, + "query_2D": 1845, + "query_6D": 11070, + "query_10D": 20295, + "logical_8NN_queries": 33210, + "tie_radius_queries": 33210, + "total_tree_search_calls": 66420, + "tree_builds": 18, + "extra_near_slice_queries": 0, + "extra_query_bootstrap_queries": 0, + "extra_source_bootstrap_queries": 0, + "worst_case_tie_candidate_distances": 1388543310, + "worst_case_tie_distance_components": 11416911660, + "ranked_reference_matrix_bytes": 3344880, + "query_bootstrap_counts_bytes": 2952000 + }, + { + "fold_index": 13, + "test_case": "00000996_6d71695ba3fd475c927a00a7_step_000", + "test_source": "6d71695ba3fd475c927a00a7", + "eligible_unique_queries": 1871, + "training_distinct_references": 41785, + "configurations": 18, + "query_2D": 1871, + "query_6D": 11226, + "query_10D": 20581, + "logical_8NN_queries": 33678, + "tie_radius_queries": 33678, + "total_tree_search_calls": 67356, + "tree_builds": 18, + "extra_near_slice_queries": 0, + "extra_query_bootstrap_queries": 0, + "extra_source_bootstrap_queries": 0, + "worst_case_tie_candidate_distances": 1407235230, + "worst_case_tie_distance_components": 11570600780, + "ranked_reference_matrix_bytes": 3342800, + "query_bootstrap_counts_bytes": 2993600 + }, + { + "fold_index": 14, + "test_case": "00001106_ba88e7579ced4a0aa2de629c_step_000", + "test_source": "ba88e7579ced4a0aa2de629c", + "eligible_unique_queries": 1880, + "training_distinct_references": 41776, + "configurations": 18, + "query_2D": 1880, + "query_6D": 11280, + "query_10D": 20680, + "logical_8NN_queries": 33840, + "tie_radius_queries": 33840, + "total_tree_search_calls": 67680, + "tree_builds": 18, + "extra_near_slice_queries": 0, + "extra_query_bootstrap_queries": 0, + "extra_source_bootstrap_queries": 0, + "worst_case_tie_candidate_distances": 1413699840, + "worst_case_tie_distance_components": 11623754240, + "ranked_reference_matrix_bytes": 3342080, + "query_bootstrap_counts_bytes": 3008000 + }, + { + "fold_index": 15, + "test_case": "00000060_767e4372b5f94a88a7a17d90_step_001", + "test_source": "767e4372b5f94a88a7a17d90", + "eligible_unique_queries": 1875, + "training_distinct_references": 41781, + "configurations": 18, + "query_2D": 1875, + "query_6D": 11250, + "query_10D": 20625, + "logical_8NN_queries": 33750, + "tie_radius_queries": 33750, + "total_tree_search_calls": 67500, + "tree_builds": 18, + "extra_near_slice_queries": 0, + "extra_query_bootstrap_queries": 0, + "extra_source_bootstrap_queries": 0, + "worst_case_tie_candidate_distances": 1410108750, + "worst_case_tie_distance_components": 11594227500, + "ranked_reference_matrix_bytes": 3342480, + "query_bootstrap_counts_bytes": 3000000 + }, + { + "fold_index": 16, + "test_case": "00000723_8ed79b6bcb024d1a9f2aa5e7_step_000", + "test_source": "8ed79b6bcb024d1a9f2aa5e7", + "eligible_unique_queries": 1901, + "training_distinct_references": 41755, + "configurations": 18, + "query_2D": 1901, + "query_6D": 11406, + "query_10D": 20911, + "logical_8NN_queries": 34218, + "tie_radius_queries": 34218, + "total_tree_search_calls": 68436, + "tree_builds": 18, + "extra_near_slice_queries": 0, + "extra_query_bootstrap_queries": 0, + "extra_source_bootstrap_queries": 0, + "worst_case_tie_candidate_distances": 1428772590, + "worst_case_tie_distance_components": 11747685740, + "ranked_reference_matrix_bytes": 3340400, + "query_bootstrap_counts_bytes": 3041600 + }, + { + "fold_index": 17, + "test_case": "00000405_f3759bbb4682423caf207e8e_step_002", + "test_source": "f3759bbb4682423caf207e8e", + "eligible_unique_queries": 1919, + "training_distinct_references": 41737, + "configurations": 18, + "query_2D": 1919, + "query_6D": 11514, + "query_10D": 21109, + "logical_8NN_queries": 34542, + "tie_radius_queries": 34542, + "total_tree_search_calls": 69084, + "tree_builds": 18, + "extra_near_slice_queries": 0, + "extra_query_bootstrap_queries": 0, + "extra_source_bootstrap_queries": 0, + "worst_case_tie_candidate_distances": 1441679454, + "worst_case_tie_distance_components": 11853808844, + "ranked_reference_matrix_bytes": 3338960, + "query_bootstrap_counts_bytes": 3070400 + }, + { + "fold_index": 18, + "test_case": "00000206_27417003e762409185cb2b69_step_000", + "test_source": "27417003e762409185cb2b69", + "eligible_unique_queries": 1923, + "training_distinct_references": 41733, + "configurations": 18, + "query_2D": 1923, + "query_6D": 11538, + "query_10D": 21153, + "logical_8NN_queries": 34614, + "tie_radius_queries": 34614, + "total_tree_search_calls": 69228, + "tree_builds": 18, + "extra_near_slice_queries": 0, + "extra_query_bootstrap_queries": 0, + "extra_source_bootstrap_queries": 0, + "worst_case_tie_candidate_distances": 1444546062, + "worst_case_tie_distance_components": 11877378732, + "ranked_reference_matrix_bytes": 3338640, + "query_bootstrap_counts_bytes": 3076800 + }, + { + "fold_index": 19, + "test_case": "00001417_a45f6c99e2154f3b94955175_step_001", + "test_source": "a45f6c99e2154f3b94955175", + "eligible_unique_queries": 1909, + "training_distinct_references": 41747, + "configurations": 18, + "query_2D": 1909, + "query_6D": 11454, + "query_10D": 20999, + "logical_8NN_queries": 34362, + "tie_radius_queries": 34362, + "total_tree_search_calls": 68724, + "tree_builds": 18, + "extra_near_slice_queries": 0, + "extra_query_bootstrap_queries": 0, + "extra_source_bootstrap_queries": 0, + "worst_case_tie_candidate_distances": 1434510414, + "worst_case_tie_distance_components": 11794863404, + "ranked_reference_matrix_bytes": 3339760, + "query_bootstrap_counts_bytes": 3054400 + }, + { + "fold_index": 20, + "test_case": "00000408_36bcb4030e36417b8dc74b87_step_000", + "test_source": "36bcb4030e36417b8dc74b87", + "eligible_unique_queries": 1905, + "training_distinct_references": 41751, + "configurations": 18, + "query_2D": 1905, + "query_6D": 11430, + "query_10D": 20955, + "logical_8NN_queries": 34290, + "tie_radius_queries": 34290, + "total_tree_search_calls": 68580, + "tree_builds": 18, + "extra_near_slice_queries": 0, + "extra_query_bootstrap_queries": 0, + "extra_source_bootstrap_queries": 0, + "worst_case_tie_candidate_distances": 1431641790, + "worst_case_tie_distance_components": 11771276940, + "ranked_reference_matrix_bytes": 3340080, + "query_bootstrap_counts_bytes": 3048000 + }, + { + "fold_index": 21, + "test_case": "00000364_38d899e2706a4d09960705dd_step_001", + "test_source": "38d899e2706a4d09960705dd", + "eligible_unique_queries": 1929, + "training_distinct_references": 41727, + "configurations": 18, + "query_2D": 1929, + "query_6D": 11574, + "query_10D": 21219, + "logical_8NN_queries": 34722, + "tie_radius_queries": 34722, + "total_tree_search_calls": 69444, + "tree_builds": 18, + "extra_near_slice_queries": 0, + "extra_query_bootstrap_queries": 0, + "extra_source_bootstrap_queries": 0, + "worst_case_tie_candidate_distances": 1448844894, + "worst_case_tie_distance_components": 11912724684, + "ranked_reference_matrix_bytes": 3338160, + "query_bootstrap_counts_bytes": 3086400 + }, + { + "fold_index": 22, + "test_case": "00001358_2e314c6e080b40fcb6a6db96_step_001", + "test_source": "2e314c6e080b40fcb6a6db96", + "eligible_unique_queries": 1934, + "training_distinct_references": 41722, + "configurations": 18, + "query_2D": 1934, + "query_6D": 11604, + "query_10D": 21274, + "logical_8NN_queries": 34812, + "tie_radius_queries": 34812, + "total_tree_search_calls": 69624, + "tree_builds": 18, + "extra_near_slice_queries": 0, + "extra_query_bootstrap_queries": 0, + "extra_source_bootstrap_queries": 0, + "worst_case_tie_candidate_distances": 1452426264, + "worst_case_tie_distance_components": 11942171504, + "ranked_reference_matrix_bytes": 3337760, + "query_bootstrap_counts_bytes": 3097600 + }, + { + "fold_index": 23, + "test_case": "00001040_74c42207fa764831b03f7658_step_000", + "test_source": "74c42207fa764831b03f7658", + "eligible_unique_queries": 1944, + "training_distinct_references": 41712, + "configurations": 18, + "query_2D": 1944, + "query_6D": 11664, + "query_10D": 21384, + "logical_8NN_queries": 34992, + "tie_radius_queries": 34992, + "total_tree_search_calls": 69984, + "tree_builds": 18, + "extra_near_slice_queries": 0, + "extra_query_bootstrap_queries": 0, + "extra_source_bootstrap_queries": 0, + "worst_case_tie_candidate_distances": 1459586304, + "worst_case_tie_distance_components": 12001042944, + "ranked_reference_matrix_bytes": 3336960, + "query_bootstrap_counts_bytes": 3110400 + } + ], + "inputs": { + "artifacts/s1-sampled-o2-2026-11-14/summary.csv": "9102ebbb3af9a8b67d25b7a820f8d724f9126f3033a777e170ef182c2619ed63", + "artifacts/s1-sampled-draw-2026-11-14/fold_table.csv": "867802a68294382e34adb391f21e423f959c6a71b916ef1b395e0dbc007bf256" + }, + "numerical_parent": "a86a74cbd943e0687ee69fb1cccdc003250113cc", + "totals": { + "eligible_unique_queries": 43656, + "logical_8NN_queries": 785808, + "tie_radius_queries": 785808, + "total_tree_search_calls": 1571616, + "tree_builds": 432, + "worst_case_tie_candidate_distances": 32868059868, + "worst_case_tie_distance_components": 270248492248 + }, + "configurations": "A/B/C once each plus 3 shuffled controls times 5 seeds = 18; dimensions 2:1, 6:6, 10:11.", + "bootstrap": { + "query_seed": 2026111406, + "query_replicates": 200, + "source_seed": 2026111407, + "source_replicates": 2000, + "source_index_bytes": 384000 + }, + "runtime_and_rss": "No real-score timing measured. Matrix sizes are component sizes, not a total RSS bound. Worst-case ties can scan all references.", + "proposed_execution": "After review and explicit execution scope: one supervised fold at a time, persist/release full fold arrays before next fold; agree wall/RSS limits before starting." +} diff --git a/review/2026-11-14/s1-scoring-code/s1_scoring.py b/review/2026-11-14/s1-scoring-code/s1_scoring.py new file mode 100644 index 000000000..ad2240438 --- /dev/null +++ b/review/2026-11-14/s1-scoring-code/s1_scoring.py @@ -0,0 +1,340 @@ +"""M2 v1.2 scorer for review. Importing this module never reads project data. + +No learning model is trained. Real panel execution requires a separate approval. +""" +from dataclasses import dataclass +import hashlib +import numpy as np +from scipy.spatial import cKDTree +from evaluate_s1_shortfall import decision as shortfall_decision + +PERMUTATION_SEEDS=tuple(range(2026111401,2026111406)) +QUERY_BOOTSTRAP_SEED=2026111406 +SOURCE_BOOTSTRAP_SEED=2026111407 +ARMS=('A','A+S','B','B+edge_shuffle','C','B+stratified_edge_shuffle') +DIMENSIONS={'A':2,'A+S':6,'B':6,'B+edge_shuffle':10,'C':10,'B+stratified_edge_shuffle':10} +CONTRASTS={'B-(A+S)':('B','A+S','primary'), + 'C-(B+edge_shuffle)':('C','B+edge_shuffle','primary'), + 'C-(B+stratified_edge_shuffle)':('C','B+stratified_edge_shuffle','secondary'), + 'B-A':('B','A','descriptive'),'C-B':('C','B','descriptive')} +AUDIT_TOLERANCE=1e-10 + + +def digest(a): + a=np.asarray(a) + return hashlib.sha256(a.dtype.str.encode()+str(a.shape).encode()+a.tobytes()).hexdigest() + + +@dataclass +class Part: + case: str + source: str + prefix: int + ids: np.ndarray + features: np.ndarray # d/t, gate/Rg, g12,g23,gate q1,q2,edge mean/max q1/q2 + counts: np.ndarray + eligible: np.ndarray + near: np.ndarray + draw_to_unique: np.ndarray + positive_mass_fraction: float=1. + provenance: str='synthetic' + + def validate(self): + u=len(self.ids) + if self.features.shape!=(u,10):raise ValueError('Expected all ten true columns') + if len(set(map(int,self.ids)))!=u or np.any(np.diff(self.ids)<=0):raise ValueError('IDs must be distinct and sorted') + if any(np.asarray(x).shape!=(u,) for x in [self.counts,self.eligible,self.near]):raise ValueError('Shape mismatch') + if self.eligible.dtype!=bool or self.near.dtype!=bool:raise ValueError('Explicit boolean masks required') + if not np.issubdtype(self.counts.dtype,np.integer) or np.any(self.counts<=0):raise ValueError('Positive integer multiplicities required') + inv=np.asarray(self.draw_to_unique) + if inv.ndim!=1 or not np.issubdtype(inv.dtype,np.integer) or not len(inv):raise ValueError('Ordered draw slots required') + if inv.min()<0 or inv.max()>=u or not np.array_equal(np.bincount(inv,minlength=u),self.counts):raise ValueError('Draw counts disagree') + if not np.isfinite(self.features[self.eligible]).all():raise ValueError('Nonfinite eligible descriptor') + if not 0<=self.positive_mass_fraction<=1:raise ValueError('Invalid positive-distance mass share') + + +def rank_weights(parts): + """Each training part has total 1/P; within part cE/K, no second mass.""" + if not parts:raise ValueError('No training parts') + weights=[] + for part in parts: + part.validate();c=part.counts[part.eligible] + if not len(c) or c.sum()==0:raise ValueError('Zero eligible training part; cannot silently drop it') + weights.append(c.astype(np.float64)/int(c.sum())/len(parts)) + return weights + + +@dataclass +class RankMap: + values: np.ndarray + cumulative: np.ndarray + + @classmethod + def fit(cls,values,weights): + values=np.asarray(values,dtype=np.float64);weights=np.asarray(weights,dtype=np.float64) + if values.ndim!=1 or values.shape!=weights.shape or not len(values):raise ValueError('Rank input shape') + if not np.isfinite(values).all() or not np.isfinite(weights).all() or np.any(weights<=0):raise ValueError('Invalid rank input') + order=np.argsort(values,kind='stable');v=values[order];w=weights[order] + starts=np.r_[0,np.flatnonzero(v[1:]!=v[:-1])+1] + total=np.add.reduceat(w,starts);cdf=np.r_[0.,np.cumsum(total)] + cdf/=cdf[-1];cdf[-1]=1. + return cls(v[starts],cdf) + + def transform(self,x): + x=np.asarray(x,dtype=np.float64) + if not np.isfinite(x).all():raise ValueError('Nonfinite transform input') + lo=np.searchsorted(self.values,x,side='left');hi=np.searchsorted(self.values,x,side='right') + return (self.cumulative[lo]+self.cumulative[hi])/2 + + def audit(self,x,counts): + x=np.asarray(x);counts=np.asarray(counts);den=int(counts.sum()) + low=xself.values[-1] + return dict(constant=len(self.values)==1,training_min=float(self.values[0]),training_max=float(self.values[-1]), + below_slots=int(counts[low].sum()),above_slots=int(counts[high].sum()),denominator_slots=den, + below_fraction=float(counts[low].sum()/den) if den else None, + above_fraction=float(counts[high].sum()/den) if den else None, + query_raw_min=float(x.min()) if len(x) else None,query_raw_max=float(x.max()) if len(x) else None) + + +def fit_maps(parts): + weights=rank_weights(parts);x=np.concatenate([p.features[p.eligible] for p in parts]);w=np.concatenate(weights) + return [RankMap.fit(x[:,j],w) for j in range(10)],weights + + +def apply_maps(x,maps): + return np.column_stack([m.transform(x[:,j]) for j,m in enumerate(maps[:x.shape[1]])]) + + +def D_p(x,y): + x=np.asarray(x,dtype=np.float64);y=np.asarray(y,dtype=np.float64) + if x.shape[-1]!=y.shape[-1] or x.shape[-1]<1:raise ValueError('Descriptor dimensions differ') + return np.sqrt(np.mean((x-y)**2,axis=-1)) + + +def knn_mean(reference,query,physical_ids,k=8): + """Exact tree search, then direct RMS distances and stable physical-ID ties. + + Radius padding only protects candidate retrieval from floating rounding; + it neither changes distances nor turns nearby distances into ties. + """ + reference=np.asarray(reference,dtype=np.float64);query=np.asarray(query,dtype=np.float64) + keys=[tuple(key) for key in physical_ids] + if len(keys)!=len(reference) or len(set(keys))!=len(keys):raise ValueError('Duplicate physical reference node') + if reference.ndim!=2 or query.ndim!=2 or reference.shape[1]!=query.shape[1]:raise ValueError('kNN shape') + if not np.isfinite(reference).all() or not np.isfinite(query).all():raise ValueError('Nonfinite kNN input') + if len(reference)0)==mode).all(1));small=len(ids)<8 + if not small:stratified[ids]=ids[rng.permutation(len(ids))] + strata.append(dict(mode=list(map(int,mode)),size=len(ids),unchanged_small_stratum=small)) + return ordinary,stratified,strata + + +def edge_audit(edges,gaps): + edges=np.asarray(edges);gaps=np.asarray(gaps);n=len(edges) + if not np.isfinite(edges).all() or not np.isfinite(gaps).all():raise ValueError('Nonfinite shuffle result; no repair') + violations=np.column_stack([-edges[:,0],edges[:,0]-edges[:,1],edges[:,1]-gaps[:,0], + -edges[:,2],edges[:,2]-edges[:,3],edges[:,3]-gaps[:,1]]) + both=(gaps>0).all(1);order=np.empty((0,2)) + if both.any():order=edges[both,:2]/gaps[both,0,None]-edges[both,2:]/gaps[both,1,None] + return dict(nodes=n,raw_bound_violation_count=int((violations>0).any(1).sum()), + tolerant_bound_violation_count=int((violations>AUDIT_TOLERANCE).any(1).sum()), + maximum_raw_bound_excess=float(np.maximum(violations,0).max(initial=0)), + both_positive_nodes=int(both.sum()),raw_cross_channel_order_violations=int((order>0).any(1).sum()), + tolerant_cross_channel_order_violations=int((order>AUDIT_TOLERANCE).any(1).sum()), + maximum_cross_channel_order_excess=float(np.maximum(order,0).max(initial=0)),tolerance=AUDIT_TOLERANCE) + + +def shuffled_blocks(x,prefix,seed): + """x contains eligible distinct true nodes in ascending node-ID order.""" + gaps=x[:,2:4];edges=x[:,6:10];plain,strat,strata=permutation_maps(prefix,seed,gaps) + node=x.copy();node[:,2:6]=x[plain,2:6] + edge=x.copy();edge[:,6:10]=edges[plain] + normal=x.copy();active=np.zeros(len(x),bool) + for row in strata: + if not row['unchanged_small_stratum']:active|=((gaps>0)==np.array(row['mode'],bool)).all(1) + normalized=np.zeros_like(edges) + for ch in range(2): + mask=gaps[:,ch]>0;normalized[mask,2*ch:2*ch+2]=edges[mask,2*ch:2*ch+2]/gaps[mask,ch,None] + normal[active,6+2*ch:8+2*ch]=normalized[strat[active],2*ch:2*ch+2]*gaps[active,ch,None] + modes=lambda g:{str(tuple(map(int,m))):int(((g>0)==m).all(1).sum()) for m in [(0,0),(0,1),(1,0),(1,1)]} + audit=dict(seed=seed,prefix=prefix,ordinary_index_sha256=digest(plain),stratified_index_sha256=digest(strat), + ordinary_slot_changes=int((plain!=np.arange(len(x))).sum()),stratified_slot_changes=int((strat!=np.arange(len(x))).sum()), + ordinary_block_value_changes=int((edge[:,6:10]!=edges).any(1).sum()), + stratified_block_value_changes=int((normal[:,6:10]!=edges).any(1).sum()), + node_block_value_changes=int((node[:,2:6]!=x[:,2:6]).any(1).sum()),denominator_slots=len(x), + recipient_zero_modes=modes(gaps),ordinary_donor_zero_modes=modes(gaps[plain]),stratified_donor_zero_modes=modes(gaps[strat]),strata=strata, + ordinary=edge_audit(edge[:,6:10],gaps),stratified=edge_audit(normal[:,6:10],gaps)) + return node,edge,normal,audit + + +def query_bootstrap_counts(part,replicates=200): + part.validate();n=len(part.draw_to_unique) + rng=np.random.Generator(np.random.PCG64(np.random.SeedSequence([QUERY_BOOTSTRAP_SEED,int(part.prefix)]))) + result=np.empty((replicates,len(part.ids)),np.int64) + for b in range(replicates): + slots=rng.integers(0,n,size=n,dtype=np.int64) + result[b]=np.bincount(part.draw_to_unique[slots],minlength=len(part.ids)) + return result + + +def source_bootstrap_indices(source_keys,replicates=2000): + keys=tuple(sorted(source_keys)) + if len(set(keys))!=len(keys) or not keys:raise ValueError('Source identities must be unique') + rng=np.random.Generator(np.random.PCG64(np.random.SeedSequence([SOURCE_BOOTSTRAP_SEED]))) + return keys,np.stack([rng.integers(0,len(keys),size=len(keys),dtype=np.int64) for _ in range(replicates)]) + + +def ratio(scores,counts,mask): + scores=np.asarray(scores);counts=np.asarray(counts);mask=np.asarray(mask,bool) + accepted=mask&(counts>0);den=int(counts[accepted].sum()) + if den==0:return np.nan + if not np.isfinite(scores[accepted]).all():return np.nan + return float(np.dot(counts[accepted],scores[accepted])/den) + + +def slice_estimates(part,scores,bootstrap): + """Returns point and query replicates; never zero-multiplies missing values.""" + out={} + for name,mask in [('whole',part.eligible),('near',part.eligible&part.near)]: + point=ratio(scores,part.counts,mask) + reps=np.array([ratio(scores,c,mask) for c in bootstrap]) + accepted=int(part.counts[mask].sum());n=int(part.counts.sum()) + out[name]=dict(point=point,replicates=reps,accepted_draws=accepted, + point_reason='zero_denominator' if not accepted else ('missing_node_score' if not np.isfinite(point) else None), + query_level=interval(point,reps), + conditional_positive_mass_share=accepted/n,full_mass_share=part.positive_mass_fraction*accepted/n, + positive_mass_fraction=part.positive_mass_fraction,boundary_unscored_mass_share=1-part.positive_mass_fraction) + out['near_fraction_of_eligible']=out['near']['accepted_draws']/out['whole']['accepted_draws'] if out['whole']['accepted_draws'] else np.nan + return out + + +def interval(point,replicates): + a=np.asarray(replicates,dtype=np.float64);good=a[np.isfinite(a)];n=len(good) + if not np.isfinite(point):return dict(point=None,valid_replicates=n,total_replicates=len(a),SE=None,interval95=None,reason='point_NA') + if n<2:return dict(point=float(point),valid_replicates=n,total_replicates=len(a),SE=None,interval95=None,reason='fewer_than_2_valid_replicates') + return dict(point=float(point),valid_replicates=n,total_replicates=len(a),SE=float(np.std(good,ddof=1)), + interval95=np.quantile(good,[.025,.975],method='linear').tolist(),reason=None) + + +def aggregate_parts(values,source_keys): + """Fixed parts/sources: a missing necessary part makes its aggregate NA.""" + a=np.asarray(values,dtype=np.float64) + if len(a)!=len(source_keys) or not len(a):raise ValueError('Aggregation identities') + sources=tuple(sorted(set(source_keys)));by_source=np.stack([a[np.array(source_keys)==s].mean(axis=0) for s in sources]) + return dict(source_keys=sources,source_values=by_source,source_equal=by_source.mean(axis=0),part_equal=a.mean(axis=0)) + + +def ranking(source_interval,category): + if category=='descriptive':return 'descriptive_only' + ci=source_interval['interval95'] + if ci is None:return 'NA' + if ci[1]<0:return 'ranks_ahead' if category=='primary' else 'secondary_ahead' + if ci[0]>0:return 'ranks_behind' if category=='primary' else 'secondary_behind' + return 'no_ranking_difference' + + +def contrast_report(points,query_replicates,source_keys,source_indices,category): + """Inputs already are paired differences, not separate unpaired intervals.""" + aggregate=aggregate_parts(points,source_keys);query=aggregate_parts(query_replicates,source_keys) + source_values=aggregate['source_values'] + source_reps=source_values[source_indices].mean(axis=1) + source_ci=interval(aggregate['source_equal'],source_reps) + return dict(category=category,source_equal_point=float(aggregate['source_equal']), + part_equal_point=float(aggregate['part_equal']),source_level=source_ci, + query_level=interval(aggregate['source_equal'],query['source_equal']), + part_equal_query_level=interval(aggregate['part_equal'],query['part_equal']), + decision=ranking(source_ci,category),source_keys=aggregate['source_keys'], + source_bootstrap_scope='Resamples fixed LOPO source statistics (paired differences for contrasts); does not refit folds/ranks or resample training pools.', + query_bootstrap_scope='Draw-slot error only, conditional on panel, reference pools, ranks, permutations and node scores.') + + +def score_fold(training,test,allow_small_synthetic=False): + training=sorted(training,key=lambda p:(p.source,p.case));test.validate() + if test.source in {p.source for p in training}:raise ValueError('Source leakage') + if len({p.case for p in training})!=len(training) or len({p.source for p in training})!=len(training):raise ValueError('One representative per source required') + for p in training:p.validate() + if allow_small_synthetic and any(p.provenance!='synthetic' for p in [*training,test]):raise ValueError('Cannot bypass shortfall for real data') + gate=shortfall_decision([int(p.eligible.sum()) for p in training]) + if not gate['comparable'] and not allow_small_synthetic:return dict(status='shortfall',gate=gate) + if any(not p.eligible.any() for p in training):return dict(status='zero_eligible_training_part',gate=gate) + maps,weights=fit_maps(training) + true=[p.features[p.eligible] for p in training];keys=[(p.source,p.case,int(i)) for p in training for i in p.ids[p.eligible]] + qraw=test.features[test.eligible];truth=np.concatenate(true) + scores={arm:np.full((5,len(test.ids)),np.nan) for arm in ARMS};nearest={};audits={};reference_clipping={};searches=0;tie_searches=0 + def evaluate(arm,raw,seed_index): + nonlocal searches,tie_searches + dim=DIMENSIONS[arm];ref=apply_maps(raw[:,:dim],maps);query=apply_maps(qraw[:,:dim],maps) + result=knn_mean(ref,query,keys) + if result['status']=='PASS': + neighbor_sources=np.array([key[0] for key in keys])[result['indices']] + result['zero_distance_neighbors']=(result['distances']==0).sum(axis=1) + result['distinct_neighbor_sources']=np.array([len(set(row)) for row in neighbor_sources]) + result['largest_source_neighbor_fraction']=np.array([max(np.unique(row,return_counts=True)[1])/8 for row in neighbor_sources]) + scores[arm][seed_index,test.eligible]=result['scores'];nearest[(arm,seed_index)]=result + searches+=result.get('logical_knn_queries',0);tie_searches+=result.get('tie_radius_queries',0) + for arm in ['A','B','C']: + evaluate(arm,truth,0);scores[arm][1:]=scores[arm][0] + for si,seed in enumerate(PERMUTATION_SEEDS): + blocks=[shuffled_blocks(x,p.prefix,seed) for x,p in zip(true,training)] + for j,arm in enumerate(['A+S','B+edge_shuffle','B+stratified_edge_shuffle']): + raw=np.concatenate([b[j] for b in blocks]);evaluate(arm,raw,si) + reference_clipping[(arm,si)]={p.case:[m.audit(b[j][:,col],p.counts[p.eligible]) for col,m in enumerate(maps)] for p,b in zip(training,blocks)} + audits[str(seed)]={p.case:b[3] for p,b in zip(training,blocks)} + clipping={} + for name,mask in [('whole',test.eligible),('near',test.eligible&test.near)]: + clipping[name]=[m.audit(test.features[mask,j],test.counts[mask]) for j,m in enumerate(maps)] + boot=query_bootstrap_counts(test);estimates={} + for arm in ARMS:estimates[arm]=[slice_estimates(test,s,boot) for s in scores[arm]] + return dict(status='PASS' if len(keys)>=8 else 'fewer_than_8_references',gate=gate,scores=scores, + estimates=estimates,rank_maps=maps,rank_weights=weights,physical_reference_ids=keys, + nearest=nearest,shuffle_audits=audits,query_clipping=clipping,control_reference_clipping=reference_clipping, + query_bootstrap_counts_sha256=digest(boot),logical_knn_queries=searches,tie_radius_queries=tie_searches) + + +def summarize_folds(parts,fold_results): + if len(parts)!=len(fold_results):raise ValueError('Missing fold') + if any(r['status'] not in ['PASS','fewer_than_8_references'] for r in fold_results):raise ValueError('Unscored fold retained; no aggregate') + sources=[p.source for p in parts];source_order,source_indices=source_bootstrap_indices(set(sources));report={} + for name,(left,right,category) in CONTRASTS.items(): + report[name]={} + for slice_name in ['whole','near']: + point=np.array([[r['estimates'][left][s][slice_name]['point']-r['estimates'][right][s][slice_name]['point'] for s in range(5)] for r in fold_results]) + reps=np.array([[r['estimates'][left][s][slice_name]['replicates']-r['estimates'][right][s][slice_name]['replicates'] for s in range(5)] for r in fold_results]) + each=[contrast_report(point[:,s],reps[:,s],sources,source_indices,category) for s in range(5)] + report[name][slice_name]=dict(per_seed=dict(zip(map(str,PERMUTATION_SEEDS),each)), + five_seed_mean=contrast_report(point.mean(axis=1),reps.mean(axis=1),sources,source_indices,category)) + arm_report={} + for arm in ARMS: + arm_report[arm]={} + for slice_name in ['whole','near']: + point=np.array([[r['estimates'][arm][s][slice_name]['point'] for s in range(5)] for r in fold_results]) + reps=np.array([[r['estimates'][arm][s][slice_name]['replicates'] for s in range(5)] for r in fold_results]) + arm_report[arm][slice_name]=dict(per_seed={str(seed):contrast_report(point[:,s],reps[:,s],sources,source_indices,'descriptive') for s,seed in enumerate(PERMUTATION_SEEDS)}, + five_seed_mean=contrast_report(point.mean(axis=1),reps.mean(axis=1),sources,source_indices,'descriptive')) + return dict(arms=arm_report,contrasts=report,source_order=source_order,source_bootstrap_indices_sha256=digest(source_indices), + source_bootstrap_seed=SOURCE_BOOTSTRAP_SEED,source_bootstrap_replicates=2000, + query_bootstrap_seed=QUERY_BOOTSTRAP_SEED,query_bootstrap_replicates=200, + decision_uses='Paired absolute M2 differences; source-level percentile interval only; no effect-size margin.', + warning='Cross-dimension B-A and C-B are descriptive. Secondary normalized shuffle is not a gate.') diff --git a/review/2026-11-14/s1-scoring-code/s1_scoring_io.py b/review/2026-11-14/s1-scoring-code/s1_scoring_io.py new file mode 100644 index 000000000..ffc89be2a --- /dev/null +++ b/review/2026-11-14/s1-scoring-code/s1_scoring_io.py @@ -0,0 +1,55 @@ +"""Explicit input adapter and strict output serialization; no execution on import.""" +from dataclasses import asdict, is_dataclass +import hashlib +import json +from pathlib import Path +import numpy as np +from s1_scoring import Part + + +def sha(path):return hashlib.sha256(Path(path).read_bytes()).hexdigest() + + +def load_part(spec,root,o2_root): + """Use only released sampled O2 and the unchanged ordered draw; never geometry.""" + root=Path(root);o2_root=Path(o2_root) + draw_path=root/spec['anchor_file'];receipt_path=draw_path.parent/'receipt.json' + for path in [draw_path,receipt_path]: + relative=str(path.relative_to(root)) + if sha(path)!=spec['input_sha256'][relative]:raise ValueError('Frozen draw input changed: '+relative) + folder=o2_root/'panel'/spec['job'];result=json.loads((folder/'result.json').read_text()) + supervisor=json.loads((o2_root/'panel'/(spec['job']+'.supervisor.json')).read_text()) + if supervisor['status']!='PASS' or result['status']!='COMPLETE' or result['case']!=spec['case']:raise ValueError('Unreleased numerical part') + if sha(folder/'nodes.npz')!=result['output_sha256']['nodes.npz']:raise ValueError('O2 nodes hash differs') + if result['draw_file_sha256']!=sha(draw_path):raise ValueError('O2 used different draws') + receipt=json.loads(receipt_path.read_text()) + if any(receipt[k]!=spec[k] for k in ['case','source_key','numeric_prefix']):raise ValueError('Draw source identity differs') + with np.load(draw_path,allow_pickle=False) as z:draw={k:z[k] for k in ['unique_ids','unique_raw_ids','multiplicity','draw_to_unique']} + with np.load(folder/'nodes.npz',allow_pickle=False) as z: + if not np.array_equal(z['anchor_ids'],draw['unique_ids']) or not np.array_equal(z['raw_node_ids'],draw['unique_raw_ids']) or not np.array_equal(z['multiplicity'],draw['multiplicity']):raise ValueError('Node/draw identity mismatch') + rg=float(result['R_g_raw']);thickness=float(result['t_part']) + if not np.isfinite([rg,thickness]).all() or min(rg,thickness)<=0:raise ValueError('Invalid full-part scale') + if thickness!=spec['t_part']:raise ValueError('Thickness changed') + features=np.column_stack([z['distance']/thickness,z['gate_length']/rg,z['g'],z['gate_q'],z['edge_summary']]) + eligible=z['eligible'];near=z['near_wall'] + if not np.array_equal(near,(z['distance']>0)&(z['distance']/thickness<=.25)):raise ValueError('Near-wall mask differs') + if len(draw['draw_to_unique'])!=2000 or int(eligible.sum())!=result['n_ref']:raise ValueError('Frozen counts differ') + p=Part(spec['case'],spec['source_key'],spec['numeric_prefix'],draw['unique_ids'],features,draw['multiplicity'],eligible,near,draw['draw_to_unique'],receipt['positive_mass_fraction'],provenance='real') + p.validate();return p + + +def json_ready(value): + """NA -> null. Tuple-key diagnostics become key/value records, not ambiguous strings.""" + if is_dataclass(value):return json_ready(asdict(value)) + if isinstance(value,np.ndarray):return json_ready(value.tolist()) + if isinstance(value,np.generic):return json_ready(value.item()) + if isinstance(value,float) and not np.isfinite(value):return None + if isinstance(value,dict): + if any(isinstance(k,tuple) for k in value):return [dict(key=json_ready(k),value=json_ready(v)) for k,v in value.items()] + return {str(k):json_ready(v) for k,v in value.items()} + if isinstance(value,(tuple,list)):return [json_ready(v) for v in value] + return value + + +def save_report(path,value): + with Path(path).open('x') as f:json.dump(json_ready(value),f,indent=2,allow_nan=False);f.write('\n') diff --git a/review/2026-11-14/s1-scoring-code/s1_seed_vectors.py b/review/2026-11-14/s1-scoring-code/s1_seed_vectors.py new file mode 100644 index 000000000..6e6cf8b62 --- /dev/null +++ b/review/2026-11-14/s1-scoring-code/s1_seed_vectors.py @@ -0,0 +1,25 @@ +"""Small synthetic replay vectors for the independent RNG/formula review.""" +import json +import sys +import numpy as np +import s1_scoring as s + + +def vectors(): + gaps=np.concatenate([np.zeros((7,2)),np.tile([0,.2],(8,1)),np.tile([.3,0],(8,1)),np.tile([.2,.3],(8,1))]) + counts=np.array([1,2,1,1,1,1,1,1,1,1]);p=s.Part('synthetic','synthetic',993,np.arange(10),np.zeros((10,10)),counts,np.ones(10,bool),np.ones(10,bool),np.repeat(np.arange(10),counts)) + permutations={} + for seed in s.PERMUTATION_SEEDS: + ordinary,stratified,strata=s.permutation_maps(993,seed,gaps) + permutations[str(seed)]=dict(ordinary=ordinary.tolist(),stratified=stratified.tolist(),ordinary_digest=s.digest(ordinary),stratified_digest=s.digest(stratified)) + query=s.query_bootstrap_counts(p);keys,source=s.source_bootstrap_indices([f's{i:02d}' for i in range(24)]) + return dict(numpy_version=np.__version__,digest_definition='sha256(dtype.str ASCII + str(shape) ASCII + C-order bytes); int64 little-endian in this environment', + prefix=993,gaps=gaps.tolist(),permutations=permutations, + query=dict(seed=2026111406,replicates=200,draw_to_unique=p.draw_to_unique.tolist(),first_three_counts=query[:3].tolist(),digest=s.digest(query)), + source=dict(seed=2026111407,replicates=2000,source_order=keys,first_three_indices=source[:3].tolist(),digest=s.digest(source)), + midrank_hand_fixture=dict(P=3,parts=[dict(values=[0,1,2],counts=[1,2,1],eligible=[True,True,False]),dict(values=[0,2],counts=[1,1],eligible=[True,True]),dict(values=[1,2],counts=[3,1],eligible=[True,True])], + eligible_weights=['1/9,2/9','1/6,1/6','1/4,1/12'],query=[-1,0,1,1.5,2,3],expected=['0','5/36','37/72','3/4','7/8','1'])) + + +if __name__=='__main__': + with open(sys.argv[1],'w') as f:json.dump(vectors(),f,indent=2,allow_nan=False);f.write('\n') diff --git a/review/2026-11-14/s1-scoring-code/scope_source.txt b/review/2026-11-14/s1-scoring-code/scope_source.txt new file mode 100644 index 000000000..56c391750 --- /dev/null +++ b/review/2026-11-14/s1-scoring-code/scope_source.txt @@ -0,0 +1,46 @@ + (2 total) === + +--- Reply 1 of 2 --- +From: ClaudeWorker (local) (U0C7SSQLBJ7) +Time: 2026-11-14 15:36:04 CST +Message TS: 1794641764.296189 +Accepted; working on: “@⁠TRON MeltAstra 完成交付,请Claude主审面板回执与短缺门:…” + +--- Reply 2 of 2 --- +From: ClaudeWorker (local) (U0C7SSQLBJ7) +Time: 2026-11-14 15:36:39 CST +Message TS: 1794641799.442609 +*Claude: panel receipts and shortfall gate accepted (I read summary.csv and shortfall.csv at `a86a74c`; ZIP not downloaded)* + +*Checked from the tables:* +• All 24 supervised runs PASS. The longest took 292 s (part 364), well under 1,800 s. +• valid = unique anchors for every part, with 0 unscored and 0 invalid (as expected, since only d > 0 nodes were drawn). +• n_ref = unique count everywhere except part 1358, where 2 IDs fail the N_eff ≥ 64 screen (52.0 and 58.0). The raw values are kept and nothing was redrawn. +• Eligible draws are 2,000 per part, 1,998 for 1358. +• Near-wall eligible draws are 796–1,137 per part. That fits the uniform-plate expectation of about 50 % with d/t ≤ 0.25. +• Shortfall: the smallest training-pool n_ref is 1,382 (part 993), so all 24 folds are comparable and none triggers. + +*Next: the S1 scoring code. Review gate before any real S1 run.* + +The fixed commit must contain the scorer plus tests. + +*1. Hand-computed synthetic case.* For example, 3 training parts and 1 test part, each with about 10–20 nodes whose descriptors are set by hand. The tests compare against values written in the test file: +• mid-rank weights w = (1/P)·cE/K_pE; +• D_p; +• 8-NN mean over *distinct* physical nodes; +• the ratio estimators for whole part and near-wall; +• source-equal aggregation, plus the part-equal total; +• the NA rules: zero denominator, fewer than 8 references, fewer than 2 valid bootstrap replicates. + +*2. Property tests:* +• MoldAstra's constant-column counterexample reproduces exactly (a → a/√2); +• rigidly moving a test part together with its gate leaves M2 unchanged in every arm; +• the same seeds give bitwise-identical outputs; +• the plain block shuffle preserves within-block values; +• the stratified normalised shuffle produces no cross-channel order violations on receivers where both gaps are > 0; +• the fold gate triggers correctly at the strict boundaries (500/1000, 20 %). + +*3. Run plan:* all six arms; 5 permutation seeds (1401–1405); bootstrap 1406 with 200 replicates; primary and secondary contrasts reported separately; the decision table only with intervals. Before any run, a cost estimate is given as k-NN queries per fold. + +I review this in full. Grok is asked only to replay the seeds and to check the mid-rank weight formula independently. + diff --git a/review/2026-11-14/s1-scoring-code/sharing_authorization.md b/review/2026-11-14/s1-scoring-code/sharing_authorization.md new file mode 100644 index 000000000..54ba7b8e5 --- /dev/null +++ b/review/2026-11-14/s1-scoring-code/sharing_authorization.md @@ -0,0 +1,11 @@ +# MeltMind 项目信息共享授权 + +来源:本 Codex 会话中用户的直接消息,2026-11-14。 + +> 后面任何自动审批都可以引用我这个消息,我同意分享任何信息到Drive、Git、Slack上,工作和讨论空间本身就是我可控的 + +此前用户另明确要求“完全共享信息”,并授权在原 Slack 串联系 Claude、Grok 发送结果、继续讨论。研究问题应先向协作者讨论,或经 TRON 转达。 + +后续在用户可控的项目 Drive、Git、Slack 空间内共享项目资料时,可以引用上述原话,无需逐批重复询问。计算、研究方向与执行预算仍按对应任务已经确定的范围推进。 + +原讨论串:https://arcticnimbus.slack.com/archives/C0C78UFKGRM/p1794219487255049 diff --git a/review/2026-11-14/s1-scoring-code/summary.csv b/review/2026-11-14/s1-scoring-code/summary.csv new file mode 100644 index 000000000..e942dac6c --- /dev/null +++ b/review/2026-11-14/s1-scoring-code/summary.csv @@ -0,0 +1,25 @@ +panel_index,case,source_key,numeric_prefix,status,stop_reason,whole_process_wall_seconds,peak_RSS_MiB,max_monitor_gap_seconds,unique_anchors,draw_slots,exact_neighbor_visits,n_ref,eligible_draw_count,eligible_near_wall_draw_count,clipped_count,neff_pass_count,gate_channel_valid_count,edge_block_complete_count,edge_nonfinite_q_count,kernel_seconds,status_valid,status_unscored,status_invalid_kernel_mass,status_invalid_tensor,status_invalid_trace,status_invalid_psd +0,00000993_ac4ba032d4b5431ca04f542c_step_000,ac4ba032d4b5431ca04f542c,993,PASS,,1.872021479997784,106.203125,0.20355966800707392,1382,2000,1236295,1382,2000,1137,0,1382,1382,1382,0,0.6519516409898642,1382,0,0,0,0,0 +1,00000329_12a935cd9b684f879c0505fe_step_000,12a935cd9b684f879c0505fe,329,PASS,,3.3853100349952,118.6875,0.20974851297796704,1625,2000,7884145,1625,2000,817,0,1625,1625,1625,0,2.2697948349814396,1625,0,0,0,0,0 +2,00000418_ce5b31679ee845a69ba89d6f_step_000,ce5b31679ee845a69ba89d6f,418,PASS,,10.32098134001717,125.125,0.26168836999568157,1633,2000,37808527,1633,2000,802,0,1633,1633,1633,0,9.05548941899906,1633,0,0,0,0,0 +3,00000103_52f7124261ae4c558f800775_step_000,52f7124261ae4c558f800775,103,PASS,,14.760158724995563,140.4921875,0.23248751301434822,1570,2000,54281316,1570,2000,822,0,1570,1570,1570,0,13.590203550993465,1570,0,0,0,0,0 +4,00001067_8a2edcf36bcd435092f4c8ae_step_001,8a2edcf36bcd435092f4c8ae,1067,PASS,,2.323848544008797,133.05859375,0.18562124198069796,1745,2000,1600044,1745,2000,902,115,1745,1745,1745,0,1.0652829369937535,1745,0,0,0,0,0 +5,00000162_4dcda9fab6dd46cf98fb194e_step_000,4dcda9fab6dd46cf98fb194e,162,PASS,,34.352995941007975,160.94921875,0.6785568229970522,1803,2000,114945400,1803,2000,818,0,1803,1803,1803,0,32.819005009980174,1803,0,0,0,0,0 +6,00001490_6c8ef6d2f5564d139a5077f8_step_001,6c8ef6d2f5564d139a5077f8,1490,PASS,,138.26538045200869,228.3046875,0.5222371650161222,1833,2000,507261907,1833,2000,805,0,1833,1833,1833,0,136.4613710900012,1833,0,0,0,0,0 +7,00001387_60cf3ad636dd42e0bcec6946_step_000,60cf3ad636dd42e0bcec6946,1387,PASS,,10.66820295600337,153.28515625,0.3759666739788372,1803,2000,35412088,1803,2000,832,0,1803,1803,1803,0,9.133610946999397,1803,0,0,0,0,0 +8,00000280_5a6ef3285b89452ea6b390e7_step_001,5a6ef3285b89452ea6b390e7,280,PASS,,72.92884063601377,208.2734375,0.39544682900304906,1845,2000,272751955,1845,2000,808,0,1845,1845,1845,0,72.01451849599835,1845,0,0,0,0,0 +9,00000140_2fc54fcd110d4f49969163c4_step_003,2fc54fcd110d4f49969163c4,140,PASS,,20.932879728992702,162.734375,0.41079640001407824,1835,2000,73032980,1835,2000,884,17,1835,1835,1835,0,20.0136036699987,1835,0,0,0,0,0 +10,00000161_a583c6c3cdc143bab3f6c856_step_000,a583c6c3cdc143bab3f6c856,161,PASS,,28.338903288007714,174.859375,0.4270178269944154,1862,2000,106569009,1862,2000,835,0,1862,1862,1862,0,27.382480488013243,1862,0,0,0,0,0 +11,00001041_6baf25f5fe2947e8927797d8_step_000,6baf25f5fe2947e8927797d8,1041,PASS,,4.195310261013219,177.8359375,0.1453441439953167,1885,2000,13387395,1885,2000,888,0,1885,1885,1885,0,3.0602748400124256,1885,0,0,0,0,0 +12,00000411_305e45c9479f43979b0d7b53_step_000,305e45c9479f43979b0d7b53,411,PASS,,227.14173709100578,305.54296875,0.6450335640111007,1845,2000,780481148,1845,2000,856,0,1845,1845,1845,0,226.12292387901107,1845,0,0,0,0,0 +13,00000996_6d71695ba3fd475c927a00a7_step_000,6d71695ba3fd475c927a00a7,996,PASS,,159.02509688900318,262.00390625,0.6902262310031801,1871,2000,583423621,1871,2000,856,0,1871,1871,1871,0,157.23885886900825,1871,0,0,0,0,0 +14,00001106_ba88e7579ced4a0aa2de629c_step_000,ba88e7579ced4a0aa2de629c,1106,PASS,,136.41771048100782,272.23046875,0.5236930919927545,1880,2000,490870146,1880,2000,831,0,1880,1880,1880,0,135.12089308700524,1880,0,0,0,0,0 +15,00000060_767e4372b5f94a88a7a17d90_step_001,767e4372b5f94a88a7a17d90,60,PASS,,57.2509158810135,216.27734375,0.4130149230186362,1875,2000,161845628,1875,2000,825,0,1875,1875,1875,0,55.18790169802378,1875,0,0,0,0,0 +16,00000723_8ed79b6bcb024d1a9f2aa5e7_step_000,8ed79b6bcb024d1a9f2aa5e7,723,PASS,,200.96658752698568,321.6328125,0.46139096800470725,1901,2000,703549375,1901,2000,796,0,1901,1901,1901,0,198.79070946402499,1901,0,0,0,0,0 +17,00000405_f3759bbb4682423caf207e8e_step_002,f3759bbb4682423caf207e8e,405,PASS,,124.71898036499624,262.2734375,0.5147592729772441,1919,2000,437433523,1919,2000,857,0,1919,1919,1919,0,123.58081365399994,1919,0,0,0,0,0 +18,00000206_27417003e762409185cb2b69_step_000,27417003e762409185cb2b69,206,PASS,,6.071406453003874,215.58203125,0.3736400010238867,1923,2000,19290932,1923,2000,877,0,1923,1923,1923,0,4.684636894002324,1923,0,0,0,0,0 +19,00001417_a45f6c99e2154f3b94955175_step_001,a45f6c99e2154f3b94955175,1417,PASS,,289.06059606801136,375.60546875,0.5647807290079072,1909,2000,1036218758,1909,2000,849,0,1909,1909,1909,0,287.8742538189981,1909,0,0,0,0,0 +20,00000408_36bcb4030e36417b8dc74b87_step_000,36bcb4030e36417b8dc74b87,408,PASS,,14.901223177002976,224.765625,0.3931249439774547,1905,2000,55797513,1905,2000,870,0,1905,1905,1905,0,13.679704615991795,1905,0,0,0,0,0 +21,00000364_38d899e2706a4d09960705dd_step_001,38d899e2706a4d09960705dd,364,PASS,,292.24721103400225,404.1796875,1.973326437000651,1929,2000,1020991136,1929,2000,882,0,1929,1929,1929,0,290.1702344850055,1929,0,0,0,0,0 +22,00001358_2e314c6e080b40fcb6a6db96_step_001,2e314c6e080b40fcb6a6db96,1358,PASS,,2.4071968590142205,249.1953125,0.21786199501366355,1936,2000,542771,1934,1998,872,159,1934,1936,1936,0,0.6653635870025028,1936,0,0,0,0,0 +23,00001040_74c42207fa764831b03f7658_step_000,74c42207fa764831b03f7658,1040,PASS,,22.803430360014318,268.890625,0.46288571201148443,1944,2000,79914180,1944,2000,899,11,1944,1944,1944,0,21.36843487599981,1944,0,0,0,0,0 diff --git a/review/2026-11-14/s1-scoring-code/synthetic_seed_vectors.json b/review/2026-11-14/s1-scoring-code/synthetic_seed_vectors.json new file mode 100644 index 000000000..ee30bbab9 --- /dev/null +++ b/review/2026-11-14/s1-scoring-code/synthetic_seed_vectors.json @@ -0,0 +1,721 @@ +{ + "numpy_version": "1.26.4", + "digest_definition": "sha256(dtype.str ASCII + str(shape) ASCII + C-order bytes); int64 little-endian in this environment", + "prefix": 993, + "gaps": [ + [ + 0.0, + 0.0 + ], + [ + 0.0, + 0.0 + ], + [ + 0.0, + 0.0 + ], + [ + 0.0, + 0.0 + ], + [ + 0.0, + 0.0 + ], + [ + 0.0, + 0.0 + ], + [ + 0.0, + 0.0 + ], + [ + 0.0, + 0.2 + ], + [ + 0.0, + 0.2 + ], + [ + 0.0, + 0.2 + ], + [ + 0.0, + 0.2 + ], + [ + 0.0, + 0.2 + ], + [ + 0.0, + 0.2 + ], + [ + 0.0, + 0.2 + ], + [ + 0.0, + 0.2 + ], + [ + 0.3, + 0.0 + ], + [ + 0.3, + 0.0 + ], + [ + 0.3, + 0.0 + ], + [ + 0.3, + 0.0 + ], + [ + 0.3, + 0.0 + ], + [ + 0.3, + 0.0 + ], + [ + 0.3, + 0.0 + ], + [ + 0.3, + 0.0 + ], + [ + 0.2, + 0.3 + ], + [ + 0.2, + 0.3 + ], + [ + 0.2, + 0.3 + ], + [ + 0.2, + 0.3 + ], + [ + 0.2, + 0.3 + ], + [ + 0.2, + 0.3 + ], + [ + 0.2, + 0.3 + ], + [ + 0.2, + 0.3 + ] + ], + "permutations": { + "2026111401": { + "ordinary": [ + 10, + 23, + 21, + 27, + 25, + 9, + 11, + 19, + 20, + 29, + 2, + 6, + 3, + 8, + 22, + 24, + 5, + 0, + 26, + 1, + 30, + 7, + 15, + 18, + 13, + 17, + 16, + 14, + 28, + 4, + 12 + ], + "stratified": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 9, + 12, + 10, + 8, + 7, + 13, + 14, + 11, + 18, + 17, + 15, + 21, + 19, + 20, + 16, + 22, + 29, + 26, + 24, + 28, + 30, + 25, + 27, + 23 + ], + "ordinary_digest": "1d4fa21fb4089f1b96ce852288822615230946b4dae20aa9c6c31217e5467dee", + "stratified_digest": "fd010084bd7ea549953f19a1359d4f6262853f34421dd98db7cc26d945eb83c3" + }, + "2026111402": { + "ordinary": [ + 6, + 17, + 27, + 22, + 14, + 2, + 20, + 5, + 29, + 9, + 19, + 13, + 26, + 0, + 15, + 12, + 25, + 3, + 1, + 30, + 8, + 11, + 10, + 24, + 23, + 4, + 16, + 18, + 7, + 21, + 28 + ], + "stratified": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 10, + 13, + 8, + 14, + 7, + 9, + 12, + 11, + 20, + 19, + 15, + 16, + 18, + 17, + 21, + 22, + 27, + 29, + 25, + 23, + 30, + 26, + 24, + 28 + ], + "ordinary_digest": "17ecffbe2e68449385296954386f709929d8c914f9c6ec92e33e409bb03f5a81", + "stratified_digest": "e88211cb6b100aedd76e34597dcdb7cab82332d2c1d3d1eda83ad5527593ce5c" + }, + "2026111403": { + "ordinary": [ + 25, + 20, + 14, + 1, + 3, + 10, + 5, + 22, + 26, + 16, + 24, + 7, + 4, + 23, + 18, + 27, + 13, + 30, + 6, + 19, + 9, + 8, + 17, + 15, + 2, + 28, + 0, + 11, + 21, + 29, + 12 + ], + "stratified": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 9, + 14, + 8, + 7, + 10, + 13, + 12, + 11, + 17, + 19, + 18, + 21, + 20, + 15, + 16, + 22, + 23, + 29, + 28, + 24, + 30, + 25, + 26, + 27 + ], + "ordinary_digest": "605094dae2c5e5466f61323bdc611baf06da534091bd86b6612bc8d07a67b15d", + "stratified_digest": "3516f8ada5073a3745a68b537767877bc3f5b9ff6b7c1a4024d46051a7a07bb4" + }, + "2026111404": { + "ordinary": [ + 4, + 23, + 7, + 5, + 28, + 25, + 20, + 11, + 13, + 30, + 29, + 2, + 26, + 22, + 9, + 24, + 0, + 1, + 6, + 19, + 18, + 21, + 12, + 3, + 17, + 16, + 14, + 15, + 8, + 27, + 10 + ], + "stratified": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 13, + 14, + 8, + 12, + 11, + 7, + 10, + 9, + 15, + 16, + 22, + 18, + 17, + 21, + 20, + 19, + 28, + 27, + 30, + 29, + 23, + 25, + 24, + 26 + ], + "ordinary_digest": "8104dcc3c2f509faa435c45bae4a189f2ee9de0521ea5e86312941fad16d343d", + "stratified_digest": "4306da47527019e3bc32f2bb8cf96e1cf6487380a8acf1ba321539c9de6fbab7" + }, + "2026111405": { + "ordinary": [ + 3, + 27, + 1, + 21, + 28, + 14, + 9, + 19, + 29, + 0, + 7, + 25, + 11, + 18, + 15, + 17, + 8, + 5, + 12, + 4, + 13, + 26, + 22, + 20, + 10, + 24, + 23, + 6, + 2, + 16, + 30 + ], + "stratified": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 10, + 8, + 11, + 12, + 14, + 9, + 7, + 13, + 20, + 18, + 16, + 15, + 22, + 17, + 19, + 21, + 23, + 24, + 29, + 25, + 26, + 27, + 30, + 28 + ], + "ordinary_digest": "c234d65dc7628f948f0512d05a9b24a90c9f766b3fc5c14c7b6f84e4a18e15dd", + "stratified_digest": "9646435086f0550c7fbf8e27bc253b4e6117860cf9307c938a529636d8ab2761" + } + }, + "query": { + "seed": 2026111406, + "replicates": 200, + "draw_to_unique": [ + 0, + 1, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9 + ], + "first_three_counts": [ + [ + 2, + 3, + 1, + 1, + 0, + 1, + 0, + 1, + 0, + 2 + ], + [ + 2, + 2, + 0, + 0, + 1, + 3, + 0, + 0, + 1, + 2 + ], + [ + 1, + 1, + 1, + 3, + 0, + 2, + 0, + 3, + 0, + 0 + ] + ], + "digest": "1890914cf3cbb38e7a24f861ba89609fec2a85ef34b714dd152ce42e6fe6e3bc" + }, + "source": { + "seed": 2026111407, + "replicates": 2000, + "source_order": [ + "s00", + "s01", + "s02", + "s03", + "s04", + "s05", + "s06", + "s07", + "s08", + "s09", + "s10", + "s11", + "s12", + "s13", + "s14", + "s15", + "s16", + "s17", + "s18", + "s19", + "s20", + "s21", + "s22", + "s23" + ], + "first_three_indices": [ + [ + 7, + 5, + 17, + 20, + 0, + 8, + 2, + 14, + 5, + 12, + 20, + 19, + 18, + 3, + 9, + 1, + 1, + 4, + 10, + 4, + 15, + 3, + 17, + 1 + ], + [ + 16, + 23, + 16, + 10, + 15, + 10, + 16, + 17, + 1, + 13, + 19, + 0, + 10, + 17, + 18, + 19, + 2, + 23, + 7, + 10, + 19, + 3, + 8, + 12 + ], + [ + 10, + 9, + 22, + 11, + 21, + 5, + 5, + 9, + 7, + 6, + 19, + 17, + 21, + 1, + 3, + 12, + 15, + 20, + 22, + 17, + 17, + 9, + 10, + 4 + ] + ], + "digest": "d91fbe3b6a196edd85245aa2b3924fcb4d615e08a3d32bb2bbcf96b4334c21ca" + }, + "midrank_hand_fixture": { + "P": 3, + "parts": [ + { + "values": [ + 0, + 1, + 2 + ], + "counts": [ + 1, + 2, + 1 + ], + "eligible": [ + true, + true, + false + ] + }, + { + "values": [ + 0, + 2 + ], + "counts": [ + 1, + 1 + ], + "eligible": [ + true, + true + ] + }, + { + "values": [ + 1, + 2 + ], + "counts": [ + 3, + 1 + ], + "eligible": [ + true, + true + ] + } + ], + "eligible_weights": [ + "1/9,2/9", + "1/6,1/6", + "1/4,1/12" + ], + "query": [ + -1, + 0, + 1, + 1.5, + 2, + 3 + ], + "expected": [ + "0", + "5/36", + "37/72", + "3/4", + "7/8", + "1" + ] + } +} diff --git a/review/2026-11-14/s1-scoring-code/synthetic_tests.log b/review/2026-11-14/s1-scoring-code/synthetic_tests.log new file mode 100644 index 000000000..ef08e6d08 --- /dev/null +++ b/review/2026-11-14/s1-scoring-code/synthetic_tests.log @@ -0,0 +1,19 @@ +test_constant_column_counterexample (__main__.ScorerTests) ... ok +test_coverage_and_zero_slice (__main__.ScorerTests) ... ok +test_frozen_input_adapter_generated_fixture (__main__.ScorerTests) ... ok +test_full_hand_case_distinct_nodes_and_ratios (__main__.ScorerTests) ... ok +test_json_na_and_tuple_diagnostics (__main__.ScorerTests) ... ok +test_knn_against_bruteforce_with_exact_ties (__main__.ScorerTests) ... ok +test_na_and_identity_guards (__main__.ScorerTests) ... ok +test_plain_and_normalized_shuffle (__main__.ScorerTests) ... ok +test_rigid_transform_including_gate_all_arms (__main__.ScorerTests) ... ok +test_seed_replay_bitwise (__main__.ScorerTests) ... ok +test_shortfall_strict_endpoints (__main__.ScorerTests) ... ok +test_source_part_aggregation_and_paired_intervals (__main__.ScorerTests) ... ok +test_summary_pairing_and_shared_bootstrap (__main__.ScorerTests) ... ok +test_weighted_midrank_hand_values (__main__.ScorerTests) ... ok + +---------------------------------------------------------------------- +Ran 14 tests in 1.945s + +OK diff --git a/review/2026-11-14/s1-scoring-code/test_s1_scoring.py b/review/2026-11-14/s1-scoring-code/test_s1_scoring.py new file mode 100644 index 000000000..7de13c529 --- /dev/null +++ b/review/2026-11-14/s1-scoring-code/test_s1_scoring.py @@ -0,0 +1,234 @@ +"""Only generated, tiny fixtures: never opens real S1 descriptors or geometry.""" +import unittest +import json +import tempfile +from pathlib import Path +from dataclasses import replace +import numpy as np +from numpy.testing import assert_allclose, assert_array_equal +import s1_scoring as s +from o2_rep import contract_direction +import s1_scoring_io as io + + +def part(case, values=None, counts=None, eligible=None, near=None, prefix=993, source=None): + if values is None: values=np.repeat((np.arange(1,11)/100)[:,None],10,axis=1) + values=np.asarray(values,float);n=len(values) + counts=np.ones(n,np.int64) if counts is None else np.asarray(counts,np.int64) + return s.Part(case,source or case,prefix,np.arange(n,dtype=np.int64),values,counts, + np.ones(n,bool) if eligible is None else np.asarray(eligible,bool), + np.arange(n)<3 if near is None else np.asarray(near,bool), + np.repeat(np.arange(n,dtype=np.int64),counts)) + + +def geometric_features(points, gate, tensors, edges): + """Independent geometric fixture: transforms points, gate and tensors together.""" + n=len(points);valid=np.ones(n,bool);mu=np.zeros((n,3)) + center=points.mean(0);rg=np.sqrt(np.mean(np.sum((points-center)**2,axis=1))) + g=np.trace(tensors,axis1=2,axis2=3)/np.array([1,2]) + gateq=contract_direction(tensors,mu,valid,gate-points,1.,'gate') + summaries=[] + for i in range(n): + vectors=edges[i]-points[i] + q=contract_direction(np.repeat(tensors[i:i+1],len(vectors),0),np.zeros((len(vectors),3)),np.ones(len(vectors),bool),vectors,1.,'edge')['q'] + summaries.append([q[:,0].mean(),q[:,0].max(),q[:,1].mean(),q[:,1].max()]) + return np.column_stack([np.arange(1,n+1)/100,gateq['length']/rg,g,gateq['q'],summaries]) + + +class ScorerTests(unittest.TestCase): + def test_weighted_midrank_hand_values(self): + def vals(x):return np.repeat(np.array(x,float)[:,None],10,1) + train=[part('p1',vals([0,1,2]),[1,2,1],[1,1,0]), + part('p2',vals([0,2]),[1,1]),part('p3',vals([1,2]),[3,1])] + weights=s.rank_weights(train) + assert_allclose(weights[0],[1/9,2/9],rtol=0,atol=1e-16) + assert_allclose(weights[1],[1/6,1/6],rtol=0,atol=1e-16) + assert_allclose(weights[2],[1/4,1/12],rtol=0,atol=1e-16) + maps,_=s.fit_maps(train) + # Masses at 0,1,2 = 5/18,17/36,1/4. Unseen 1.5 gets CDF 3/4. + assert_allclose(maps[0].transform([-1,0,1,1.5,2,3]),[0,5/36,37/72,3/4,7/8,1],rtol=0,atol=2e-16) + c=s.RankMap.fit([7,7],[.2,.8]);assert_array_equal(c.transform([6,7,8]),[0,.5,1]) + audit=c.audit(np.array([6,7,8]),np.array([2,1,3])) + self.assertTrue(audit['constant']);self.assertEqual(audit['below_slots'],2);self.assertEqual(audit['above_fraction'],.5) + + def test_full_hand_case_distinct_nodes_and_ratios(self): + train=[part('p1',prefix=101),part('p2',prefix=102),part('p3',prefix=103)] + test=part('test',counts=[1,2,1,1,1,1,1,1,1,1],prefix=104) + result=s.score_fold(train,test,allow_small_synthetic=True) + self.assertEqual(result['status'],'PASS') + # 3 physical nodes per descriptor. Endpoint: (3*0+3*.1+2*.2)/8=7/80. + # Interior: (3*0+5*.1)/8=1/16. Multiplicity changes ratio, not references. + expected=[7/80]+[1/16]*8+[7/80] + for arm in ['A','B','C']: + assert_allclose(result['scores'][arm],np.tile(expected,(5,1)),rtol=0,atol=2e-16) + self.assertAlmostEqual(result['estimates'][arm][0]['whole']['point'],59/880) + self.assertAlmostEqual(result['estimates'][arm][0]['near']['point'],11/160) + self.assertEqual(result['logical_knn_queries'],180) + self.assertEqual(result['tie_radius_queries'],180) + nearest=result['nearest'][('A',0)] + self.assertTrue(all(len(set(row))==8 for row in nearest['indices'])) + # Physical ID tie break at endpoint, independent of training input order. + self.assertEqual(nearest['indices'][0].tolist(),[0,10,20,1,11,21,2,12]) + self.assertEqual(nearest['zero_distance_neighbors'][0],3) + self.assertEqual(nearest['distinct_neighbor_sources'][0],3) + assert_allclose(s.D_p([0,0],[.3,.4]),np.sqrt(.125),rtol=0,atol=1e-16) + + def test_constant_column_counterexample(self): + a=.3;keys=[('s','p',i) for i in range(8)] + one=s.knn_mean(np.zeros((8,1)),np.array([[a]]),keys) + two=s.knn_mean(np.column_stack([np.zeros(8),np.full(8,.5)]),np.array([[a,.5]]),keys) + self.assertEqual(one['scores'][0],a) + # sqrt(a*a/2) versus a/sqrt(2) can differ by one FP64 ULP. + self.assertEqual(two['scores'][0],np.sqrt(a*a/2)) + assert_allclose(two['scores'][0],a/np.sqrt(2),rtol=2e-16,atol=0) + assert_array_equal(one['indices'],two['indices']) + + def test_knn_against_bruteforce_with_exact_ties(self): + rng=np.random.default_rng(31) + for d in [2,6,10]: + ref=rng.integers(0,3,size=(40,d))/2;ref[10:20]=ref[:10] + q=np.concatenate([ref[:3],rng.random((7,d))]);keys=[('s','p',39-i) for i in range(40)] + got=s.knn_mean(ref,q,keys) + for i,row in enumerate(q): + dist=np.sqrt(np.sum((ref-row)**2,axis=1)/d) + indices=sorted(range(len(ref)),key=lambda k:(dist[k],keys[k]))[:8] + assert_array_equal(got['indices'][i],indices) + assert_allclose(got['scores'][i],np.mean(dist[indices]),rtol=0,atol=1e-16) + + def test_na_and_identity_guards(self): + self.assertTrue(np.isnan(s.ratio([1,np.nan],[0,1],[False,False]))) + self.assertEqual(s.ratio([1,np.nan],[1,0],[True,True]),1) + keys=[('s','p',i) for i in range(7)] + got=s.knn_mean(np.zeros((7,2)),np.ones((2,2)),keys) + self.assertTrue(np.isnan(got['scores']).all()) + with self.assertRaises(ValueError):s.knn_mean(np.zeros((8,2)),np.ones((1,2)),[('s','p',0)]*8) + with self.assertRaises(ValueError):s.rank_weights([part('p',eligible=[False]*10)]) + with self.assertRaises(ValueError):s.score_fold([part('p')],part('p'),True) + with self.assertRaises(ValueError):s.score_fold([replace(part('p'),provenance='real')],part('q'),True) + self.assertEqual(s.score_fold([part('p')],part('q'))['status'],'shortfall') + r=s.score_fold([part('p',np.ones((3,10)))],part('q'),True) + self.assertEqual(r['status'],'fewer_than_8_references') + self.assertTrue(np.isnan(r['estimates']['A'][0]['whole']['point'])) + + def test_coverage_and_zero_slice(self): + p=replace(part('p',counts=[2,1,1,1,1,1,1,1,1,1],eligible=[False]+[True]*9,near=[True]+[False]*9),positive_mass_fraction=.8) + got=s.slice_estimates(p,np.arange(10,dtype=float),s.query_bootstrap_counts(p,3)) + self.assertEqual(got['whole']['accepted_draws'],9) + self.assertAlmostEqual(got['whole']['full_mass_share'],.8*9/11) + self.assertAlmostEqual(got['whole']['boundary_unscored_mass_share'],.2) + self.assertTrue(np.isnan(got['near']['point'])) + self.assertTrue(np.isnan(got['near']['replicates']).all()) + + def test_source_part_aggregation_and_paired_intervals(self): + a=s.aggregate_parts([1,3,10],['a','a','b']) + self.assertEqual(a['source_equal'],6);self.assertEqual(a['part_equal'],14/3) + self.assertTrue(np.isnan(s.aggregate_parts([1,np.nan,10],['a','a','b'])['source_equal'])) + ci=s.interval(2,[1,2,3]);self.assertEqual(ci['SE'],1) + assert_allclose(ci['interval95'],[1.05,2.95],rtol=0,atol=5e-16) + self.assertIsNone(s.interval(2,[np.nan,1])['interval95']) + self.assertIsNone(s.interval(np.nan,[1,2])['interval95']) + # Paired source differences [-1,-3], bootstrap chosen by hand. + indices=np.array([[0,0],[0,1],[1,0],[1,1]]) + got=s.contrast_report([-1,-3],np.array([[-.5,-1,-1.5],[-2.5,-3,-3.5]]),['a','b'],indices,'primary') + self.assertEqual(got['source_equal_point'],-2) + assert_allclose(got['source_level']['interval95'],[-2.925,-1.075]) + assert_allclose(got['query_level']['interval95'],[-2.475,-1.525]) + self.assertEqual(got['decision'],'ranks_ahead') + for ci,expected in [([-1,0],'no_ranking_difference'),([0,1],'no_ranking_difference'),([.1,1],'ranks_behind')]: + self.assertEqual(s.ranking({'interval95':ci},'primary'),expected) + + def test_plain_and_normalized_shuffle(self): + # 7 (0,0) rows: must NOT consume the stratified RNG. Other strata size 8. + gaps=np.concatenate([np.zeros((7,2)),np.tile([0,.2],(8,1)),np.tile([.3,0],(8,1)),np.column_stack([np.linspace(.1,.2,8),np.linspace(.2,.3,8)])]) + n=len(gaps);v=np.linspace(.1,.4,n);norm=np.column_stack([v,v+.1,v+.2,v+.3]) + x=np.zeros((n,10));x[:,2:4]=gaps;x[:,4:6]=np.arange(2*n).reshape(n,2)/100 + x[:,6:10]=norm*np.repeat(gaps,2,axis=1) + for seed in s.PERMUTATION_SEEDS: + plain,strat,strata=s.permutation_maps(993,seed,gaps) + node,edge,normal,audit=s.shuffled_blocks(x,993,seed) + assert_array_equal(node[:,2:6],x[plain,2:6]);assert_array_equal(edge[:,6:10],x[plain,6:10]) + assert_array_equal(normal[:7],x[:7]);assert_array_equal(strat[:7],np.arange(7)) + rng=np.random.Generator(np.random.PCG64(np.random.SeedSequence([seed,993]))) + for ids in [np.arange(7,15),np.arange(15,23),np.arange(23,31)]: + assert_array_equal(strat[ids],ids[rng.permutation(8)]) + self.assertEqual(audit['stratified']['tolerant_bound_violation_count'],0) + self.assertEqual(audit['stratified']['raw_cross_channel_order_violations'],0) + for ch in [0,1]: + mask=gaps[:,ch]>0 + assert_allclose(normal[mask,6+2*ch:8+2*ch]/gaps[mask,ch,None],norm[strat[mask],2*ch:2*ch+2],rtol=0,atol=2e-16) + assert_array_equal(normal[~mask,6+2*ch:8+2*ch],0) + + def test_seed_replay_bitwise(self): + p=part('p',counts=[1,2,1,1,1,1,1,1,1,1]);a=s.query_bootstrap_counts(p);b=s.query_bootstrap_counts(p) + self.assertEqual(a.tobytes(),b.tobytes());assert_array_equal(a.sum(1),11) + _,a=s.source_bootstrap_indices(['b','a','c']);_,b=s.source_bootstrap_indices(['c','b','a']) + self.assertEqual(a.tobytes(),b.tobytes()) + train=[part('p1',prefix=101),part('p2',prefix=102),part('p3',prefix=103)];test=part('q') + a=s.score_fold(train,test,True);b=s.score_fold(train[::-1],test,True) + for arm in s.ARMS: + self.assertEqual(a['scores'][arm].tobytes(),b['scores'][arm].tobytes()) + for i in range(5): + self.assertEqual(a['estimates'][arm][i]['whole']['replicates'].tobytes(),b['estimates'][arm][i]['whole']['replicates'].tobytes()) + self.assertEqual(a['shuffle_audits'],b['shuffle_audits']) + + def test_rigid_transform_including_gate_all_arms(self): + n=12;i=np.arange(n);points=np.column_stack([i,i%3,i%4]).astype(float);gate=np.array([-5.,2.,3.]) + g=np.column_stack([.1+i/100,.2+i/200]);B=np.zeros((n,2,3,3));B[:,0,0,0]=g[:,0];B[:,1,0,0]=g[:,1];B[:,1,1,1]=g[:,1] + edges=points[:,None,:]+np.array([[1.,0.,1.],[0.,1.,2.],[1.,2.,0.]])[None,:,:] + q=np.array([[0.,-1.,0.],[1.,0.,0.],[0.,0.,1.]]);shift=np.array([10.,-4.,7.]) + original=geometric_features(points,gate,B,edges) + moved=geometric_features(points@q.T+shift,gate@q.T+shift,q@B@q.T,edges@q.T+shift) + assert_allclose(original,moved,rtol=0,atol=2e-15) + train=[part('p1',original+.0001,prefix=101),part('p2',original-.0001,prefix=102),part('p3',original+.0002,prefix=103)] + a=s.score_fold(train,part('q',original),True);b=s.score_fold(train,part('q',moved),True) + for arm in s.ARMS:assert_allclose(a['scores'][arm],b['scores'][arm],rtol=0,atol=1e-15) + # Negative control: leaving gate unmoved must change geometric descriptors. + wrong=geometric_features(points@q.T+shift,gate,q@B@q.T,edges@q.T+shift) + self.assertGreater(np.max(abs(wrong[:,1]-original[:,1])),.1) + + def test_shortfall_strict_endpoints(self): + for nrefs,expected in [([500,1000,1000,1000,1000],True),([499,1000,1000,1000,1000],False), + ([999,1000,1000,1000,1000],True),([999,999,1000,1000,1000],False),([1000]*5,True),([None,1000],False)]: + self.assertEqual(s.shortfall_decision(nrefs)['comparable'],expected) + + def test_summary_pairing_and_shared_bootstrap(self): + # Generated score estimates only; known arm differences independent of seed. + parts=[part('a'),part('b'),part('c')];results=[] + for p in parts: + estimates={} + for ai,arm in enumerate(s.ARMS): + estimates[arm]=[{slice_name:dict(point=float(ai),replicates=np.arange(200)/100+ai) for slice_name in ['whole','near']} for _ in range(5)] + results.append(dict(status='PASS',estimates=estimates)) + got=s.summarize_folds(parts,results) + r=got['contrasts']['B-(A+S)']['whole']['five_seed_mean'] + self.assertEqual(r['source_equal_point'],1);assert_allclose(r['query_level']['interval95'],[1,1],atol=1e-15) + assert_array_equal(r['source_level']['interval95'],[1,1]);self.assertEqual(r['decision'],'ranks_behind') + self.assertEqual(got['arms']['A']['whole']['five_seed_mean']['source_equal_point'],0) + + def test_frozen_input_adapter_generated_fixture(self): + with tempfile.TemporaryDirectory(prefix='s1-synthetic-') as directory: + root=Path(directory);drawdir=root/'draw';drawdir.mkdir();o2=root/'o2';folder=o2/'panel'/'p_original';folder.mkdir(parents=True) + n=10;ids=np.arange(n);counts=np.full(n,200);inverse=np.repeat(ids,counts) + np.savez(drawdir/'draw.npz',unique_ids=ids,unique_raw_ids=ids+100,multiplicity=counts,draw_to_unique=inverse) + receipt=dict(case='p',source_key='source',numeric_prefix=993,positive_mass_fraction=.8) + (drawdir/'receipt.json').write_text(json.dumps(receipt)) + d=np.arange(1,11)/100 + np.savez(folder/'nodes.npz',anchor_ids=ids,raw_node_ids=ids+100,multiplicity=counts,distance=d,gate_length=np.arange(1,11),g=np.full((n,2),.1),gate_q=np.full((n,2),.05),edge_summary=np.full((n,4),.04),eligible=np.ones(n,bool),near_wall=d<=.25) + result=dict(case='p',status='COMPLETE',R_g_raw=2.,t_part=1.,n_ref=10,draw_file_sha256=io.sha(drawdir/'draw.npz'),output_sha256={'nodes.npz':io.sha(folder/'nodes.npz')}) + (folder/'result.json').write_text(json.dumps(result));(o2/'panel'/'p_original.supervisor.json').write_text(json.dumps(dict(status='PASS'))) + spec=dict(case='p',source_key='source',numeric_prefix=993,t_part=1.,job='p_original',anchor_file='draw/draw.npz',input_sha256={str(p.relative_to(root)):io.sha(p) for p in [drawdir/'draw.npz',drawdir/'receipt.json']}) + loaded=io.load_part(spec,root,o2);self.assertEqual(loaded.provenance,'real') + assert_array_equal(loaded.features[:,0],d);assert_array_equal(loaded.features[:,1],np.arange(1,11)/2) + assert_array_equal(loaded.features[:,6:10],np.full((10,4),.04)) + self.assertEqual(loaded.positive_mass_fraction,.8) + with self.assertRaises(ValueError):s.score_fold([loaded],part('q'),True) + with (folder/'nodes.npz').open('ab') as f:f.write(b'tamper') + with self.assertRaises(ValueError):io.load_part(spec,root,o2) + + def test_json_na_and_tuple_diagnostics(self): + original={('A',0):dict(scores=np.array([1.,np.nan]),integer=np.int64(3),flag=np.bool_(True))} + value=io.json_ready(original);encoded=json.dumps(value,allow_nan=False) + self.assertNotIn('NaN',encoded);self.assertEqual(json.loads(encoded)[0]['value']['scores'],[1.,None]) + + +if __name__=='__main__':unittest.main(verbosity=2) diff --git a/review/2026-11-14/s1-scoring-code/verification.json b/review/2026-11-14/s1-scoring-code/verification.json new file mode 100644 index 000000000..1a949fe6d --- /dev/null +++ b/review/2026-11-14/s1-scoring-code/verification.json @@ -0,0 +1,38 @@ +{ + "status": "PASS", + "synthetic_test_methods": 14, + "real_S1_scores_computed": false, + "real_rank_maps_fitted": false, + "real_descriptors_loaded": false, + "model_training": false, + "query_cost_inputs": "Released summary.csv and fold_table.csv only", + "environment": { + "python": "3.10.13", + "numpy": "1.26.4", + "scipy": "1.15.3", + "OMP_NUM_THREADS": "2", + "OPENBLAS_NUM_THREADS": "2" + }, + "source_hashes": { + "s1_scoring.py": "323d12dad2f65a8bb25af4cc609856ab530b350fc239fc034aeeed50cb4ce2a9", + "s1_scoring_io.py": "928474c7c003c717ee4b7f971a6bf1d2e22b240e9240ac555c015bc2c5e664aa", + "test_s1_scoring.py": "e3cbf85b8ab73fde7f01277cbea390b6fb7e87bdbcb9055e6681c471036f91ff", + "s1_seed_vectors.py": "5b35b2bee7b94bdada341d4afe262f2fccf8bb0f4180de29e284ec2f852d8f33", + "plan_s1_queries.py": "af9a914bfbea155f3c9ed7311a6a267023907fd0aa1d013e9fe566d64acf9f56", + "o2_rep.py": "8c784ea04f6c14fd47ab79e1f2160c19ed48344bf24e6ab4255ac23ab3eb2003", + "evaluate_s1_shortfall.py": "9839afe56e6035ad185fbd8efdc81b9e9f3abc1912bd080425dd3b037896cec9", + "query_cost.json": "92fb53adbce889abb81b6a99c78ebec03a5835d1af199273cb67d94060b94126", + "query_cost.csv": "7e3e2eb5c9abf692bccc5b6f6f18a35b348373ee7a923d953fbd6abe4ff65b14", + "synthetic_tests.log": "39f0076346c4455be1138452d31a01cf3adbec84e00ce0d80d22a9e1c2934ff0", + "synthetic_seed_vectors.json": "1fe6ccd51d34ce3c4ac056e527d4b459d16f27546ca58184fc19383dbad001a2", + "README.md": "6a246a26e09a4b01d8d6ed6ba3d065c8816f1c11bf07e2ea02abe367aff88c8f", + "scope_source.txt": "040fe7560095a493e7ba1b32a23a85468e00f53eaa445027f9ab372b094bc692", + "implementation_rulings.txt": "c065ba4042698e887d23bee024eb441f6a4db60a4c4e11c95469082e9bfd5d57", + "m2_protocol_source.md": "512b42e6d103c7645397bce184d39a586dfc29703393f3061849179e8ad824a5", + "sharing_authorization.md": "88d5c4f84f985194c7c4c96071d57e3bf8ed44f601d86af66f5573c15361c11d", + "summary.csv": "9102ebbb3af9a8b67d25b7a820f8d724f9126f3033a777e170ef182c2619ed63", + "fold_table.csv": "867802a68294382e34adb391f21e423f959c6a71b916ef1b395e0dbc007bf256" + }, + "initial_test_correction": "sqrt(a*a/2) vs a/sqrt(2) differed by one FP64 ULP. Exact RMS assertion retained; algebraic alternative checked at rtol=2e-16. Scorer unchanged for this correction.", + "execution_boundary": "Code review only. No real-panel launcher or wall/RSS execution authorization in this packet." +}