# Local mutation checks (clone only, each reverted with git checkout). 2026-11-17T22:16:49Z, go version go1.27.3 darwin/arm64 # Purpose: confirm that the vendor's tests fail when the claimed fix is undone. ## M0: baseline, unmodified ok github.com/SingLinkLabs/singlink-vpn-app/core/ffi 15.560s ok github.com/SingLinkLabs/singlink-vpn-app/core/tunnel 2.003s ## M1: startTun also closes dev after handing cleanup to the engine (re-introduces a double close) --- a/core/ffi/tunstart.go +++ b/core/ffi/tunstart.go - if handedOff { + if false && handedOff { --- FAIL: TestStartTunCancelAfterAcquisitionClosesOnce (6.76s) tunstart_test.go:173: device closed 2 times, want 1 --- FAIL: TestStartTunPanicAfterAcquisitionClosesOnce (7.35s) tunstart_test.go:203: device closed 2 times, want 1 --- FAIL: TestStartTunPreAcquisitionFailuresCloseOnce (2.75s) tunstart_test.go:241: tunnel acquired the device on a pre-acquisition failure tunstart_test.go:244: start succeeded --- FAIL: TestStartTunStopAfterSuccessClosesOnce (1.62s) tunstart_test.go:261: device closed while the session runs --- FAIL: TestStartTunWatcherFailureClosesOnce (6.73s) tunstart_test.go:278: device closed 2 times, want 1 --- FAIL: TestTunStartRealFDStopAfterSuccess (1.62s) tunstart_test.go:389: core duplicate not alive while running: broken pipe FAIL FAIL github.com/SingLinkLabs/singlink-vpn-app/core/ffi 30.687s FAIL ## M2: SingLinkTunStart takes ownership of the caller's fd (NewFDDevice instead of DupFDDevice) --- a/core/ffi/main.go +++ b/core/ffi/main.go - dev, err := tunnel.DupFDDevice(int(fd), cfg.AppleHeader) + dev, err := tunnel.NewFDDevice(int(fd), cfg.AppleHeader), error(nil) ok github.com/SingLinkLabs/singlink-vpn-app/core/ffi 5.264s ## M3: DNS in-flight cap removed (slots never fill) --- a/core/tunnel/dns.go +++ b/core/tunnel/dns.go - return &dnsClient{t: t, slots: make(chan struct{}, maxOutstandingDNS)} + return &dnsClient{t: t, slots: make(chan struct{}, 1<<20)} --- FAIL: TestDNSOutstandingQueriesAreCapped (11.29s) tunnel_test.go:316: after 0 SERVFAIL replies: read udp 172.19.0.1:22556: i/o timeout FAIL FAIL github.com/SingLinkLabs/singlink-vpn-app/core/tunnel 11.420s FAIL ## after revert: git status --porcelain (empty = clean)