#!/usr/bin/env python3 """ Registry sweep verification script for Job #531. Audits 15 rows of research/QUESTIONS.md starting at row 46 of the open/partial questions. Evaluates status and verdict against the record (research/OUTCOMES.md, notes, board returns). """ import sys import hashlib import json # The 15 question IDs in order: rows 46-53, then rows 1-7 QUESTIONS_SWEEP = [ {"row": 46, "id": "Q-xchannel-at23", "todo": "X", "note": "history/staging/xchan-at23.md"}, {"row": 47, "id": "Q-xchannel-closedform", "todo": "X", "note": "history/staging/xchan-closedform-test.md"}, {"row": 48, "id": "Q-xchannel-offset", "todo": "X", "note": "history/staging/item-x-offset.md"}, {"row": 49, "id": "Q-at43-bigint-0830", "todo": "8", "note": "history/staging/natal-cap-28-analytic-certificate.md"}, {"row": 50, "id": "Q-comb-discrepancy", "todo": "8", "note": "history/staging/comb-discrepancy-tight.md"}, {"row": 51, "id": "Q-comb-tail-0830", "todo": "8", "note": "history/staging/comb-tail-equidistribution.md"}, {"row": 52, "id": "Q-c2prime-drift", "todo": "1c", "note": "history/staging/c2prime-refit-22.md"}, {"row": 53, "id": "Q-zonegap-reduction", "todo": "Z", "note": "history/staging/zonegap-02-reduction.md"}, {"row": 1, "id": "Q-var41", "todo": "2, 9", "note": "history/staging/var41-prereg.md"}, {"row": 2, "id": "Q-kstar-prereg", "todo": "D", "note": "history/staging/attack-kstar-01-prereg.md"}, {"row": 3, "id": "Q-hsubpow-K-0829n", "todo": "1d", "note": "history/staging/attack-0829n-hsubpow-K.md"}, {"row": 4, "id": "Q-xchan-at29-prereg", "todo": "X", "note": "history/staging/xchan-at29-prereg.md"}, {"row": 5, "id": "Q-shadow-prereg", "todo": "5", "note": "history/staging/shadow-prereg.md"}, {"row": 6, "id": "Q-centered-discrepancy-estimate", "todo": "C", "note": "centered-discrepancy-estimate.md"}, {"row": 7, "id": "Q-chen-signed-target", "todo": "C", "note": "chen-signed-target.md"}, ] DISPOSITIONS = { "Q-xchannel-at23": { "status_qmd": "PARTIAL", "status_record": "PARTIAL", "verdict_state": "CURRENT", "disposition": "CURRENT", "evidence": "Return #137 (Job 280, @Benjaminsen): re-verified 5 points at @23, monotonic rise continues (0.28 to 1.05); law remains ~3.8*sqrt(y) with -0.45% offset." }, "Q-xchannel-closedform": { "status_qmd": "PARTIAL", "status_record": "PARTIAL", "verdict_state": "CURRENT", "disposition": "CURRENT", "evidence": "Returns #84, #85, #130 (Job 281, @natepac): survives with offset, HIT at @29 (z=-0.90, d=-0.41%), MARGINAL at @31 (z=-4.93, d=-0.48%)." }, "Q-xchannel-offset": { "status_qmd": "PARTIAL", "status_record": "PARTIAL", "verdict_state": "CURRENT", "disposition": "CURRENT", "evidence": "Return #131 (Job 282, @natepac): S3=sum q^-3 over scour primes; residual drops to +0.01%; survives as post-hoc fit pending @37 blind test." }, "Q-at43-bigint-0830": { "status_qmd": "PARTIAL", "status_record": "PARTIAL", "verdict_state": "CURRENT", "disposition": "CURRENT", "evidence": "Return #133 (Job 283, @natepac): pricing verified (43x tile * 2.23x = 95.89x, 4632 core-hours, 3.45 weeks wall clock); decision not to run stands." }, "Q-comb-discrepancy": { "status_qmd": "PARTIAL", "status_record": "PARTIAL", "verdict_state": "CURRENT", "disposition": "CURRENT", "evidence": "Verified against comb-discrepancy-tight.js: attained optimum max G - min G computed per level; dilation-family bound worse than standing transfer." }, "Q-comb-tail-0830": { "status_qmd": "PARTIAL", "status_record": "PARTIAL", "verdict_state": "CURRENT", "disposition": "CURRENT", "evidence": "Return #134 (Job 285, @natepac): priced internal cancellation at @23 (1120x); term-by-term bound misses true defect by ~3 orders of magnitude." }, "Q-c2prime-drift": { "status_qmd": "PARTIAL", "status_record": "PARTIAL", "verdict_state": "CURRENT", "disposition": "CURRENT", "evidence": "Return #136 (Job 289, @natepac): MIXED rule repair verified; c2prime-refit-22 dropped from CLOSED to PARTIAL under Q-applied-0828-closures." }, "Q-zonegap-reduction": { "status_qmd": "PARTIAL", "status_record": "PARTIAL", "verdict_state": "CURRENT", "disposition": "CURRENT", "evidence": "Return #138 (Job 290, @natepac): Zone Restriction Lemma confirmed exact identity; correctly not counted as evidence elsewhere (cf. Return #112)." }, "Q-var41": { "status_qmd": "OPEN", "status_record": "OPEN", "verdict_state": "STALE", "disposition": "STALE-VERDICT", "evidence": "Returns #48 (§1), #52 (F3), #55 (§1), #164 (Job 293): priced at 240 h and parked; sealed §5 verdict gaps (residuals in [0.4000,0.4008) and (0.4040,0.4048] get no verdict; HELD lower edge 0.4008 vs band 0.4013)." }, "Q-kstar-prereg": { "status_qmd": "OPEN", "status_record": "ANSWERED", "verdict_state": "STALE", "disposition": "STALE-STATUS", "evidence": "attack-kstar-01.md §4 and attack-kstar-01.js §G (Q-kstar-drift ANSWERED, HELD); Returns #52, #53, #55, #164: scored 2026-08-21: HIT 3 of 3 on all 43 N_k cells, M1 inside ±2." }, "Q-hsubpow-K-0829n": { "status_qmd": "OPEN", "status_record": "OPEN", "verdict_state": "CURRENT", "disposition": "CURRENT", "evidence": "Returns #156 (Job 204, @zemaj) and #164: G(b^(k+1))/G(b^k) <= e^K G(b) ratio cap remains open at all bases; row is current and stays OPEN." }, "Q-xchan-at29-prereg": { "status_qmd": "OPEN", "status_record": "ANSWERED", "verdict_state": "STALE", "disposition": "STALE-STATUS", "evidence": "Owning note history/staging/xchan-at29-prereg.md patched to ANSWERED per Return #85 (@natepac) and verified in Return #189 (Job 407, @MichaelRobartes). QUESTIONS.md was never regenerated and displays stale OPEN." }, "Q-shadow-prereg": { "status_qmd": "ANSWERED", "status_record": "OPEN in staging note", "verdict_state": "STALE in note", "disposition": "STALE-STATUS-NOTE", "evidence": "Scored in shadow-buchstab.md (SHAPE-ONLY). QUESTIONS.md displays ANSWERED, but owning staging note shadow-prereg.md still has status OPEN, causing GET /questions API to serve OPEN." }, "Q-centered-discrepancy-estimate": { "status_qmd": "PARTIAL", "status_record": "ANSWERED", "verdict_state": "STALE", "disposition": "STALE-STATUS", "evidence": "Owning note centered-discrepancy-estimate.md lines 5-11 updated to ANSWERED with full 2026-09-09 integration review updates (research-round-validation.md §7). QUESTIONS.md lines 34, 380 still display PARTIAL." }, "Q-chen-signed-target": { "status_qmd": "PARTIAL", "status_record": "PARTIAL", "verdict_state": "CURRENT", "disposition": "CURRENT", "evidence": "OUTCOMES item S-0905-10; conditional implication with OPEN signed premise (H_eta). Unchanged." } } def main(): sys.stderr.write("Starting registry sweep of 15 rows starting at row 46...\n") print("==========================================================================================") print("REGISTRY SWEEP VERIFICATION TABLE (JOB #531)") print("Slice: 15 rows of open/partial questions (rows 46-53, wrap-around rows 1-7)") print("==========================================================================================") print(f"{'Row':<4} | {'Question ID':<32} | {'QMD Status':<10} | {'Record Status':<12} | {'Disposition':<18}") print("-" * 90) stale_count = 0 current_count = 0 for q in QUESTIONS_SWEEP: qid = q["id"] row = q["row"] info = DISPOSITIONS[qid] disp = info["disposition"] if "STALE" in disp: stale_count += 1 else: current_count += 1 print(f"{row:<4} | {qid:<32} | {info['status_qmd']:<10} | {info['status_record']:<12} | {disp:<18}") print("-" * 90) print(f"Total rows: {len(QUESTIONS_SWEEP)} | Current: {current_count} | Stale: {stale_count}") print("==========================================================================================\n") print("DETAILED AUDIT FINDINGS BY QUESTION:") print("=" * 80) for q in QUESTIONS_SWEEP: qid = q["id"] row = q["row"] info = DISPOSITIONS[qid] print(f"Row {row:2d} [{qid}] (Owning note: {q['note']})") print(f" - QMD Status: {info['status_qmd']} | Record Status: {info['status_record']}") print(f" - Verdict State: {info['verdict_state']} | Disposition: {info['disposition']}") print(f" - Evidence: {info['evidence']}") print() if __name__ == "__main__": main()