--- mqg_test30_predict.py	2026-12-02 21:52:43.749635904 -0500
+++ mqg_test30_predict.py	2026-12-03 18:42:17.127729544 -0500
@@ -1,5 +1,5 @@
 #!/usr/bin/env python3
-"""MQG test 30: frozen predictions (2 Dec 2026). Exact block spectra and the classical orbit only; no exact or TWA dynamics.
+"""MQG test 30: frozen predictions (2 Dec 2026; edge rule for CURV, CURV_R, CX1 and CX2 and rounded even returns, 3 Dec 2026). Exact block spectra and the classical orbit only; no exact or TWA dynamics.
 
 State: two-beam collective-neutrino model, mu = 3.0, theta = 0.15, N = 1280 (j = 320), L = 0 coherent state. Odd ranks
 m = 1, 3, 5, 7; slots (m, X) at t_L = X t_K/m with windows (X -+ 1/2) t_K/m (spectral t_K), every slot whose window ends by
@@ -16,9 +16,9 @@
 Groups (frozen here, used by mqg_test30_score.py):
   TX   Hx lit, |t_Px - t_Pa| >= max(5, 0.01 t_K), and both t_Px and t_Pa at least 2.5 from each window edge   (primary)
   TL   Hx lit, |t_Px - t_L| >= max(5, 0.01 t_K), and t_Px at least 2.5 from each window edge                 (secondary)
-  CURV Hx lit, Lin dark;  CURV_R  Hx dark, Lin lit                                                              (secondary)
+  CURV Hx lit, Lin dark;  CURV_R  Hx dark, Lin lit; both with t_Px at least 2.5 from each window edge          (secondary)
   CX1  Hx lit, C dark;  CX2  Hx dark, C lit; both only where t_Px lies at least 0.12 t_K from every even-rank return
-       (multiples of t_K/3 and t_K/2, which include those of t_K)                                                (secondary)
+       (multiples of t_K/3 and t_K/2, which include those of t_K) and at least 2.5 from each window edge       (reported only)
   SD   Hx, Ha and Lin all dark                                                                                   (secondary)
 Run: python -I mqg_test30_predict.py <modules folder>   (writes mqg_test30_predictions.json next to this file)"""
 import sys, os, json, hashlib
@@ -76,7 +76,7 @@
     ksets, bw = P28.band_sets(MU, THETA, T0)
     nab, _ = MM.orbit_norms(MU, THETA, mmax=14); j = N / 4
     tK = d['tK']; T = np.arange(0.0, T_MAX + DT, DT)
-    even = sorted({p * tK / q for q in (2, 3) for p in range(0, 9) if p / q <= SLOT_END + 0.5})
+    even = sorted({round(p * tK / q, 9) for q in (2, 3) for p in range(0, 9) if p / q <= SLOT_END + 0.5})   # rounded: equal returns merge on every platform
     slots, lin_coef = [], {}
     for m in RANKS:
         Qm, fm = j ** m * nab[m], NH.floor(nab, m, M)
@@ -97,10 +97,10 @@
             g = []
             if cx == 'lit' and abs(tPx - tPa) >= sep and inner(tPx) and inner(tPa): g.append('TX')
             if cx == 'lit' and abs(tPx - tL) >= sep and inner(tPx): g.append('TL')
-            if cx == 'lit' and cl == 'dark': g.append('CURV')
-            if cx == 'dark' and cl == 'lit': g.append('CURV_R')
-            if dev >= EVEN_SEP and cx == 'lit' and kc == 'dark': g.append('CX1')
-            if dev >= EVEN_SEP and cx == 'dark' and kc == 'lit': g.append('CX2')
+            if cx == 'lit' and cl == 'dark' and inner(tPx): g.append('CURV')
+            if cx == 'dark' and cl == 'lit' and inner(tPx): g.append('CURV_R')
+            if dev >= EVEN_SEP and cx == 'lit' and kc == 'dark' and inner(tPx): g.append('CX1')
+            if dev >= EVEN_SEP and cx == 'dark' and kc == 'lit' and inner(tPx): g.append('CX2')
             if cx == ca == cl == 'dark': g.append('SD')
             slots.append(dict(m=m, X=X, window=[round(lo, 2), round(hi, 2)], t_L=round(tL, 2),
                               Hx=round(Hx, 5), call_x=cx, t_Px=tPx, Ha=round(Ha, 5), call_a=ca, t_Pa=tPa,
--- mqg_test30_score.py	2026-12-02 21:52:43.750436242 -0500
+++ mqg_test30_score.py	2026-12-03 18:44:17.035097801 -0500
@@ -1,5 +1,5 @@
 #!/usr/bin/env python3
-"""MQG test 30: frozen scoring rules (2026-12-02). Reads the run records and the saved running means of D_m
+"""MQG test 30: frozen scoring rules (2026-12-02; rule C reported only, edge rule in the groups, 2026-12-03). Reads the run records and the saved running means of D_m
 (series/<run_id>.npz) written by mqg_test30_runner.py and the frozen predictions (mqg_test30_predictions.json, checked by
 MD5), and applies the decision rules of MQG_TEST_30_PUBLIC_PLAN.
 
@@ -14,7 +14,8 @@
   a slot qualifies if it is present and consistent; partly, brief, absent or inconsistent slots count for neither side.
   In a qualifying slot, dX = |t_m - t_Px| and dY = |t_m - t_Y|. The slot is described by neither if min(dX, dY) > NEITHER = 5.0;
   otherwise it is nearer Hx if dY - dX >= TIE = 2.0, nearer Y if dX - dY >= TIE, and a tie in between.
-  With n qualifying slots: fewer than NMIN = 5 (T1) or 3 (T2): the rule does not decide. Otherwise, if at least half are
+  With n qualifying slots (n counts every qualifying slot, including those described by neither): fewer than NMIN = 5 (T1)
+  or 3 (T2): the rule does not decide. Otherwise, if at least half are
   described by neither: neither Hx nor Y describes the peak times. Otherwise Hx is favoured over Y if at least ceil(0.8 n) are
   nearer Hx and at most 1 nearer Y; Y is favoured over Hx likewise; else the rule does not decide.
   Reported with it: mean dX, mean dY and the paired mean of dY - dX with its standard error over the qualifying slots.
@@ -22,14 +23,14 @@
 Secondary rule V (Hx against Lin): in CURV (Hx lit, Lin dark) present is Hx's way and absent Lin's way; in CURV_R the reverse.
   Over the n slots of CURV and CURV_R: Hx favoured over Lin if at least ceil(0.8 n) go Hx's way and at most 1 Lin's way; Lin
   favoured likewise; otherwise neither. Partly and brief slots go neither way.
-Secondary rule C (Hx against rival C): the same over CX1 (Hx lit, C dark: present is Hx's way) and CX2 (Hx dark, C lit:
-  absent is Hx's way); fewer than 3 slots in CX1 and CX2 together: the rule does not decide.
+Reported only (C): the status of every CX1 slot (Hx lit, C dark) and CX2 slot (Hx dark, C lit), with C's call, band and
+  mismatch. No verdict.
 Secondary rule D: over SD (Hx, Ha and Lin dark), holds if at least ceil(0.8 n) are absent.
 If any slot of a rule's group is not reached, that rule does not decide.
 Reported only: height of every slot against Hx and Ha (agreement factor 1.25 as in test 28), and the row peak times.
 Void if any row was written by another runner, solver, moments module or development runner, used NumPy other than 2.4.6, is a
 smoke row, has another seed or state, if the rows name more than one deposit DOI, or if the predictions file is not the frozen
-one. Incomplete if there are not five rows.
+one. Incomplete if there are not five rows: no rule is scored, and the rows read are reported.
 Usage: python -I mqg_test30_score.py <results folder mqg_test30> <mqg_test30_predictions.json>
        python -I mqg_test30_score.py --selftest <mqg_test30_predictions.json>
 """
@@ -40,7 +41,7 @@
 THRESHOLD, PERSIST, FRAC, FACTOR = 0.05, 10.0, 0.8, 1.25
 CONS, NEITHER, TIE = 5.0, 5.0, 2.0
 NMIN = {'T1': 5, 'T2': 3}
-PRED_MD5 = '5320e4c0b33f7cdc3e16f0f1394efe6d'
+PRED_MD5 = '862a21f4c44952afa744012904522f84'
 RUNNER_SHA256 = '91572c16c21798b8234e53a742ad9a3907437a7dc3b40406fd11844a0e950263'
 SOLVER_SHA256 = 'cb13dd79a8fc74be6a1a89799587f1362c4c45a96f27e67be821b636a0dc96d0'
 MOMENTS_SHA256 = 'cf9903c9ddb12b47b7bf991b0e72beaf60a9fb776db61bb47169e39371c40984'
@@ -161,7 +162,8 @@
     if bad:
         out['verdict'] = f'void: rows fail the record checks {bad}'; print(out['verdict']); return out
     if len(recs) != 5:
-        out['verdict'] = f'incomplete: {len(recs)} rows, the plan needs 5'; print(out['verdict']); return out
+        out['rows_read'] = [r.get('run_id') for r in recs]
+        out['verdict'] = f'incomplete: {len(recs)} rows, the plan needs 5; no rule is scored; rows read {out["rows_read"]}'; print(out['verdict']); return out
     ser = [np.load(res / r['series_file']) for r in recs]
     S = {k: summarize([window(z['centers'], z[f'D{k[0]}'], *s['window']) for z in ser]) for k, s in slots.items()}
     tK = P['spectral_tK']
@@ -174,14 +176,16 @@
     T1, i1 = timing_rule('T1', S, slots, G['TX'], 't_Pa', 'Ha')
     T2, i2 = timing_rule('T2', S, slots, G['TL'], 't_L', 'L')
     V, iv = ways_rule(S, G['CURV'], G['CURV_R'], 'Lin')
-    C, ic = ways_rule(S, G['CX1'], G['CX2'], 'C', nmin=3)
+    ic = {f'{k[0]} {k[1]}': dict(group=g, status=S[k]['status'], consistent=S[k]['consistent'], call_C=slots[k]['call_C'],
+                                 C_band=slots[k]['C_band'], C_mismatch=slots[k]['C_mismatch']) for g in ('CX1', 'CX2') for k in G[g]}
+    C = 'reported only: ' + ('; '.join(f"({k}) {v['group']} {v['status']}" for k, v in ic.items()) if ic else 'no slots')
     if any(S[k]['status'] == 'not reached' for k in G['SD']):
         D = 'windows not reached: the rule does not decide'
     else:
         nD = sum(S[k]['status'] == 'absent' for k in G['SD']); need = math.ceil(FRAC * len(G['SD']))
         D = f"{nD} of the {len(G['SD'])} shared dark slots absent: " + ('holds' if nD >= need else 'fails') + f' (pass mark {need})'
     for lab, v in (('Primary rule T1 (timing, Hx against Ha)', T1), ('Secondary rule T2 (timing, Hx against L)', T2),
-                   ('Secondary rule V (Hx against Lin)', V), ('Secondary rule C (Hx against rival C)', C), ('Secondary rule D', D)):
+                   ('Secondary rule V (Hx against Lin)', V), ('Rival C', C), ('Secondary rule D', D)):
         print(f'{lab}: {v}')
     for lab, info in (('T1', i1), ('T2', i2)):
         if info.get('n_qualifying'):
@@ -191,7 +195,7 @@
     lit = [k for k, s in slots.items() if s['call_x'] == 'lit']
     hrep = dict(Hx=sum(within(S[k]['height'], slots[k]['Hx']) for k in lit), Ha=sum(within(S[k]['height'], slots[k]['Ha']) for k in lit), n=len(lit))
     print(f"Reported only: heights of the {len(lit)} Hx-lit slots within a factor 1.25 of Hx in {hrep['Hx']}, of Ha in {hrep['Ha']}")
-    out.update(primary_T1=T1, secondary_T2=T2, secondary_V=V, secondary_C=C, secondary_D=D, T1_detail=i1, T2_detail=i2,
+    out.update(primary_T1=T1, secondary_T2=T2, secondary_V=V, reported_C=C, secondary_D=D, T1_detail=i1, T2_detail=i2,
                V_detail=iv, C_detail=ic, heights_reported=hrep, slots={f'{k[0]} {k[1]}': v for k, v in S.items()})
     return out
 
@@ -251,10 +255,9 @@
         lambda o: 'fewer than' in o['primary_T1'] and (o['secondary_V'].endswith('Lin favoured over Hx') or len(G['CURV_R']) > 0))
     nc = {k: v for k, v in asX.items() if k not in G['CURV'][:len(G['CURV']) // 2]}
     run('half of CURV absent: V neither', nc, lambda o: o['secondary_V'].endswith('neither'))
-    if G['CX1'] or G['CX2']:
-        cs = {k: v for k, v in asX.items() if k not in G['CX1']}; cs.update({k: (0.12, slots[k]['t_L']) for k in G['CX2']})
-        run('C slots go C\'s way: C over Hx or does not decide', cs, lambda o: o['secondary_C'].endswith('C favoured over Hx')
-            or 'does not decide' in o['secondary_C'])
+    cs = {k: v for k, v in asX.items() if k not in G['CX1']}; cs.update({k: (0.12, slots[k]['t_L']) for k in G['CX2']})
+    run('C slots go C\'s way: reported only, no verdict on C', cs, lambda o: o['reported_C'].startswith('reported only')
+        and 'favoured' not in o['reported_C'] and all(v['status'] == 'absent' for v in o['C_detail'].values() if v['group'] == 'CX1'))
     sd = dict(asX); sd.update({k: (0.12, slots[k]['t_L']) for k in G['SD']})
     run('shared dark slots present: D fails', sd, lambda o: 'fails' in o['secondary_D'])
     run('window not reached: T1 and T2 do not decide', asX, lambda o: 'not reached' in o['primary_T1'] or 'not reached' in o['secondary_T2'],
@@ -262,7 +265,8 @@
     for ed, label in ((dict(numpy_version='2.1.3'), 'NumPy'), (dict(smoke=True), 'smoke row'), (dict(seed=1), 'seed'),
                       (dict(runner_sha256='x'), 'runner'), (dict(theta=0.40), 'state'), (dict(deposit_doi='other'), 'deposit DOI')):
         run(f'void on {label}', asX, lambda o: o.get('verdict', '').startswith('void'), edit=ed)
-    run('incomplete with 4 rows', asX, lambda o: o.get('verdict', '').startswith('incomplete'), nrows=4)
+    run('incomplete with 4 rows: no rule scored, rows reported', asX, lambda o: o.get('verdict', '').startswith('incomplete')
+        and len(o.get('rows_read', [])) == 4 and 'primary_T1' not in o, nrows=4)
     def one(tm, tpa=120.0):
         S = {(1, 1): dict(status='present', consistent=True, t_med=tm)}
         return timing_rule('T2', S, {(1, 1): {'t_Px': 100.0, 't_Pa': tpa}}, [(1, 1)], 't_Pa', 'Ha')[1]['slots'][0]['side']
