#!/usr/bin/env python3 """Conservative static inventory: implemented names do not establish behavioral parity.""" import json,re from pathlib import Path root=Path(__file__).resolve().parents[1] rows=[] for path in sorted((root/'src').glob('python_*.cpp')): source=path.read_text() for name,handler in re.findall(r'\{\s*"([^"]+)"\s*,\s*(\w+)\s*,\s*METH_',source): if 'dummy' in handler: rows.append({'file':str(path.relative_to(root)),'api':name,'handler':handler,'status':'placeholder'}) report={'scope':'Static Python method-table inventory; excludes hidden no-ops, renderer and packet behavior. Full parity is NOT established.','placeholder_count':len(rows),'placeholders':rows} output=root/'docs/WINDOWS-PARITY-INVENTORY.json' output.write_text(json.dumps(report,indent=2)+'\n') print(f'{len(rows)} placeholder bindings; report: {output}')