Skip to content

The design language that makes your AI harness better at design.

JavaScript

Deliver the report as its own step; retune the lineup

Paul Bakaus121602079c2f
diff --git a/CLAUDE.md b/CLAUDE.md
index 993e0e133..dc3dae89a 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -198,7 +198,7 @@ IMPECCABLE_SKILL_BEHAVIOR_MODELS=gemini-3.5-flash bun run test:skill-behavior
IMPECCABLE_SKILL_BEHAVIOR_VERBOSE=1 bun run test:skill-behavior # dump per-scenario trace JSON to stderr (use when iterating)
```
-**Every provider, every run.** The lineup is `DEFAULT_MODELS` in `tests/skill-behavior/providers.mjs`, currently `claude-sonnet-5`, `gpt-5.6-luna`, `gemini-3.5-flash`, and `deepseek-v4-flash`. **Don't substitute Claude alone**: many of the most useful findings come from divergence between providers.
+**Frontier tiers, more than one family.** The lineup is `DEFAULT_MODELS` in `tests/skill-behavior/providers.mjs`, currently `claude-sonnet-5` and `gemini-3.6-flash`. `gpt-5.6-luna` and `deepseek-v4-flash` were dropped in 2026-08: below the frontier tier they fail scenarios for model-floor reasons rather than skill-text defects, and a suite that is always red is a suite nobody reads. **Don't substitute Claude alone**: many of the most useful findings come from divergence between families, so keep at least two. The dropped models stay selectable via `IMPECCABLE_SKILL_BEHAVIOR_MODELS` when a Setup or routing change warrants a wider sweep.
**Auth** lives in repo-root `.env` (copied from `~/code/impeccable-evals/.env`, gitignored). Providers skip cleanly when their key is unset; they don't fail.
diff --git a/skill/reference/critique.md b/skill/reference/critique.md
index 4c1928fa7..f96cbbfe7 100644
--- a/skill/reference/critique.md
+++ b/skill/reference/critique.md
@@ -204,6 +204,14 @@ Codex Run Notes are final-chat only. Do not include this section in the persiste
- Prioritize ruthlessly. If everything is important, nothing is.
- Don't soften criticism. Developers need honest feedback to ship great design.
+### Deliver the Report
+
+Write the full report into the chat response now, before any persistence work. This is the deliverable; everything below it is bookkeeping.
+
+Do this first because the alternative is the most common way this command fails: the report gets composed once, straight into the persistence heredoc, and the run ends with a perfect archive nobody has read. Composing it into a file is not delivering it. If the report exists only in `.impeccable/critique/`, the run produced nothing.
+
+Persistence is not the end of the run. After it, the response continues with the trend line and the close.
+
### Persist the Snapshot
Once the report above is finalized, write it to `.impeccable/critique/` so the user can refer back, and so `{{command_prefix}}impeccable polish` can pick up the priority issues without a copy-paste.
@@ -212,7 +220,7 @@ Skip this step if the Setup slug was null (vague or root-level target).
1. **Write the body to a temp file** so you can pipe it to the helper. Use the full critique report (heuristic table, design-specificity verdict, priority issues, persona red flags, minor observations, and questions), but stop before the "Ask the User" / "Recommended Actions" sections that come later.
- This file is an archive copy, not delivery. The same report must still be written out in the chat response. Authoring it into a heredoc, storing it, and moving on produces a run with nothing the user can see: the snapshot is for later commands, the chat response is for the person who asked.
+ This is a copy of the report you already delivered above, for later commands to read. It is not delivery. If you find yourself composing the report for the first time inside this heredoc, you have skipped Deliver the Report; go back and send it.
<codex>
Codex: exclude Run Notes from the temp body file; Run Notes are final-chat only because persistence, trend read, and temp cleanup happen after the snapshot write.
@@ -242,6 +250,8 @@ Skip this step if the Setup slug was null (vague or root-level target).
If this is the first run for the slug, the trend is just one score; say so: "First run for this target, no trend yet."
+6. **Close the run.** Go to Ask the User below and emit the questions, or the `Questions skipped: <reason>` line when the count allows it. The run is not complete until you do. Persistence is bookkeeping and cleanup is not an ending; stopping here leaves the user with a report and no way forward, and leaves `{{command_prefix}}impeccable polish` with no priorities to inherit.
+
This is fire-and-forget. Do not show the user the helper's JSON output; only the human-readable trend line and the written path. Failures here should not block the rest of the flow; print the error and move on.
### Ask the User
diff --git a/tests/skill-behavior/README.md b/tests/skill-behavior/README.md
index 4ab1104b5..1e904baab 100644
--- a/tests/skill-behavior/README.md
+++ b/tests/skill-behavior/README.md
@@ -15,6 +15,7 @@ contract.
bun run test:skill-behavior
IMPECCABLE_SKILL_BEHAVIOR_VERBOSE=1 bun run test:skill-behavior # dump per-scenario traces
IMPECCABLE_SKILL_BEHAVIOR_MODELS=claude-sonnet-5 bun run test:skill-behavior # scope to one model
+IMPECCABLE_SKILL_BEHAVIOR_EFFORT=xhigh bun run test:skill-behavior # OpenAI reasoning effort (default: high)
```
Requires `.env` at repo root with at least one of `ANTHROPIC_API_KEY`,
@@ -74,25 +75,40 @@ cannot reach the skip branch on merit. The assertion is deliberately loose about
## Workflow-contract baseline (2026-08-13, current lineup)
-Measured on `claude-sonnet-5`, `gpt-5.6-luna`, `gemini-3.5-flash`, and
-`deepseek-v4-flash` while checking whether an `{{ask_instruction}}` rewrite had
-regressed anything. Two of the four workflow-contract scenarios fail for reasons
-that predate that change. Treat both as the known floor; a regression is a
-failure beyond these.
+Measured while checking whether an `{{ask_instruction}}` rewrite had regressed
+anything.
-| Scenario | claude-sonnet-5 | gpt-5.6-luna | gemini-3.5-flash | deepseek-v4-flash |
+**The last two columns are no longer in the default lineup.** `gpt-5.6-luna` and
+`deepseek-v4-flash` were dropped in 2026-08 for being below the frontier tier:
+they fail scenarios by stopping mid-run or archiving a report without stating
+it, which is model-floor behavior rather than a skill-text defect. Their columns
+stay here because they are the record of what a weaker model does with this text,
+and that is the useful part. Reproduce with
+`IMPECCABLE_SKILL_BEHAVIOR_MODELS=gpt-5.6-luna,deepseek-v4-flash`.
+
+Against the current default lineup, two cells are the known floor:
+`redesign replaces DESIGN` is flaky, and `critique closes` is flaky on
+gemini-3.6-flash. A regression is a failure beyond those two.
+
+| Scenario | claude-sonnet-5 | gpt-5.6-terra | gemini-3.6-flash | luna / deepseek (dropped) |
|---|---|---|---|---|
| attended fresh init | not measured | not measured | not measured | not measured |
| initialized natural build | not measured | not measured | not measured | not measured |
| redesign replaces DESIGN | flaky | not measured | not measured | not measured |
-| bolder refinement | not measured | pass | pass | **fail** |
-| critique closes | pass (2 of 2) | **fail (1 of 6)** | pass (2 of 2) | flaky (1 of 2) |
+| bolder refinement | not measured | not measured | pass (on 3.5) | luna pass, deepseek **fail** |
+| critique closes | pass (2 of 2) | pass (2 of 2) | **flaky (1 of 3)** | luna **fail (1 of 6)**, deepseek flaky |
+
+Gemini cells marked `on 3.5` were measured on the superseded `gemini-3.5-flash`
+and have not been re-run on 3.6. That distinction is not pedantic. `critique
+closes` passed twice on 3.5-flash, then failed three times in a row on 3.6-flash
+against identical instruction text, and only passed once the report delivery step
+was made explicit. A version bump inside one family changed the outcome, so treat
+cross-version carryover as unmeasured rather than inherited.
`not measured` means exactly that: the cell was never run in isolation on this
-lineup. Only the two failing scenarios were scoped per model, because the
-investigation was about whether a specific edit had regressed them. The rows are
-worth keeping anyway, since a scenario absent from the table is easy to mistake
-for a scenario that passed.
+lineup. Only the scenarios under investigation were scoped per model. The rows
+are worth keeping anyway, since a scenario absent from the table is easy to
+mistake for a scenario that passed.
**`bolder refinement`, deepseek-v4-flash.** The model runs `context.mjs`, reads
`bolder.md`, `craft-floor.md`, and `current.html`, then ends its turn without
@@ -101,31 +117,44 @@ the 16-step cap. Confirmed identical on HEAD with `bolder.md` reverted, so it is
not a skill-text problem. Same shape as the gpt-5.4-mini scenario 6/7 failures
below: the model consumes the references and then declines to act.
-**`critique closes`, gpt-5.6-luna.** Five runs while tuning the instruction text
-produced one pass. It fails in three distinct ways, which is why the scenario
-asserts on emission order rather than only on the presence of a question:
+**`critique closes`: the three ways a critique fails to land.** The scenario
+asserts emission order, not just the presence of a question, because the command
+fails in three distinct ways and only one of them was the reported bug:
-1. *No close.* Report lands, no question, no skip line. The failure this
- scenario was written for.
+1. *No close.* Report lands, no question, no skip line. `polish` downstream
+ inherits nothing.
2. *Question before report.* The question is emitted first and the report after
- it, so the report is withheld until the user answers. Observed directly, and
- the reason the invariant is stated as a position rule ("the question is the
- LAST thing in the response") rather than as prose order.
-3. *Report never spoken.* The full report is authored into the persistence
- heredoc, archived, and never written to chat. The snapshot is perfect and the
- user sees nothing. This is why persistence step 1 says the temp file is an
- archive copy, not delivery.
-
-claude-sonnet-5 and gemini-3.5-flash pass consistently. deepseek-v4-flash has
-hit mode 3 once in two runs, so it is flaky here, not clean. Strengthening the
-instruction text moved luna from consistently failing to occasionally passing,
-and further prose tuning stopped paying.
-
-Read the counts in the table as what they are: small samples on a nondeterministic
-system, gathered while the instruction text was being changed between runs. They
-say the close is reliable on the two strongest models and unreliable on the two
-cheapest ones. They do not support a finer claim than that. Re-measure rather
-than assuming when the lineup changes.
+ it, so the report is withheld until the user answers. Observed directly on
+ gpt-5.6-luna, and the reason the invariant is a position rule ("the question
+ is the LAST thing in the response") rather than a statement about prose order.
+3. *Report never spoken.* The report is authored straight into the persistence
+ heredoc, archived, and never written to chat. A perfect snapshot and a user
+ who sees nothing.
+
+Mode 3 is the one worth understanding, because it was structural rather than a
+model quirk. `critique.md` described the report's format and then went directly
+to writing a temp file, with no step that said to output the report. Both
+gemini-3.6-flash and luna responded by bundling heredoc, snapshot write, trend
+read, and cleanup into a single bash call and stopping. The `Deliver the Report`
+section exists to close that gap, and it worked: gemini-3.6-flash failed three
+consecutive runs before it, and its failures afterward all show the report
+reaching chat.
+
+**Mode 1 is not fixed on gemini-3.6-flash.** It passes 1 run in 3 on the final
+text. Two structural attempts were made and neither settled it: the close was
+promoted into Hard Invariants with a printable `Questions skipped: <reason>`
+string, then made step 6 of the persistence list so it would sit inside the
+numbered flow rather than after it (the shape that fixed mode 3). Both moved it
+from consistently failing to intermittently passing, and further prose tuning
+was not paying, so it stopped. claude-sonnet-5 and gpt-5.6-terra are clean.
+Treat this cell as the known floor and re-measure rather than tuning blindly:
+the next useful move is probably a structural one, such as making the close
+something the run cannot syntactically finish without, not another paragraph.
+
+Read the counts here as what they are: small samples on a nondeterministic
+system, several of them gathered while the instruction text was still changing
+between runs. They support "the close works on the current lineup" and not much
+finer than that. Re-measure rather than assuming when the lineup changes.
**`redesign replaces DESIGN`, flaky.** It has failed on two different assertions
across runs (`designWrite > question` and `implementation > designWrite`), and on
@@ -158,9 +187,8 @@ and truncating it costs you the per-model attribution.
## Baseline state (2026-05-20, previous cheap tier)
-> **Historical record.** The default models are now `claude-sonnet-5`,
-> `gpt-5.6-luna`, `gemini-3.5-flash`, and `deepseek-v4-flash`. The table below
-> was measured on an older cheap tier
+> **Historical record.** The default models are now `claude-sonnet-5` and
+> `gemini-3.6-flash`. The table below was measured on an older cheap tier
> (`claude-haiku-4-5` / `gpt-5.4-mini`) and is kept as the historical record.
> Re-measure on the current lineup and update this section; the stronger
> models are expected to clear the scenario 6/7 routing failures that the old
diff --git a/tests/skill-behavior/harness.mjs b/tests/skill-behavior/harness.mjs
index 94a8f1871..e9f4187b1 100644
--- a/tests/skill-behavior/harness.mjs
+++ b/tests/skill-behavior/harness.mjs
@@ -26,6 +26,7 @@ import os from 'node:os';
import path from 'node:path';
import { spawn } from 'node:child_process';
import { fileURLToPath } from 'node:url';
+import { getProviderOptions } from './providers.mjs';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
const REPO_ROOT = path.resolve(__dirname, '..', '..');
@@ -348,6 +349,10 @@ export async function runTurn({ workspace, model, userPrompt, priorMessages = []
messages,
tools,
stopWhen: [stepCountIs(maxSteps)],
+ // Resolved from the model object so the 21 runTurn call sites stay
+ // unchanged. Reasoning models run at the provider default otherwise,
+ // which is not the tier this suite is meant to measure.
+ providerOptions: getProviderOptions(model?.modelId ?? ''),
});
} catch (err) {
throw new Error(`LLM behavior turn failed before completing: ${String(err)}`, { cause: err });
diff --git a/tests/skill-behavior/providers.mjs b/tests/skill-behavior/providers.mjs
index 97be64c68..d6bf0dc8b 100644
--- a/tests/skill-behavior/providers.mjs
+++ b/tests/skill-behavior/providers.mjs
@@ -88,12 +88,46 @@ export function getModel(modelId) {
}
/**
- * Default model lineup. These are current models, but intentionally the
- * economical members of each family: this test is about routing/loading
- * behavior, not design-output quality.
- * Override with IMPECCABLE_SKILL_BEHAVIOR_MODELS=claude-foo,gpt-bar.
+ * Per-model provider options, merged into generateText by the harness.
+ *
+ * gpt-5.6-terra is a reasoning model, and at the provider's default effort it
+ * is not the tier this suite is meant to measure. Setup and routing behavior is
+ * exactly the kind of multi-step instruction-following that reasoning effort
+ * moves, so pin it high rather than inherit whatever the default happens to be.
+ * Override with IMPECCABLE_SKILL_BEHAVIOR_EFFORT=xhigh.
+ */
+export function getProviderOptions(modelId) {
+ let provider;
+ try {
+ provider = detectProvider(modelId);
+ } catch {
+ // Resolved from a live model object rather than the lineup, so an id this
+ // module does not recognize is not an error; it just gets no options.
+ return undefined;
+ }
+ if (provider === 'openai') {
+ const effort = process.env.IMPECCABLE_SKILL_BEHAVIOR_EFFORT || 'high';
+ return { openai: { reasoningEffort: effort } };
+ }
+ return undefined;
+}
+
+/**
+ * Default model lineup. Frontier tiers only.
+ *
+ * gpt-5.6-luna and deepseek-v4-flash were dropped in 2026-08: below the
+ * frontier tier, they fail scenarios for reasons that are model-floor behavior
+ * rather than skill-text defects (stopping mid-run, archiving a report without
+ * ever stating it), and a permanently red suite teaches everyone to ignore it.
+ *
+ * They stay selectable, and running a wider sweep deliberately is still worth
+ * doing when Setup or routing text changes in a way that could go wrong in an
+ * unfamiliar direction. Divergence between families is what surfaces the
+ * non-obvious failures; the cheap tier just could not tell divergence from
+ * its own floor:
+ * IMPECCABLE_SKILL_BEHAVIOR_MODELS=gpt-5.6-luna,deepseek-v4-flash
*/
-export const DEFAULT_MODELS = ['claude-sonnet-5', 'gpt-5.6-luna', 'gemini-3.5-flash', 'deepseek-v4-flash'];
+export const DEFAULT_MODELS = ['claude-sonnet-5', 'gpt-5.6-terra', 'gemini-3.6-flash'];
export function resolveModelList() {
const override = process.env.IMPECCABLE_SKILL_BEHAVIOR_MODELS;