Skills for Claude Code CLI such as full stack dev Cloudflare, React, Tailwind v4, and AI integrations.
Python aianthropicautomationclaude-codeclaude-skillscloudflaredevtoolsproductivityreactskillstailwindvite
ux-audit: a11y + perf budget + real-data + meta-check + optimistic rollback
Jeremy Dawesda3794373cac
diff --git a/plugins/dev-tools/commands/ux-audit.md b/plugins/dev-tools/commands/ux-audit.mdindex 1bcd1da9..b2255c9f 100644--- a/plugins/dev-tools/commands/ux-audit.md+++ b/plugins/dev-tools/commands/ux-audit.md@@ -1,12 +1,16 @@----description: Exhaustively audit a web app — threads, elements, visual polish (AI-tells), 8 scenarios, fix-and-verify loop+description: "Walk a live web app AS a real user — interaction-first methodology. Hard gates (console / network / layout-collapse), Persona Lock, Interaction Manifest enforcement, multi-pane stress, visual polish, perfection checklist, 9 scenarios, stress recipes. Verdict: Pass / Conditional Pass / Fail / Incomplete (no manifest = Incomplete)."argument-hint: "[optional: persona or scope, e.g. 'as a busy broker' or 'the dashboard only']"allowed-tools: "*"---Load the `ux-audit` skill and run the audit.-Single exhaustive mode. If $ARGUMENTS describes a persona ("as a busy broker", "first-time user"), adopt it. If $ARGUMENTS scopes the audit ("the dashboard", "just the settings flow"), scope to that area — still exhaustive within the scope.+The audit is interaction-first. It cannot produce a verdict without an Interaction Manifest proving real typing, clicking, sending, observing. A static DOM sweep terminates with verdict `Incomplete`.++Hard gates (cannot be downgraded): console errors / warnings = 0, network 5xx = 0, layout collapse at any tested viewport = 0. A console warning is High *minimum*. A 5xx is Critical *automatically*.++If $ARGUMENTS describes a persona ("as a busy broker", "first-time user"), lock it. If $ARGUMENTS scopes the audit ("the dashboard", "just the settings flow"), scope to that area — still exhaustive within the scope.URL is auto-detected from wrangler.jsonc or running dev server.@@ -14,3 +18,4 @@ Examples:- `/ux-audit`- `/ux-audit as a time-poor client logging in for the first time`- `/ux-audit the billing flow`+- `/ux-audit as an SME owner — multi-pane stress focus`diff --git a/plugins/dev-tools/skills/ux-audit/SKILL.md b/plugins/dev-tools/skills/ux-audit/SKILL.mdindex a71a1ec3..b975ab78 100644--- a/plugins/dev-tools/skills/ux-audit/SKILL.md+++ b/plugins/dev-tools/skills/ux-audit/SKILL.md@@ -1,6 +1,6 @@---name: ux-audit-description: "Walk through a live web app AS a real user to find usability + behavioural bugs that static reviews miss. REQUIRES proof of interaction (typing, clicking, sending, observing) before any verdict — a sweep that didn't interact terminates with verdict 'Incomplete'. Walks threads, exercises every element, runs the multi-pane stress matrix, visual polish sweep, component perfection checklist, scenario battery (10 scenarios), and stress recipes. Hard gates: console errors/warnings = 0, network 5xx = 0, layout collapse = 0. Each finding has reproduction steps, evidence path, and suspected code location. Trigger with 'ux audit', 'walkthrough', 'qa sweep', 'audit the app', 'dogfood this', 'check all pages', 'find what's broken', 'stress the UI'."+description: "Walk through a live web app AS a real user to find usability + behavioural bugs that static reviews miss. REQUIRES proof of interaction (typing, clicking, sending, observing) before any verdict — a sweep that didn't interact terminates with verdict 'Incomplete'. Walks threads, exercises every element, runs the multi-pane stress matrix, visual polish sweep, component perfection checklist, automated a11y (axe-core), pragmatic performance budget (LCP/CLS/INP), scenario battery (10 scenarios), and stress recipes including the real-flavour data battery. Hard gates: console errors/warnings = 0, network 5xx = 0, layout collapse = 0, axe Critical/Serious = 0, perf budget green. Audit-the-audit meta-check rejects rushed reports. Each finding has reproduction steps, evidence path, and suspected code location. Trigger with 'ux audit', 'walkthrough', 'qa sweep', 'audit the app', 'dogfood this', 'check all pages', 'find what's broken', 'stress the UI'."compatibility: claude-code-only---@@ -27,9 +27,9 @@ The audit ends in exactly one of:- **Pass** — Critical = 0, High = 0, all hard gates green, Interaction Manifest complete.- **Conditional Pass** — Critical = 0, High = 0, all hard gates green, but Medium/Low present.- **Fail** — at least one Critical or High finding, OR a hard gate red.-- **Incomplete** — Interaction Manifest missing required entries, or a phase wasn't run. Not legal to upgrade to Pass even if everything observed looked fine.+- **Incomplete** — Interaction Manifest missing required entries, a phase wasn't run, OR the audit-the-audit meta-check fires (manifest timestamps clustered < 0.5s apart, screenshots fewer than 2 × routes, console reads fewer than 1 × routes, Phase 3 took < 1m for an exhaustive audit). Not legal to upgrade to Pass even if everything observed looked fine.-If the work doesn't include a complete Interaction Manifest, the only legal verdict is **Incomplete**. "It looked OK" is not Pass.+If the work doesn't include a complete Interaction Manifest, the only legal verdict is **Incomplete**. "It looked OK" is not Pass. A clean Pass with implausible timings is rejected — the agent must redo the audit with real interaction.## Hard gates@@ -42,10 +42,18 @@ These auto-fail the audit. They cannot be downgraded.| Network 5xx | > 0 | Critical || Network 403 / 404 on authenticated pages | > 0 | High || Layout collapse at any tested viewport / pane combo | > 0 | High |+| axe-core Critical violations on any audited page | > 0 | Critical |+| axe-core Serious violations on any audited page | > 0 | High |+| LCP on representative route (pragmatic budget) | > 4.0s | High |+| CLS on representative route | > 0.25 | High |+| INP on representative route | > 500ms | High || Required Interaction Manifest entry missing | n/a | Incomplete |+| Manifest median gap between entries < 0.5s | n/a | Incomplete (didn't actually interact) |A console warning is High *minimum*. A 5xx is Critical *automatically*. There is no "Medium console error" — that category does not exist in this skill.+axe-core thresholds are run **per page** (>1 violation on any single page fails). Performance thresholds are run **once on a representative route** (per-page is overkill); pragmatic budget is well above broken, well below CWV-strict. Full thresholds + rationale in [references/performance-budget.md](references/performance-budget.md). Full a11y wiring + severity mapping in [references/a11y-automation.md](references/a11y-automation.md).+### Allowlist for known noiseSome apps have known-noisy console / network categories that aren't bugs (Sentry info logs in dev, browser-extension chatter, expected 401 on auth-check probes). The audit reads `.jez/audit-config.yml` (or `.json`) before Phase 3 and applies the allowlist when classifying findings. Allowlisted entries stay in the Interaction Manifest (transparency) but suppress from the findings count. The verdict block always shows both raw and allowlisted counts — `Console warnings: 3 (1 allowlisted, 2 reportable)`.@@ -319,6 +327,25 @@ Each checkbox in the report cites a proof artefact (screenshot, console line, DOFull checklist in [references/perfection-checklist.md](references/perfection-checklist.md).+### Automated accessibility (axe-core, mandatory)++Manual keyboard-only walks (Scenario 5) catch focus traps and tab-order. They miss ~80% of structural a11y bugs (heading skips, hover/focus contrast failures, missing aria-labels, role mismatches). axe-core covers that 80% in <1 second per page.++For every audited page:++1. Inject axe-core via CDN (one script tag).+2. Run `axe.run()` after the page settles.+3. Map violations → audit findings (axe `critical` → audit Critical, axe `serious` → audit High, etc).+4. Hard-gate: > 0 axe Critical OR > 0 axe Serious on any page = audit Fails.++Total runtime for a 16-route audit is ~16 seconds. Allowlist via `.jez/audit-config.yml` for builder-mode reference pages (Components, Style guide). Full snippet, severity mapping, and findings format in [references/a11y-automation.md](references/a11y-automation.md).++### Performance budget (pragmatic, mandatory)++Run the Performance API capture once on a representative route (the page real users hit most — usually dashboard or main work surface). Pragmatic thresholds (LCP < 4.0s, CLS < 0.25, INP < 500ms) sit well above broken and well below Google's CWV "Good" tier. CWV-strict is for landing pages and marketing teams; for app interiors that real users sit inside, pragmatic is the right bar.++Add to verdict block. Hard-gate any threshold breach. Diagnose with Chrome DevTools Performance trace (large hero, late font, heavy click handler, hydration cost). Full measurement snippet, throttling spec, and common offenders in [references/performance-budget.md](references/performance-budget.md).+## Phase 5 — Stress### Scenario Battery (10 scenarios)@@ -350,6 +377,7 @@ Beyond scenarios, run every relevant recipe in [references/stress-test-recipes.m| Offline mode | Retry / queue / dirty-state UX || Print stylesheet | Forgotten media query || High-contrast mode | Forced-colors media query handling |+| **Real-flavour data battery** (mandatory for any form-accepting app) | Validation that strips characters silently (apostrophe, accents, RTL); length truncation without warning; SQL/XSS canaries not escaped; file uploads that don't fit (.heic, 8000×8000 PNG, 50MB PDF). AI-built UIs are notoriously dev-data clean. |## Phase 6 — Verdict@@ -369,15 +397,50 @@ Hard Gates:Network 5xx: [count] [GREEN/RED]Network 403/404 auth: [count] [GREEN/RED] ([N] allowlisted)Layout collapse: [count] [GREEN/RED]+ axe-core Critical: [count] [GREEN/RED] ([N] allowlisted)+ axe-core Serious: [count] [GREEN/RED] ([N] allowlisted)++Performance (sampled on /[representative-route]):+ LCP: [N]s [GREEN/RED] (threshold 4.0s)+ CLS: [N] [GREEN/RED] (threshold 0.25)+ INP: [N]ms [GREEN/RED] (threshold 500ms)Findings:Critical: [count]High: [count]Medium: [count]Low: [count]++Time per phase:+ Phase 3 (walkthrough): [N]m ← exhaustive ≥ 5m+ Total: [N]m++Manifest plausibility:+ Entries: [N] ← ≥ 6 per audited route+ Median gap: [N]s ← if < 0.5s, agent didn't actually+ interact; verdict → Incomplete+ Screenshots: [N] ← ≥ 2 per audited route═══════════════════════════════════════════════════════════```+### Audit-the-audit meta-check++The verdict block's "Time per phase" + "Manifest plausibility" rows are not decoration — they're a forcing function against the agent (or a rushed human) claiming Pass without doing the work.++Auto-Incomplete triggers:++| Signal | Implies | Action |+|---|---|---|+| Phase 3 took < 1m for an exhaustive audit | Agent skipped the walkthrough | Verdict → Incomplete |+| Median gap between manifest entries < 0.5s | Entries logged in bulk, no real interaction | Verdict → Incomplete |+| Screenshots fewer than 2 × routes audited | Most pages didn't get before/after captures | Verdict → Incomplete |+| Console reads fewer than 1 × routes audited | Pages weren't checked for warnings | Verdict → Incomplete |+| Manifest first→last span < 5m for exhaustive | Whole audit was rushed | Verdict → Incomplete |++These are non-negotiable. A clean Pass with implausible timings is rejected — the agent must redo the audit with real interaction.++The reviewer (the human supervising the audit, or you reading the report later) can spot-check: do timestamps in the manifest cluster suspiciously? Do screenshot file mtimes align with manifest timestamps? Did the agent actually press keys and wait for state changes, or did it batch-emit a fictional log?+### Findings format (mandatory per finding)Every finding must include:@@ -493,6 +556,8 @@ For audits expected to run > 30 minutes, set up a 15-min `/loop` check-in alongs| Report format, verdict block, severity rubric, reproduction-step format | [references/report-template.md](references/report-template.md) || Browser tool commands and viewport notes | [references/browser-tools.md](references/browser-tools.md) || Round-trip workflow integrity (A→B→A pattern) | [references/round-trip-workflows.md](references/round-trip-workflows.md) |+| Automated accessibility (axe-core injection + severity mapping) | [references/a11y-automation.md](references/a11y-automation.md) |+| Pragmatic performance budget (LCP/CLS/INP via Performance API) | [references/performance-budget.md](references/performance-budget.md) || Long-running audit supervision via 15-min `/loop` | [references/long-running-check-in-pattern.md](references/long-running-check-in-pattern.md) |## Tipsdiff --git a/plugins/dev-tools/skills/ux-audit/references/a11y-automation.md b/plugins/dev-tools/skills/ux-audit/references/a11y-automation.mdnew file mode 100644index 00000000..741714e4--- /dev/null+++ b/plugins/dev-tools/skills/ux-audit/references/a11y-automation.md@@ -0,0 +1,143 @@+# Automated Accessibility (axe-core)++Manual keyboard-only walks (Scenario 5) catch focus traps and tab-order problems. They miss roughly 80% of structural a11y bugs — heading skips, contrast at hover/focus state, missing aria-labels, dynamic-content announcements, role mismatches. axe-core covers that 80% in <1 second per page.++This is **mandatory in Phase 4 (Polish)** for every audited page.++## The protocol++For every page audited:++1. Navigate to the page.+2. Inject axe-core (single CDN script tag).+3. Run `axe.run()` in the browser context.+4. Capture violations array.+5. Map severity → audit severity (table below) and log findings.++```js+// In the browser eval / playwright-cli / chrome MCP+await page.evaluate(async () => {+ // Inject axe-core if not present+ if (!window.axe) {+ await new Promise((resolve, reject) => {+ const s = document.createElement('script')+ s.src = 'https://cdnjs.cloudflare.com/ajax/libs/axe-core/4.10.0/axe.min.js'+ s.onload = resolve+ s.onerror = reject+ document.head.appendChild(s)+ })+ }+ const results = await window.axe.run()+ return {+ violations: results.violations.map(v => ({+ id: v.id,+ impact: v.impact,+ description: v.description,+ help: v.help,+ helpUrl: v.helpUrl,+ nodes: v.nodes.length,+ sample: v.nodes[0]?.html?.substring(0, 200),+ })),+ incomplete: results.incomplete.length,+ passes: results.passes.length,+ }+})+```++## Severity mapping++axe reports `impact` per violation. Map to audit severity:++| axe `impact` | Audit severity | Hard-gate? |+|---|---|---|+| `critical` | Critical | YES — audit auto-fails |+| `serious` | High | YES — audit auto-fails |+| `moderate` | Medium | No — finding, not gate |+| `minor` | Low | No — finding, not gate |++## Hard-gate threshold++Add to the SKILL.md hard gates table:++| Gate | Threshold | Severity if violated |+|---|---|---|+| axe-core Critical violations | > 0 | Critical |+| axe-core Serious violations | > 0 | High |++A page with > 0 axe Critical or > 0 axe Serious cannot pass the audit. axe Moderate / Minor accumulate as Medium / Low findings respectively.++## Allowlist for known-noise++Some axe rules fire on intentional design choices that aren't real bugs (e.g. `landmark-one-main` on a chrome-less embed page, `region` on a wrapper that intentionally has no landmark). Allowlist via `.jez/audit-config.yml`:++```yaml+axe:+ ignore_rules:+ - landmark-one-main # iframe-style embed pages+ - region # legacy wrapper, refactor scheduled 2026-Q3+ ignore_pages:+ - /dashboard/components # builder-mode, intentional+ - /dashboard/style-guide # builder-mode, intentional+```++Default with no config: every axe Critical / Serious is a finding. Allowlist is opt-in.++## Findings format++Each axe violation becomes a finding in the report:++```+ID: H-N+Layer: Visual / Interaction (a11y)+Severity: High (axe Serious)+Surface: /dashboard/inbox++axe rule: color-contrast+ Description: Elements must have sufficient color contrast (WCAG AA: 4.5:1 normal, 3:1 large)+ Help: https://dequeuniversity.com/rules/axe/4.10/color-contrast+ Nodes affected: 3+ Sample: <button class="btn-secondary">Mark all read</button>+ Computed contrast: 3.2:1 (text-muted-foreground on bg-muted)+ Required: 4.5:1++Reproduce:+ 1. Navigate to /dashboard/inbox+ 2. Inspect "Mark all read" button (or any .btn-secondary)+ 3. Read computed colour ratios in DevTools++Suspected location: src/components/ui/button.tsx — secondary variant; or the+ --muted-foreground token in src/styles/globals.css+Suggested fix: bump --muted-foreground from oklch(0.55 0 0) to oklch(0.45 0 0)+ or change secondary variant to use --foreground.+```++## What axe doesn't catch++axe is structural. It misses:++- Whether the screen-reader announcement actually conveys meaning+- Whether dynamic content (toasts, live updates) announces to AT+- Whether keyboard tab-order makes sense (axe checks focusability, not order quality)+- Whether copy is comprehensible to assistive tech users++Those still require Scenario 5 (Keyboard Only) + manual screen-reader testing for high-stakes apps. Don't drop those in favour of axe — combine.++## Run once per page++Don't loop axe per element. One `axe.run()` per page, after the page has settled (wait for `networkidle` or 1.5s). Re-run after major state changes (modal opened, drawer expanded) since aria attributes shift.++For a 16-route audit, total axe runtime is ~16 seconds. Cheap.++## Skipping pages++For builder-mode reference pages (Components, Style guide), axe is overkill — the page exists to display every component variant including disabled / error / contrast-test states that intentionally fail strict rules. Add to `ignore_pages` in the audit config.++For genuinely user-facing pages, no skipping. Even auth pages (sign-in, sign-up) audit cleanly.++## Companion: keyboard-only manual sweep++axe + Scenario 5 (Keyboard Only) is the right pair. axe catches the structural 80%; Scenario 5 catches the experiential 20% (tab order quality, focus visibility under custom themes, escape-key behaviour, focus trap in modals).++If you only have time for one, do axe (more bugs per minute). If the app is high-stakes (legal/medical/finance), do both.++**Last Updated**: 2026-04-30diff --git a/plugins/dev-tools/skills/ux-audit/references/audit-config.md b/plugins/dev-tools/skills/ux-audit/references/audit-config.mdnew file mode 100644index 00000000..f4b3ec24--- /dev/null+++ b/plugins/dev-tools/skills/ux-audit/references/audit-config.md@@ -0,0 +1,166 @@+# Audit Config — Allowlist for known noise++Some apps have known-noisy console / network categories that aren't bugs:++- Sentry info logs in dev (`[Sentry] DSN not configured`)+- Third-party CDN deprecation chatter the team can't fix+- Expected 401s on auth-check probes (e.g. `GET /api/auth/get-session 401` on first page load)+- Browser-extension chatter from Lighthouse / React DevTools / Vue DevTools+- Service-worker registration warnings in dev mode++Without an escape hatch the audit drowns the report in non-findings, and the agent ends up downgrading legitimate hard gates because "this looks like the usual noise". v2's allowlist is the principled escape hatch: opt-in per project, transparent in the verdict, easy to audit.++## File location++The audit reads the first match in this order, before Phase 3 starts:++1. `.jez/audit-config.yml`+2. `.jez/audit-config.json`+3. `audit-config.yml` (project root, only if `.jez/` doesn't exist)++If no file is found, default behaviour applies: every console error / warning is a finding, every 4xx on an auth page is a finding. The allowlist is opt-in per project, not a global escape hatch.++## File format++```yaml+# .jez/audit-config.yml+console_allow:+ - "[Sentry] DSN not configured" # dev-only info log+ - "Lighthouse Tools is loaded" # browser extension chatter+ - "/^Download the React DevTools/" # leading + trailing slash = regex+ - "[HMR] Waiting for update signal" # vite dev-mode noise++network_allow:+ - "GET https://o*.ingest.sentry.io" # Sentry probe — 401 expected when DSN missing+ - "GET /api/auth/get-session 401" # unauth-on-load probe pattern+ - "/^GET .*\\.hot-update\\.json/" # vite HMR check requests++# Optional — affordable noise floors per surface+surface_overrides:+ - surface: "/dashboard/admin"+ console_warnings_allowed: 0+ note: "Admin pages must stay clean — no exceptions"+ - surface: "/dashboard/dev-playground"+ console_warnings_allowed: 5+ note: "Dev-only sandbox, intentionally chatty"+```++JSON equivalent (same keys, same semantics):++```json+{+ "console_allow": [+ "[Sentry] DSN not configured",+ "/^Download the React DevTools/"+ ],+ "network_allow": [+ "GET /api/auth/get-session 401"+ ]+}+```++## Allowlist semantics++| Pattern syntax | Match type | Example |+|---|---|---|+| `"plain string"` | Substring match against the message / URL | `"VoiceClient: protocol mismatch"` matches anywhere in the message |+| `"/regex/"` | Full regex match (delimiter slashes required) | `"/^\\[Sentry\\]/"` matches messages starting with `[Sentry]` |+| `"GET /path 403"` for network | Method + URL substring + status | Matches a `GET` to any URL containing `/path` returning `403` |++Allowlisted entries are still recorded in the Interaction Manifest (transparency) but suppressed from the findings count.++## Verdict block transparency++The Verdict block in the report ALWAYS shows raw counts AND allowlisted counts so the reader can audit the audit:++```+Hard Gates:+ Console errors: 3 RED ✗ (1 allowlisted, 2 reportable)+ Console warnings: 8 GREEN ✓ (8 allowlisted, 0 reportable)+ Network 5xx: 0 GREEN ✓+ Network 403/404 auth: 4 GREEN ✓ (4 allowlisted, 0 reportable)+ Layout collapse: 0 GREEN ✓+```++If the reader thinks an allowlisted entry shouldn't be allowed, they can review `.jez/audit-config.yml` and contest the entry — every entry should have a one-line comment explaining *why* it's allowed.++## When to add an allowlist entry++Three legitimate reasons:++1. **Truly out of the team's control** — third-party CDN, browser extension, dev-only build artifact+2. **Deliberate dev-only behaviour** — Sentry probe in dev mode, HMR signal, debug log behind a flag+3. **Documented expected pattern** — auth probe that's expected to 401 on first load before sign-in++NOT legitimate reasons:++- "It's been like this for ages" → fix it or escalate+- "It only happens in this rare case" → investigate the rare case first+- "Tests are flaky" → fix the test or remove the warning, don't allowlist+- "We don't know what's causing it" → don't allowlist unknown noise; investigate++When you find yourself wanting to allowlist something for the first time on a project, add it to the file with a one-line comment explaining *why* it's allowed. Future audits should be able to re-justify each entry.++## Audit-the-allowlist (quarterly)++Every 4-6 weeks, re-evaluate the allowlist:++1. For each entry, ask: is the upstream cause still present?+2. If the upstream cause is fixed, remove the entry — that's a regression gate now active again+3. If the entry has expanded scope ("we added a few more variants"), tighten it back down+4. Audit the comments — are they still accurate?++Stale allowlists hide real bugs. The discipline mirrors how teams manage `.eslintignore` or `// eslint-disable` comments — every line should have a reason and a periodic review.++## Surface overrides (advanced)++Some apps have surfaces with materially different noise profiles. Examples:++- An admin dashboard that *must* stay perfectly clean+- A dev playground / sandbox surface where warnings are expected+- A demo / showcase area that runs a noisy third-party widget++The `surface_overrides` block lets you tune noise floors per route pattern:++```yaml+surface_overrides:+ - surface: "/dashboard/admin"+ console_warnings_allowed: 0+ - surface: "/dashboard/dev-playground"+ console_warnings_allowed: 5+ - surface: "/embed/showcase"+ console_warnings_allowed: 3+ note: "third-party demo widget — see issue #123"+```++When the audit visits a surface that matches `surface_overrides[].surface`, it uses the override threshold instead of the default `0`. The verdict block notes which override applied.++Surface overrides are stricter than allowlists — they allow N noise items without naming them. Use sparingly, prefer named allowlists.++## Cross-project re-use++If multiple projects in a team share the same noise patterns (Jezweb's better-auth + Sentry stack, for example), maintain a shared `audit-config-base.yml` in `~/Documents/.jez/playbooks/` and have project-local `.jez/audit-config.yml` files extend or override it.++A simple include pattern:++```yaml+# .jez/audit-config.yml+extends: ~/Documents/.jez/playbooks/audit-config-base.yml+console_allow:+ # project-specific additions+ - "[CustomComponent] missing prop X"+```++(The audit reads `extends` paths and merges. Conflicts: project-local wins.)++## Default behaviour without a config file++If no audit-config exists:++- Every console error during walkthrough = Critical finding+- Every console warning during walkthrough = High finding+- Every 5xx = Critical+- Every 403/404 on an authenticated page = High+- Layout collapse at any tested viewport = High++This is the strict default. Add an audit-config only when the strict default is producing too many false positives to act on.diff --git a/plugins/dev-tools/skills/ux-audit/references/interaction-manifest.md b/plugins/dev-tools/skills/ux-audit/references/interaction-manifest.mdnew file mode 100644index 00000000..fb63c2a1--- /dev/null+++ b/plugins/dev-tools/skills/ux-audit/references/interaction-manifest.md@@ -0,0 +1,210 @@+# Interaction Manifest++The Interaction Manifest is the proof that the walkthrough actually walked. Without it, the audit cannot produce a verdict — the only legal output is **Incomplete**.++This file specifies what counts as a complete manifest, the template, the replay protocol when a manifest entry doesn't match expected behaviour, and worked examples.++## Why this exists++The previous version of ux-audit had a "Walkthrough" mode but didn't enforce it. In practice, agents drifted to sweep mode — query the DOM, read text, move on — because it's faster and feels productive. That mode is blind to behavioural bugs by definition.++The 2026-04-29 vite-flare-starter audit failure proved the cost: six catastrophic bugs went live (Send button doesn't clear input, @-mention doubles the handle, vertical-text-stacking in spaces, etc.) while the audit said "no Critical issues". Every one of those bugs only surfaces under interaction.++The manifest closes that gap. It's a non-negotiable proof requirement. Skipping it means the audit terminates with `Incomplete`.++## What counts as "complete"++A manifest is complete when, for every page audited, all six required entry types are logged with proof:++| Required entry | What it looks like | Proof artefact |+|---|---|---|+| **Type into ≥ 1 input** | Real text, not just clicked | `textarea.value` after typing, screenshot |+| **Trigger ≥ 1 primary action** | Send / Save / Submit / Create / Publish | Network request fired, screenshot before + after |+| **Open ≥ 1 modal or detail pane** | Click a row, open a thread, open a settings panel | Screenshot of opened state |+| **Console read after primary action** | `read_console_messages` call | Output captured (0 warnings or list of warnings) |+| **Screenshot before AND after primary action** | Two screenshots, ideally same viewport | Files written, paths logged |+| **Verify expected post-action state** | Input cleared, success toast, route change, list updated | Assertion logged with selector + expected value |++Six types per page, one row per check. Multi-pane stress adds more entries; scenarios add more entries. The minimum is six per audited route.++## Manifest template++```+INTERACTION MANIFEST — /dashboard/spaces/marketing-pod+ Persona: SME owner, time-pressed, low tech comfort+ Viewport: 1280×800 (desktop default for this persona)+ Panes open: sidebar, members, thread++ [✓] 14:32:01 TYPE Typed "@assistant test" into message input+ Selector: textarea[placeholder*="message"]+ Result: textarea.value === "@assistant test"++ [✓] 14:32:03 PICK Picked @assistant from autocomplete+ Selector: li[data-mention-id="assistant"]+ Screenshot: .jez/audit-evidence/spaces-after-pick.png++ [✓] 14:32:05 SUBMIT Clicked Send+ Selector: button[aria-label="Send"]+ Screenshot before: .jez/audit-evidence/spaces-before-send.png+ Screenshot after: .jez/audit-evidence/spaces-after-send.png+ Network: POST /api/messages → 200 (87ms)++ [✓] 14:32:06 ASSERT Verified input cleared within 1000ms+ Assertion: textarea.value === ""+ Result: PASSED (cleared in 142ms)++ [✓] 14:32:08 ASSERT Verified message appeared in transcript+ Assertion: [data-message-id] count increased by 1+ Result: PASSED (count: 12 → 13)++ [✓] 14:32:12 OPEN Opened thread on the new message+ Selector: [data-message-id="msg-13"] [data-thread-trigger]+ Screenshot: .jez/audit-evidence/spaces-thread-open.png++ [✓] 14:32:13 ASSERT Verified main column width ≥ 200px after thread open+ Assertion: main.getBoundingClientRect().width >= 200+ Result: FAILED (width: 184px) ← FINDING H-2++ [✓] 14:32:14 CONSOLE Read after thread open+ Errors: 0+ Warnings: 1 ← FINDING H-1+ Warning: "VoiceClient: protocol mismatch (1.2 vs 1.4)"++ [✓] Network requests inventoried for the page session+ 5xx: 0 403/404 (auth pages): 0 Total: 8++ ─────────────────────────────────────────────────────────────────+ Required entries: 6 / 6 ✓+ Findings produced from this manifest: 2 (H-1 console, H-2 layout)+```++## Required entry types in detail++### TYPE+- Real text into an input. Not just a click on the input.+- For password fields, type a fake password (something like `audit-test-123!`).+- For email fields, type a valid-format fake address.+- For search inputs, type something likely to match (or `zzzzz` to trigger empty state).+- Verify the input received the text (`getByRole('textbox').toHaveValue(...)`).++### PICK+- Optional but common: dropdown selection, autocomplete pick, file upload, date picker, mention picker.+- Required if the page has any picker/combobox/autocomplete that's part of the primary flow.+- Verify the picked value is reflected in the form / display.++### SUBMIT+- The primary action: Send, Save, Submit, Create, Publish, Pay, Share, Send invitation.+- Click it. Watch the network, watch the DOM.+- Capture screenshot before AND after.+- Capture the network request: URL, method, status code, latency.++### OPEN+- Click into a row, open a modal, open a detail pane, open a thread, open a settings panel.+- Captures the "what happens after this lands" view.+- Required because most layout / pane interaction bugs are only visible after opening.++### ASSERT+- Each ASSERT is a yes/no check on observed state.+- Common assertions:+ - Input cleared after submit+ - Success toast appeared (`.toast`, `[role="status"]`, etc.)+ - Route changed (URL pathname check)+ - List item count increased / decreased+ - Loading spinner appeared during action+ - Loading spinner disappeared after action+ - Error toast appeared on invalid input+ - Pane width ≥ minimum (200px is a common floor)+- Failed assertions become findings.++### CONSOLE+- After every SUBMIT (and ideally every state change), read the console.+- Tool: `mcp__claude-in-chrome__read_console_messages` or Playwright `page.on('console', ...)`.+- Any warning or error becomes a finding (Hard Gate).++### NETWORK+- Inventory at the end of each page session.+- Status code distribution: 2xx, 3xx, 4xx, 5xx counts.+- Any 5xx = Critical. Any 403/404 on an authenticated page = High.++## Replay protocol — what to do when an assertion fails++When an ASSERT fails, the finding workflow:++1. **Don't move on.** That's a behavioural bug surfacing right now.+2. **Capture the failure state**: screenshot, DOM at the failure point, network log, console.+3. **Repeat the action** — does the bug reproduce? If yes, it's stable. If no, capture the variation.+4. **Vary one input**: type different text, click in different order, change viewport. Does the bug always happen, or only with specific input?+5. **Check the underlying code** if accessible — `Read` the relevant file, identify the suspected location.+6. **Write the finding** with full reproduction steps, evidence path, suspected location, suggested fix.+7. **Continue the manifest** with the rest of the required entries — don't skip them just because one failed.++A page can have multiple findings; the manifest captures all of them in order.++## Example manifest entries for common page types++### List page (clients, projects, messages)+- TYPE into search+- ASSERT search filters the list+- OPEN one item (click row)+- ASSERT detail pane / detail page loaded+- CONSOLE read++### Form page (settings, create new X)+- TYPE into every required field with realistic data+- TYPE into one optional field+- PICK any required dropdown+- SUBMIT (Save / Create)+- ASSERT success toast OR error toast appeared+- ASSERT route changed (or stayed, depending on intent)+- CONSOLE read++### Conversation / thread page+- TYPE a message+- SUBMIT (Send)+- ASSERT input cleared+- ASSERT message appeared in transcript+- OPEN thread on message+- ASSERT thread pane opened, main column width ≥ 200px (multi-pane stress!)+- CONSOLE read++### Dashboard (multi-widget)+- For each widget: read content, screenshot, OPEN any drill-down+- TYPE into any inline filter / search+- CONSOLE read after each interaction (dashboards are notorious for racy data fetches)++## Interaction Manifest as a coverage metric++At the end of the audit, publish:++```+INTERACTION COVERAGE+ Pages audited: 14+ Required entries logged: 84 / 84+ Pages with complete manifest: 14 / 14+ Pages with incomplete manifest: 0+```++If any page has < 6 required entries, that page is `Incomplete` and the overall verdict is `Incomplete` — even if every observed interaction passed.++## Anti-patterns++Things that look like manifest entries but aren't:++- "Read the page text" — not an interaction. Doesn't count.+- "Hovered over the menu" — counts as a state change but doesn't satisfy SUBMIT requirement.+- "Clicked the menu open" — only counts if the menu IS the primary action; otherwise it's an OPEN.+- "Took a screenshot" — supporting evidence, not an entry on its own.+- "Read the source code" — useful for finding suspected location but doesn't replace interaction.++If your manifest is full of `READ`, `INSPECT`, `QUERY`, you've drifted to sweep mode. Stop, restart with TYPE.++## How this maps to the verdict++| Manifest state | Allowed verdicts |+|----------------|------------------|+| Complete (≥ 6 entries per page, all phases run) | Pass / Conditional Pass / Fail |+| Incomplete on any page | Incomplete (cannot upgrade to Pass) |+| Console hard gate breached | Fail (cannot be Pass / Conditional) |+| Network 5xx hard gate breached | Fail (Critical) |++Hard gates auto-fail. Incomplete manifest auto-blocks Pass. Together they make "audit said clean while bugs were live" structurally difficult.diff --git a/plugins/dev-tools/skills/ux-audit/references/live-interaction-smoke.md b/plugins/dev-tools/skills/ux-audit/references/live-interaction-smoke.mdnew file mode 100644index 00000000..59fc5fe1--- /dev/null+++ b/plugins/dev-tools/skills/ux-audit/references/live-interaction-smoke.md@@ -0,0 +1,128 @@+# Live Interaction Smoke++Code reading verifies a button exists and has an `onClick`. It does not verify that clicking the button actually **does something observable**. Bugs of this shape — *"the handler runs, fires a call into an SDK, but the flow never completes"* — are invisible to static analysis and require a live click + network check.++## The protocol++For every interactive control on every page audited:++1. **Click it.** Pointer moves, element highlights, click lands.+2. **Watch the Network tab.** Did a request fire? To the right URL? Correct method + body shape?+3. **Watch the DOM.** Did something visibly change — new element, removed element, state transition (loading spinner, toast, route change)?+4. **If nothing changed in (2) or (3), that's a bug.** The control LOOKS alive but isn't doing its job. Log it.++This is a Hard Gate during Phase 3 walkthrough — silent-failure controls produce findings automatically, no severity downgrade.++## Known control categories that silently fail++| Control category | Silent-failure mode | Required check |+|---|---|---|+| **Approve / Deny buttons on tool-call cards** | Handler fires but server never hears about it (SDK needs a separate "send on state change" callback). See `rules/ai-sdk-tool-approval-autosubmit.md`. | Network: POST to approval endpoint with the decision payload. |+| **"Connect X" OAuth buttons inside dialogs** | `window.open()` silently popup-blocked when click originates in a modal. Must use `window.location.href`. See `rules/oauth-popup-blocked-in-dialogs.md`. | Verify navigation actually starts (URL bar changes or new tab opens). |+| **Save / Update buttons on forms with async validation** | Button disables during mutation but the mutation itself silently 5xx'd. No toast, no error state, form just sits there. | Network: capture response. DOM: success or error toast within 5s. |+| **Delete / Archive actions** | Optimistic UI removes the row but server rejected — after refresh, the row is back. | Refresh page, verify item still gone. |+| **Pagination / "Load more" buttons** | Fires request but response empty due to off-by-one offset. | Verify item count actually grows. |+| **Filter chips on list views** | Query param updates but query key doesn't — TanStack Query / SWR serves stale cached results. | Verify list contents change after filter applied. |+| **"Reply" / "Forward" in email-style UIs** | Opens compose pane but Message-ID headers not set — reply threads orphan in recipient's inbox. | Inspect outgoing payload for thread headers. |+| **Search box** | Updates URL but no debounced fetch fires. | Type query, verify network request sent within 500ms. |+| **File upload** | Drop zone accepts file but upload silently fails on size / type / auth. | Capture upload network call, verify 2xx. |+| **Mention / autocomplete pickers** | Selection inserts the value twice (once from typing, once from picker click). | After picking, count mention-pills in input — should be 1. |+| **Send / Submit on chat-style inputs** | Server accepts but client doesn't clear the input. | After submit, verify input value === ''. |+| **Theme switcher / dark mode toggle** | Updates state but doesn't persist; reload reverts. | Toggle, refresh, verify state survived. |+| **Notification dismiss** | Hides locally but server doesn't mark as read. | Refresh, verify notification stays dismissed. |+| **"Try again" / Retry on error states** | Re-fires but with same stale params (the error params, not fresh). | Capture retry call payload. |+| **Cross-page mutation (A→B mutates, return to A)** | Mutation on B invalidates only B's query key; A's parent query is stale on return. Looks like data loss to the user — they retry or give up. See `references/round-trip-workflows.md`. | Walk the round-trip; verify A reflects new state without reload. |+| **Header badge / unread count after action elsewhere** | Bell-pip / pending-tab-count consumed by `['notifications']` etc., but the action that should decrement only invalidates its local list. | After every list mutation, verify the relevant header badge updates. |++## SDK contract checks++When the page uses a third-party SDK with its own state model, verify the SDK's required options are passed. Silent failures usually trace to an undocumented-but-required option.++| SDK | Option that silently breaks behaviour if missing |+|---|---|+| `@ai-sdk/react` useChat with `needsApproval: true` tools | `sendAutomaticallyWhen: lastAssistantMessageIsCompleteWithApprovalResponses` |+| `@ai-sdk/react` useChat with custom transport | `prepareSendMessagesRequest` reading latest refs (otherwise pinned to initial values) |+| better-auth `createAuthClient` | `sessionOptions.refetchOnWindowFocus: false` for SPAs that route on session state |+| TanStack Query `QueryClient` | `refetchOnWindowFocus: false` if your app redirects on empty query results |+| TanStack Query `useQuery` | `queryKey` includes ALL filter params (otherwise stale results) |+| TanStack Query `useMutation` | `onSuccess` / `onSettled` invalidates EVERY query key that consumes the mutated data (parent lists, header badges, related views — not just the local list). The most common silent failure across pages. |+| React Router v7 `createBrowserRouter` | `loader` / `action` defined for routes that need data (not just component) |+| Radix Dialog | `modal: true` + `onEscapeKeyDown` handler if Escape should do more than close |+| Radix Select | `value` prop wired to controlled state (uncontrolled + controlled mix breaks) |+| zodResolver | `as any` around schema if using Zod v4 and resolver is older — silent validation miss |+| Stripe Elements | `mode: 'payment'` (or `'setup'` / `'subscription'`) — wrong mode silently mints wrong intents |+| `react-hook-form` | `mode: 'onBlur'` for blur-validation; default `'onSubmit'` won't show inline errors |++**If the page uses an SDK not on this list**, spend 2 minutes reading its `useX` export's options. Anything named `*On*Change`, `*On*Finish`, `*SendAutomatically*`, `*RefetchOn*`, or `*Configure*` is a prime suspect for "silent failure because it's undefined."++## Optimistic-UI rollback verification (mandatory for list mutations)++The catalogue above mentions "Optimistic UI commits, server rejects, no rollback" as a Critical severity. The protocol below forces the failure scenario so the audit actually exercises the rollback path — not just the happy path.++For every mutation that uses optimistic UI (TanStack Query `onMutate` setQueryData / setState in a handler / etc), force a server failure and verify the rollback:++```+1. Identify the optimistic mutation (look for setQueryData in onMutate, or+ immediate state updates in click handlers).+2. Block the underlying network request — Playwright route override:+ await page.route('**/api/inbox/*', route =>+ route.fulfill({ status: 500, body: 'Forced 500 for audit' })+ )+3. Trigger the action.+4. Verify:+ - UI updates optimistically (row removed / status changed / value updated)+ - After ~1s, UI rolls back to the pre-mutation state (row reappears /+ status reverts / value restored)+ - Error toast / alert appears+ - The user knows the action failed++If the UI rolls back BUT no error toast: Medium finding (silent failure).+If the UI does NOT roll back: Critical finding (looks succeeded, server says+no — re-loading reveals the lie).+If the UI rolls back AND toast appears: Pass.+```++Apply this check to: bulk-mark-read in inbox, approve/reject in approvals, star/unstar lists, delete actions, drag-and-drop reorder, edit-in-place fields. Anywhere a mutation completes faster than network round-trip.++For the `429 / rate-limit` variant — same pattern, return 429 + retryable error. Verify the UI surfaces "rate limited, try again in N seconds" cleanly.++## Investigation workflow++When a click produces no observable change:++1. Capture network tab — did a request fire? If no → frontend issue. If yes → check status / payload.+2. Capture console — was there an error or warning? Often the SDK logs the missing option here.+3. Inspect the element — is `onClick` actually wired? React DevTools → check props.+4. Read the source for the handler — is it conditional on something?+5. Check for SDK contract — is the page using one of the SDKs above? Check options.++Log the finding with:+- Reproduction steps (click X, observe Y did not happen)+- Network capture (or absence of network call)+- Console output+- Suspected code location+- Suggested fix (typically: SDK option, callback wire-up, or state lift)++## Severity guide++| Symptom | Severity |+|---------|----------|+| Click does nothing AND user has no feedback | Critical |+| Click does network call, server 5xx, no error UI | Critical |+| Optimistic UI commits, server rejects, no rollback | Critical |+| Click does something but logs warning | High (auto via console budget) |+| Click works but no success toast | Medium (feedback gap) |+| Click works but slight delay before feedback | Low (polish) |++The Hard Gate stays: any console error or warning during a click handler = High minimum.++## Coverage publication++Publish at the end of Phase 3:++```+LIVE INTERACTION SMOKE COVERAGE+ Controls tested: 47 of 47 inventoried+ Silent failures found: 2 (both High — see findings H-3, H-4)+ SDK contracts verified: @ai-sdk/react ✓, better-auth ✓, TanStack Query ✓+```diff --git a/plugins/dev-tools/skills/ux-audit/references/multi-pane-stress.md b/plugins/dev-tools/skills/ux-audit/references/multi-pane-stress.mdnew file mode 100644index 00000000..432d830f--- /dev/null+++ b/plugins/dev-tools/skills/ux-audit/references/multi-pane-stress.md@@ -0,0 +1,216 @@+# Multi-Pane Stress++For apps with collapsible UI — sidebars, members panels, thread asides, drawers, sheets, info rails — the worst layout bugs hide in pane-overlap zones.++The 2026-04-29 vite-flare-starter vertical-text-in-spaces bug only manifested at viewport width 1024-1280px with all three panes open simultaneously. A single-viewport audit (even at the standard 1440px) saw nothing. Multi-pane stress is the only phase that catches this class.++## The matrix++For every app with > 1 collapsible pane, run this matrix:++| Viewport | Panes | What to capture | Common bug class |+|----------|-------|-----------------|------------------|+| **1920** | All open | Baseline screenshot | Should always work |+| **1440** | All open | Common dev resolution | Slight squeeze visible here |+| **1280** | All open | Where layout collapses start | **High-bug zone** |+| **1024** | All open | Tablet landscape | **Catastrophic-bug zone** |+| 1024 | 2-pane (drop one) | Verify graceful degradation | Should fold cleanly |+| 1024 | 1-pane (mobile-style) | Should fold cleanly | Edge: orphan controls |+| 768 | Default (most collapsed) | Tablet portrait | Touch targets, stacking |+| 375 | Mobile baseline | Mobile | Hamburger nav, sheet UX |++For each combination:++1. **Resize to the target viewport** (use the browser tool's resize, not just CSS media queries — real resize triggers layout recalculation)+2. **Open the panes per the matrix** (use the actual UI controls — opening via dev-tools state injection misses the real animation race)+3. **Scroll the longest content** in the main pane (long message, long form, long table)+4. **Capture a screenshot** with the pane combination labelled in the filename: `1280-all-3-panes.png`+5. **Run the layout-detection JS** (snippets below) to flag overflow / clipping / vertical-text-stacks+6. **Read console** — multi-pane resize often surfaces ResizeObserver loop errors++## Layout-detection JS (paste into console)++### Vertical text stack detector++This catches the catastrophic case where text wraps one character per line — only happens when a flex/grid container collapses to single-character width.++```js+// Detect text containers that have collapsed to single-character widths+(function detectVerticalTextStacks() {+ const findings = [];+ const all = document.querySelectorAll('p, span, div, td, li, article, section, [role="article"]');+ for (const el of all) {+ const r = el.getBoundingClientRect();+ if (r.width === 0 || r.height === 0) continue;+ const text = (el.innerText || '').trim();+ if (text.length < 5) continue;+ // Heuristic: very narrow column AND multi-line. Tune ratio: chars vs lines.+ if (r.width < 30 && r.height > r.width * 3) {+ findings.push({+ selector: el.tagName.toLowerCase() + (el.id ? `#${el.id}` : '') ++ (el.className && typeof el.className === 'string' ? '.' + el.className.split(/\s+/).slice(0, 2).join('.') : ''),+ width: r.width.toFixed(1),+ height: r.height.toFixed(1),+ textPreview: text.slice(0, 30) + (text.length > 30 ? '…' : ''),+ });+ }+ }+ console.warn('Vertical-text-stack candidates:', findings);+ return findings;+})();+```++### Overflow / clip detector++```js+// Detect children that overflow their parents in horizontal direction+(function detectHorizontalOverflow() {+ const findings = [];+ const all = document.querySelectorAll('*');+ for (const el of all) {+ if (el.scrollWidth - el.clientWidth > 1) {+ const r = el.getBoundingClientRect();+ if (r.width === 0) continue;+ findings.push({+ selector: el.tagName.toLowerCase() + (el.id ? `#${el.id}` : ''),+ scrollWidth: el.scrollWidth,+ clientWidth: el.clientWidth,+ overflow: el.scrollWidth - el.clientWidth,+ });+ }+ }+ console.warn('Horizontal overflow candidates:', findings.slice(0, 20));+ return findings;+})();+```++### Min-content collapse detector++```js+// Detect elements whose actual width is below their min-content+// (signals a missing min-w-* / min-w-0 misuse)+(function detectMinContentCollapse() {+ const findings = [];+ const candidates = document.querySelectorAll('main, [role="main"], .timeline, .messages, [data-pane]');+ for (const el of candidates) {+ const r = el.getBoundingClientRect();+ // Heuristic: pane primary content with width < 200px is almost always wrong on desktop+ if (r.width < 200 && r.height > 100) {+ findings.push({+ selector: el.tagName.toLowerCase() + (el.id ? `#${el.id}` : ''),+ width: r.width.toFixed(1),+ height: r.height.toFixed(1),+ suspect: 'pane width < 200px on what looks like primary content — verify min-width or fold-trigger',+ });+ }+ }+ console.warn('Min-content collapse candidates:', findings);+ return findings;+})();+```++## Pane discovery — find what to test++If you don't know which panes the app has, discover them:++```js+// Find probable panes (collapsible / dismissible regions)+(function discoverPanes() {+ const found = [];+ // Look for explicit pane markers+ document.querySelectorAll('[data-pane], aside, [role="complementary"], .sidebar, .drawer, .sheet, [data-sidebar], [data-drawer]').forEach(el => {+ const r = el.getBoundingClientRect();+ if (r.width === 0) return;+ found.push({+ selector: el.tagName.toLowerCase() + (el.id ? `#${el.id}` : '') + (el.dataset.pane ? `[data-pane="${el.dataset.pane}"]` : ''),+ width: r.width.toFixed(1),+ role: el.getAttribute('role') || el.dataset.pane || 'unlabeled',+ });+ });+ console.log('Probable panes:', found);+ return found;+})();+```++Look for the controls that toggle them — usually a hamburger button, a chevron, an X close button, or a keyboard shortcut. Test each combination.++## Common bug patterns by combination++### 1280px, all panes open+- **Vertical text stacking** — main column squeezed below word-min-width. Cause: `min-w-0` on a flex container without setting a `min-w-[260px]` on the children. **Always log a finding here.**+- **Truncated headings without ellipsis** — `text-truncate` not applied to a flex child.+- **Overlapping panes** — z-index conflicts at the boundary.++### 1024px, all panes open+- **Catastrophic squeeze** — main pane drops below readable width. Should auto-fold one of the panes.+- **Buttons clipped or wrapped weirdly** — toolbar items push to a second line.+- **Modal trap** — opening a modal at this size makes it unfit-the-screen, no escape.++### 1024px, 1 pane (mobile-style)+- **Orphan controls** — buttons that only existed in the closed-pane don't reappear in the simplified layout.+- **Filter / sort lost** — interactions wired only to the desktop layout.++### 768px, default+- **Touch targets** — < 48×48px. Apple HIG / Material both require this.+- **Stacked layouts that look broken** — components stacked but not gap'd.+- **Text adjacent to actions** — copy that wraps under a button it was supposed to label.++### 375px, mobile+- **Sheet UX broken** — bottom sheets that don't dismiss / don't render full-height.+- **Hamburger nav** — opens but can't close, or closes when it shouldn't.+- **Forms below the fold** — Send / Save buttons require scroll to reach.++## Findings format++Every multi-pane stress finding should record:++```+ID: H-3+Layer: Visual / Interaction+Severity: High+Surface: /dashboard/spaces/:id+Viewport: 1280×800+Panes open: sidebar, members, thread (3 / 3)+Persona: SME owner++Reproduce:+ 1. Resize browser to 1280×800+ 2. Sign in, navigate to any space+ 3. Open the members panel (click the 👥 icon in the top-right)+ 4. Click any message → opens thread aside+ 5. Look at the message timeline column++Observed: message text wraps one character per line — vertical column ~24px wide.+Expected: message text wraps at word boundaries within the available column width (≥ 260px).+Evidence:+ - .jez/audit-evidence/2026-04-29/spaces-1280-3panes.png+ - .jez/audit-evidence/2026-04-29/spaces-1280-3panes-devtools.png+Suspected location: src/client/modules/spaces/pages/SpacePage.tsx:200 — `<main className="flex-1 min-w-0">`+Suggested fix: Replace `min-w-0` with `min-w-[260px]` to enforce minimum readable width, OR auto-fold the members pane at lg breakpoint.+```++## Automation hint — capture the matrix in one pass++If running Playwright, this loop captures the full matrix in ~2 minutes per route:++```ts+const viewports = [1920, 1440, 1280, 1024, 768, 375];+const paneCombos = ['all-open', '2-open', '1-open', 'all-closed'];++for (const vw of viewports) {+ for (const combo of paneCombos) {+ await page.setViewportSize({ width: vw, height: 800 });+ await openPanes(page, combo); // helper specific to the app+ await page.evaluate(detectVerticalTextStacks);+ await page.screenshot({ path: `evidence/${route}-${vw}-${combo}.png` });+ }+}+```++For Chrome MCP, the loop is run interactively — same protocol, manual viewport changes.++## When to skip multi-pane stress++Only skip if the app has zero collapsible panes (a single-column form-only app, a CRUD admin with no aside).++For everything else, this phase is mandatory. The bugs that live here are by definition invisible to single-viewport audits.diff --git a/plugins/dev-tools/skills/ux-audit/references/perfection-checklist.md b/plugins/dev-tools/skills/ux-audit/references/perfection-checklist.mdnew file mode 100644index 00000000..d1b22720--- /dev/null+++ b/plugins/dev-tools/skills/ux-audit/references/perfection-checklist.md@@ -0,0 +1,163 @@+# Component Perfection Checklist++Component-level audit that page-level audits miss. Adapted from the v2 audit-skill-gemini methodology with enforcement: every checkbox cites a proof artefact (screenshot, console line, DOM selector, code reference). No proof = doesn't count.++## Five-Layer Hierarchy++Every finding in the perfection checklist is tagged with one of:++1. **Architecture (the bones)** — navigation, hierarchy, information architecture+2. **Interaction (the joints)** — buttons, forms, toggles behave exactly as expected+3. **Visual Logic (the skin)** — design system consistency, layout, rhythm+4. **Feedback (the voice)** — system communicates state (loading, success, error)+5. **Delight (the soul)** — micro-interactions, polish, premium feel++Plus the standard severity (Critical / High / Medium / Low). Together they drive the Perfection Roadmap (Quick Wins / Structural / Advanced Polish).++## 1. Buttons & Triggers++| Check | What's verified | Common failure |+|---|---|---|+| **State Clarity** | Distinct hover, active, focus, and disabled states | All states identical, or focus invisible |+| **Intent Matching** | Button colour matches action weight (Primary / Ghost / Danger) | Destructive button styled the same as safe button |+| **Micro-Copy** | Text starts with a verb (`Export CSV` not `Data`) | Noun-only labels ("Settings", "Files") on action buttons |+| **Loading State** | Spinner or "Sending..." text on click; button disabled during action | Button stays enabled, user double-clicks |+| **Visual Hierarchy** | One primary CTA per screen | 3+ buttons competing for attention |+| **Click target ≥ 44×44** | Mobile thumb-friendly | Tiny "x" close buttons |+| **Hover delta perceptible** | ~10% brightness shift on hover | 5% imperceptible delta |++**Proof per check**: screenshot of each state, computed CSS, before/after click screenshot.++## 2. Inputs & Forms++| Check | What's verified | Common failure |+|---|---|---|+| **Persistent Labels** | Labels visible after the user starts typing | Placeholder-as-label disappears |+| **Input Masks** | Phone, date, currency formatted as the user types | User has to know format |+| **Inline Validation** | Errors after the user leaves the field, OR "strength" check during typing | Errors only on submit (lost context) |+| **Error Clarity** | Specific guidance: "Enter a valid email (e.g. [email protected])" | "Invalid input" |+| **Defaulting** | Common fields pre-filled (country by IP, most-common selection) | User has to fill every field every time |+| **Autocomplete attributes** | `autocomplete="email"`, `name`, `tel` set correctly | Browser can't auto-fill |+| **Tab order logical** | Tab moves through fields in reading order | Tab jumps to a button mid-form |+| **Required-field marking** | `*` or "(required)" before fields, not as failure message | User submits, then learns what's required |+| **Keyboard type on mobile** | `inputmode="numeric"` for phone, `type="email"` for email | iOS/Android shows wrong keyboard |+| **Persistent state on navigate-away** | Drafts saved or restored on return | Data lost when user clicks back |++**Proof per check**: screenshot showing each label + input pair, type into invalid value (capture error), navigate away + back (verify state).++## 3. Navigation & Hierarchy++| Check | What's verified | Common failure |+|---|---|---|+| **"Where am I?" test** | Look at any screen, immediately know module + sub-section | No active state in nav |+| **Click depth** | Primary user task ≤ 3 clicks from dashboard | Common task buried 5 clicks deep |+| **Search logic** | Handles typos; "No results found for [Query]" is clear | Empty results page with no hint |+| **Sticky headers** | Nav stays accessible on long pages OR hides/reveals intelligently | Nav scrolls away, no way back to top |+| **Breadcrumbs** | Present on detail pages, accurate hierarchy | Detail pages with no parent context |+| **Back button preserves state** | Back to a list returns to the same scroll, filter, sort | Back resets to top, filters cleared |+| **Deep links work** | Sharing a link to a specific record opens it correctly | Deep link 404s or shows blank |++**Proof per check**: screenshot of nav at every level, click count for primary task, search test with typo, deep link test.++## 4. Visual Coherence++| Check | What's verified | Common failure |+|---|---|---|+| **Icon consistency** | All icons from the same family (Lucide, Heroicons, etc.) | Mixed sharp + rounded icons |+| **Empty states** | Helpful illustration / icon, copy explaining the feature, primary CTA | Blank table with column headers |+| **Border radii** | Identical across buttons / cards / modals (consistent 4px / 8px / 12px scale) | Random radii: 3px, 7px, 10px |+| **Contrast ratio** | All text passes WCAG AA (4.5:1 body, 3:1 large text) | Light grey text on white |+| **Spacing scale** | All paddings / margins / gaps land on a documented scale (e.g. 4 / 8 / 12 / 16 / 24 / 32) | 22px padding where 24px belongs |+| **Colour tokens** | Body / borders / dividers from `var(--*)` tokens, not raw values | `text-gray-450` energy |+| **Typography scale** | 3-5 sizes globally; consistent line heights | Random font sizes: 15px, 17px, 22px |++**Proof per check**: eyedropper sample, computed-styles inspection, contrast-ratio readout, side-by-side icon comparison.++Cross-reference [visual-polish.md](visual-polish.md) for the full AI-tell catalogue.++## 5. Mobile & Touch++| Check | What's verified | Common failure |+|---|---|---|+| **Tappable surface ≥ 48×48px** | Links and buttons large enough for thumb without hitting neighbours | Tiny pagination / close buttons |+| **Keyboard optimisation** | `inputmode="numeric"` for numbers, `type="email"` for email | Wrong keyboard pops up |+| **Swipe gestures discoverable** | Swipe-to-delete is hinted (icon, edge nudge) OR has an explicit alt | Hidden swipe with no fallback |+| **Bottom-sheet UX** | Drag handle, gesture-dismissable, full-height when needed | Sheet won't dismiss, content scrollable behind |+| **Thumb zone respected** | Primary actions reachable in lower 1/3 of viewport | Save button at top of long scroll |+| **No hover-only affordances** | Everything works without a hover state | Menus that only open on hover |++**Proof per check**: 375px screenshot with finger overlay, viewport check, gesture replay.++## 6. Performance & Feedback++| Check | What's verified | Common failure |+|---|---|---|+| **Skeleton screens** | Skeleton loaders during fetch, NOT a blank white page | Blank page → sudden content |+| **Skeleton shape parity** | Skeleton matches loaded layout (same column widths, row heights) | Spinner-on-blank disguised as skeleton |+| **Success toasts** | Non-intrusive "Success" appears after background tasks | No confirmation, user wonders if it worked |+| **Confirmation modals** | Used ONLY for high-stakes irreversible actions | Confirmation on every save |+| **Optimistic UI** | List updates immediately; rolls back on server reject | Optimistic update with no rollback handling |+| **Time to first interaction** | < 1.5s on a fast connection | Loading spinner > 3s with no indication |+| **Long action progress** | "Sending email to 12 recipients..." with specific count | "Please wait..." (wait for what?) |+| **Error recovery** | Retry button on failed requests | Generic "Something went wrong" with no path forward |++**Proof per check**: filmstrip from action to feedback, network throttled to Slow 3G, screenshot of error state with retry visible.++## Component States Matrix (six per major component)++For every list, card, table, dashboard widget, form, detail panel, capture all six visual states:++| State | What to verify | Common findings |+|-------|----------------|-----------------|+| **Default** | Loaded, idle | Baseline |+| **Loading (skeleton)** | Shape parity with loaded layout | Spinner-on-blank, layout shift on load |+| **Empty** | Helpful copy + CTA | Blank void; "no data" without next-action |+| **Partial loaded** | First batch usable while later batches arrive | Misleading "complete" framing while still streaming |+| **Error** | Recoverable? Retry available? | Generic "Something went wrong"; raw stack trace |+| **Disabled** | Why disabled is *visible* (tooltip, helper text) | Greyed-out button with no path to enable |++Skeleton loaders specifically — a spinner on top of a blank container is **not** a skeleton. The skeleton's job is to *prevent layout shift* and *signal what's coming*. Verify both: throttle the network to keep the skeleton visible long enough to inspect.++## Proof requirements++Every checkbox in the report must cite at least one of:++- **Screenshot** at `.jez/audit-evidence/<date>/<surface>-<state>.png`+- **Console line** with the warning text and timestamp+- **DOM selector** that reproduces the issue+- **Code reference** (`src/components/Button.tsx:42`)+- **Computed style readout** (specific CSS values)+- **Network request** (URL, method, status, latency)++A check marked "PASS" without a proof artefact is rejected. Forces the agent to actually look, not vibe.++## Severity guide for component findings++| Severity | When to assign | Example |+|----------|---------------|---------|+| **Critical** | User cannot complete primary task | Save button no-op |+| **High** | Confusion, friction, trust damage; OR console warning; OR layout collapse | Loading spinner with no end; placeholder-as-label |+| **Medium** | Suboptimal but workable | Inconsistent border radii; weak hover delta |+| **Low** | Polish | 1-2px alignment; underline offset |++## How to run the perfection checklist++The checklist is a **per-component** scan, not a per-page scan. After thread traversal and element exhaustion, walk every distinct component class on the app:++1. List every type of component (buttons primary / ghost / destructive, inputs text / select / textarea, cards, modals, toasts, etc.)+2. For each type, find one canonical instance to audit+3. Walk that instance through all relevant rows of the checklist+4. Capture proof for each row+5. If the finding is shared across many instances of the same type, log it once with a count: "Affects 47 instances of `<Button variant='primary'>`"++This makes the audit's findings systemic-first, instance-second. Fixing one root cause lifts many surfaces.++## Layer × Severity → Roadmap++The Perfection Roadmap groups findings by layer + severity:++- **Quick Wins (24-48h)** — Low / Medium polish in Visual Logic + Delight layers+- **Structural Updates (1-2 weeks)** — High / Critical in Architecture + Interaction layers+- **Advanced Polish (post-launch)** — Low in all layers, plus Delight enhancements++Critical Architecture issues block ship. Low Delight issues wait for a design pass. The roadmap framing makes prioritisation obvious instead of being one ranked list.diff --git a/plugins/dev-tools/skills/ux-audit/references/performance-budget.md b/plugins/dev-tools/skills/ux-audit/references/performance-budget.mdnew file mode 100644index 00000000..adc607e7--- /dev/null+++ b/plugins/dev-tools/skills/ux-audit/references/performance-budget.md@@ -0,0 +1,125 @@+# Performance Budget (pragmatic, not Google CWV)++"Perfect app" means nothing if it's slow. v2's screenshot sweep can't see slow.++But chasing Google's Core Web Vitals "Good" thresholds is for marketing teams optimising landing pages. For app interiors that real users sit inside, the bar is *user-perceivable*: does it feel snappy enough that nobody mentions it?++This sets a pragmatic floor — well above broken, well below CWV-strict.++## Thresholds (hard gates)++| Metric | Pragmatic threshold | CWV "Good" reference | Severity if exceeded |+|---|---|---|---|+| LCP (Largest Contentful Paint) | < 4.0s | < 2.5s | High |+| CLS (Cumulative Layout Shift) | < 0.25 | < 0.1 | High |+| INP (Interaction to Next Paint) | < 500ms | < 200ms | High |+| TTI-equivalent (page interactive) | < 5.0s | < 3.8s | Medium |++If all four are within the pragmatic threshold, the app feels fine. Tighter thresholds are noise unless the user explicitly cares about CWV (SEO landing pages, e-commerce checkout, paid-acquisition funnels).++## Measurement — Performance API in the browser++Don't run Lighthouse per page (30-60s each, network-throttling-dependent, noisy). Use the browser's `PerformanceObserver` to capture metrics inline. ~1 second per page.++```js+// In the browser eval, after the page has loaded+await page.evaluate(() => {+ return new Promise((resolve) => {+ let lcp = 0, cls = 0, inp = 0+ const lcpObs = new PerformanceObserver((list) => {+ for (const e of list.getEntries()) lcp = e.startTime+ })+ lcpObs.observe({ type: 'largest-contentful-paint', buffered: true })+ const clsObs = new PerformanceObserver((list) => {+ for (const e of list.getEntries()) {+ if (!e.hadRecentInput) cls += e.value+ }+ })+ clsObs.observe({ type: 'layout-shift', buffered: true })+ // INP only fires after a user interaction; capture the worst seen+ const inpObs = new PerformanceObserver((list) => {+ for (const e of list.getEntries()) inp = Math.max(inp, e.duration)+ })+ inpObs.observe({ type: 'event', buffered: true, durationThreshold: 16 })+ setTimeout(() => {+ const nav = performance.getEntriesByType('navigation')[0]+ resolve({+ lcp: Math.round(lcp),+ cls: Math.round(cls * 1000) / 1000,+ inp: Math.round(inp),+ ttfb: nav ? Math.round(nav.responseStart - nav.requestStart) : null,+ domContentLoaded: nav ? Math.round(nav.domContentLoadedEventEnd) : null,+ loadComplete: nav ? Math.round(nav.loadEventEnd) : null,+ })+ }, 1500) // give LCP + CLS time to settle+ })+})+```++## When to measure++**Once per audit, on the most representative page.** For a typical app, that's the page real users hit most often — usually the dashboard or the main work surface (chat, inbox, or list view).++Add to the audit run-time budget: ~3-5 seconds for the perf check. Do NOT run on every page — that triples audit time for diminishing returns. Spot-check 1-2 routes.++If the spot check exceeds threshold, expand to all primary routes.++## Throttling++The Performance API in headless Playwright runs unthrottled, which paints LCP/INP optimistically. For a realistic check:++```js+// Playwright: emulate slow 4G + 4× CPU+await page.context().route('**/*', (route) => {+ setTimeout(() => route.continue(), 50) // crude delay+})+```++Or use Chrome DevTools MCP's `performance_start_trace` which has built-in throttling profiles.++If you measure unthrottled, document it in the report. A site that LCP=3.5s unthrottled is probably 6+s on real 4G — flag as a likely real-world fail.++## Hard-gate scorecard addition++Verdict block extension:++```+Performance (pragmatic budget, /dashboard sample):+ LCP: [N]s [GREEN/RED] (threshold 4.0s)+ CLS: [N] [GREEN/RED] (threshold 0.25)+ INP: [N]ms [GREEN/RED] (threshold 500ms)+ TTI: [N]s [GREEN/RED] (threshold 5.0s)+```++If any is RED, audit auto-Fails until fixed. Findings logged with the specific metric and the suspected source (large hero image, late-loading font, render-blocking script, hydration cost).++## Common offenders++| Symptom | Likely cause |+|---|---|+| LCP > 4s | Hero image not optimised; main script chunks too large; bundled font loaded synchronously |+| CLS > 0.25 | Web fonts swapping in late; ads/embeds loading without reserved space; client-rendered content above the fold |+| INP > 500ms | Heavy click handlers (re-renders on every keystroke); sync JSON parse; uncovered hydration mismatch |+| TTI > 5s | Bundle too big; too many synchronous module imports; SSR rendering on every nav |++Diagnose with Chrome DevTools Performance tab (or `performance_start_trace` via MCP) — capture a 5-second trace, look for long tasks > 50ms, render-blocking resources, layout-shift events.++## When to relax++Tighter thresholds (CWV-strict) apply when:++- The page is in an acquisition funnel (landing, signup) — bounce rate punishes slow+- The user pays for the page (e-commerce checkout)+- There's a specific contractual/legal uptime/perf SLA++For internal tools, AI agent UIs, dogfood apps, builder-mode pages — pragmatic threshold is the right bar. Don't over-optimise to win a Google score that nobody asked for.++## What this skill doesn't measure++- Time to first byte at the CDN edge (use Cloudflare / Vercel analytics)+- Server-side response time (use the worker / app's own logs)+- Real-user CWV (use Google Search Console for production)++Those are operational metrics. This audit measures *the rendering experience for a real user pulling the page now*.++**Last Updated**: 2026-04-30diff --git a/plugins/dev-tools/skills/ux-audit/references/persona-lock.md b/plugins/dev-tools/skills/ux-audit/references/persona-lock.mdnew file mode 100644index 00000000..f5de7665--- /dev/null+++ b/plugins/dev-tools/skills/ux-audit/references/persona-lock.md@@ -0,0 +1,126 @@+# Persona Lock++The audit cannot start without a locked persona. Without one, every finding drifts toward "looks fine" and the audit produces a verdict that's defensible from no one's perspective.++A locked persona is a single named user, with goals, constraints, pain triggers, and wins. Once locked, every finding must be defensible from this persona's perspective. If a finding only makes sense for a power user when the locked persona is an SME owner, the finding is wrong-persona — log it as a different persona's concern or drop it.++## How to lock the persona++Source the persona in this order:++1. **Argument** — if the user provided one in the trigger ("ux audit as a busy insurance broker"). Use as-is.+2. **Project personas** — read these in order, take the first that matches:+ - `.jez/audit-personas/<slug>.md`+ - `.jez/personas/default.md`+ - `.jez/personas/<app-name>.md`+ - `.jez/personas/<role>.md`+3. **Ask once, then write a file** — *"Who uses this app and what are they trying to get done?"* Capture the answer, write it to `.jez/audit-personas/<slug>.md` for the next audit, then proceed.++Lock the persona by writing the chosen persona at the top of the audit report:++```markdown+**Persona Lock**: SME owner — runs a 4-person fitness studio+**Source**: .jez/audit-personas/sme-owner.md+**Locked at**: 2026-04-29 14:30 AEST+```++## Persona file format++Each persona file at `.jez/audit-personas/<slug>.md`:++```markdown+---+slug: sme-owner+name: SME Owner+locked: 2026-04-29+---++# SME Owner++## Who they are+Owns a 4-person fitness studio. Books clients, takes payments, runs marketing,+all herself. Knows her business cold; isn't a software person.++## Goals (what they want to do)+- Get a class scheduled in under a minute+- See who paid this week without scrolling+- Send a "next class" reminder without crafting a message from scratch++## Constraints+- 30-60s windows between physical tasks+- Phone in pocket, laptop sometimes+- Tolerates 2 clicks max for routine tasks; 3 makes her swear++## Pain triggers (what makes them close the tab)+- Acronyms or jargon (CRM, SaaS, "campaign" instead of "newsletter")+- Forms with > 5 fields+- "Sign up for a free trial" gates between her and the thing she's doing+- Loading spinners that last > 1.5s with no indication of what's happening+- Anything that asks her to learn a concept ("workspaces", "instances", "agents")++## Wins (what makes them come back)+- The thing she just did is visibly there at the top of the screen+- A teammate gets a notification she didn't have to opt into+- She gets through a routine task in fewer steps than last time+- One-tap sharing of receipts / schedules / class lists++## How to audit AS this persona+- Skim every screen for 2 seconds before reading anything carefully+- Read every label out loud: would she say this word in conversation?+- For every form: would she fill it correctly on her first try?+- For every list: can she find one specific record by name in < 5 seconds?+- For every button: does the verb match what she's about to do?+```++## Persona library examples++Common patterns the audit should adopt depending on the product:++### SME owner+Time-pressed, low tech comfort, mobile-first, hates jargon. Wants tasks completed in 1-2 clicks. Triggers at acronyms.++### Power user+Knows the product cold, lives in keyboard shortcuts, wants density. Will use Advanced settings. Triggers at hand-holding tooltips.++### First-time developer+Read the docs. Trying to wire up an integration. Tolerates jargon if it's accurate, hates jargon that's wrong. Will look at the network tab. Triggers at silent failures.++### Casual user (consumer-app)+Came via a marketing link. No commitment yet. Will close the tab if anything is unclear. Triggers at sign-up gates before value, at long forms, at "select a plan" before "show me what this does".++### Internal staff (B2B tools)+Onboarded by a colleague, trained verbally. Knows the workflow, doesn't know the product. Triggers at UI changes that contradict what they were taught.++### Client (read-only / restricted role)+Was given access by a staff member. Doesn't know what they have access to or why. Triggers at "you don't have permission" without explanation.++## Always-also: first-time-user lens++In addition to the locked persona, every multi-page feature must also pass the **first-time-user lens** (mandatory, see SKILL.md Phase 3). This is non-negotiable. Engineers writing screens know what every field means; brand-new users don't. The lens catches that gap regardless of the locked persona.++## Persona drift detection++Mid-audit, watch for these signs of drift:+- Findings that say "a developer would..." (you've drifted to dev persona)+- Findings that say "an admin should..." (drifted to admin if locked persona was SME)+- Justifying density or jargon as "professional" (drifted toward power user)+- Skipping multi-pane stress because "the persona is mobile-only" (drift via skip)++When drift is detected: stop, re-read the persona file, re-walk the affected slice with the locked persona's eyes.++## Multi-persona audits++For apps with materially different user types (B2B SaaS with admin + staff + client), run separate audits per persona. One report per persona file, then a synthesis pass at the end. Don't try to audit "as a generic user" — that produces no findings worth shipping.++## Persona vs role vs lifecycle position++Three orthogonal axes:+- **Persona**: who they are (SME owner, power user, first-time developer)+- **Role**: what they're allowed to do (admin, viewer, billing)+- **Lifecycle position**: when they joined (founder, first invitee, later joiner)++Same persona × different role = different audit (Scenario 8, Second User by Role).+Same persona × different lifecycle = different audit (Scenario 9, Lifecycle Position).+Different persona = different audit, full stop.++The locked persona pins the first axis. Scenarios 8 and 9 stress the other two.diff --git a/plugins/dev-tools/skills/ux-audit/references/playwright-killer-flows.md b/plugins/dev-tools/skills/ux-audit/references/playwright-killer-flows.mdnew file mode 100644index 00000000..9728bdd8--- /dev/null+++ b/plugins/dev-tools/skills/ux-audit/references/playwright-killer-flows.md@@ -0,0 +1,314 @@+# Playwright Killer-Flow Tests++Audits find what's broken now. Tests prevent it from breaking again. After a v2 walkthrough surfaces the killer flows, write Playwright tests for them so regressions never ship silently.++This file is starter examples + patterns. Adapt to the project's stack (TanStack, Next.js, etc.) and CI setup.++## Why kill flow tests beat broader test suites++Most apps don't have time to write comprehensive E2E suites. The 80/20 is: write tests for the bugs that *would have hurt most* if they shipped. The 6 bugs found in vite-flare-starter on 2026-04-29 are exactly that class — each has a one-line Playwright assertion that would have blocked the deploy.++**Aim**: 10-15 tests, each ~10-30 lines, one per killer flow. Run on every deploy. Total runtime < 2 minutes.++## Where these tests live++Recommended file structure:++```+e2e/+ ├── critical-flows.spec.ts # the killer flows+ ├── regression-tests.spec.ts # tests added per regression caught+ ├── fixtures.ts # auth helpers, seed helpers+ └── playwright.config.ts # config with retry, baseUrl, viewport+```++Run via `pnpm test:e2e` (or `npm`). CI runs on every PR and on every main push.++## Test patterns by bug class++### Pattern 1: "Action clears the trigger state"++Catches: send button doesn't clear input, save button doesn't reset form, submit-then-redirect leaves stale form data.++```ts+import { test, expect } from '@playwright/test';+import { signIn } from './fixtures';++test('spaces: send clears input', async ({ page }) => {+ await signIn(page);+ await page.goto('/dashboard/spaces/test-space');++ const input = page.locator('textarea[placeholder*="message"]');+ await input.fill('hello world');+ await page.locator('button[aria-label="Send"]').click();++ // Critical assertion: input cleared within 1s+ await expect(input).toHaveValue('', { timeout: 1000 });+});+```++### Pattern 2: "Layout doesn't collapse"++Catches: vertical-text stacking, panel squeeze, min-content failures. Reproduces the multi-pane bug.++```ts+test('spaces: thread does not collapse timeline below readable width', async ({ page }) => {+ await signIn(page);+ await page.setViewportSize({ width: 1280, height: 800 });+ await page.goto('/dashboard/spaces/test-space');++ // Open the members panel + the thread aside+ await page.locator('[data-pane-trigger="members"]').click();+ await page.locator('[data-message-id]').first().click();++ // The main column should never be < 200px wide+ const main = page.locator('main');+ const width = await main.evaluate(el => el.getBoundingClientRect().width);+ expect(width).toBeGreaterThan(200);+});+```++Run this at multiple viewports to cover the full multi-pane stress matrix:++```ts+const viewports = [1024, 1280, 1440, 1920];++for (const vw of viewports) {+ test(`spaces: thread keeps timeline width at ${vw}px`, async ({ page }) => {+ await signIn(page);+ await page.setViewportSize({ width: vw, height: 800 });+ // ... same as above+ expect(width).toBeGreaterThan(200);+ });+}+```++### Pattern 3: "No console output during action"++Catches: lurking warnings, deprecation notices, protocol mismatches. The 2026-04-29 VoiceClient warning was visible weeks before the audit caught it.++```ts+test('chat: console emits no warnings on mount', async ({ page }) => {+ const messages: { type: string; text: string }[] = [];+ page.on('console', msg => {+ if (['warning', 'error'].includes(msg.type())) {+ messages.push({ type: msg.type(), text: msg.text() });+ }+ });++ await signIn(page);+ await page.goto('/dashboard/chat');+ await page.waitForLoadState('networkidle');++ // Allowlist known unfixable warnings (e.g. third-party tracker)+ const filtered = messages.filter(m => !m.text.includes('[allowed-warning]'));+ expect(filtered, JSON.stringify(filtered, null, 2)).toEqual([]);+});+```++### Pattern 4: "Single state transition counts correctly"++Catches: @-mention double-insert, optimistic UI duplicating items, double-click submission.++```ts+test('spaces: @-mention does not duplicate', async ({ page }) => {+ await signIn(page);+ await page.goto('/dashboard/spaces/test-space');++ await page.locator('textarea').type('@ass');+ await page.locator('text=@assistant').first().click();++ // After picking, exactly one mention pill in the input parts+ const pills = page.locator('[data-slot="mention-pill"]');+ await expect(pills).toHaveCount(1);+});++test('spaces: send does not duplicate on double-click', async ({ page }) => {+ await signIn(page);+ await page.goto('/dashboard/spaces/test-space');++ await page.locator('textarea').fill('test message');+ const send = page.locator('button[aria-label="Send"]');++ // Double-click in rapid succession+ await Promise.all([send.click(), send.click()]);++ // Only one new message appears+ await expect(page.locator('[data-message-id]:has-text("test message")')).toHaveCount(1, { timeout: 2000 });+});+```++### Pattern 5: "Network call succeeds with expected payload"++Catches: silent SDK contract violations, missing options, wrong endpoints.++```ts+test('approve action sends decision to server', async ({ page }) => {+ await signIn(page);++ let approvalRequest: any = null;+ page.on('request', req => {+ if (req.url().includes('/api/tool-approvals')) {+ approvalRequest = { method: req.method(), payload: req.postDataJSON() };+ }+ });++ await page.goto('/dashboard/chat');+ await page.locator('button:has-text("Approve")').first().click();++ // Verify request actually fired with the decision+ await expect.poll(() => approvalRequest).toBeTruthy();+ expect(approvalRequest.method).toBe('POST');+ expect(approvalRequest.payload).toMatchObject({ decision: 'approved' });+});+```++### Pattern 6: "First-time user can complete primary task"++Catches: onboarding gaps, mandatory fields without defaults, jargon labels. Directly maps to the first-time-user lens.++```ts+test('first-time user: can create their first space in 3 clicks', async ({ page }) => {+ // Use a fresh signup, not a seeded test account+ await page.goto('/signup');+ await page.locator('input[name="email"]').fill('[email protected]');+ await page.locator('input[name="password"]').fill('audit-test-123!');+ await page.locator('button:has-text("Sign up")').click();++ await page.waitForURL(/\/dashboard/);++ // From the dashboard, count clicks to space creation+ let clickCount = 0;+ page.on('click', () => clickCount++);++ // The expected path+ await page.locator('button:has-text("Create space")').click();+ await page.locator('input[name="name"]').fill('My first space');+ await page.locator('button:has-text("Create")').click();++ // Verify the space exists+ await expect(page.locator('h1:has-text("My first space")')).toBeVisible({ timeout: 5000 });+ expect(clickCount).toBeLessThanOrEqual(3);+});+```++### Pattern 7: "Network response is observable to user"++Catches: 5xx on the wire that the user never sees.++```ts+test('save shows error toast on server failure', async ({ page }) => {+ await signIn(page);+ await page.route('**/api/settings', route => route.fulfill({ status: 500, body: 'server error' }));+ await page.goto('/dashboard/settings');++ await page.locator('button:has-text("Save")').click();++ // User MUST see the error+ await expect(page.locator('[role="alert"]')).toContainText(/error|failed|try again/i, { timeout: 3000 });+});+```++## Auth helpers (fixtures.ts)++```ts+import type { Page } from '@playwright/test';++export async function signIn(page: Page) {+ await page.goto('/signin');+ await page.locator('input[name="email"]').fill(process.env.TEST_USER_EMAIL ?? '[email protected]');+ await page.locator('input[name="password"]').fill(process.env.TEST_USER_PASSWORD ?? 'test-password');+ await page.locator('button[type="submit"]').click();+ await page.waitForURL(/\/dashboard/);+}++export async function seedSpace(page: Page, name = 'test-space') {+ // POST to test-only seed endpoint, OR use UI flow.+ // ...+}+```++## Playwright config (playwright.config.ts)++```ts+import { defineConfig, devices } from '@playwright/test';++export default defineConfig({+ testDir: './e2e',+ fullyParallel: true,+ retries: process.env.CI ? 2 : 0,+ reporter: 'html',+ use: {+ baseURL: process.env.PLAYWRIGHT_BASE_URL ?? 'http://localhost:5173',+ trace: 'on-first-retry',+ video: 'retain-on-failure',+ screenshot: 'only-on-failure',+ },+ projects: [+ { name: 'chromium-desktop', use: { ...devices['Desktop Chrome'], viewport: { width: 1440, height: 900 } } },+ { name: 'chromium-laptop', use: { ...devices['Desktop Chrome'], viewport: { width: 1280, height: 800 } } },+ { name: 'mobile', use: { ...devices['iPhone 13'] } },+ ],+});+```++## Seed-data strategy++Killer-flow tests need predictable state. Three strategies:++1. **Per-test setup via API** — call POST `/api/test/seed` (server-only test endpoint) to create the state needed+2. **Per-test setup via UI** — slower but tests the actual flow+3. **Snapshot DB** — restore a known DB state before each suite (heaviest, most reliable)++For Cloudflare Workers + D1, the `/api/test/seed` route gated behind a `TEST_MODE` env is usually fastest.++## CI integration++Recommended GitHub Actions setup:++```yaml+- name: Install Playwright+ run: pnpm exec playwright install --with-deps chromium++- name: Run E2E tests+ run: pnpm test:e2e+ env:+ PLAYWRIGHT_BASE_URL: ${{ secrets.STAGING_URL }}+ TEST_USER_EMAIL: ${{ secrets.TEST_USER_EMAIL }}+ TEST_USER_PASSWORD: ${{ secrets.TEST_USER_PASSWORD }}++- uses: actions/upload-artifact@v4+ if: failure()+ with:+ name: playwright-report+ path: playwright-report/+```++Run on every PR. Block merge on failure.++## Cadence — what to write tests for++Write a test the moment you find a bug that:+- Wasn't caught by the audit (audit failure → new test)+- Is "obvious in hindsight" (vertical text, send-not-clearing — these surfaces deserve tests forever)+- Touches money / data integrity / auth+- Has shipped twice in regression form (third regression must become a test)++Don't write tests for:+- Visual polish that's not load-bearing (use visual regression instead)+- Features that change weekly (test would churn faster than it adds value)+- Things that are obvious from a unit test (component API, function output)++## The audit-test virtuous cycle++The pattern that ships:++1. Audit (v2) finds a bug+2. Fix the bug+3. Write a Playwright killer-flow test that catches the bug+4. CI runs the test on every deploy+5. Bug never returns silently++This is the methodology shift the 2026-04-29 post-mortem advocates: from "ship, audit, find, fix" to "find before shipping". The audit produces the audit catalogue; the tests turn each entry into a regression gate.++After 6-12 months of disciplined application, the killer-flow suite is the most-trusted artifact in the project — it encodes every painful lesson the team has learned.diff --git a/plugins/dev-tools/skills/ux-audit/references/report-template.md b/plugins/dev-tools/skills/ux-audit/references/report-template.mdindex 41a08445..92b85f14 100644--- a/plugins/dev-tools/skills/ux-audit/references/report-template.md+++ b/plugins/dev-tools/skills/ux-audit/references/report-template.md@@ -25,12 +25,37 @@ Hard Gates:Network 5xx: [count] [GREEN ✓ / RED ✗]Network 403/404 auth: [count] [GREEN ✓ / RED ✗] ([N] allowlisted)Layout collapse: [count] [GREEN ✓ / RED ✗]+ axe-core Critical: [count] [GREEN ✓ / RED ✗] ([N] allowlisted)+ axe-core Serious: [count] [GREEN ✓ / RED ✗] ([N] allowlisted)++Performance (pragmatic, sampled on /[representative-route]):+ LCP: [N]s [GREEN ✓ / RED ✗] (threshold 4.0s)+ CLS: [N] [GREEN ✓ / RED ✗] (threshold 0.25)+ INP: [N]ms [GREEN ✓ / RED ✗] (threshold 500ms)+ TTI: [N]s [GREEN ✓ / RED ✗] (threshold 5.0s)Findings:Critical: [count]High: [count]Medium: [count]Low: [count]++Time per phase (audit-the-audit meta-check):+ Phase 1 (pre-flight): [N]m+ Phase 2 (discovery): [N]m+ Phase 3 (walkthrough): [N]m ← exhaustive must be ≥ 5m+ Phase 4 (polish): [N]m+ Phase 5 (stress): [N]m+ Total: [N]m++Manifest plausibility:+ Manifest entries: [N]+ Time span first→last: [N]m+ Median gap between: [N]s ← if < 0.5s, audit didn't actually+ interact; verdict → Incomplete+ Screenshots captured: [N] ← ≥ 2 per audited route+ Console reads: [N] ← ≥ 1 per audited route+ Network probes: [N] ← ≥ 1 per audited route═══════════════════════════════════════════════════════════**Date**: YYYY-MM-DDdiff --git a/plugins/dev-tools/skills/ux-audit/references/stress-test-recipes.md b/plugins/dev-tools/skills/ux-audit/references/stress-test-recipes.mdnew file mode 100644index 00000000..42a0428d--- /dev/null+++ b/plugins/dev-tools/skills/ux-audit/references/stress-test-recipes.md@@ -0,0 +1,372 @@+# Extended Stress Test Recipes++Beyond the 9 scenarios in [scenario-tests.md](scenario-tests.md), these recipes catch the failure modes that scenarios miss. Each recipe has a how-to, what-it-catches, and severity guide.++Run all relevant recipes during Phase 5 of the audit. Skip recipes that genuinely don't apply (no print stylesheet on a chat app).++## 1. Race conditions++### Double-click submit++**How**: Click any Send / Save / Submit button twice in rapid succession (< 200ms apart).++**What it catches**:+- Duplicate creation (two records, two messages, two payments)+- Optimistic UI desync (one click goes through optimistically, second click finds the optimistic state and acts on it)+- Disabled-state race (button disables but second click already queued)++**Severity if it produces duplicates**: **Critical**.++### Fast-type then immediate blur++**How**: Type into an input, then `Tab` or click outside without waiting for autocomplete / validation.++**What it catches**:+- Validation that runs after blur but the form already submitted via Enter+- Autocomplete that completes after blur, leaving stale value+- onChange handlers firing after onSubmit++### Rapid navigation++**How**: Click a list item, then before it loads, click a different list item.++**What it catches**:+- Stale data shown (old item's data leaks into new item's view)+- Cancelled-fetch handling (TanStack Query / SWR — abort missed)+- Loading spinner stuck++## 2. Slow network (3G throttle)++**How**: Browser DevTools → Network → Slow 3G (or set request throttling to 100kbps download / 400ms latency).++**What it catches**:+- Loading states that disappear after 200ms (real users see them)+- Skeleton screens never showing (data arrives too fast in dev)+- Timeouts (button-disable for 60s with no progress hint)+- Retry UX (does it auto-retry? Should it?)+- Optimistic UI (does it work when the server takes 5s to confirm?)++**Severity guide**: missing skeleton on a list view that takes > 1s = High. Stuck spinner with no escape > 5s = Critical.++## 3. Reduced motion++**How**: Browser DevTools → Rendering → Emulate CSS media `(prefers-reduced-motion: reduce)` → matches.++**What it catches**:+- Animations that ignore the preference (still slide, still fade)+- Spring physics on scroll (causes motion sickness for users who set the pref)+- Auto-playing videos++**Severity if any animation runs when reduced**: High (accessibility violation).++## 4. i18n stress++### Long German nouns++**How**: Inspect the longest copy on each page and replace with a synthetic 50+ character string. Or, if i18n exists, switch to `de`.++**What it catches**:+- Truncation without tooltip (`overflow: hidden` cuts off important info)+- Wrap into 4+ lines breaking layout+- Buttons that grow beyond their parent container++### RTL Arabic++**How**: Set `dir="rtl"` on `<html>` (or switch to `ar` / `he` if i18n exists).++**What it catches**:+- Icons that should mirror but don't (chevron-right pointing wrong way)+- Layouts assuming left-to-right (sidebar on wrong side)+- Padding-left vs margin-inline-start drift++### CJK character widths++**How**: Replace copy with CJK strings (Chinese / Japanese / Korean) for the longest fields.++**What it catches**:+- Line-height insufficient for character ascenders+- Font-family fallback ugly in CJK+- Text rendering as squares (missing font subset)++## 5. Empty / saturated states++### Empty+- Lists with 0 items+- Conversations with 0 messages+- Projects with 0 files / tasks+- Search with 0 results+- New user with 0 history++### Saturated+- Lists with 1000+ items (pagination, virtualisation, performance)+- Conversation with 200+ messages (scroll-to-bottom, performance)+- Project with 50+ tagged categories (filter UX)++### Long content edges+- Single field with 100+ characters (overflow, tooltip, truncate)+- Single field with 5000-word paste (textarea behaviour, save semantics)+- Filename with special characters (`O'Brien.pdf`, `café.csv`, emoji, `<script>` injection check)++## 6. Offline mode++**How**: Browser DevTools → Network → Offline. Then perform an action.++**What it catches**:+- Silent failures (no error shown)+- Optimistic UI without rollback+- Queue / retry UX (Tauri / Notion / Linear show "queued" — does this app?)+- Lost work on subsequent reload++**Severity if data is lost silently**: Critical.++## 7. Print stylesheet++**How**: Browser DevTools → Rendering → Emulate CSS media → `print`. OR `Ctrl+P` to open the print preview.++**What it catches**:+- Invisible content (white text on white background after print rules apply)+- Sidebar / nav still showing (should typically be hidden)+- Page breaks landing mid-content+- Print-specific layout never tested++**Severity if no print rules and printing is plausible**: Medium (e.g. invoices, reports).++## 8. High-contrast / forced-colors mode++**How**: Browser DevTools → Rendering → Emulate CSS media → `forced-colors: active`. OR Windows High Contrast.++**What it catches**:+- Elements that disappear (background-only highlights without borders)+- Icons rendering as squares+- Focus rings invisible in forced colours+- Form inputs unstyleable++**Severity**: High accessibility violation.++## 9. Keyboard-only++**How**: Unplug the mouse. Walk the entire app with Tab / Shift+Tab / Enter / Space / Arrow keys / Escape.++**What it catches**:+- Focus traps in modals (can't Tab out)+- Hidden focus states (can't see where you are)+- Skipped focusable elements+- Custom dropdowns that don't respond to arrow keys+- Drag-and-drop with no keyboard alternative+- Modals that don't return focus to trigger on close++**Coverage check**: every interactive element must be reachable via Tab and operable via Enter / Space / Arrow.++## 10. Screen reader test (NVDA / VoiceOver)++**How**: Mac: VoiceOver (Cmd+F5). Windows: NVDA (free download).++**What it catches**:+- Unlabeled buttons ("Click here" landmarks, icons without aria-label)+- Decorative images announced+- Form fields with no associated label+- Dynamic content that doesn't announce changes (`aria-live`)+- Headings out of order (h1 → h3 skipping h2)++**Severity**: Major accessibility violation. Often Critical for compliance-required apps.++## 11. Long-press / right-click variations++**How**: Right-click on every interactive element. Long-press (touch device emulation).++**What it catches**:+- Context menus not implemented where they should be+- Default browser context menu showing on a custom widget+- Long-press selecting text on a card meant to be tappable+- Drag handles activating a context menu++## 12. Browser-back during in-flight action++**How**: Click Submit, then immediately click browser back before the action completes.++**What it catches**:+- Server still processes the action; user lands on previous screen with no idea+- Optimistic UI rolled back but server confirmed (state inconsistency)+- Navigation guards not present on dirty forms++**Severity**: High if data is created server-side without user confirmation.++## 13. Tab-restore (browser crash sim)++**How**: Close the browser tab mid-task. Reopen. Use browser's "Reopen Closed Tab" or navigate to the URL.++**What it catches**:+- Drafts not saved (autosave gap)+- "Continue where you left off" missing+- Local storage cleared on tab close+- Session lost (re-login required for an authenticated state)++## 14. Multiple-tab consistency++**How**: Open the app in two tabs side by side. Modify a record in tab A. Switch to tab B. Modify the same record.++**What it catches**:+- Stale state in tab B (no sync)+- Conflict resolution UX (last-write-wins silently)+- Real-time updates (or absence)+- Auth state divergence (logout in A, B doesn't notice)++## 15. Stale localStorage / IndexedDB++**How**: Modify a known localStorage / IndexedDB key to an old version's format. Reload.++**What it catches**:+- App crashes on schema mismatch+- Silent reset of user state+- Missing migration logic++**Especially relevant for**: apps that have been deployed for > 6 months with persistent client-state.++## 16. Real-flavour data battery++AI-built UIs are notoriously dev-data clean. Every form accepts "Test User" and "[email protected]" but breaks on real names, real lengths, real edge cases. Use the fixture below across every form and every list during element exhaustion.++### Fixture — paste each into appropriate fields++```+NAMES (test in name fields, mention pickers, member lists):+ O'Brien // apostrophe+ María // diacritic+ François // diacritic + cedilla+ 朴기철 // CJK + Hangul+ محمد بن سلمان // RTL Arabic+ Schöngeist-Holzhäusermeisterin // 30+ char German compound+ X Æ A-12 // unusual punctuation+ ' OR 1=1; -- // SQL injection canary (must escape)+ <script>alert(1)</script> // XSS canary (must escape)+ (200 chars of "a") // length stress++EMAIL ADDRESSES (sign-up, invite, sharing):+ [email protected] // plus-addressing+ "user with space"@example.com // quoted local-part (RFC 5321 valid)+ [email protected] // IP literal+ [email protected] // punycode++PHONE NUMBERS (contact forms):+ +61 4 1234 5678 // AU mobile+ (02) 1234 5678 // AU landline w/ area code+ 04-1234-5678 // AU mobile w/ dashes+ +1-555-555-5555 ext 1234 // US with extension+ +44 20 7946 0958 // UK landline++ADDRESSES (shipping, billing):+ 1/12 O'Connell St, Newcastle NSW 2300 // unit prefix + apostrophe+ Apt 4B "Rear Cottage", 123 Main St // double-quote in line+ PO Box 1234 // PO box variant+ Lot 7 RMB 142, Williamtown NSW 2318 // rural mail bag++PASTE BOMBS (textareas, message fields):+ - 5,000-character paragraph (stress textarea height + serialisation)+ - 200-line paste with mixed indentation+ - Tab characters (preserves vs collapses?)+ - RTF clipboard paste from Word (does the editor keep formatting it didn't ask for?)+ - Smart quotes "" ‹›『』 (does the form normalise?)++FILES (uploads):+ - 8000×8000 PNG (memory blow-out test)+ - 50 MB PDF (size limit test)+ - "résumé (final)(2).pdf" (filename with spaces, parens, accent)+ - .heic photo (iOS native — does the app convert or reject cleanly?)+ - 0-byte file (edge: does upload code crash on empty buffer?)+ - .exe / .dmg (security: must reject)++NUMBERS (currency, quantities):+ $1,234.56 // formatted+ 1,234.56 // ambiguous (1234.56 or 1.23456?)+ €1.234,56 // EU format+ ¥1234 // no decimals+ 1.5e6 // scientific notation+ -0 // signed zero+ Infinity // edge++DATES (date pickers, timestamps):+ 29 Feb 2024 // valid leap year+ 29 Feb 2025 // INVALID — must reject+ 31 Apr 2025 // INVALID — only 30 days in April+ 1 Jan 1900 // far past+ 31 Dec 2099 // far future+```++### Where to use it++For every form discovered in element exhaustion:++1. Find the field type (name, email, address, etc).+2. Paste the most relevant fixture string.+3. Submit + verify:+ - Render after submit displays the input intact (no character loss / corruption)+ - Stored value round-trips on edit (open the saved record, re-edit, verify the field still contains the input exactly)+ - Validation errors are CLEAR (not "Invalid input" — say what's wrong: "Apostrophes not allowed" if that's the rule)+ - SQL/XSS canaries are escaped, not executed++### What it catches++- Validation that strips characters silently (apostrophe → `?`, accents → blank)+- Length truncation without warning (200-char name → first 50)+- Server-side encoding mismatches (utf8 → utf8mb4 issues)+- Search/sort that doesn't normalise diacritics ("Maria" doesn't find "María")+- File-type filters that reject legitimate formats (.heic, .webp)+- Clipboard paste that injects HTML / inline styles when not wanted+- Number/date parsers that silently coerce wrong values++### Severity guide++| Failure mode | Severity |+|---|---|+| User input silently lost / corrupted on save | Critical |+| User input rejected without clear error message | High |+| Display renders mangled (HTML entities visible, encoding garbage) | High |+| Search misses normalised matches (Maria/María) | Medium |+| File upload rejects legitimate format | Medium |+| Filename special chars displayed weirdly but file otherwise works | Low |++This recipe is **mandatory for any app accepting user content**. Skip only for builder-mode reference pages and read-only displays.++## Severity reference++A stress test produces findings whose severity follows these defaults:++| Recipe failure | Default severity |+|---|---|+| Double-click produces duplicates | Critical |+| Slow-network shows no skeleton | High |+| Reduced-motion ignored | High |+| Long German breaks layout | High |+| RTL mirroring missing on icons | Medium |+| Offline silently loses data | Critical |+| Print stylesheet absent (where plausible) | Medium |+| Forced-colors elements disappear | High |+| Focus trap in modal | Critical |+| Screen reader: unlabeled primary action | Critical |+| Tab-restore loses draft | High |+| Multi-tab: stale state | Medium |++Promote findings with stacked failures (e.g. slow-network AND no skeleton AND no progress text → Critical).++## When to skip a recipe++Skip recipes that don't apply:+- Print stylesheet on a chat app — skip+- RTL on an English-only app — skip but note that future i18n will need it+- Offline mode on a tool that legitimately requires connectivity — note the connection requirement instead++Don't skip recipes that *should* apply but the team hasn't implemented yet — those produce findings.++## Coverage publication++At the end of the stress phase, publish:++```+STRESS COVERAGE+ Recipes run: 13 / 15+ Skipped: 2 (RTL — no i18n yet; Print — chat-only app)+ Findings produced: 7 (1 Critical, 3 High, 2 Medium, 1 Low)+```++Coverage transparency lets the next agent know what wasn't tested.