#!/usr/bin/env python3
"""Keep real POST Store Enum separate from existing GET terminal evidence."""
from pathlib import Path
import subprocess
import sys
import integrate_20261010 as tool
E = tool.AI + 'parallel-ai-enum-store-terminal-all-20261010/'

def verify():
    for name in ['compare.py', 'compare-get.py']:
        subprocess.run([sys.executable, str(tool.ROOT / E / name)], check=True, capture_output=True)
    for name in ['cleanup.json', 'cleanup-get.json']:
        for lane in tool.load(E + name).values():
            assert lane['worker_stopped'] and lane['port_not_listening'] and lane['token_absent']
            assert lane['private_cache_files_remaining'] == lane['private_runtime_files_remaining'] == 0
            assert lane['selected_source_unchanged'] and lane['database_writes'] == 0

def targets():
    return [dict(repo='ai_api', method=method, path=path, module='枚举配置', terminal=terminal,
        role='private-merchant-cache-token', risk='read',
        scope='ai-primary-config-enum-17-projections-unsigned-tinyint-comparison-no-DML',
        evidence=E + 'REPORT.md', request_type='GET-query' if method == 'GET' else 'application/json',
        parity='partial-evidence-41-real-method-scenes-full-source-wire-value-type-order-equal',
        boundary_empty_min_max='partial-evidence-17-types-24-prefix-fraction-exponent-null-or-missing-boundaries')
        for method, path, terminal in [('POST', '/store/enum/all', 'PC端'), ('GET', '/terminal/Enum/all', '设备端')]]

if __name__ == '__main__':
    tool.main(targets(), Path(__file__).with_name('integration-20261010-batch8.json'), verify)
