# Protocol: Kill-switch versus browser kill (3 days)

Slug: `vpn-kill-switch-browser-3day`  
Frozen at: see `hosts.frozen.json`  
Stop after: `2026-11-26T18:30:00Z`  
Question: After tunnel kill mid-page, do new HTTPS, WebSocket, and DNS leave before reclaim?

## What this is

A controlled lab on a Cursor USA cloud agent that compares:

1. **Tunnel kill with reclaim (kill-switch model)** — mid-page, the tunnel controller stops forwarding; after a registered delay it drops new CONNECT attempts.
2. **Tunnel kill with underlay open (no kill-switch)** — mid-page, the controller switches to open forwarding on the underlay.
3. **Browser kill** — mid-page, the browser page/context is closed while the tunnel would still forward.

Primary instrument: a local fixture that repeatedly opens HTTPS, WebSocket, and DNS-bound requests. The controller log is the ground truth for whether a new CONNECT was forwarded or dropped after the kill mark.

## What this is not

- Not a certification of any vendor VPN app kill-switch.
- Not CometVPN tunnel measurement. CometVPN is VPN-only and is `NOT_RUN` here (no peer/credentials; TUN device presence alone does not authorize a claim).
- Not a ProxySeller routing study. Lean default is `NOT_USED`. Secrets may be present in the environment and are recorded as presence only.
- Not the existing consumer `/tools/free-vpn-kill-switch-test/` product flow (that tool cannot control a tunnel). This lab controls a local CONNECT controller on purpose.
- Not the browser-path-leak WebRTC study.

## Vantage

- Cursor Cloud Agent, USA datacenter egress.
- Chromium via Playwright, headless, locale `en-US`, timezone `America/New_York`.
- Coolify hosting for the eventual article. Ignore Vercel CI.

## Tunnel model (honest limits)

Hosted agents do not run a production CometVPN WireGuard session in this study. The “tunnel” is a **local HTTP CONNECT controller** that Chromium must use for non-loopback traffic:

| Controller mode | Meaning |
| --- | --- |
| `tunnel` | Forward CONNECT to the destination (pre-kill path). |
| `open` | Still forward (models underlay leave after tunnel death with no reclaim). |
| `ks` | Drop CONNECT with 503 (models kill-switch reclaim). |

On this VM the forwarded egress is the cloud underlay in both `tunnel` and `open`. The study therefore does **not** claim a distinct VPN exit IP. It claims whether **new** HTTPS / WebSocket / DNS-bound CONNECTs are forwarded or dropped in the kill→reclaim window, and whether closing the browser stops those new leaves.

`/dev/net/tun` may exist on the VM. That fact is logged. It does not change CometVPN `NOT_RUN`.

## Conditions

### Diary conditions (every slot)

| ID | Kill | Post-kill controller | Browser |
| --- | --- | --- | --- |
| `tunnel-stable` | no | stays `tunnel` | stays open |
| `tunnel-kill-open` | yes | `open` | stays open |
| `tunnel-kill-ks-0ms` | yes | `ks` immediately | stays open |
| `tunnel-kill-ks-500ms` | yes | `open` for 500 ms, then `ks` | stays open |
| `browser-kill` | yes (mark only) | stays `tunnel` | page + context closed |

### Day-0 extras (first measurement slot only)

| ID | Reclaim delay |
| --- | --- |
| `tunnel-kill-ks-100ms` | 100 ms |
| `tunnel-kill-ks-2000ms` | 2000 ms |

## Channels

| Channel | Fixture action | Leave signal |
| --- | --- | --- |
| HTTPS | `fetch` Cloudflare `/cdn-cgi/trace` with cache buster | Browser `left` and/or controller `forwarded_*` |
| WebSocket | `wss://ws.postman-echo.com/raw` | Browser `left` and/or controller forward to echo host |
| DNS | `fetch` to a fresh `*.invalid` hostname (reserved TLD) | Controller CONNECT for that host after kill ⇒ DNS-bound leave attempt; drop ⇒ reclaim blocked |

DNS here means **DNS-bound new-host CONNECTs** observed at the controller (browser sends the hostname on CONNECT; the controller would resolve on the underlay if it forwards). It is not a packet capture of the stub resolver, and it is not DoH policy analysis.

## Freeze rule

Candidates are the ordered list in `collect.mjs` (`CANDIDATE_HOSTS`). Screen cloud-direct GET (no proxy). Freeze the first **8** OK hosts preferring `primary` / `control` / `dns-related`, then `backup`. Cap 8 (under the batch ≤12 rule). Membership never changes after `hosts.frozen.json` exists.

Ecological mid-page check each slot: one visit to frozen host `H01` (or the first frozen id) under `tunnel-kill-open` only. No ProxySeller.

## Cadence

| Slot | Window (UTC) |
| --- | --- |
| `20261124T-immediate` | Day 0 after freeze (includes Day-0 extras) |
| `20261124T1800Z` | 2026-11-24 17:50–18:45 |
| `20261125T0600Z` | 2026-11-25 05:50–06:45 |
| `20261125T1800Z` | 2026-11-25 17:50–18:45 |
| `20261126T0600Z` | 2026-11-26 05:50–06:45 |
| `20261126T1800Z` | 2026-11-26 17:50–18:30 |

Stop after `2026-11-26T18:30:00Z`. Missed windows are `MISSED` and are not backfilled. Scheduling is a Cursor timer on this agent.

## Outcomes (pre-registered)

Per condition per slot:

1. **Controller leave attempts after kill** — CONNECT entries with `forwarded_*` or `upstream_error` (underlay DNS/connect tried) and `at >= killAt`.
2. **Controller drops after reclaim** — count with `dropped_by_ks` and `at >= reclaimAt` (ks arms only).
3. **Leave before reclaim** — at least one leave attempt with `killAt <= at < reclaimAt` on a ks arm with delay &gt; 0.
4. **Browser-kill stop** — zero post-phase fixture events and zero post-kill forwards.
5. **Channel split** — HTTPS / WebSocket / DNS attempt counts from the fixture after kill.

Verdict labels are written by `collect.mjs` (`left_before_reclaim`, `reclaim_blocked_new_leaves`, `new_traffic_left_after_kill_no_reclaim`, `browser_kill_stopped_new_leaves`, …).

## Redaction

- No raw IPs, no ProxySeller values, no secrets in git.
- Controller log stores host **kind** labels in the public results (`cloudflare`, `websocket_echo`, `dns_probe`, `other`), not full synthetic hostnames when avoidable in summaries.
- Env discovery records PRESENCE only.

## After the last slot

Deep research article + site page on this branch only. Affiliates: `/proxyseller/` and `/cometvpn/` with disclosure. Shallow content is not acceptable. Parent is messaged on Day 0 freeze, blockers, and article push only.
