The design language that makes your AI harness better at design.
JavaScript
Sync generated provider output
github-actions[bot]c979ac37c361
diff --git a/.agents/skills/impeccable/reference/critique.md b/.agents/skills/impeccable/reference/critique.mdindex 6a13c48f5..331ea9972 100644--- a/.agents/skills/impeccable/reference/critique.md+++ b/.agents/skills/impeccable/reference/critique.md@@ -5,8 +5,9 @@ Resolve one stable target, run two independent assessments, synthesize a design### Hard Invariants- Assessment A (design review) and Assessment B (detector/browser evidence) are both required.+- Assessment A and B MUST run as two isolated sub-agents whenever a sub-agent/Task tool is exposed. Running them inline in this context is "possible" but is NOT permitted; it is a degraded run. Inline is allowed ONLY when no sub-agent tool exists (or the user declined, on harnesses that ask).+- If you degrade for any reason, the report's first line MUST be a banner: `⚠️ DEGRADED: single-context (<reason>)`. A silent degraded critique is a failed critique.- Assessment A must finish before detector findings enter the parent synthesis context. Detector output is deterministic, but it still anchors judgment.-- If sub-agents are unavailable, fall back sequentially: finish and record Assessment A first, then run Assessment B, then synthesize.- A skipped detector is a failed critique run unless `detect.mjs` is missing or crashes after a real attempt.- Viewable targets require browser inspection when available.- Any local server started only for critique visualization must run in the background, have a recorded stop method, and be stopped before final reporting unless the user asks to keep it.@@ -27,14 +28,21 @@ Resolve one stable target, run two independent assessments, synthesize a design### Assessment Orchestration-Delegate Assessment A and Assessment B to separate sub-agents when possible. They must not see each other's output. Do not show findings to the user until synthesis.+Delegate Assessment A and Assessment B to separate sub-agents. They must not see each other's output. Do not show findings to the user until synthesis.-Codex sub-agent gate:+Sub-agent gate (all harnesses):+- Unless a harness-specific gate below overrides this, spawn A and B as two isolated, parallel sub-agents whenever a sub-agent/Task tool is exposed. This is the default and is mandatory; do not run them inline because it is faster.+- "Unavailable" means exactly one thing: no sub-agent/Task tool is exposed in this session (or, on harnesses that ask, the user declined). It does not mean inconvenient.+- If and only if sub-agents are unavailable, fall back sequentially: finish and record Assessment A, then run Assessment B, then synthesize, and emit the degraded banner.+- Whichever path you take, declare it in the report header (see Report header provenance). Skipping sub-agents without the banner is the most common failure of this command.++Codex sub-agent gate (overrides the default above; Codex's permission model requires asking before spawning):+- Asking is the normal path, not a degradation. Approving and spawning is the dual-agent path; do not emit the degraded banner just for asking.- If `spawn_agent` is exposed and the user explicitly allowed sub-agents, delegation, or parallel agent work, spawn A and B immediately.- If `spawn_agent` is exposed but the user did not explicitly allow sub-agents, ask exactly once: "Impeccable critique is designed to run two independent sub-agents for an unanchored assessment. May I use sub-agents for this critique?" Then stop until the user answers.-- If allowed, spawn A and B. If declined, run sequentially and report `Assessment independence: degraded (sub-agents declined by user)`.-- If `spawn_agent` is not exposed, do not ask; run sequentially and report `Assessment independence: degraded (spawn_agent unavailable in this session)`.-- If spawning fails after permission, run sequentially and report `Assessment independence: degraded (sub-agent spawn failed: <exact error>)`.+- If allowed, spawn A and B. If declined, run sequentially and lead the report with `⚠️ DEGRADED: single-context (sub-agents declined by user)`.+- If `spawn_agent` is not exposed, do not ask; run sequentially and lead with `⚠️ DEGRADED: single-context (spawn_agent unavailable in this session)`.+- If spawning fails after permission, run sequentially and lead with `⚠️ DEGRADED: single-context (sub-agent spawn failed: <exact error>)`.Prefer `fork_context: false` with self-contained prompts containing cwd, target, live URL, references, product context, and output contract. If using `fork_context: true`, omit `agent_type`, `model`, and `reasoning_effort`.If browser automation is available, each assessment creates its own new tab. Never reuse an existing tab, even if it is already at the right URL.@@ -69,7 +77,7 @@ node .agents/skills/impeccable/scripts/detect.mjs --json [target]Browser visualization is required for a viewable target when browser automation is available. Use a localhost dev/static URL for local files; avoid `file://` unless the available browser explicitly supports this workflow. Overlay flow:-1. Create a fresh tab and navigate.+1. Create a fresh tab and navigate. Prefer the harness's native/browser-canvas screenshot path before hand-rolling a Playwright/Puppeteer script; only fall back to a custom script when no native browser tool is exposed.2. Preflight mutable injection by setting `document.title` and appending a `<script>` tag. Read-only evaluate APIs do not count.3. If mutation is unavailable, skip live server, browser presentation, and injection; report fallback signal.4. If mutation is available, start `node .agents/skills/impeccable/scripts/live-server.mjs --background`, present the browser if supported, label `[Human]`, scroll top, inject `http://localhost:PORT/detect.js`, wait 2-3 seconds, read `impeccable` console messages, then stop the live server.@@ -93,6 +101,12 @@ Codex final-answer note: `$impeccable critique` produces a report artifact, so tStructure your feedback as a design director would:+#### Report header provenance++The report's first line MUST declare how the assessments were run, so a degraded run is never silent:+- Dual-agent: `Method: dual-agent (A: <agent-id> · B: <agent-id>)`+- Degraded: `⚠️ DEGRADED: single-context (<reason, e.g. no sub-agent tool exposed>)`+#### Design Health Score> *Consult the [Heuristics Scoring Guide](#heuristics-scoring-guide) section below.*diff --git a/.claude/skills/impeccable/reference/critique.md b/.claude/skills/impeccable/reference/critique.mdindex 3e526fa4d..8e05304e5 100644--- a/.claude/skills/impeccable/reference/critique.md+++ b/.claude/skills/impeccable/reference/critique.md@@ -5,8 +5,9 @@ Resolve one stable target, run two independent assessments, synthesize a design### Hard Invariants- Assessment A (design review) and Assessment B (detector/browser evidence) are both required.+- Assessment A and B MUST run as two isolated sub-agents whenever a sub-agent/Task tool is exposed. Running them inline in this context is "possible" but is NOT permitted; it is a degraded run. Inline is allowed ONLY when no sub-agent tool exists (or the user declined, on harnesses that ask).+- If you degrade for any reason, the report's first line MUST be a banner: `⚠️ DEGRADED: single-context (<reason>)`. A silent degraded critique is a failed critique.- Assessment A must finish before detector findings enter the parent synthesis context. Detector output is deterministic, but it still anchors judgment.-- If sub-agents are unavailable, fall back sequentially: finish and record Assessment A first, then run Assessment B, then synthesize.- A skipped detector is a failed critique run unless `detect.mjs` is missing or crashes after a real attempt.- Viewable targets require browser inspection when available.- Any local server started only for critique visualization must run in the background, have a recorded stop method, and be stopped before final reporting unless the user asks to keep it.@@ -27,7 +28,13 @@ Resolve one stable target, run two independent assessments, synthesize a design### Assessment Orchestration-Delegate Assessment A and Assessment B to separate sub-agents when possible. They must not see each other's output. Do not show findings to the user until synthesis.+Delegate Assessment A and Assessment B to separate sub-agents. They must not see each other's output. Do not show findings to the user until synthesis.++Sub-agent gate (all harnesses):+- Unless a harness-specific gate below overrides this, spawn A and B as two isolated, parallel sub-agents whenever a sub-agent/Task tool is exposed. This is the default and is mandatory; do not run them inline because it is faster.+- "Unavailable" means exactly one thing: no sub-agent/Task tool is exposed in this session (or, on harnesses that ask, the user declined). It does not mean inconvenient.+- If and only if sub-agents are unavailable, fall back sequentially: finish and record Assessment A, then run Assessment B, then synthesize, and emit the degraded banner.+- Whichever path you take, declare it in the report header (see Report header provenance). Skipping sub-agents without the banner is the most common failure of this command.If browser automation is available, each assessment creates its own new tab. Never reuse an existing tab, even if it is already at the right URL.@@ -61,7 +68,7 @@ node .claude/skills/impeccable/scripts/detect.mjs --json [target]Browser visualization is required for a viewable target when browser automation is available. Use a localhost dev/static URL for local files; avoid `file://` unless the available browser explicitly supports this workflow. Overlay flow:-1. Create a fresh tab and navigate.+1. Create a fresh tab and navigate. Prefer the harness's native/browser-canvas screenshot path before hand-rolling a Playwright/Puppeteer script; only fall back to a custom script when no native browser tool is exposed.2. Preflight mutable injection by setting `document.title` and appending a `<script>` tag. Read-only evaluate APIs do not count.3. If mutation is unavailable, skip live server, browser presentation, and injection; report fallback signal.4. If mutation is available, start `node .claude/skills/impeccable/scripts/live-server.mjs --background`, present the browser if supported, label `[Human]`, scroll top, inject `http://localhost:PORT/detect.js`, wait 2-3 seconds, read `impeccable` console messages, then stop the live server.@@ -79,6 +86,12 @@ The chat response is the primary user-facing deliverable. Present the full strucStructure your feedback as a design director would:+#### Report header provenance++The report's first line MUST declare how the assessments were run, so a degraded run is never silent:+- Dual-agent: `Method: dual-agent (A: <agent-id> · B: <agent-id>)`+- Degraded: `⚠️ DEGRADED: single-context (<reason, e.g. no sub-agent tool exposed>)`+#### Design Health Score> *Consult the [Heuristics Scoring Guide](#heuristics-scoring-guide) section below.*diff --git a/.cursor/skills/impeccable/reference/critique.md b/.cursor/skills/impeccable/reference/critique.mdindex 4e6e12e8e..d326a1148 100644--- a/.cursor/skills/impeccable/reference/critique.md+++ b/.cursor/skills/impeccable/reference/critique.md@@ -5,8 +5,9 @@ Resolve one stable target, run two independent assessments, synthesize a design### Hard Invariants- Assessment A (design review) and Assessment B (detector/browser evidence) are both required.+- Assessment A and B MUST run as two isolated sub-agents whenever a sub-agent/Task tool is exposed. Running them inline in this context is "possible" but is NOT permitted; it is a degraded run. Inline is allowed ONLY when no sub-agent tool exists (or the user declined, on harnesses that ask).+- If you degrade for any reason, the report's first line MUST be a banner: `⚠️ DEGRADED: single-context (<reason>)`. A silent degraded critique is a failed critique.- Assessment A must finish before detector findings enter the parent synthesis context. Detector output is deterministic, but it still anchors judgment.-- If sub-agents are unavailable, fall back sequentially: finish and record Assessment A first, then run Assessment B, then synthesize.- A skipped detector is a failed critique run unless `detect.mjs` is missing or crashes after a real attempt.- Viewable targets require browser inspection when available.- Any local server started only for critique visualization must run in the background, have a recorded stop method, and be stopped before final reporting unless the user asks to keep it.@@ -27,7 +28,13 @@ Resolve one stable target, run two independent assessments, synthesize a design### Assessment Orchestration-Delegate Assessment A and Assessment B to separate sub-agents when possible. They must not see each other's output. Do not show findings to the user until synthesis.+Delegate Assessment A and Assessment B to separate sub-agents. They must not see each other's output. Do not show findings to the user until synthesis.++Sub-agent gate (all harnesses):+- Unless a harness-specific gate below overrides this, spawn A and B as two isolated, parallel sub-agents whenever a sub-agent/Task tool is exposed. This is the default and is mandatory; do not run them inline because it is faster.+- "Unavailable" means exactly one thing: no sub-agent/Task tool is exposed in this session (or, on harnesses that ask, the user declined). It does not mean inconvenient.+- If and only if sub-agents are unavailable, fall back sequentially: finish and record Assessment A, then run Assessment B, then synthesize, and emit the degraded banner.+- Whichever path you take, declare it in the report header (see Report header provenance). Skipping sub-agents without the banner is the most common failure of this command.If browser automation is available, each assessment creates its own new tab. Never reuse an existing tab, even if it is already at the right URL.@@ -61,7 +68,7 @@ node .cursor/skills/impeccable/scripts/detect.mjs --json [target]Browser visualization is required for a viewable target when browser automation is available. Use a localhost dev/static URL for local files; avoid `file://` unless the available browser explicitly supports this workflow. Overlay flow:-1. Create a fresh tab and navigate.+1. Create a fresh tab and navigate. Prefer the harness's native/browser-canvas screenshot path before hand-rolling a Playwright/Puppeteer script; only fall back to a custom script when no native browser tool is exposed.2. Preflight mutable injection by setting `document.title` and appending a `<script>` tag. Read-only evaluate APIs do not count.3. If mutation is unavailable, skip live server, browser presentation, and injection; report fallback signal.4. If mutation is available, start `node .cursor/skills/impeccable/scripts/live-server.mjs --background`, present the browser if supported, label `[Human]`, scroll top, inject `http://localhost:PORT/detect.js`, wait 2-3 seconds, read `impeccable` console messages, then stop the live server.@@ -79,6 +86,12 @@ The chat response is the primary user-facing deliverable. Present the full strucStructure your feedback as a design director would:+#### Report header provenance++The report's first line MUST declare how the assessments were run, so a degraded run is never silent:+- Dual-agent: `Method: dual-agent (A: <agent-id> · B: <agent-id>)`+- Degraded: `⚠️ DEGRADED: single-context (<reason, e.g. no sub-agent tool exposed>)`+#### Design Health Score> *Consult the [Heuristics Scoring Guide](#heuristics-scoring-guide) section below.*diff --git a/.gemini/skills/impeccable/reference/critique.md b/.gemini/skills/impeccable/reference/critique.mdindex a1a13ccbe..4ad79389d 100644--- a/.gemini/skills/impeccable/reference/critique.md+++ b/.gemini/skills/impeccable/reference/critique.md@@ -5,8 +5,9 @@ Resolve one stable target, run two independent assessments, synthesize a design### Hard Invariants- Assessment A (design review) and Assessment B (detector/browser evidence) are both required.+- Assessment A and B MUST run as two isolated sub-agents whenever a sub-agent/Task tool is exposed. Running them inline in this context is "possible" but is NOT permitted; it is a degraded run. Inline is allowed ONLY when no sub-agent tool exists (or the user declined, on harnesses that ask).+- If you degrade for any reason, the report's first line MUST be a banner: `⚠️ DEGRADED: single-context (<reason>)`. A silent degraded critique is a failed critique.- Assessment A must finish before detector findings enter the parent synthesis context. Detector output is deterministic, but it still anchors judgment.-- If sub-agents are unavailable, fall back sequentially: finish and record Assessment A first, then run Assessment B, then synthesize.- A skipped detector is a failed critique run unless `detect.mjs` is missing or crashes after a real attempt.- Viewable targets require browser inspection when available.- Any local server started only for critique visualization must run in the background, have a recorded stop method, and be stopped before final reporting unless the user asks to keep it.@@ -27,7 +28,13 @@ Resolve one stable target, run two independent assessments, synthesize a design### Assessment Orchestration-Delegate Assessment A and Assessment B to separate sub-agents when possible. They must not see each other's output. Do not show findings to the user until synthesis.+Delegate Assessment A and Assessment B to separate sub-agents. They must not see each other's output. Do not show findings to the user until synthesis.++Sub-agent gate (all harnesses):+- Unless a harness-specific gate below overrides this, spawn A and B as two isolated, parallel sub-agents whenever a sub-agent/Task tool is exposed. This is the default and is mandatory; do not run them inline because it is faster.+- "Unavailable" means exactly one thing: no sub-agent/Task tool is exposed in this session (or, on harnesses that ask, the user declined). It does not mean inconvenient.+- If and only if sub-agents are unavailable, fall back sequentially: finish and record Assessment A, then run Assessment B, then synthesize, and emit the degraded banner.+- Whichever path you take, declare it in the report header (see Report header provenance). Skipping sub-agents without the banner is the most common failure of this command.If browser automation is available, each assessment creates its own new tab. Never reuse an existing tab, even if it is already at the right URL.@@ -61,7 +68,7 @@ node .gemini/skills/impeccable/scripts/detect.mjs --json [target]Browser visualization is required for a viewable target when browser automation is available. Use a localhost dev/static URL for local files; avoid `file://` unless the available browser explicitly supports this workflow. Overlay flow:-1. Create a fresh tab and navigate.+1. Create a fresh tab and navigate. Prefer the harness's native/browser-canvas screenshot path before hand-rolling a Playwright/Puppeteer script; only fall back to a custom script when no native browser tool is exposed.2. Preflight mutable injection by setting `document.title` and appending a `<script>` tag. Read-only evaluate APIs do not count.3. If mutation is unavailable, skip live server, browser presentation, and injection; report fallback signal.4. If mutation is available, start `node .gemini/skills/impeccable/scripts/live-server.mjs --background`, present the browser if supported, label `[Human]`, scroll top, inject `http://localhost:PORT/detect.js`, wait 2-3 seconds, read `impeccable` console messages, then stop the live server.@@ -79,6 +86,12 @@ The chat response is the primary user-facing deliverable. Present the full strucStructure your feedback as a design director would:+#### Report header provenance++The report's first line MUST declare how the assessments were run, so a degraded run is never silent:+- Dual-agent: `Method: dual-agent (A: <agent-id> · B: <agent-id>)`+- Degraded: `⚠️ DEGRADED: single-context (<reason, e.g. no sub-agent tool exposed>)`+#### Design Health Score> *Consult the [Heuristics Scoring Guide](#heuristics-scoring-guide) section below.*diff --git a/.github/skills/impeccable/reference/critique.md b/.github/skills/impeccable/reference/critique.mdindex b803939fb..b6ccc00a3 100644--- a/.github/skills/impeccable/reference/critique.md+++ b/.github/skills/impeccable/reference/critique.md@@ -5,8 +5,9 @@ Resolve one stable target, run two independent assessments, synthesize a design### Hard Invariants- Assessment A (design review) and Assessment B (detector/browser evidence) are both required.+- Assessment A and B MUST run as two isolated sub-agents whenever a sub-agent/Task tool is exposed. Running them inline in this context is "possible" but is NOT permitted; it is a degraded run. Inline is allowed ONLY when no sub-agent tool exists (or the user declined, on harnesses that ask).+- If you degrade for any reason, the report's first line MUST be a banner: `⚠️ DEGRADED: single-context (<reason>)`. A silent degraded critique is a failed critique.- Assessment A must finish before detector findings enter the parent synthesis context. Detector output is deterministic, but it still anchors judgment.-- If sub-agents are unavailable, fall back sequentially: finish and record Assessment A first, then run Assessment B, then synthesize.- A skipped detector is a failed critique run unless `detect.mjs` is missing or crashes after a real attempt.- Viewable targets require browser inspection when available.- Any local server started only for critique visualization must run in the background, have a recorded stop method, and be stopped before final reporting unless the user asks to keep it.@@ -27,7 +28,13 @@ Resolve one stable target, run two independent assessments, synthesize a design### Assessment Orchestration-Delegate Assessment A and Assessment B to separate sub-agents when possible. They must not see each other's output. Do not show findings to the user until synthesis.+Delegate Assessment A and Assessment B to separate sub-agents. They must not see each other's output. Do not show findings to the user until synthesis.++Sub-agent gate (all harnesses):+- Unless a harness-specific gate below overrides this, spawn A and B as two isolated, parallel sub-agents whenever a sub-agent/Task tool is exposed. This is the default and is mandatory; do not run them inline because it is faster.+- "Unavailable" means exactly one thing: no sub-agent/Task tool is exposed in this session (or, on harnesses that ask, the user declined). It does not mean inconvenient.+- If and only if sub-agents are unavailable, fall back sequentially: finish and record Assessment A, then run Assessment B, then synthesize, and emit the degraded banner.+- Whichever path you take, declare it in the report header (see Report header provenance). Skipping sub-agents without the banner is the most common failure of this command.If browser automation is available, each assessment creates its own new tab. Never reuse an existing tab, even if it is already at the right URL.@@ -61,7 +68,7 @@ node .github/skills/impeccable/scripts/detect.mjs --json [target]Browser visualization is required for a viewable target when browser automation is available. Use a localhost dev/static URL for local files; avoid `file://` unless the available browser explicitly supports this workflow. Overlay flow:-1. Create a fresh tab and navigate.+1. Create a fresh tab and navigate. Prefer the harness's native/browser-canvas screenshot path before hand-rolling a Playwright/Puppeteer script; only fall back to a custom script when no native browser tool is exposed.2. Preflight mutable injection by setting `document.title` and appending a `<script>` tag. Read-only evaluate APIs do not count.3. If mutation is unavailable, skip live server, browser presentation, and injection; report fallback signal.4. If mutation is available, start `node .github/skills/impeccable/scripts/live-server.mjs --background`, present the browser if supported, label `[Human]`, scroll top, inject `http://localhost:PORT/detect.js`, wait 2-3 seconds, read `impeccable` console messages, then stop the live server.@@ -79,6 +86,12 @@ The chat response is the primary user-facing deliverable. Present the full strucStructure your feedback as a design director would:+#### Report header provenance++The report's first line MUST declare how the assessments were run, so a degraded run is never silent:+- Dual-agent: `Method: dual-agent (A: <agent-id> · B: <agent-id>)`+- Degraded: `⚠️ DEGRADED: single-context (<reason, e.g. no sub-agent tool exposed>)`+#### Design Health Score> *Consult the [Heuristics Scoring Guide](#heuristics-scoring-guide) section below.*diff --git a/.kiro/skills/impeccable/reference/critique.md b/.kiro/skills/impeccable/reference/critique.mdindex fd7aaa641..191ac85d9 100644--- a/.kiro/skills/impeccable/reference/critique.md+++ b/.kiro/skills/impeccable/reference/critique.md@@ -5,8 +5,9 @@ Resolve one stable target, run two independent assessments, synthesize a design### Hard Invariants- Assessment A (design review) and Assessment B (detector/browser evidence) are both required.+- Assessment A and B MUST run as two isolated sub-agents whenever a sub-agent/Task tool is exposed. Running them inline in this context is "possible" but is NOT permitted; it is a degraded run. Inline is allowed ONLY when no sub-agent tool exists (or the user declined, on harnesses that ask).+- If you degrade for any reason, the report's first line MUST be a banner: `⚠️ DEGRADED: single-context (<reason>)`. A silent degraded critique is a failed critique.- Assessment A must finish before detector findings enter the parent synthesis context. Detector output is deterministic, but it still anchors judgment.-- If sub-agents are unavailable, fall back sequentially: finish and record Assessment A first, then run Assessment B, then synthesize.- A skipped detector is a failed critique run unless `detect.mjs` is missing or crashes after a real attempt.- Viewable targets require browser inspection when available.- Any local server started only for critique visualization must run in the background, have a recorded stop method, and be stopped before final reporting unless the user asks to keep it.@@ -27,7 +28,13 @@ Resolve one stable target, run two independent assessments, synthesize a design### Assessment Orchestration-Delegate Assessment A and Assessment B to separate sub-agents when possible. They must not see each other's output. Do not show findings to the user until synthesis.+Delegate Assessment A and Assessment B to separate sub-agents. They must not see each other's output. Do not show findings to the user until synthesis.++Sub-agent gate (all harnesses):+- Unless a harness-specific gate below overrides this, spawn A and B as two isolated, parallel sub-agents whenever a sub-agent/Task tool is exposed. This is the default and is mandatory; do not run them inline because it is faster.+- "Unavailable" means exactly one thing: no sub-agent/Task tool is exposed in this session (or, on harnesses that ask, the user declined). It does not mean inconvenient.+- If and only if sub-agents are unavailable, fall back sequentially: finish and record Assessment A, then run Assessment B, then synthesize, and emit the degraded banner.+- Whichever path you take, declare it in the report header (see Report header provenance). Skipping sub-agents without the banner is the most common failure of this command.If browser automation is available, each assessment creates its own new tab. Never reuse an existing tab, even if it is already at the right URL.@@ -61,7 +68,7 @@ node .kiro/skills/impeccable/scripts/detect.mjs --json [target]Browser visualization is required for a viewable target when browser automation is available. Use a localhost dev/static URL for local files; avoid `file://` unless the available browser explicitly supports this workflow. Overlay flow:-1. Create a fresh tab and navigate.+1. Create a fresh tab and navigate. Prefer the harness's native/browser-canvas screenshot path before hand-rolling a Playwright/Puppeteer script; only fall back to a custom script when no native browser tool is exposed.2. Preflight mutable injection by setting `document.title` and appending a `<script>` tag. Read-only evaluate APIs do not count.3. If mutation is unavailable, skip live server, browser presentation, and injection; report fallback signal.4. If mutation is available, start `node .kiro/skills/impeccable/scripts/live-server.mjs --background`, present the browser if supported, label `[Human]`, scroll top, inject `http://localhost:PORT/detect.js`, wait 2-3 seconds, read `impeccable` console messages, then stop the live server.@@ -79,6 +86,12 @@ The chat response is the primary user-facing deliverable. Present the full strucStructure your feedback as a design director would:+#### Report header provenance++The report's first line MUST declare how the assessments were run, so a degraded run is never silent:+- Dual-agent: `Method: dual-agent (A: <agent-id> · B: <agent-id>)`+- Degraded: `⚠️ DEGRADED: single-context (<reason, e.g. no sub-agent tool exposed>)`+#### Design Health Score> *Consult the [Heuristics Scoring Guide](#heuristics-scoring-guide) section below.*diff --git a/.opencode/skills/impeccable/reference/critique.md b/.opencode/skills/impeccable/reference/critique.mdindex 06a0a4538..5afe9c271 100644--- a/.opencode/skills/impeccable/reference/critique.md+++ b/.opencode/skills/impeccable/reference/critique.md@@ -5,8 +5,9 @@ Resolve one stable target, run two independent assessments, synthesize a design### Hard Invariants- Assessment A (design review) and Assessment B (detector/browser evidence) are both required.+- Assessment A and B MUST run as two isolated sub-agents whenever a sub-agent/Task tool is exposed. Running them inline in this context is "possible" but is NOT permitted; it is a degraded run. Inline is allowed ONLY when no sub-agent tool exists (or the user declined, on harnesses that ask).+- If you degrade for any reason, the report's first line MUST be a banner: `⚠️ DEGRADED: single-context (<reason>)`. A silent degraded critique is a failed critique.- Assessment A must finish before detector findings enter the parent synthesis context. Detector output is deterministic, but it still anchors judgment.-- If sub-agents are unavailable, fall back sequentially: finish and record Assessment A first, then run Assessment B, then synthesize.- A skipped detector is a failed critique run unless `detect.mjs` is missing or crashes after a real attempt.- Viewable targets require browser inspection when available.- Any local server started only for critique visualization must run in the background, have a recorded stop method, and be stopped before final reporting unless the user asks to keep it.@@ -27,7 +28,13 @@ Resolve one stable target, run two independent assessments, synthesize a design### Assessment Orchestration-Delegate Assessment A and Assessment B to separate sub-agents when possible. They must not see each other's output. Do not show findings to the user until synthesis.+Delegate Assessment A and Assessment B to separate sub-agents. They must not see each other's output. Do not show findings to the user until synthesis.++Sub-agent gate (all harnesses):+- Unless a harness-specific gate below overrides this, spawn A and B as two isolated, parallel sub-agents whenever a sub-agent/Task tool is exposed. This is the default and is mandatory; do not run them inline because it is faster.+- "Unavailable" means exactly one thing: no sub-agent/Task tool is exposed in this session (or, on harnesses that ask, the user declined). It does not mean inconvenient.+- If and only if sub-agents are unavailable, fall back sequentially: finish and record Assessment A, then run Assessment B, then synthesize, and emit the degraded banner.+- Whichever path you take, declare it in the report header (see Report header provenance). Skipping sub-agents without the banner is the most common failure of this command.If browser automation is available, each assessment creates its own new tab. Never reuse an existing tab, even if it is already at the right URL.@@ -61,7 +68,7 @@ node .opencode/skills/impeccable/scripts/detect.mjs --json [target]Browser visualization is required for a viewable target when browser automation is available. Use a localhost dev/static URL for local files; avoid `file://` unless the available browser explicitly supports this workflow. Overlay flow:-1. Create a fresh tab and navigate.+1. Create a fresh tab and navigate. Prefer the harness's native/browser-canvas screenshot path before hand-rolling a Playwright/Puppeteer script; only fall back to a custom script when no native browser tool is exposed.2. Preflight mutable injection by setting `document.title` and appending a `<script>` tag. Read-only evaluate APIs do not count.3. If mutation is unavailable, skip live server, browser presentation, and injection; report fallback signal.4. If mutation is available, start `node .opencode/skills/impeccable/scripts/live-server.mjs --background`, present the browser if supported, label `[Human]`, scroll top, inject `http://localhost:PORT/detect.js`, wait 2-3 seconds, read `impeccable` console messages, then stop the live server.@@ -79,6 +86,12 @@ The chat response is the primary user-facing deliverable. Present the full strucStructure your feedback as a design director would:+#### Report header provenance++The report's first line MUST declare how the assessments were run, so a degraded run is never silent:+- Dual-agent: `Method: dual-agent (A: <agent-id> · B: <agent-id>)`+- Degraded: `⚠️ DEGRADED: single-context (<reason, e.g. no sub-agent tool exposed>)`+#### Design Health Score> *Consult the [Heuristics Scoring Guide](#heuristics-scoring-guide) section below.*diff --git a/.pi/skills/impeccable/reference/critique.md b/.pi/skills/impeccable/reference/critique.mdindex ba58150bd..fc466ebca 100644--- a/.pi/skills/impeccable/reference/critique.md+++ b/.pi/skills/impeccable/reference/critique.md@@ -5,8 +5,9 @@ Resolve one stable target, run two independent assessments, synthesize a design### Hard Invariants- Assessment A (design review) and Assessment B (detector/browser evidence) are both required.+- Assessment A and B MUST run as two isolated sub-agents whenever a sub-agent/Task tool is exposed. Running them inline in this context is "possible" but is NOT permitted; it is a degraded run. Inline is allowed ONLY when no sub-agent tool exists (or the user declined, on harnesses that ask).+- If you degrade for any reason, the report's first line MUST be a banner: `⚠️ DEGRADED: single-context (<reason>)`. A silent degraded critique is a failed critique.- Assessment A must finish before detector findings enter the parent synthesis context. Detector output is deterministic, but it still anchors judgment.-- If sub-agents are unavailable, fall back sequentially: finish and record Assessment A first, then run Assessment B, then synthesize.- A skipped detector is a failed critique run unless `detect.mjs` is missing or crashes after a real attempt.- Viewable targets require browser inspection when available.- Any local server started only for critique visualization must run in the background, have a recorded stop method, and be stopped before final reporting unless the user asks to keep it.@@ -27,7 +28,13 @@ Resolve one stable target, run two independent assessments, synthesize a design### Assessment Orchestration-Delegate Assessment A and Assessment B to separate sub-agents when possible. They must not see each other's output. Do not show findings to the user until synthesis.+Delegate Assessment A and Assessment B to separate sub-agents. They must not see each other's output. Do not show findings to the user until synthesis.++Sub-agent gate (all harnesses):+- Unless a harness-specific gate below overrides this, spawn A and B as two isolated, parallel sub-agents whenever a sub-agent/Task tool is exposed. This is the default and is mandatory; do not run them inline because it is faster.+- "Unavailable" means exactly one thing: no sub-agent/Task tool is exposed in this session (or, on harnesses that ask, the user declined). It does not mean inconvenient.+- If and only if sub-agents are unavailable, fall back sequentially: finish and record Assessment A, then run Assessment B, then synthesize, and emit the degraded banner.+- Whichever path you take, declare it in the report header (see Report header provenance). Skipping sub-agents without the banner is the most common failure of this command.If browser automation is available, each assessment creates its own new tab. Never reuse an existing tab, even if it is already at the right URL.@@ -61,7 +68,7 @@ node .pi/skills/impeccable/scripts/detect.mjs --json [target]Browser visualization is required for a viewable target when browser automation is available. Use a localhost dev/static URL for local files; avoid `file://` unless the available browser explicitly supports this workflow. Overlay flow:-1. Create a fresh tab and navigate.+1. Create a fresh tab and navigate. Prefer the harness's native/browser-canvas screenshot path before hand-rolling a Playwright/Puppeteer script; only fall back to a custom script when no native browser tool is exposed.2. Preflight mutable injection by setting `document.title` and appending a `<script>` tag. Read-only evaluate APIs do not count.3. If mutation is unavailable, skip live server, browser presentation, and injection; report fallback signal.4. If mutation is available, start `node .pi/skills/impeccable/scripts/live-server.mjs --background`, present the browser if supported, label `[Human]`, scroll top, inject `http://localhost:PORT/detect.js`, wait 2-3 seconds, read `impeccable` console messages, then stop the live server.@@ -79,6 +86,12 @@ The chat response is the primary user-facing deliverable. Present the full strucStructure your feedback as a design director would:+#### Report header provenance++The report's first line MUST declare how the assessments were run, so a degraded run is never silent:+- Dual-agent: `Method: dual-agent (A: <agent-id> · B: <agent-id>)`+- Degraded: `⚠️ DEGRADED: single-context (<reason, e.g. no sub-agent tool exposed>)`+#### Design Health Score> *Consult the [Heuristics Scoring Guide](#heuristics-scoring-guide) section below.*diff --git a/.qoder/skills/impeccable/reference/critique.md b/.qoder/skills/impeccable/reference/critique.mdindex 4f72e9c45..82bd31376 100644--- a/.qoder/skills/impeccable/reference/critique.md+++ b/.qoder/skills/impeccable/reference/critique.md@@ -5,8 +5,9 @@ Resolve one stable target, run two independent assessments, synthesize a design### Hard Invariants- Assessment A (design review) and Assessment B (detector/browser evidence) are both required.+- Assessment A and B MUST run as two isolated sub-agents whenever a sub-agent/Task tool is exposed. Running them inline in this context is "possible" but is NOT permitted; it is a degraded run. Inline is allowed ONLY when no sub-agent tool exists (or the user declined, on harnesses that ask).+- If you degrade for any reason, the report's first line MUST be a banner: `⚠️ DEGRADED: single-context (<reason>)`. A silent degraded critique is a failed critique.- Assessment A must finish before detector findings enter the parent synthesis context. Detector output is deterministic, but it still anchors judgment.-- If sub-agents are unavailable, fall back sequentially: finish and record Assessment A first, then run Assessment B, then synthesize.- A skipped detector is a failed critique run unless `detect.mjs` is missing or crashes after a real attempt.- Viewable targets require browser inspection when available.- Any local server started only for critique visualization must run in the background, have a recorded stop method, and be stopped before final reporting unless the user asks to keep it.@@ -27,7 +28,13 @@ Resolve one stable target, run two independent assessments, synthesize a design### Assessment Orchestration-Delegate Assessment A and Assessment B to separate sub-agents when possible. They must not see each other's output. Do not show findings to the user until synthesis.+Delegate Assessment A and Assessment B to separate sub-agents. They must not see each other's output. Do not show findings to the user until synthesis.++Sub-agent gate (all harnesses):+- Unless a harness-specific gate below overrides this, spawn A and B as two isolated, parallel sub-agents whenever a sub-agent/Task tool is exposed. This is the default and is mandatory; do not run them inline because it is faster.+- "Unavailable" means exactly one thing: no sub-agent/Task tool is exposed in this session (or, on harnesses that ask, the user declined). It does not mean inconvenient.+- If and only if sub-agents are unavailable, fall back sequentially: finish and record Assessment A, then run Assessment B, then synthesize, and emit the degraded banner.+- Whichever path you take, declare it in the report header (see Report header provenance). Skipping sub-agents without the banner is the most common failure of this command.If browser automation is available, each assessment creates its own new tab. Never reuse an existing tab, even if it is already at the right URL.@@ -61,7 +68,7 @@ node .qoder/skills/impeccable/scripts/detect.mjs --json [target]Browser visualization is required for a viewable target when browser automation is available. Use a localhost dev/static URL for local files; avoid `file://` unless the available browser explicitly supports this workflow. Overlay flow:-1. Create a fresh tab and navigate.+1. Create a fresh tab and navigate. Prefer the harness's native/browser-canvas screenshot path before hand-rolling a Playwright/Puppeteer script; only fall back to a custom script when no native browser tool is exposed.2. Preflight mutable injection by setting `document.title` and appending a `<script>` tag. Read-only evaluate APIs do not count.3. If mutation is unavailable, skip live server, browser presentation, and injection; report fallback signal.4. If mutation is available, start `node .qoder/skills/impeccable/scripts/live-server.mjs --background`, present the browser if supported, label `[Human]`, scroll top, inject `http://localhost:PORT/detect.js`, wait 2-3 seconds, read `impeccable` console messages, then stop the live server.@@ -79,6 +86,12 @@ The chat response is the primary user-facing deliverable. Present the full strucStructure your feedback as a design director would:+#### Report header provenance++The report's first line MUST declare how the assessments were run, so a degraded run is never silent:+- Dual-agent: `Method: dual-agent (A: <agent-id> · B: <agent-id>)`+- Degraded: `⚠️ DEGRADED: single-context (<reason, e.g. no sub-agent tool exposed>)`+#### Design Health Score> *Consult the [Heuristics Scoring Guide](#heuristics-scoring-guide) section below.*diff --git a/.rovodev/skills/impeccable/reference/critique.md b/.rovodev/skills/impeccable/reference/critique.mdindex 256924a35..b1e5098fc 100644--- a/.rovodev/skills/impeccable/reference/critique.md+++ b/.rovodev/skills/impeccable/reference/critique.md@@ -5,8 +5,9 @@ Resolve one stable target, run two independent assessments, synthesize a design### Hard Invariants- Assessment A (design review) and Assessment B (detector/browser evidence) are both required.+- Assessment A and B MUST run as two isolated sub-agents whenever a sub-agent/Task tool is exposed. Running them inline in this context is "possible" but is NOT permitted; it is a degraded run. Inline is allowed ONLY when no sub-agent tool exists (or the user declined, on harnesses that ask).+- If you degrade for any reason, the report's first line MUST be a banner: `⚠️ DEGRADED: single-context (<reason>)`. A silent degraded critique is a failed critique.- Assessment A must finish before detector findings enter the parent synthesis context. Detector output is deterministic, but it still anchors judgment.-- If sub-agents are unavailable, fall back sequentially: finish and record Assessment A first, then run Assessment B, then synthesize.- A skipped detector is a failed critique run unless `detect.mjs` is missing or crashes after a real attempt.- Viewable targets require browser inspection when available.- Any local server started only for critique visualization must run in the background, have a recorded stop method, and be stopped before final reporting unless the user asks to keep it.@@ -27,7 +28,13 @@ Resolve one stable target, run two independent assessments, synthesize a design### Assessment Orchestration-Delegate Assessment A and Assessment B to separate sub-agents when possible. They must not see each other's output. Do not show findings to the user until synthesis.+Delegate Assessment A and Assessment B to separate sub-agents. They must not see each other's output. Do not show findings to the user until synthesis.++Sub-agent gate (all harnesses):+- Unless a harness-specific gate below overrides this, spawn A and B as two isolated, parallel sub-agents whenever a sub-agent/Task tool is exposed. This is the default and is mandatory; do not run them inline because it is faster.+- "Unavailable" means exactly one thing: no sub-agent/Task tool is exposed in this session (or, on harnesses that ask, the user declined). It does not mean inconvenient.+- If and only if sub-agents are unavailable, fall back sequentially: finish and record Assessment A, then run Assessment B, then synthesize, and emit the degraded banner.+- Whichever path you take, declare it in the report header (see Report header provenance). Skipping sub-agents without the banner is the most common failure of this command.If browser automation is available, each assessment creates its own new tab. Never reuse an existing tab, even if it is already at the right URL.@@ -61,7 +68,7 @@ node .rovodev/skills/impeccable/scripts/detect.mjs --json [target]Browser visualization is required for a viewable target when browser automation is available. Use a localhost dev/static URL for local files; avoid `file://` unless the available browser explicitly supports this workflow. Overlay flow:-1. Create a fresh tab and navigate.+1. Create a fresh tab and navigate. Prefer the harness's native/browser-canvas screenshot path before hand-rolling a Playwright/Puppeteer script; only fall back to a custom script when no native browser tool is exposed.2. Preflight mutable injection by setting `document.title` and appending a `<script>` tag. Read-only evaluate APIs do not count.3. If mutation is unavailable, skip live server, browser presentation, and injection; report fallback signal.4. If mutation is available, start `node .rovodev/skills/impeccable/scripts/live-server.mjs --background`, present the browser if supported, label `[Human]`, scroll top, inject `http://localhost:PORT/detect.js`, wait 2-3 seconds, read `impeccable` console messages, then stop the live server.@@ -79,6 +86,12 @@ The chat response is the primary user-facing deliverable. Present the full strucStructure your feedback as a design director would:+#### Report header provenance++The report's first line MUST declare how the assessments were run, so a degraded run is never silent:+- Dual-agent: `Method: dual-agent (A: <agent-id> · B: <agent-id>)`+- Degraded: `⚠️ DEGRADED: single-context (<reason, e.g. no sub-agent tool exposed>)`+#### Design Health Score> *Consult the [Heuristics Scoring Guide](#heuristics-scoring-guide) section below.*diff --git a/.trae-cn/skills/impeccable/reference/critique.md b/.trae-cn/skills/impeccable/reference/critique.mdindex 4d4d5c767..7c2ad5cc2 100644--- a/.trae-cn/skills/impeccable/reference/critique.md+++ b/.trae-cn/skills/impeccable/reference/critique.md@@ -5,8 +5,9 @@ Resolve one stable target, run two independent assessments, synthesize a design### Hard Invariants- Assessment A (design review) and Assessment B (detector/browser evidence) are both required.+- Assessment A and B MUST run as two isolated sub-agents whenever a sub-agent/Task tool is exposed. Running them inline in this context is "possible" but is NOT permitted; it is a degraded run. Inline is allowed ONLY when no sub-agent tool exists (or the user declined, on harnesses that ask).+- If you degrade for any reason, the report's first line MUST be a banner: `⚠️ DEGRADED: single-context (<reason>)`. A silent degraded critique is a failed critique.- Assessment A must finish before detector findings enter the parent synthesis context. Detector output is deterministic, but it still anchors judgment.-- If sub-agents are unavailable, fall back sequentially: finish and record Assessment A first, then run Assessment B, then synthesize.- A skipped detector is a failed critique run unless `detect.mjs` is missing or crashes after a real attempt.- Viewable targets require browser inspection when available.- Any local server started only for critique visualization must run in the background, have a recorded stop method, and be stopped before final reporting unless the user asks to keep it.@@ -27,7 +28,13 @@ Resolve one stable target, run two independent assessments, synthesize a design### Assessment Orchestration-Delegate Assessment A and Assessment B to separate sub-agents when possible. They must not see each other's output. Do not show findings to the user until synthesis.+Delegate Assessment A and Assessment B to separate sub-agents. They must not see each other's output. Do not show findings to the user until synthesis.++Sub-agent gate (all harnesses):+- Unless a harness-specific gate below overrides this, spawn A and B as two isolated, parallel sub-agents whenever a sub-agent/Task tool is exposed. This is the default and is mandatory; do not run them inline because it is faster.+- "Unavailable" means exactly one thing: no sub-agent/Task tool is exposed in this session (or, on harnesses that ask, the user declined). It does not mean inconvenient.+- If and only if sub-agents are unavailable, fall back sequentially: finish and record Assessment A, then run Assessment B, then synthesize, and emit the degraded banner.+- Whichever path you take, declare it in the report header (see Report header provenance). Skipping sub-agents without the banner is the most common failure of this command.If browser automation is available, each assessment creates its own new tab. Never reuse an existing tab, even if it is already at the right URL.@@ -61,7 +68,7 @@ node .trae-cn/skills/impeccable/scripts/detect.mjs --json [target]Browser visualization is required for a viewable target when browser automation is available. Use a localhost dev/static URL for local files; avoid `file://` unless the available browser explicitly supports this workflow. Overlay flow:-1. Create a fresh tab and navigate.+1. Create a fresh tab and navigate. Prefer the harness's native/browser-canvas screenshot path before hand-rolling a Playwright/Puppeteer script; only fall back to a custom script when no native browser tool is exposed.2. Preflight mutable injection by setting `document.title` and appending a `<script>` tag. Read-only evaluate APIs do not count.3. If mutation is unavailable, skip live server, browser presentation, and injection; report fallback signal.4. If mutation is available, start `node .trae-cn/skills/impeccable/scripts/live-server.mjs --background`, present the browser if supported, label `[Human]`, scroll top, inject `http://localhost:PORT/detect.js`, wait 2-3 seconds, read `impeccable` console messages, then stop the live server.@@ -79,6 +86,12 @@ The chat response is the primary user-facing deliverable. Present the full strucStructure your feedback as a design director would:+#### Report header provenance++The report's first line MUST declare how the assessments were run, so a degraded run is never silent:+- Dual-agent: `Method: dual-agent (A: <agent-id> · B: <agent-id>)`+- Degraded: `⚠️ DEGRADED: single-context (<reason, e.g. no sub-agent tool exposed>)`+#### Design Health Score> *Consult the [Heuristics Scoring Guide](#heuristics-scoring-guide) section below.*diff --git a/.trae/skills/impeccable/reference/critique.md b/.trae/skills/impeccable/reference/critique.mdindex 36cdc2e77..91dcd9bea 100644--- a/.trae/skills/impeccable/reference/critique.md+++ b/.trae/skills/impeccable/reference/critique.md@@ -5,8 +5,9 @@ Resolve one stable target, run two independent assessments, synthesize a design### Hard Invariants- Assessment A (design review) and Assessment B (detector/browser evidence) are both required.+- Assessment A and B MUST run as two isolated sub-agents whenever a sub-agent/Task tool is exposed. Running them inline in this context is "possible" but is NOT permitted; it is a degraded run. Inline is allowed ONLY when no sub-agent tool exists (or the user declined, on harnesses that ask).+- If you degrade for any reason, the report's first line MUST be a banner: `⚠️ DEGRADED: single-context (<reason>)`. A silent degraded critique is a failed critique.- Assessment A must finish before detector findings enter the parent synthesis context. Detector output is deterministic, but it still anchors judgment.-- If sub-agents are unavailable, fall back sequentially: finish and record Assessment A first, then run Assessment B, then synthesize.- A skipped detector is a failed critique run unless `detect.mjs` is missing or crashes after a real attempt.- Viewable targets require browser inspection when available.- Any local server started only for critique visualization must run in the background, have a recorded stop method, and be stopped before final reporting unless the user asks to keep it.@@ -27,7 +28,13 @@ Resolve one stable target, run two independent assessments, synthesize a design### Assessment Orchestration-Delegate Assessment A and Assessment B to separate sub-agents when possible. They must not see each other's output. Do not show findings to the user until synthesis.+Delegate Assessment A and Assessment B to separate sub-agents. They must not see each other's output. Do not show findings to the user until synthesis.++Sub-agent gate (all harnesses):+- Unless a harness-specific gate below overrides this, spawn A and B as two isolated, parallel sub-agents whenever a sub-agent/Task tool is exposed. This is the default and is mandatory; do not run them inline because it is faster.+- "Unavailable" means exactly one thing: no sub-agent/Task tool is exposed in this session (or, on harnesses that ask, the user declined). It does not mean inconvenient.+- If and only if sub-agents are unavailable, fall back sequentially: finish and record Assessment A, then run Assessment B, then synthesize, and emit the degraded banner.+- Whichever path you take, declare it in the report header (see Report header provenance). Skipping sub-agents without the banner is the most common failure of this command.If browser automation is available, each assessment creates its own new tab. Never reuse an existing tab, even if it is already at the right URL.@@ -61,7 +68,7 @@ node .trae/skills/impeccable/scripts/detect.mjs --json [target]Browser visualization is required for a viewable target when browser automation is available. Use a localhost dev/static URL for local files; avoid `file://` unless the available browser explicitly supports this workflow. Overlay flow:-1. Create a fresh tab and navigate.+1. Create a fresh tab and navigate. Prefer the harness's native/browser-canvas screenshot path before hand-rolling a Playwright/Puppeteer script; only fall back to a custom script when no native browser tool is exposed.2. Preflight mutable injection by setting `document.title` and appending a `<script>` tag. Read-only evaluate APIs do not count.3. If mutation is unavailable, skip live server, browser presentation, and injection; report fallback signal.4. If mutation is available, start `node .trae/skills/impeccable/scripts/live-server.mjs --background`, present the browser if supported, label `[Human]`, scroll top, inject `http://localhost:PORT/detect.js`, wait 2-3 seconds, read `impeccable` console messages, then stop the live server.@@ -79,6 +86,12 @@ The chat response is the primary user-facing deliverable. Present the full strucStructure your feedback as a design director would:+#### Report header provenance++The report's first line MUST declare how the assessments were run, so a degraded run is never silent:+- Dual-agent: `Method: dual-agent (A: <agent-id> · B: <agent-id>)`+- Degraded: `⚠️ DEGRADED: single-context (<reason, e.g. no sub-agent tool exposed>)`+#### Design Health Score> *Consult the [Heuristics Scoring Guide](#heuristics-scoring-guide) section below.*diff --git a/plugin/skills/impeccable/reference/critique.md b/plugin/skills/impeccable/reference/critique.mdindex 3e526fa4d..8e05304e5 100644--- a/plugin/skills/impeccable/reference/critique.md+++ b/plugin/skills/impeccable/reference/critique.md@@ -5,8 +5,9 @@ Resolve one stable target, run two independent assessments, synthesize a design### Hard Invariants- Assessment A (design review) and Assessment B (detector/browser evidence) are both required.+- Assessment A and B MUST run as two isolated sub-agents whenever a sub-agent/Task tool is exposed. Running them inline in this context is "possible" but is NOT permitted; it is a degraded run. Inline is allowed ONLY when no sub-agent tool exists (or the user declined, on harnesses that ask).+- If you degrade for any reason, the report's first line MUST be a banner: `⚠️ DEGRADED: single-context (<reason>)`. A silent degraded critique is a failed critique.- Assessment A must finish before detector findings enter the parent synthesis context. Detector output is deterministic, but it still anchors judgment.-- If sub-agents are unavailable, fall back sequentially: finish and record Assessment A first, then run Assessment B, then synthesize.- A skipped detector is a failed critique run unless `detect.mjs` is missing or crashes after a real attempt.- Viewable targets require browser inspection when available.- Any local server started only for critique visualization must run in the background, have a recorded stop method, and be stopped before final reporting unless the user asks to keep it.@@ -27,7 +28,13 @@ Resolve one stable target, run two independent assessments, synthesize a design### Assessment Orchestration-Delegate Assessment A and Assessment B to separate sub-agents when possible. They must not see each other's output. Do not show findings to the user until synthesis.+Delegate Assessment A and Assessment B to separate sub-agents. They must not see each other's output. Do not show findings to the user until synthesis.++Sub-agent gate (all harnesses):+- Unless a harness-specific gate below overrides this, spawn A and B as two isolated, parallel sub-agents whenever a sub-agent/Task tool is exposed. This is the default and is mandatory; do not run them inline because it is faster.+- "Unavailable" means exactly one thing: no sub-agent/Task tool is exposed in this session (or, on harnesses that ask, the user declined). It does not mean inconvenient.+- If and only if sub-agents are unavailable, fall back sequentially: finish and record Assessment A, then run Assessment B, then synthesize, and emit the degraded banner.+- Whichever path you take, declare it in the report header (see Report header provenance). Skipping sub-agents without the banner is the most common failure of this command.If browser automation is available, each assessment creates its own new tab. Never reuse an existing tab, even if it is already at the right URL.@@ -61,7 +68,7 @@ node .claude/skills/impeccable/scripts/detect.mjs --json [target]Browser visualization is required for a viewable target when browser automation is available. Use a localhost dev/static URL for local files; avoid `file://` unless the available browser explicitly supports this workflow. Overlay flow:-1. Create a fresh tab and navigate.+1. Create a fresh tab and navigate. Prefer the harness's native/browser-canvas screenshot path before hand-rolling a Playwright/Puppeteer script; only fall back to a custom script when no native browser tool is exposed.2. Preflight mutable injection by setting `document.title` and appending a `<script>` tag. Read-only evaluate APIs do not count.3. If mutation is unavailable, skip live server, browser presentation, and injection; report fallback signal.4. If mutation is available, start `node .claude/skills/impeccable/scripts/live-server.mjs --background`, present the browser if supported, label `[Human]`, scroll top, inject `http://localhost:PORT/detect.js`, wait 2-3 seconds, read `impeccable` console messages, then stop the live server.@@ -79,6 +86,12 @@ The chat response is the primary user-facing deliverable. Present the full strucStructure your feedback as a design director would:+#### Report header provenance++The report's first line MUST declare how the assessments were run, so a degraded run is never silent:+- Dual-agent: `Method: dual-agent (A: <agent-id> · B: <agent-id>)`+- Degraded: `⚠️ DEGRADED: single-context (<reason, e.g. no sub-agent tool exposed>)`+#### Design Health Score> *Consult the [Heuristics Scoring Guide](#heuristics-scoring-guide) section below.*