# Independent C-ABI descriptor check of SingLinkTunStart/SingLinkTunStop (Python ctypes, pipe as TUN stand-in). # date: 2026-11-17T22:19:14Z; go: go version go1.27.3 darwin/arm64; python: Python 3.9.6 # harness: abi_fd_check.py written for this audit (not vendor code); node: core/testnode (synthetic, loopback, fresh keys; link not recorded) ## A: core/build/macos/libsinglink.dylib built from HEAD (sha256 a43f23c65b914cdd4a590ff51b32b5713006aa6a6f35173c4a52f7a0dbc3844d) PASS bad link: reply ok=false: {"error": "singlink: link has no credentials", "ok": false} PASS bad link: caller fd still open after the call: fd 4 inode 2179429881172862983 PASS bad link: no leaked duplicate (EPIPE after caller close): write end PASS bad JSON: reply ok=false: {"error": "invalid character 'n' looking for beginning of object key string", "ok": false} PASS bad JSON: caller fd still open: fd 4 PASS bad JSON: no leaked duplicate: write end PASS synthetic node: reply ok=true: {"ok": true} PASS synthetic node: caller's close of its own fd succeeds (core did not take it): fd 4 PASS synthetic node: core duplicate alive while running: write end accepts data PASS synthetic node: SingLinkTunStop ok: {"ok": true} PASS synthetic node: duplicate closed after stop (EPIPE): write end PASS synthetic node: status running=false after stop: {"running": false, "listen": "tun", "up": 0, "down": 0, "conns": 0, "since": 0, "lastError": ""} 12 of 12 checks passed # exit status: 0 ## B: control (expected to FAIL). Same source with ffi/main.go:176 changed to take ownership (NewFDDevice instead of DupFDDevice); built to a scratch path, source reverted Traceback (most recent call last): File "/tools/scripts/abi_fd_check.py", line 65, in still_open = os.fstat(r).st_ino == ino OSError: [Errno 9] Bad file descriptor # exit status: 1 /tools/scripts/abi_driver.sh: line 17: 83210 Terminated: 15 go run ./testnode < $F > $O 2>&1 [node stopped manually after the run: the harness held the fifo open] ## git status after revert (empty = clean)