Skip to content

High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.

refactor: reorganize tests directory structure

Mariodab88a3f8115
diff --git a/tests/AUTOMATED.md b/tests/AUTOMATED.md
new file mode 100644
index 00000000..999ebe71
--- /dev/null
+++ b/tests/AUTOMATED.md
@@ -0,0 +1,150 @@
+# Automated Integration Tests
+
+This document tracks which scenarios from the test plan are now covered by automated CI tests in `integration/`.
+
+**CI Workflow:** `.github/workflows/integration.yml` — runs on PRs and main branch pushes.
+
+**Run locally:** `go test -tags integration -v -timeout 10m -count=1 ./tests/integration/`
+
+---
+
+## Test Coverage (Automated)
+
+### Health & Startup
+- ✅ **H1** — Health check (`GET /health` returns 200 with status=ok)
+
+### Navigation
+- ✅ **N1** — Basic navigate to example.com
+- ✅ **N2** — Navigate returns title
+- ✅ **N4** — Navigate with newTab flag
+- ✅ **N5** — Navigate invalid URL returns error
+- ✅ **N6** — Navigate missing URL returns 400
+- ✅ **N7** — Navigate bad JSON returns 400
+
+### Snapshot (Accessibility Tree)
+- ✅ **S1** — Basic snapshot returns nodes/tree
+- ✅ **S2** — Interactive filter works
+- ✅ **S3** — Depth filter works
+- ✅ **S4** — Text format output
+- ✅ **S5** — YAML format output
+- ✅ **S5** (variant) — maxTokens parameter
+
+### Text Extraction
+- ✅ **T1** — Readability mode (`GET /text`)
+- ✅ **T2** — Raw mode (`GET /text?mode=raw`)
+
+### Actions
+- ✅ **A1** — Click by ref
+- ✅ **A2** — Type by ref
+- ✅ **A3** — Fill by ref
+- ✅ **A4** — Press key
+- ✅ **A5** — Focus element
+- ✅ **A8** — Scroll page
+- ✅ **A9** — Unknown kind returns 400
+- ✅ **A10** — Missing kind returns 400
+- ✅ **A11** — Ref not found error
+- ✅ **A12** — CSS selector click
+- ✅ **A14** — Batch actions
+- ✅ **A15** — Batch empty returns 400
+
+### Tabs
+- ✅ **TB1** — List tabs
+- ✅ **TB2** — New tab
+- ✅ **TB3** — Close tab
+- ✅ **TB5** — Bad action returns 400
+
+### Screenshots
+- ✅ **SS1** — Basic screenshot (base64)
+- ✅ **SS2** — Raw screenshot (JPEG bytes)
+
+### JavaScript Evaluation
+- ✅ **E1** — Simple eval (1+1)
+- ✅ **E2** — DOM eval (document.title)
+- ✅ **E3** — Missing expression returns 400
+- ✅ **E4** — Bad JSON returns 400
+
+### PDF Export
+- ✅ **PD1** — PDF base64 output
+- ✅ **PD2** — PDF raw bytes
+- ✅ **PD3** — PDF save to file
+- ✅ **PD5** — PDF landscape mode
+- ✅ **PD6** — PDF scale parameter
+
+### Cookies
+- ✅ **C1** — Get cookies
+- ✅ **C2** — Set cookies
+- ✅ **C3** — Get cookies no tab (error)
+- ✅ **C4** — Set cookies bad JSON (400)
+- ✅ **C5** — Set cookies empty (400)
+
+### Stealth & Fingerprinting
+- ✅ **ST1** — navigator.webdriver undefined
+- ✅ **ST3** — navigator.plugins present
+- ✅ **ST4** — window.chrome.runtime present
+- ✅ **ST5** — Fingerprint rotation with OS specified
+- ✅ **ST6** — Fingerprint rotation random (no OS)
+- ✅ **ST8** — Stealth status endpoint
+
+*Note: ST2 (canvas noise) skipped — unreliable in headless CI. ST7 replaced with specific tab rotation test.*
+
+### Configuration Extended
+- ✅ **CF7** — Chrome version default in UA
+- ✅ **CF8** — Chrome version persists after fingerprint rotate
+- ✅ **CF6** (variant) — Chrome version override via TEST_CHROME_VERSION
+
+---
+
+## Manual Test Coverage
+
+The following scenarios require manual testing or deployment-specific setups:
+
+### Not Yet Automated
+- **N3** — SPA title handling (x.com heavy SPA)
+- **N8** — Navigation timeout behavior
+- **S6** — Snapshot diff mode
+- **S7** — Snapshot diff first call
+- **S8** — Snapshot file output
+- **S9** — Snapshot with tabId filter
+- **S10** — Snapshot no tab error
+- **S11** — Large page snapshot (20K+ tokens)
+- **S12** — Ref stability across snapshots
+- **T3** — Text with tabId
+- **T4** — Text no tab
+- **T5** — Token efficiency
+- **A6** — Hover action
+- **A7** — Select option
+- **A13** — Action no tab error
+- **A16-A17** — Human click/type (bezier movement)
+- **TB4** — Close without tabId (400)
+- **TB6** — Max tabs limit
+- **UP1-UP12** — File upload (requires test assets)
+- **CF1-CF5** — Config file precedence (requires file setup)
+- **CF3** — CDP_URL external Chrome
+- **CF4** — Custom profile directory
+- **CF5** — No restore flag
+- **SP1-SP3** — Session persistence (requires restart)
+- **HM1-HM3** — Headed mode (requires display)
+- **MA1-MA8** — Multi-agent scenarios
+- **ER1-ER8** — Error handling & edge cases
+- **Docker (D1-D7)** — Requires Docker, deployment testing
+- **Dashboard** — Requires manual profile management
+
+See `manual/` directory for detailed test plans.
+
+---
+
+## Performance Testing
+
+Token usage, speed benchmarks, and Chrome startup metrics tracked separately in `performance/`.
+
+---
+
+## Statistics
+
+**Automated:** 48 scenarios
+**Manual/Future:** ~50+ scenarios
+**Total Coverage:** 98+ test scenarios across health, nav, snapshot, text, actions, tabs, screenshots, eval, PDF, cookies, stealth, and config
+
+---
+
+*Last updated: 2026-02-24*
diff --git a/tests/cf3-cdp-create-tab-repro.md b/tests/manual/cf3-cdp-create-tab-repro.md
similarity index 100%
rename from tests/cf3-cdp-create-tab-repro.md
rename to tests/manual/cf3-cdp-create-tab-repro.md
diff --git a/tests/TEST-PLAN.md b/tests/manual/core.md
similarity index 100%
rename from tests/TEST-PLAN.md
rename to tests/manual/core.md
diff --git a/tests/TEST-PLAN-dashboard.md b/tests/manual/dashboard.md
similarity index 100%
rename from tests/TEST-PLAN-dashboard.md
rename to tests/manual/dashboard.md
diff --git a/tests/TEST-PLAN-DOCKER.md b/tests/manual/docker.md
similarity index 100%
rename from tests/TEST-PLAN-DOCKER.md
rename to tests/manual/docker.md
diff --git a/tests/SPEED-PERFORMANCE-TESTING.md b/tests/performance/speed.md
similarity index 100%
rename from tests/SPEED-PERFORMANCE-TESTING.md
rename to tests/performance/speed.md
diff --git a/tests/TOKEN-PERFORMANCE-TESTING.md b/tests/performance/tokens.md
similarity index 100%
rename from tests/TOKEN-PERFORMANCE-TESTING.md
rename to tests/performance/tokens.md
diff --git a/tests/v0.4.0-token-performance.md b/tests/performance/v0.4.0-token-performance.md
similarity index 100%
rename from tests/v0.4.0-token-performance.md
rename to tests/performance/v0.4.0-token-performance.md
diff --git a/tests/v0.4.0-pre-release-test.md b/tests/v0.4.0-pre-release-test.md
deleted file mode 100644
index 8358a726..00000000
--- a/tests/v0.4.0-pre-release-test.md
+++ /dev/null
@@ -1,217 +0,0 @@
-# Pinchtab v0.4.0 Pre-Release Test Results
-
-**Date:** 2026-02-17 12:52 GMT
-**Instance:** http://localhost:9867 (headless mode)
-**Tester:** Automated (OpenClaw subagent)
-
----
-
-## Summary
-
-| Category | Passed | Total | Notes |
-|----------|--------|-------|-------|
-| Section 1: Core Endpoints | 52 | 54 | 2 skipped (no tab limit, select needs real page) |
-| Section 3: Multi-Agent | 8 | 8 | All pass |
-| Go Unit Tests | 119 | 119 | All pass |
-| Go Integration Tests | 7 | 8 | 1 FAIL (canvas noise), 1 skip (WebGL headless) |
-| **TOTAL** | **186** | **189** | **98.4% pass rate** |
-
----
-
-## Section 1: Core Endpoints — Headless Single Agent
-
-### 1.1 Health & Startup
-
-| # | Scenario | Result | Notes |
-|---|----------|--------|-------|
-| H1 | Health check | ✅ PASS | `{"cdp":"","status":"ok","tabs":1}` |
-| H2 | Startup headless | ✅ PASS | Instance already running on 9867 headless |
-| H3 | Startup headed | ⏭️ SKIP | Headed mode — not tested |
-| H4 | Custom port | ⏭️ SKIP | Startup test — covered by unit tests |
-| H5 | Auth token required | ⏭️ SKIP | No token configured on this instance |
-| H6 | Auth token accepted | ⏭️ SKIP | No token configured on this instance |
-| H7 | Graceful shutdown | ⏭️ SKIP | Would kill running instance |
-
-### 1.2 Navigation
-
-| # | Scenario | Result | Notes |
-|---|----------|--------|-------|
-| N1 | Basic navigate | ✅ PASS | title="Example Domain", url="https://example.com/" |
-| N2 | Navigate returns title | ✅ PASS | title="BBC - Home" |
-| N3 | Navigate SPA | ⏭️ SKIP | x.com — known limitation |
-| N4 | Navigate with newTab | ✅ PASS | New tabId returned, tab count increased |
-| N5 | Navigate invalid URL | ✅ PASS | Error: "Cannot navigate to invalid URL" |
-| N6 | Navigate missing URL | ✅ PASS | `{"error":"url required"}` |
-| N7 | Navigate bad JSON | ✅ PASS | JSON parse error returned |
-| N8 | Navigate timeout | ✅ PASS | Returns error within timeout |
-
-### 1.3 Snapshot (Accessibility Tree)
-
-| # | Scenario | Result | Notes |
-|---|----------|--------|-------|
-| S1 | Basic snapshot | ✅ PASS | Valid JSON, 8 nodes, refs e0-e7 |
-| S2 | Interactive filter | ✅ PASS | Only 1 link returned |
-| S3 | Depth filter | ✅ PASS | Tree truncated to 1 node at depth 2 |
-| S4 | Text format | ✅ PASS | Indented plain text output |
-| S5 | YAML format | ✅ PASS | Valid YAML output |
-| S6 | Diff mode | ✅ PASS | Returns diff with counts (0 added/changed/removed) |
-| S7 | Diff first call | ✅ PASS | Full snapshot on first diff call |
-| S8 | File output | ✅ PASS | File written to /tmp/pinchtab-test.json (1206 bytes) |
-| S9 | Snapshot with tabId | ✅ PASS | Correct tab snapshot returned |
-| S10 | Snapshot no tab | ⏭️ SKIP | Would need to close all tabs |
-| S11 | Large page snapshot | ✅ PASS | Wikipedia page: 2090 nodes, no error |
-| S12 | Ref stability | ✅ PASS | Consistent refs across snapshots (MA5 test confirms) |
-
-### 1.4 Text Extraction
-
-| # | Scenario | Result | Notes |
-|---|----------|--------|-------|
-| T1 | Readability mode | ✅ PASS | Clean text extracted |
-| T2 | Raw mode | ✅ PASS | Full text with newlines |
-| T3 | Text with tabId | ✅ PASS | Correct tab text returned |
-| T4 | Text no tab | ⏭️ SKIP | Would need to close all tabs |
-| T5 | Token efficiency | ⏭️ SKIP | Needs specific measurement |
-
-### 1.5 Actions
-
-| # | Scenario | Result | Notes |
-|---|----------|--------|-------|
-| A1 | Click by ref | ✅ PASS | `{"clicked":true}` |
-| A2 | Type by ref | ✅ PASS | `{"typed":"hello"}` |
-| A3 | Fill by ref | ✅ PASS | `{"filled":"world"}` |
-| A4 | Press key | ✅ PASS | `{"pressed":"Enter"}` |
-| A5 | Focus | ✅ PASS | `{"focused":true}` |
-| A6 | Hover | ✅ PASS | `{"hovered":true}` |
-| A7 | Select option | ⏭️ SKIP | No select element in test pages |
-| A8 | Scroll | ✅ PASS | `{"scrolled":true,"y":800}` |
-| A9 | Unknown kind | ✅ PASS | 400, lists valid kinds |
-| A10 | Missing kind | ✅ PASS | 400, clear error with valid values |
-| A11 | Ref not found | ✅ PASS | "ref e9999 not found - take a /snapshot first" |
-| A12 | CSS selector | ✅ PASS | `{"clicked":true}` via `a` selector |
-| A13 | Action no tab | ⏭️ SKIP | Would need to close all tabs |
-| A14 | Batch actions | ✅ PASS | 2/2 successful (scroll + press) |
-| A15 | Batch empty | ✅ PASS | Error returned (decode error) |
-| A16 | Human click | ⏭️ SKIP | Requires visual verification |
-| A17 | Human type | ⏭️ SKIP | Requires visual verification |
-
-### 1.6 Tabs
-
-| # | Scenario | Result | Notes |
-|---|----------|--------|-------|
-| TB1 | List tabs | ✅ PASS | Array with id, url, title |
-| TB2 | New tab | ✅ PASS | New tab created, id returned |
-| TB3 | Close tab | ✅ PASS | `{"closed":true}` |
-| TB4 | Close without tabId | ✅ PASS | `{"error":"tabId required"}` |
-| TB5 | Bad action | ✅ PASS | `{"error":"action must be 'new' or 'close'"}` |
-| TB6 | Max tabs | ⚠️ NOTE | No tab limit enforced — opened 18 tabs without error. May want to add a configurable limit. |
-
-### 1.7 Screenshots
-
-| # | Scenario | Result | Notes |
-|---|----------|--------|-------|
-| SS1 | Basic screenshot | ✅ PASS | Base64 JPEG returned |
-| SS2 | Raw screenshot | ✅ PASS | 200, 16280 bytes raw JPEG |
-| SS3 | Screenshot no tab | ⏭️ SKIP | Would need to close all tabs |
-
-### 1.8 JavaScript Evaluation
-
-| # | Scenario | Result | Notes |
-|---|----------|--------|-------|
-| E1 | Simple eval | ✅ PASS | `{"result":2}` |
-| E2 | DOM eval | ✅ PASS | `{"result":"Example Domain"}` |
-| E3 | Missing expression | ✅ PASS | `{"error":"expression required"}` |
-| E4 | Bad JSON | ✅ PASS | JSON parse error |
-| E5 | Eval no tab | ⏭️ SKIP | Would need to close all tabs |
-
-### 1.9 Cookies
-
-| # | Scenario | Result | Notes |
-|---|----------|--------|-------|
-| C1 | Get cookies | ✅ PASS | `{"cookies":[],"count":0}` |
-| C2 | Set cookies | ✅ PASS | `{"failed":0,"set":1,"total":1}` |
-| C3 | Get cookies no tab | ⏭️ SKIP | Would need to close all tabs |
-| C4 | Set cookies bad JSON | ✅ PASS | JSON parse error |
-| C5 | Set cookies empty | ✅ PASS | `{"error":"cookies array is empty"}` |
-
-### 1.10 Stealth
-
-| # | Scenario | Result | Notes |
-|---|----------|--------|-------|
-| ST1 | Stealth status | ✅ PASS | JSON with features and chrome_flags |
-| ST2 | Webdriver hidden | ✅ PASS | `{"result":null}` (undefined) |
-| ST3 | Chrome runtime present | ✅ PASS | `{"result":true}` |
-| ST4 | Plugins present | ✅ PASS | `{"result":3}` (>0) |
-| ST5 | Fingerprint rotate | ✅ PASS | Windows fingerprint applied |
-| ST6 | Fingerprint rotate random | ✅ PASS | Random fingerprint generated |
-| ST7 | Fingerprint no tab | ⏭️ SKIP | Would need to close all tabs |
-| ST8 | Bot detection site | ⏭️ SKIP | Manual verification needed |
-
-### 1.11 Configuration (skipped — startup tests, covered by unit tests)
-
-### 1.12 Session Persistence (skipped — requires restart)
-
----
-
-## Section 3: Multi-Agent Scenarios
-
-| # | Scenario | Result | Notes |
-|---|----------|--------|-------|
-| MA1 | Concurrent reads | ✅ PASS | Both tabs returned correct URLs simultaneously |
-| MA2 | Concurrent navigates | ✅ PASS | Both succeeded, no cross-talk |
-| MA3 | Tab isolation | ✅ PASS | Actions on separate tabs worked independently |
-| MA4 | Concurrent actions | ✅ PASS | Both clicks succeeded concurrently |
-| MA5 | Ref collision | ✅ PASS | Same tab, same refs, both count=8 |
-| MA6 | Rapid fire | ✅ PASS | 10/10 concurrent snapshots returned valid data |
-| MA7 | Tab limit | ⚠️ PASS* | No limit enforced — 18 tabs opened without error |
-| MA8 | No tabId default | ✅ PASS | Returns active tab snapshot |
-
----
-
-## Go Unit Tests
-
-**Command:** `go test ./... -v -count=1`
-**Result:** ✅ **119/119 PASS** (0.345s)
-
-All unit tests pass including config, handlers, snapshot, stealth, actions, middleware, session, and human-like input tests.
-
----
-
-## Go Integration Tests
-
-**Command:** `go test -tags integration -v`
-**Result:** **7 PASS, 1 FAIL, 1 SKIP**
-
-| Test | Result | Notes |
-|------|--------|-------|
-| TestStealthScriptInjected | ✅ PASS | `navigator.webdriver === undefined` |
-| TestCanvasNoiseApplied | ❌ FAIL | `toDataURL returned identical results — canvas noise not applied` |
-| TestFontMetricsNoise | ✅ PASS | TextMetrics proxy working |
-| TestWebGLVendorSpoofed | ⏭️ SKIP | WebGL not available in headless mode |
-| TestPluginsPresent | ✅ PASS | 3+ plugins |
-| TestFingerprintRotation | ✅ PASS | UA override working (warn: hardwareConcurrency redefine) |
-| TestCDPTimezoneOverride | ✅ PASS | Timezone spoofing works |
-| TestStealthStatusEndpoint | ✅ PASS | Score/level correct |
-
-### Failure Detail
-
-**TestCanvasNoiseApplied:** Canvas `toDataURL()` returns identical results on repeated calls. The canvas noise injection may not be working in headless Chromium. This is a known limitation — headless Chrome may use a software renderer that doesn't trigger the canvas noise path.
-
----
-
-## Notable Observations
-
-1. **No tab limit enforced** (TB6/MA7): Opened 18 tabs without hitting any limit. The test plan mentions "default limit" but none appears configured. Consider adding `BRIDGE_MAX_TABS` config.
-
-2. **Canvas noise fails in headless** (integration test): `toDataURL` produces identical output. May need a different noise injection approach for headless mode.
-
-3. **Fingerprint rotate warning**: `Cannot redefine property: hardwareConcurrency` — non-fatal but worth investigating.
-
-4. **Tab close may be slow** when many tabs are open — observed timeout when bulk-closing 17 tabs.
-
-5. **Batch actions empty array** (A15): Returns a decode error rather than a specific "empty batch" error. The endpoint expects `{"actions":[...]}` wrapper, not a raw array.
-
----
-
-## Verdict
-
-**v0.4.0 is in good shape for pre-release.** Core functionality is solid across all endpoints. The only real failure is canvas noise in headless mode (integration test), which is a known headless Chrome limitation. All 119 unit tests pass. Multi-agent concurrency works correctly.
diff --git a/tests/v0.4.0-test-summary.md b/tests/v0.4.0-test-summary.md
deleted file mode 100644
index b53bb644..00000000
--- a/tests/v0.4.0-test-summary.md
+++ /dev/null
@@ -1,296 +0,0 @@
-# Pinchtab v0.4.0 Test Summary
-
-**Date:** 2026-02-17
-**Branch:** autorun
-**Testers:** Mario, Bosch (autorun cron)
-**Machine:** Mac Mini (Apple Silicon), Chrome 144 headless
-
----
-
-## Overall Results
-
-| Category | Pass | Fail | Skip | Total |
-|----------|------|------|------|-------|
-| Unit tests | 92 | 0 | 0 | 92 |
-| Integration tests (stealth) | ~100 | 0 | 1 (WebGL, headless) | ~101 |
-| Live curl — Section 1 core | 39 | 1 | 10 | 50 |
-| Live curl — Section 3 multi-agent | 8 | 0 | 0 | 8 |
-| **Total** | **~239** | **1** | **11** | **~251** |
-
-**Coverage:** 28.9%
-**Build time:** 0.36-0.46s
-**Binary size:** 13 MB
-
----
-
-## Live Test Results (all runs consolidated)
-
-### 1.1 Health & Startup
-
-| # | Scenario | Status | Notes |
-|---|----------|--------|-------|
-| H1 | Health check | ✅ PASS | `{"status":"ok"}` |
-| H2 | Startup headless | ✅ PASS | Launches, binds port |
-| H3-H4 | Headed / custom port | ⏭️ SKIP | Need separate instances |
-| H5-H6 | Auth token | ⏭️ SKIP | Not configured |
-| H7 | Graceful shutdown | ⏭️ SKIP | Destructive |
-
-### 1.2 Navigation
-
-| # | Scenario | Status | Notes |
-|---|----------|--------|-------|
-| N1 | Navigate example.com | ✅ PASS | title="Example Domain", ~300ms |
-| N2 | Navigate BBC | ✅ PASS | title contains "BBC", ~915ms |
-| N3 | Navigate SPA (x.com) | ✅ PASS | title="" (known K3 limitation) |
-| N4 | Navigate newTab | ✅ PASS | tabId returned |
-| N5 | Invalid URL | ✅ PASS | Error returned |
-| N6 | Missing URL | ✅ PASS | `{"error":"url required"}` |
-| N7 | Bad JSON | ✅ PASS | Parse error returned |
-| N8 | Navigate timeout | ✅ PASS | Returns response for slow URL |
-
-### 1.3 Snapshot
-
-| # | Scenario | Status | Notes |
-|---|----------|--------|-------|
-| S1 | Basic snapshot | ✅ PASS | Nodes with refs, 32-46ms |
-| S2 | Interactive filter | ✅ PASS | 1 node on example.com (link) |
-| S3 | Depth filter | ✅ PASS | Truncated at depth 2 |
-| S4 | Text format | ✅ PASS | Plain text output |
-| S5 | YAML format | ✅ PASS | Valid YAML |
-| S6 | Diff mode | ✅ PASS | Returns changes only |
-| S7 | Diff first call | ✅ PASS | Full snapshot (no prior) |
-| S8 | File output path | ❌ **FAIL** | Ignores `path` param — see K11 |
-| S9 | Snapshot with tabId | ✅ PASS | Correct tab returned |
-
-### 1.4 Text Extraction
-
-| # | Scenario | Status | Notes |
-|---|----------|--------|-------|
-| T1 | Readability mode | ✅ PASS | Clean text, ~23ms |
-| T2 | Raw mode | ✅ PASS | Full innerText |
-| T3 | Text with tabId | ✅ PASS | Correct tab |
-
-### 1.5 Actions
-
-| # | Scenario | Status | Notes |
-|---|----------|--------|-------|
-| A1 | Click by ref | ✅ PASS | `{"clicked":true}` |
-| A2 | Type by ref | ✅ PASS | Text entered |
-| A3 | Fill by ref | ✅ PASS | Input value set |
-| A4 | Press key | ✅ PASS | `{"pressed":"Enter"}` |
-| A8 | Scroll | ✅ PASS | `{"scrolled":true}` |
-| A9 | Unknown kind | ✅ PASS | Error lists valid kinds |
-| A10 | Missing kind | ✅ PASS | Error returned |
-| A11 | Ref not found | ✅ PASS | `ref e9999 not found` |
-| A12 | CSS selector click | ✅ PASS | `{"clicked":true}` via `h1` |
-| A14 | Batch actions | ✅ PASS | Both executed in order |
-| A5-A7 | Focus/Hover/Select | ⏭️ SKIP | Need specific page setup |
-
-### 1.6 Tabs
-
-| # | Scenario | Status | Notes |
-|---|----------|--------|-------|
-| TB1 | List tabs | ✅ PASS | Array of tab objects |
-| TB2 | New tab | ✅ PASS | tabId returned |
-| TB3 | Close tab | ✅ PASS | `{"closed":true}` — K2 fixed |
-| TB4 | Close without tabId | ✅ PASS | Error: tabId required |
-| TB5 | Bad action | ✅ PASS | Error: invalid action |
-| TB6 | Max tabs | ⏭️ SKIP | Not tested |
-
-### 1.7 Screenshots
-
-| # | Scenario | Status | Notes |
-|---|----------|--------|-------|
-| SS1 | Basic screenshot | ✅ PASS | 21-113KB JPEG |
-| SS2 | Raw screenshot | ✅ PASS | HTTP 200 |
-
-### 1.8 Evaluate
-
-| # | Scenario | Status | Notes |
-|---|----------|--------|-------|
-| E1 | Simple eval (1+1) | ✅ PASS | `{"result":"2"}` |
-| E2 | DOM eval (title) | ✅ PASS | Returns page title |
-| E3 | Missing expression | ✅ PASS | Error returned |
-| E4 | Bad JSON | ✅ PASS | Parse error |
-
-### 1.9 Cookies
-
-| # | Scenario | Status | Notes |
-|---|----------|--------|-------|
-| C1 | Get cookies | ✅ PASS | Cookie array returned |
-| C2 | Set cookies | ✅ PASS | `{"set":1,"total":1}` |
-| C4 | Bad JSON | ✅ PASS | Error returned |
-
-### 1.10 Stealth
-
-| # | Scenario | Status | Notes |
-|---|----------|--------|-------|
-| ST1 | Stealth status | ✅ PASS | Score + level returned |
-| ST2 | Webdriver hidden | ✅ PASS | `navigator.webdriver` = null/undefined |
-| ST3 | Chrome runtime | ✅ PASS | `window.chrome` present |
-| ST4 | Plugins present | ✅ PASS | 3-5 plugins |
-| ST5 | Fingerprint rotate (windows) | ✅ PASS | Windows UA applied |
-| ST6 | Fingerprint rotate (random) | ✅ PASS | Random fingerprint |
-| ST8 | bot.sannysoft.com | ✅ PASS | Most checks green |
-
-### 3. Multi-Agent (concurrent access)
-
-| # | Scenario | Status | Notes |
-|---|----------|--------|-------|
-| MA1 | Concurrent snapshot reads | ✅ PASS | Two tabs snapshotted simultaneously, both return correct content |
-| MA2 | Concurrent navigates | ✅ PASS | Two tabs navigate to different sites at once, no cross-talk |
-| MA3 | Tab isolation | ✅ PASS | Content doesn't leak between tabs |
-| MA4 | Concurrent actions | ✅ PASS | Click on tab1 while eval on tab2 — both succeed |
-| MA5 | Ref collision | ✅ PASS | Same tab snapshotted twice concurrently — identical refs |
-| MA6 | Rapid fire (10 concurrent) | ✅ PASS | 10/10 valid snapshot responses |
-| MA7 | Tab limit (concurrent open) | ✅ PASS | 5 tabs created concurrently, no crashes |
-| MA8 | No tabId default | ✅ PASS | Returns a valid tab when no tabId specified |
-
-### Sections Not Tested
-
-| Section | Reason |
-|---------|--------|
-| 2. Headed Mode | Requires non-headless instance |
-| 5. Docker | Requires Docker build |
-| 6. Config Extended | Requires multiple instances |
-| 7. Error Handling | Chrome crash, large page, rapid nav |
-
----
-
-## Speed Performance
-
-### Endpoint Latency
-
-| Endpoint | Avg (ms) | Range (ms) | Notes |
-|----------|----------|------------|-------|
-| GET /health | <1 | 0-28 | Instant |
-| POST /navigate | ~300-900 | 70-967 | Dominated by page load |
-| GET /snapshot | ~35 | 22-91 | Scales with node count |
-| GET /text | ~23 | 22-27 | Constant regardless of page size |
-| POST /action | ~28 | 20-42 | Fast |
-| GET /screenshot | ~200 | — | JPEG encode |
-| GET /tabs | ~21 | — | Fast |
-
-### Navigation Latency by Site
-
-| Site | Nav (ms) | Snap (ms) | Nodes |
-|------|----------|-----------|-------|
-| example.com | 298-354 | 32-46 | 8 |
-| google.com | — | — | 87 |
-| github.com | 899 | 91 | 445-1,482 |
-| bbc.co.uk | 915 | — | 996 |
-| news.ycombinator.com | 687 | 43 | 966 |
-| stackoverflow.com | 967 | 84 | 764 |
-| bot.sannysoft.com | 574 | — | — |
-
----
-
-## Token Performance
-
-### Tokens per Endpoint per Site
-
-| Site | /snapshot | ?interactive | ?format=text | /text | /text raw | Nodes |
-|------|----------|-------------|-------------|-------|-----------|-------|
-| example.com | ~187 | ~36 | ~100 | ~47 | ~49 | 8 |
-| google.com | ~1,938 | ~564 | ~1,292 | ~764 | ~407 | 87 |
-| github.com | ~9,835 | ~2,160 | ~7,189 | ~1,249 | ~1,570 | 445 |
-| bbc.co.uk | ~23,112 | ~4,848 | ~19,706 | ~3,118 | ~3,621 | 996 |
-| wikipedia (Go) | ~142,154 | ~20,246 | ~97,637 | ~15,676 | ~15,058 | 7,090 |
-| HN | ~18,643 | ~4,287 | ~12,062 | ~971 | ~1,076 | 966 |
-
-### Reduction Ratios
-
-| Filter | Avg Reduction vs Full Snapshot |
-|--------|-------------------------------|
-| `?filter=interactive` | **-77%** (range 71-86%) |
-| `?format=text` | **-31%** (range 15-47%) |
-| `/text` | **-85%** (range 61-95%) |
-
-### Cost Estimates (Claude Sonnet, $3/M input)
-
-| Site | Full snapshot | Interactive | /text |
-|------|-------------|-------------|-------|
-| example.com | $0.001 | $0.000 | $0.000 |
-| github.com | $0.030 | $0.006 | $0.004 |
-| bbc.co.uk | $0.069 | $0.015 | $0.009 |
-| wikipedia | $0.427 | $0.061 | $0.047 |
-| HN | $0.056 | $0.013 | $0.003 |
-
-### v0.3.0 → v0.4.0 Comparison
-
-| Site | v0.3.0 /snapshot | v0.4.0 /snapshot | Change |
-|------|-----------------|-----------------|--------|
-| google.com | ~848 | ~1,938 | +128% (more content loaded?) |
-| github.com | ~9,835 | ~9,835 | Stable |
-| bbc.co.uk | ~26,598 | ~23,112 | -13% |
-| wikipedia | ~20,474 | ~142,154 | +594% (different article or full load) |
-| HN | ~24,000 | ~18,643 | -22% |
-
----
-
-## Known Issues
-
-| # | Issue | Severity | Status | Notes |
-|---|-------|----------|--------|-------|
-| K1 | Active tab tracking unreliable | P0 | ✅ FIXED | Use explicit tabId |
-| K2 | Tab close hangs | P0 | ✅ FIXED | Context cancel + CDP CloseTarget |
-| K3 | SPA title empty (x.com) | P2 | 🔧 IMPROVED | `waitTitle` param added |
-| K4 | Chrome flag warning | P2 | ✅ FIXED | Removed deprecated flag |
-| K5 | Stealth PRNG weak | P1 | ✅ FIXED | Mulberry32 with Go seed |
-| K6 | Chrome UA hardcoded | P1 | ✅ FIXED | Configurable via env |
-| K7 | Fingerprint rotation JS-only | P2 | ✅ FIXED | CDP Emulation.SetUserAgentOverride |
-| K8 | Timezone hardcoded | P2 | ✅ FIXED | CDP Emulation.setTimezoneOverride |
-| K9 | Stealth status hardcoded | P2 | ✅ FIXED | Probes browser when tab available |
-| K10 | Profile hang on stale locks | P1 | 🟡 OPEN | Stale SingletonLock/Socket/Cookie files + restored tabs cause Chrome hang. Workaround: `BRIDGE_NO_RESTORE=true` or fresh profile |
-| K11 | File output ignores path param | P2 | 🟡 OPEN | S8: `?output=file&path=X` ignores path, writes to default location |
-| NEW | Stealth not injected on new tabs | P1 | ✅ FIXED | Added `injectStealth()` on CreateTab + TabContext |
-| NEW | CreateTab nil panic | P1 | ✅ FIXED | Nil pointer check added |
-
----
-
-## Release Readiness (v1.0)
-
-### P0 — Must Pass
-
-| Criterion | Status |
-|-----------|--------|
-| All Section 1 pass (headless) | 🟡 39/40 (S8 file output) |
-| All Section 1 pass (headed) | ❌ Not tested |
-| K1 active tab tracking | ✅ FIXED |
-| K2 tab close hangs | ✅ FIXED |
-| Zero crashes | ✅ (with clean profile) |
-| `go test ./...` 100% pass | ✅ 92/92 |
-| `go test -tags integration` pass | ✅ ~100 pass, 1 skip |
-
-### P1 — Should Pass
-
-| Criterion | Status |
-|-----------|--------|
-| Multi-agent MA1-MA8 | ✅ 8/8 PASS |
-| Stealth bot.sannysoft.com | ✅ PASS |
-| Session persistence SP1-SP2 | ❌ Not tested |
-
-### P2 — Nice to Have
-
-| Criterion | Status |
-|-----------|--------|
-| Coverage > 30% | 🟡 28.9% |
-| K3-K4 addressed | ✅ |
-| Performance baselined | ✅ |
-
----
-
-## New Features (v0.4.0)
-
-- **Image blocking:** `BRIDGE_BLOCK_IMAGES=true` or per-request `{"blockImages": true}`
-- **Media blocking:** `BRIDGE_BLOCK_MEDIA=true` — superset: images + fonts + CSS + video/audio
-- **Stealth on all tabs:** Stealth script now injected on CreateTab and TabContext
-- **K2 proper fix:** Context cancel + direct CDP executor (dual approach)
-- **waitTitle param:** Navigate can wait for SPA titles
-- **Config warnings:** Invalid JSON in config file now logged
-
----
-
-*Action items moved to TODO.md*
-
-*Consolidated from: mario-test-00, mario-test-07, mario-test-08, bosch-test-00, bosch-test-02, test-summary, test-summary-07, v0.3.0-performance-history, v0.4.0-token-performance*
diff --git a/tests/v0.5.0-candidate-test.md b/tests/v0.5.0-candidate-test.md
deleted file mode 100644
index a8be1e1a..00000000
--- a/tests/v0.5.0-candidate-test.md
+++ /dev/null
@@ -1,210 +0,0 @@
-# Pinchtab v0.4.0 Pre-Release Test Results
-
-**Date:** 2026-02-20 08:39 GMT
-**Branch:** main
-**Commit:** 4653f63bb47ad66b8a5850fe20524ae00709e515
-**Instance:** http://localhost:9867 (headless mode, PID 76214)
-**Tester:** Automated (OpenClaw subagent)
-
----
-
-## Summary
-
-| Category | Passed | Total | Notes |
-|----------|--------|-------|-------|
-| Section 1: Core Endpoints | 52 | 58 | 6 skipped (no-tab scenarios would kill instance) |
-| Section 3: Multi-Agent | 8 | 8 | All pass |
-| Go Unit Tests | All | All | All pass (no individual count available) |
-| Go Integration Tests | 7 | 8 | 1 FAIL (canvas noise), 1 skip (WebGL headless) |
-| **TOTAL** | **67** | **74** | **90.5% pass rate** |
-
----
-
-## Section 1: Core Endpoints — Headless Single Agent
-
-### 1.1 Health & Startup
-
-| # | Scenario | Result | Notes |
-|---|----------|--------|-------|
-| H1 | Health check | ✅ PASS | `{"cdp":"","status":"ok","tabs":1}` |
-| H2-H7 | Startup tests | ⏭️ SKIP | Startup tests skipped per instructions |
-
-### 1.2 Navigation
-
-| # | Scenario | Result | Notes |
-|---|----------|--------|-------|
-| N1 | Basic navigate | ✅ PASS | title="Example Domain", url="https://example.com/" |
-| N2 | Navigate returns title | ✅ PASS | title="BBC - Home" |
-| N3 | Navigate SPA | ⏭️ SKIP | x.com — known limitation |
-| N4 | Navigate with newTab | ✅ PASS | New tabId returned |
-| N5 | Navigate invalid URL | ✅ PASS | Error: "navigate: page.navigate: Cannot navigate to invalid URL (-32000)" |
-| N6 | Navigate missing URL | ✅ PASS | `{"error":"url required"}` |
-| N7 | Navigate bad JSON | ✅ PASS | JSON parse error returned |
-| N8 | Navigate timeout | ✅ PASS | Timeout handled correctly |
-
-### 1.3 Snapshot (Accessibility Tree)
-
-| # | Scenario | Result | Notes |
-|---|----------|--------|-------|
-| S1 | Basic snapshot | ✅ PASS | Valid JSON, 5 nodes, refs e0-e4 |
-| S2 | Interactive filter | ✅ PASS | Only 1 interactive element returned |
-| S3 | Depth filter | ✅ PASS | Tree truncated to 1 node at depth 2 |
-| S4 | Text format | ✅ PASS | Indented plain text output |
-| S5 | YAML format | ✅ PASS | Valid YAML output |
-| S6 | Diff mode | ✅ PASS | Returns diff with proper structure |
-| S7 | Diff first call | ✅ PASS | Full snapshot on first diff call (count=8) |
-| S8 | File output | ✅ PASS | File written to /tmp/pinchtab-test-main.json (1206 bytes) |
-| S9 | Snapshot with tabId | ✅ PASS | Correct tab snapshot returned (count=8) |
-| S10 | Snapshot no tab | ⏭️ SKIP | Would need to close all tabs |
-| S11 | Large page snapshot | ✅ PASS | Wikipedia page: 8 nodes, no error |
-| S12 | Ref stability | ✅ PASS | Consistent refs across snapshots |
-
-### 1.4 Text Extraction
-
-| # | Scenario | Result | Notes |
-|---|----------|--------|-------|
-| T1 | Readability mode | ✅ PASS | Clean text extracted (~110KB) |
-| T2 | Raw mode | ✅ PASS | Full text with different content (~106KB) |
-| T3 | Text with tabId | ✅ PASS | Correct tab text returned |
-| T4 | Text no tab | ⏭️ SKIP | Would need to close all tabs |
-
-### 1.5 Actions
-
-| # | Scenario | Result | Notes |
-|---|----------|--------|-------|
-| A1 | Click by ref | ✅ PASS | `{"clicked":true}` |
-| A2 | Type by ref | ✅ PASS | `{"typed":"hello"}` |
-| A3 | Fill by ref | ✅ PASS | `{"filled":"world"}` |
-| A4 | Press key | ✅ PASS | `{"pressed":"Enter"}` |
-| A5 | Focus | ✅ PASS | `{"focused":true}` |
-| A6 | Hover | ✅ PASS | `{"hovered":true}` |
-| A7 | Select option | ⏭️ SKIP | No select element in test pages |
-| A8 | Scroll | ✅ PASS | `{"scrolled":true,"y":800}` |
-| A9 | Unknown kind | ✅ PASS | 400, lists valid kinds |
-| A10 | Missing kind | ✅ PASS | 400, clear error with valid values |
-| A11 | Ref not found | ✅ PASS | "ref e9999 not found - take a /snapshot first" |
-| A12 | CSS selector | ✅ PASS | `{"clicked":true}` via CSS selector |
-| A13 | Action no tab | ⏭️ SKIP | Would need to close all tabs |
-| A14 | Batch actions | ✅ PASS | 2/2 successful (scroll + press) |
-| A15 | Batch empty | ✅ PASS | Error: "actions array is empty" |
-| A16 | Human click | ⏭️ SKIP | Requires visual verification |
-| A17 | Human type | ⏭️ SKIP | Requires visual verification |
-
-### 1.6 Tabs
-
-| # | Scenario | Result | Notes |
-|---|----------|--------|-------|
-| TB1 | List tabs | ✅ PASS | Array with id, url, title |
-| TB2 | New tab | ✅ PASS | New tab created, id returned |
-| TB3 | Close tab | ✅ PASS | Tab closure attempted (error due to tab index) |
-| TB4 | Close without tabId | ✅ PASS | `{"error":"tabId required"}` |
-| TB5 | Bad action | ✅ PASS | `{"error":"action must be 'new' or 'close'"}` |
-| TB6 | Max tabs | ⏭️ SKIP | Exact limit testing would affect running instance |
-
-### 1.7 Screenshots
-
-| # | Scenario | Result | Notes |
-|---|----------|--------|-------|
-| SS1 | Basic screenshot | ✅ PASS | Base64 JPEG returned (~21KB) |
-| SS2 | Raw screenshot | ✅ PASS | Raw JPEG bytes (~16KB) |
-| SS3 | Screenshot no tab | ⏭️ SKIP | Would need to close all tabs |
-
-### 1.8 JavaScript Evaluation
-
-| # | Scenario | Result | Notes |
-|---|----------|--------|-------|
-| E1 | Simple eval | ✅ PASS | `{"result":2}` |
-| E2 | DOM eval | ✅ PASS | `{"result":"Example Domain"}` |
-| E3 | Missing expression | ✅ PASS | `{"error":"expression required"}` |
-| E4 | Bad JSON | ✅ PASS | JSON parse error |
-| E5 | Eval no tab | ⏭️ SKIP | Would need to close all tabs |
-
-### 1.9 Cookies
-
-| # | Scenario | Result | Notes |
-|---|----------|--------|-------|
-| C1 | Get cookies | ✅ PASS | `{"cookies":[],"count":0}` |
-| C2 | Set cookies | ✅ PASS | `{"failed":0,"set":1,"total":1}` |
-| C3 | Get cookies no tab | ⏭️ SKIP | Would need to close all tabs |
-| C4 | Set cookies bad JSON | ✅ PASS | JSON parse error |
-| C5 | Set cookies empty | ✅ PASS | `{"error":"cookies array is empty"}` |
-
-### 1.10 Stealth
-
-| # | Scenario | Result | Notes |
-|---|----------|--------|-------|
-| ST1 | Stealth status | ✅ PASS | Score: 92 |
-| ST2 | Webdriver hidden | ✅ PASS | `{"result":null}` (undefined) |
-| ST3 | Chrome runtime present | ✅ PASS | `{"result":true}` |
-| ST4 | Plugins present | ✅ PASS | `{"result":3}` (>0) |
-| ST5 | Fingerprint rotate | ✅ PASS | Windows fingerprint endpoint responded |
-| ST6 | Fingerprint rotate random | ✅ PASS | Random fingerprint endpoint responded |
-| ST7 | Fingerprint no tab | ⏭️ SKIP | Would need to close all tabs |
-
----
-
-## Section 3: Multi-Agent Scenarios
-
-| # | Scenario | Result | Notes |
-|---|----------|--------|-------|
-| MA1 | Concurrent reads | ✅ PASS | Both tabs returned correct node counts (8, 8) |
-| MA2 | Concurrent navigates | ✅ PASS | Both navigations succeeded, no cross-talk |
-| MA3 | Tab isolation | ✅ PASS | Actions on separate tabs worked independently (scroll + press) |
-| MA4 | Concurrent actions | ✅ PASS | Both scroll actions succeeded concurrently |
-| MA5 | Ref collision | ✅ PASS | Same tab returned consistent refs (e0 == e0) |
-| MA6 | Rapid fire | ✅ PASS | 10/10 concurrent snapshots returned valid data |
-| MA7 | Tab limit | ✅ PASS | No limit enforced — tabs created successfully |
-| MA8 | No tabId default | ✅ PASS | Returns active tab snapshot (113 nodes) |
-
----
-
-## Go Unit Tests
-
-**Command:** `go test ./... -count=1`
-**Result:** ✅ **All PASS**
-
-All unit tests pass including config, handlers, snapshot, stealth, actions, middleware, session, and human-like input tests.
-
----
-
-## Go Integration Tests
-
-**Command:** `go test -tags integration -v`
-**Result:** **7 PASS, 1 FAIL, 1 SKIP**
-
-| Test | Result | Notes |
-|------|--------|-------|
-| TestStealthScriptInjected | ✅ PASS | `navigator.webdriver === undefined` |
-| TestCanvasNoiseApplied | ❌ FAIL | `toDataURL returned identical results — canvas noise not applied` |
-| TestFontMetricsNoise | ✅ PASS | TextMetrics proxy working |
-| TestWebGLVendorSpoofed | ⏭️ SKIP | WebGL not available in headless mode |
-| TestPluginsPresent | ✅ PASS | 3+ plugins |
-| TestFingerprintRotation | ✅ PASS | UA override working (warn: hardwareConcurrency redefine) |
-| TestCDPTimezoneOverride | ✅ PASS | Timezone spoofing works |
-| TestStealthStatusEndpoint | ✅ PASS | Score/level correct |
-
-### Failure Detail
-
-**TestCanvasNoiseApplied:** Canvas `toDataURL()` returns identical results on repeated calls. The canvas noise injection may not be working in headless Chromium. This is a known limitation — headless Chrome may use a software renderer that doesn't trigger the canvas noise path.
-
----
-
-## Notable Observations
-
-1. **Stealth score high (92)**: The stealth system is working well with most features properly implemented.
-
-2. **Canvas noise fails in headless** (integration test): `toDataURL` produces identical output. This is a known headless Chrome limitation.
-
-3. **Fingerprint rotation warning**: `Cannot redefine property: hardwareConcurrency` — non-fatal but logged.
-
-4. **No tab limits enforced**: Multi-agent tests show no limits on tab creation, which matches expected behavior.
-
-5. **Batch actions format**: The correct format requires `{"actions":[...]}` wrapper, not a raw array.
-
-6. **Multi-agent concurrency works well**: All 8 multi-agent scenarios passed, showing good concurrent request handling.
-
----
-
-## Verdict
-
-**v0.4.0 main branch is ready for pre-release.** Core functionality is solid across all endpoints with a 90.5% overall pass rate. The only significant issue is canvas noise in headless mode, which is a known Chrome limitation. All unit tests pass, and multi-agent concurrency works correctly. The stealth features are performing well with a high score of 92.
\ No newline at end of file
diff --git a/tests/v0.6.0-test-summary.md b/tests/v0.6.0-test-summary.md
deleted file mode 100644
index 64f79c3d..00000000
--- a/tests/v0.6.0-test-summary.md
+++ /dev/null
@@ -1,155 +0,0 @@
-# Pinchtab v0.6.0 — Test Summary
-
-**Date:** 2026-02-21
-**Tester:** Mario (manual verification)
-**Environment:** macOS Darwin 25.1.0 (ARM64), Docker 29.1.2, Go 1.26, clean Chrome profile
-
----
-
-## Results Overview
-
-| Test Plan | Passed | Failed | Skipped | Total |
-|-----------|--------|--------|---------|-------|
-| Core (TEST-PLAN.md) | 12 | 0 | 2 | 14 |
-| Docker (TEST-PLAN-DOCKER.md) | 18 | 0 | 4 | 22 |
-| **Total** | **30** | **0** | **6** | **36** |
-
-> ⚠️ Previous automated run reported false failures — the sub-agent tested against a stale Chrome profile with 33 tabs, causing CDP hangs. Clean profile works perfectly.
-
----
-
-## Core Test Plan (TEST-PLAN.md)
-
-### 1.1 Health & Startup
-
-| # | Test | Result | Notes |
-|---|------|--------|-------|
-| H1 | Health check | ✅ PASS | `{"status":"ok","tabs":1}` |
-| H2 | Startup headless | ✅ PASS | Launches, binds port, Chrome not visible |
-| H3 | Startup headed | ⏭️ SKIP | Headless-only test environment |
-| H4 | Custom port | ✅ PASS | `BRIDGE_PORT=9999` binds correctly |
-| H5 | Auth — no token | ✅ PASS | Returns `{"error":"unauthorized"}` |
-| H6 | Auth — with token | ✅ PASS | Returns 200 with Bearer token |
-| H7 | Graceful shutdown | ✅ PASS | Process exits, port released |
-
-### 1.2 Navigation
-
-| # | Test | Result | Notes |
-|---|------|--------|-------|
-| N1 | Basic navigate | ✅ PASS | `{"title":"Example Domain","url":"https://example.com/"}` |
-| N2 | Navigate returns title | ✅ PASS | BBC title returned correctly |
-
-### 1.3 Snapshot
-
-| # | Test | Result | Notes |
-|---|------|--------|-------|
-| S1 | Basic snapshot | ✅ PASS | 8 nodes, correct a11y tree |
-| S2 | Compact format | ✅ PASS | Markdown-style output, 1124 nodes on BBC |
-
-### 1.4 Text Extraction
-
-| # | Test | Result | Notes |
-|---|------|--------|-------|
-| T1 | Text extract | ✅ PASS | Clean text content returned |
-
-### 1.5 Actions
-
-| # | Test | Result | Notes |
-|---|------|--------|-------|
-| A1 | Click | ✅ PASS | `{"clicked":true}` |
-
-### 1.6 Other Endpoints
-
-| # | Test | Result | Notes |
-|---|------|--------|-------|
-| TB1 | List tabs | ✅ PASS | Correct JSON structure |
-| TB2 | Multi-tab | ✅ PASS | `newTab:true` creates new tabs, all listed |
-| E1 | JS evaluate | ✅ PASS | `{"result":"BBC - Home"}` |
-| SS1 | Screenshot | ✅ PASS | 242KB PNG returned |
-| C1 | Cookies | ✅ PASS | Cookie list returned with correct fields |
-| DL1 | Download | ⏭️ SKIP | Endpoint exists but returned empty in test |
-
----
-
-## Docker Test Plan (TEST-PLAN-DOCKER.md)
-
-### Image Structure
-
-| # | Test | Result | Notes |
-|---|------|--------|-------|
-| D1 | Build succeeds | ✅ PASS | Clean build, all layers cached on rebuild |
-| D2 | Image size | ✅ PASS | 1.05GB uncompressed (307MB compressed) |
-| D3 | Non-root user | ✅ PASS | `pinchtab` user |
-| D4 | Binary present | ✅ PASS | `/usr/local/bin/pinchtab` |
-| D5 | Chromium present | ✅ PASS | `/usr/bin/chromium-browser` |
-| D6 | No build artifacts | ✅ PASS | `/build` does not exist |
-
-### Container Startup & Health
-
-| # | Test | Result | Notes |
-|---|------|--------|-------|
-| D7 | Default startup | ✅ PASS | Container starts and stays running |
-| D8 | Health check | ✅ PASS | `{"status":"ok","tabs":1}` |
-| D9 | Custom port | ⏭️ SKIP | Not tested this run |
-| D10 | Auth in Docker | ✅ PASS | No token → 401, with token → 200 |
-| D11 | Graceful stop | ✅ PASS | Exit code 0 |
-
-### Core Functionality (in container)
-
-| # | Test | Result | Notes |
-|---|------|--------|-------|
-| D12 | Navigate | ✅ PASS | `{"title":"Example Domain"}` |
-| D13 | Snapshot | ✅ PASS | Full a11y tree returned |
-| D14 | Text extract | ✅ PASS | Clean text content |
-| D15 | Click | ✅ PASS | `{"clicked":true}` |
-| D16 | Multi-tab | ✅ PASS | 3 tabs created and listed |
-
-### Docker Compose
-
-| # | Test | Result | Notes |
-|---|------|--------|-------|
-| D20 | Compose up | ✅ PASS | Container starts, health OK |
-| D22 | Compose down + up | ✅ PASS | Clean lifecycle |
-
-### Persistence
-
-| # | Test | Result | Notes |
-|---|------|--------|-------|
-| D17-D19 | Volume persistence | ⏭️ SKIP | Not tested this run |
-
-### Container Behavior
-
-| # | Test | Result | Notes |
-|---|------|--------|-------|
-| D33 | Container logs | ✅ PASS | Startup info visible, no secrets leaked |
-| D34 | Signal forwarding | ✅ PASS | dumb-init forwards SIGTERM, clean exit |
-
-### Resource & Security
-
-| # | Test | Result | Notes |
-|---|------|--------|-------|
-| D26-D30 | Resource limits | ⏭️ SKIP | Not tested this run |
-
----
-
-## Dashboard Test Plan (TEST-PLAN-dashboard.md)
-
-> Not re-tested manually — sub-agent reported 10/10 pass, no reason to doubt.
-
----
-
-## Key Findings
-
-1. **Core browser automation works correctly** with a clean Chrome profile
-2. **Stale profiles with many tabs can cause CDP hangs** — the initial automated test used an existing profile with 33 tabs, causing all browser API calls to hang indefinitely. Worth investigating timeout/recovery.
-3. **Docker image is production-ready** — builds, runs, and serves all APIs correctly on both amd64 and arm64
-4. **Docker Compose works out of the box** with proper shm_size and seccomp settings
-5. **Auth works correctly** in both native and Docker modes
-
-## Recommendation
-
-**v0.6.0 is releasable.** All core functionality works. The stale-profile hang is a pre-existing edge case, not a regression.
-
----
-
-*Report generated: 2026-02-21 12:58 GMT*