Multi-Dialect Abstract Syntax Tree Sandboxing and Cross-Platform Constant-Work Authenticated Verification
Year: 2026
Type: article
Abstract: This technical note presents cross-operating-system verification benchmarks uniting a deterministic multi-dialect Python abstract syntax tree (AST) compiler with a branchless 1999 C standard constant-work authenticated verification core across x86-64 Windows 11 Pro (Python 3.12.10) and ARM64 macOS Apple Silicon (Python 3.9.6 and Apple CommonCrypto). Three custom recursive-descent frontends—Hawaii Creole English (HCE-Py), context-sensitive Japanese script with katakana stroke disambiguation (JP-Py), and strict Unicode NFC Hawaiian orthography enforcing U+02BB (HAW-Py)—lower deterministically into identical canonical AST representations gated by a default-deny verifier and a three-layer denial-of-service shield (pre-allocation exponent/replication caps, AST fuel metering, and operating-system Job Object / POSIX rlimit subprocess isolation). Across six benchmark algorithms, 18/18 (100.0%) dialect-to-canonical AST comparisons match with 0.0 numerical deviation, while 20,000/20,000 adversarial parser/sandbox probes and 12/12 Layer 1 plus 5/5 Layer 2 resource exhaustion attacks are blocked cleanly. After accounting for CPython 3.12 Python Enhancement Proposal 695 empty type_params=[] metadata, identical conservation modules compiled on Python 3.12 and Python 3.9 match bit-for-bit (SHA-256 d9cb84ba072a00fcc38ccc42475ba8d3b616b01175ea29dea09fc6b8a8d26224). For cryptographic verification under Kerckhoffs's Principle, unconditional six-stage evaluation reduces interpreter-level fail-fast timing ratios from 5.32x (Windows 11 Pro) and 5.58x (macOS) down to 1.0245x and 1.0394x, while a compiled C99 native shared library using Apple CommonCrypto AES-256-CTR, HMAC-SHA256, HKDF-SHA256, and bitwise zeroization achieves an exact 1.0000x median timing ratio across 9,900 Latin-square interleaved validation sets (6.541 microseconds median across valid, stage-0 reject, and bad-tag inputs; Kolmogorov-Smirnov p = 0.876 and p = 0.715).
Author: Kawane, Reid
Language: English
Subfield: Hardware and Architecture
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W7238753562
FWCI:
Cites:
Cited by:
Related to:
