from pathlib import Path import difflib, hashlib, json, re p=Path(__file__).resolve().parent name='history/staging/recon-0830-smooth-aps.md' old=(p/'owners'/name).read_text() verdict="NONE APPLIES AS STATED, and the identification step stays open; lim Var/E = 0.45546 stays HEURISTIC. The 2026-08-30 rider from redteam-0830-imports.md supersedes this note's original nearest-source and unmet-weight clauses: it names Harper, JLMS 112 (2025) e70293 = arXiv:2412.19644, whose BDH asymptotic treats an arbitrary complex sequence on the same dyadic all-classes object and whose footnote 1 addresses the maximum over x' <= x. Per that rider, the step still does not close because of the range sqrt(2x) < Q <= x and the Theorem 2 route's explicit exclusion of sieved sets; the nearest citation is not arXiv:1208.5992. The cell needs the lam0-weighted AVERAGE over d, not uniformity. Section 3 retains a conditional derivation from the weighted form H_w used there, unreviewed, with two identities checked numerically in the producer: every two-branch cell of Xmix, both mirror cases, all bands and balanced blocks included, is o(ln^2 y). That conditional derivation does not establish H_w from an available theorem. The three-branch type (measured -0.0002 at x = 19, trivial bound O(ln^3 y)) is untouched. Not TPC-strength." new,n=re.subn(r'^verdict: .*$', 'verdict: '+verdict,old,count=1,flags=re.M);assert n==1 assert old.split('-->',1)[1]==new.split('-->',1)[1] assert 'status: PARTIAL' in new.split('-->',1)[0] (p/'recon-0830-smooth-aps.revised.md').write_text(new) index=(p/'QUESTIONS.md').read_text();lines=index.splitlines(keepends=True);changed=[] oldver=re.search(r'^verdict: (.*)$',old,re.M)[1] cell=lambda s:s.replace('|',r'\|').replace('\n',' ') for i,line in enumerate(lines): if line.startswith('| ') and '`Q-recon-0830-smooth-aps`' in line: assert line.count(cell(oldver))==1 lines[i]=line.replace(cell(oldver),cell(verdict));changed.append(i+1) assert len(changed)==2 revised=''.join(lines);(p/'QUESTIONS.revised.md').write_text(revised) patch=''.join(difflib.unified_diff(old.splitlines(True),new.splitlines(True),fromfile='a/research/'+name,tofile='b/research/'+name)) patch+=''.join(difflib.unified_diff(index.splitlines(True),revised.splitlines(True),fromfile='a/research/QUESTIONS.md',tofile='b/research/QUESTIONS.md')) (p/'row24.patch').write_text(patch) sha=lambda s:hashlib.sha256(s.encode()).hexdigest() out={'owner_changed_lines':1,'index_changed_lines':changed,'status':'PARTIAL unchanged', 'owner_body_unchanged':True,'other_index_rows_unchanged':True, 'source_sha256':sha(old),'revised_owner_sha256':sha(new),'original_index_sha256':sha(index),'revised_index_sha256':sha(revised)} (p/'revision-check.json').write_text(json.dumps(out,indent=2)+'\n');print(json.dumps(out))