Skip to content

fix(skills): brainstorming nothing-to-design exception with authoritative description routing - #1718

Closed
arittr wants to merge 73 commits into
devfrom
drew/sup-333-3-brainstorming-triviality-gate
Closed

arittr wants to merge 73 commits into
devfrom
drew/sup-333-3-brainstorming-triviality-gate

Conversation

@arittr

@arittr arittr commented Jun 10, 2026 •

Copy link
Copy Markdown
Collaborator

Targets dev. Independently mergeable — the brainstorming exception and its routing-layer semantics (formerly #1732, closed into this PR) ship together: the stated-scan protocol spans both files, and shipping them separately left the always-injected routing text contradicting the description between merges. Related but independent: #1715, #1716.

Who is submitting this PR? (required)

Field Value
Your model + version Claude Fable 5 (claude-fable-5[1m])
Harness + version Claude Code 2.1.169
All plugins installed superpowers (this repo, dev checkout); quorum eval lab (superpowers-evals) as the testing apparatus; unrelated local ops plugins
Human partner who reviewed this diff Drew Ritter (@drewritter)

What problem are you trying to solve?

Two measured problems, one mechanism.

Over-trigger (the cost failure): in the 2026-06-09 six-agent sweep, cost-checkbox-over-trigger — "a basic checkbox with on/off state, nothing fancy" — failed 5 of 6 completed agents (pi ⊘): every agent ran a multi-option design ceremony for a trivial, fully-specified ask, obeying the HARD-GATE's "EVERY project regardless of perceived simplicity."

Silent non-consultation (the safety gap the blanket never covered): measured against pre-change dev, claude silently applied a security-consequential "one-liner" ("bump session timeout to 8 hours") 3/3 times and silently deleted working functionality 3/3 times — the blanket gate never fired on one-liners at all, because they don't read as "creative work." The assumed safety of the unconditional gate did not exist on exactly the requests where it mattered most.

What does this PR change?

brainstorming's description gains the nothing-to-design exception, earned by a tripwire scan that precedes the permission: invoke if the change adds a file/dependency, touches schema/API/persisted data, deletes or disables working functionality (even when asked), touches security posture at all (auth, sessions, timeouts, permissions, CORS, crypto — even with the exact value stated), alters user-visible behavior beyond the stated change, has multiple plausible readings, or is framed as a feature. Only with no tripwire hit and a fully-specified outcome: state the scan in one line, then implement directly. The HARD-GATE defers to the description (single-sourced — the two lists drifted when duplicated); the anti-pattern section gains a rationalization table. using-superpowers makes description-level exceptions authoritative (doubt = invoke; only descriptions define them; the skip must state its scan; flowchart and <EXTREMELY-IMPORTANT> reconciled) and gains a pressure-phrasing rule: "don't ask questions" / "make assumptions" / "just build it" changes how you interact (state assumptions instead of asking), not which skills you invoke — only an instruction that names what to skip, or a description exception, skips a workflow step. writing-skills distinguishes negative triggering conditions (scope, required at the description) from workflow summaries (still forbidden).

Is this change appropriate for the core library?

Yes — it calibrates the most-used gate in the corpus and defines routing semantics any skill's description can use.

What alternatives did you consider?

(1) In-skill exception only — empirically falsified: the agent invoked via the description's mandate and only then saw the exception; invocation is the measured cost event. (2) Retire the cost eval as aspirational — rejected: 5/6 universal failure means the suite cannot distinguish discipline from waste, and the measured dev baseline shows the blanket gate wasn't buying the assumed safety anyway. (3) Hooks/mechanical gates — out of scope by maintainer direction (prompting only). (4) Vibes-based exception — rejected; the shipped version uses objective tripwires, a doubt-means-invoke backstop, a stated-scan artifact, and rationalization counters per writing-skills bulletproofing.

Does this PR contain multiple unrelated changes?

No — one mechanism across the three files that define it: the skill that grants the exception, the routing layer that honors it, and the authoring doctrine that protects it from being stripped later.

Existing PRs

Environment tested

Harness Harness version Model Model version/ID
Claude Code (agent under test) 2.1.169 Claude Opus claude-opus-4-8
codex CLI (agent under test) current GPT gpt-5.x
antigravity CLI (agent under test) current Gemini Code Assist
kimi CLI (agent under test) current Kimi kimi-for-coding

New harness support

N/A.

Evaluation

All headline numbers below were re-measured on the final shipped text (the three sibling branches assembled onto dev), not on development drafts.

Over-trigger fixed: cost-checkbox-over-trigger/claude 5/5 pass (3/3 development rounds + 2/2 on final text; no invocation — the agent states its scan and implements in ~30–60s), ×codex pass (verbatim RED failer), ×kimi pass — an improvement over its documented baseline, which predicted kimi ignores description-level exceptions. ×antigravity fail (still runs the design ceremony) — but antigravity fails this scenario identically on pre-change dev (✗/✗ in the eval lab's baseline grids; part of a brainstorming-eagerness cluster documented there since 2026-05-27), so this is a pre-existing per-agent signature, not a regression from this text. Gate still fires: brainstorming-resists-jump-to-implementation/claude 2/2 + codex ✓; cost-spec-plan-duplication brainstorm leg 3/3.

Boundary, measured before/after (new scenarios cost-session-timeout-boundary and cost-remove-export-boundary, proposed as permanent regression instruments in prime-radiant-inc/superpowers-evals#11, open):

Boundary scenario Pre-change dev This PR
cost-session-timeout-boundary — security one-liner 0/3 — silent edit 2/3 surfaced the tradeoff
cost-remove-export-boundary — requested deletion of working feature 0/3 — silent delete 2/3 confirmed first

2/3 is risk reduction, not a guarantee — but the failure mode itself moved. On pre-change dev, every miss was silent non-consultation: the gate never appeared in the trace. On this text, both residual misses consulted the gate and misapplied it (one mishandled the user's correction, one rationalized "the user already decided"). Misapplication is visible in transcripts and addressable; silence wasn't. The regression scenarios will show if future edits move the rates.

One cell regressed by its scenario's letter, disclosed in full: triggering-writing-plans/claude (multi-step auth feature + "do not ask me any questions") went 3/3 on a development draft → 0/6 on the final text by that scenario's pinned acceptance criterion. The first final-text round (0/3) contained two genuine failures: claude cited using-superpowers' pre-existing Instruction Priority section ("user instructions always take precedence") to treat "don't ask questions" as license to skip the planning workflow, then implemented without a plan. The pressure-phrasing rule above was added to close exactly that, and it did: in all three post-fix transcripts the agent's first action is invoking brainstorming, followed by context exploration and zero implementation edits — it stops at brainstorming's design-approval gate. The cell still scores 0/3 because the scenario's AC pins writing-plans as the loaded skill and instructs its scripted tester to disengage the moment any skill loads, making writing-plans (brainstorming's terminal handoff) unreachable. The earlier 3/3 passes were claude skipping brainstorming and invoking writing-plans directly — itself a deviation from using-superpowers' "process skills first" priority. The eval lab classified this scenario "eval-misaligned-with-plugin-intent" in its 2026-05-27 baseline and reconfirmed on 05-29 ("brainstorming-first is arguably correct… reframe the AC") — this PR's routing change pushed claude onto that arguably-correct path. Net on the behavior the scenario exists to police: implement-without-plan transcripts went 2 → 0 after the pressure-phrasing fix. An AC reframe is proposed in the evals repo; it is not changed in lockstep with this PR.

Rigor

  • If this is a skills change: I used superpowers:writing-skills and completed adversarial pressure testing
  • This change was tested adversarially, not just on the happy path
  • I did not modify carefully-tuned content (Red Flags table, rationalizations) without extensive evals showing the change is an improvement

This PR deliberately modifies the most-tuned gate in the corpus, which is why it carries the fullest trail in the series: a falsified single-layer attempt; an eval-caught requested-deletion escape ("the user already decided") closed with a rider + table row; permission-after-conditions reordering and the stated-scan mandate driven by measured silent-skip leaks; an eval-caught Instruction-Priority rationalization ("user said don't ask questions") closed with the pressure-phrasing rule and verified by transcript (implement-without-plan instances 2 → 0); the pre-change baseline measured rather than assumed. The Red Flags table gains rows; existing rows untouched.

Human review

  • A human has reviewed the COMPLETE proposed diff before submission

robotsnh and others added 30 commits May 6, 2026 11:22
Replaced the bullet point next to "Jesse" in the sponsorship section of the `README` into a dash. This is needed so the `README` renders properly on markdown viewers.
Records scope, branching, architecture, deletion gate, verification
protocol, path/config edits, migration ordering, and post-implementation
verification. Frames CI integration, scenario co-location, and Python
package rename as deferred work.

Per-file deletion of bash tests under superpowers/tests/ is gated by a
subagent that compares each bash assertion to its drill scenario's
verify block. Default keeps the bash test if any assertion is unmatched.

Branching: independent off dev (f/evals-lift), not stacked on
f/cross-platform.
Two parallel reviewers raised legitimate issues against the lift-drill-
into-evals spec. Updates:

- Coverage map for tests/explicit-skill-requests/ corrected: 6 run-*.sh
  scripts + prompts, not "2 scenarios cover all". Several scripts
  (Haiku, multi-turn, please-use-brainstorming, use-systematic-debugging)
  have no drill counterpart and stay.
- tests/claude-code/test-subagent-driven-development.sh marked as
  meta/documentation test (asks agent to describe SDD); no drill
  scenario covers description tests; defaults to keep.
- Path-defaults section now shows verified evidence: PROJECT_ROOT
  resolves to evals/ post-move; only claude*.yaml substitute
  ${SUPERPOWERS_ROOT} in args (codex/gemini use it via os.environ
  in pre-run hooks); helper invocation order specified (after
  load_dotenv, before click definitions).
- Step 2 copy uses explicit rsync excludes (.git, .venv, results,
  .env, __pycache__, *.egg-info, .private-journal); checksum-level
  verification rather than file-count.
- Drill SHA recorded at copy time in commit message and
  evals/.drill-source-sha for divergence detection.
- evals/tests/ pytest suite added to verification protocol.
- Reference scrub list expanded: RELEASE-NOTES.md,
  docs/superpowers/plans/, .codex-plugin/ (corrected from .codex/),
  lefthook.yml. Excluded dirs called out (node_modules/, .venv/,
  evals/).
- Historical plan docs / RELEASE-NOTES handling: annotate, don't
  rewrite.
- evals/lefthook.yml move documented (drill ships its own;
  contributors run cd evals && lefthook run pre-commit manually).
- PR description checklist includes archival action item for
  obra/drill post-merge.

False finding rejected: svelte-todo fixture is complete on disk
(design.md + plan.md + scaffold.sh present); reviewer #1 #3 dropped.
15-task implementation plan derived from the design spec at
docs/superpowers/specs/2026-05-06-lift-drill-into-evals-design.md.

Each task is bite-sized (2-5 min steps) with exact commands, exact
file paths, and exact code where required. Subagent verification
gates per the spec are written out as concrete prompt templates.

Self-review:
- Spec coverage: every spec section maps to a task
- Placeholder scan: no TBD/TODO/placeholder/fill-in-later language
- Type consistency: helper named _set_superpowers_root_default
  consistently; drill SHA recorded in evals/.drill-source-sha
  consistently
rsync of obra/drill@013fcb8b7dbefd6d3fa4653493e5d2ec8e7f985b into superpowers/evals/, excluding
.git/, .venv/, results/, .env/, __pycache__/, *.egg-info/,
.private-journal/.

The drill repo is unaffected by this commit; archival is a separate
manual step after this PR merges.

Source SHA recorded at evals/.drill-source-sha for divergence
detection.
Adds _set_superpowers_root_default() to drill/cli.py, called at
module import after load_dotenv(). PROJECT_ROOT resolves to evals/
post-lift; its parent is the superpowers repo root, which is the
correct value for SUPERPOWERS_ROOT.

Existing env values are respected as overrides via os.environ.setdefault.

Tests:
- helper sets default when var is unset
- helper does not override when var is already set
These backends only read SUPERPOWERS_ROOT via engine.py/setup.py's
os.environ access, which the new cli.py default helper supplies
automatically. claude*.yaml keep SUPERPOWERS_ROOT in required_env
because they interpolate ${SUPERPOWERS_ROOT} into --plugin-dir args.
The cli.py helper now defaults the env var. Mention as override only.
…ing-* scenarios)

Subagent verification confirmed each prompt's intent matches its
corresponding drill scenario's turns[].intent verbatim, and each
scenario has both a deterministic skill-called assertion and a
semantic LLM criterion confirming the matching skill was loaded
(actually a stronger check than the bash test, which only confirms
the skill fires anywhere in the stream).

All 6 prompts deleted. The runner had no remaining prompts to drive,
so run-test.sh and run-all.sh deleted as well.
…rsation-skill-invocation)

Subagent verification: every bash assertion (Skill tool invoked +
specific skill name 'subagent-driven-development' loaded after the
agent describes it conversationally in turn 1) maps to the drill
scenario's skill-called assertion + criteria paragraph requiring
the skill to fire in direct response to the second user message.
Drill additionally asserts tool-called Agent (subagent dispatch)
which is stricter than the bash test.

Other runners in tests/explicit-skill-requests/ (haiku, multiturn,
extended-multiturn) and their prompt files are preserved — they
have no drill coverage and exercise different behaviors.
…ractals + sdd-svelte-todo)

The bash test had ZERO output assertions — it just ran claude -p
and printed token usage. Drill's scenarios are strictly more
rigorous:

go-fractals: skill-called SDD + tool-called Agent + go test ./...
passes + cmd/fractals/main.go exists + >=4 commits + LLM criteria
verifying real SDD workflow.

svelte-todo: skill-called SDD + tool-called Agent + npm test passes
+ playwright e2e passes + package.json + svelte.config.js or
vite.config.ts + >=4 commits + LLM criteria.

design.md and plan.md are byte-identical between bash fixtures and
drill fixtures (evals/fixtures/sdd-{go-fractals,svelte-todo}/).
Drill's setup helper (scaffold_sdd_*) forces git init -b main
(stricter than bash's reliance on init.defaultBranch). The
.claude/settings.local.json from bash scaffold.sh is unnecessary
for drill since permissions are managed via backend YAML.

Subagent verification: SAFE TO DELETE for both.
…eviewer-catches-planted-flaws)

Subagent verification: every bash assertion (TODO in Requirements
section flagged, "specified later" deferral flagged, Issues section
present, did-not-approve verdict) maps to drill verify.criteria
entries. Setup parity covered by setup.assertions (test-feature-design.md
exists with TODO + 'specified later' content). Drill is stricter:
asserts tool-called Agent (subagent dispatch) which the bash test
did not check.
…eview-catches-planted-bugs)

Subagent verification: every bash assertion (skill invocation,
subagent dispatch, SQL injection flagged, credential handling
flagged, no merge approval) maps to drill verify checks. Drill is
stricter: bundles severity (Critical/Important) into the same
criteria as the finding itself (bash split severity into a separate
test). Setup parity covered (src/db.js with string concat + identity
hash, two commits).

The drill scenario header explicitly says it is the
"cross-harness, semantically-judged replacement for the bash test."
- test-worktree-native-preference.sh: drill covers PRESSURE phase only;
  RED + GREEN baselines have no drill counterpart and are kept so
  the RED-GREEN-REFACTOR validation remains rerunnable end-to-end.
- test-subagent-driven-development-integration.sh: drill covers the
  YAGNI subset (forbidden exports + reviewer-as-gate). Bash adds
  >=3 commits, >=2 subagent dispatches, TodoWrite usage, test file
  existence check, and token-budget telemetry. Kept until drill
  scenario covers those or they are retired.
- test-subagent-driven-development.sh: tests agent's ability to
  *describe* SDD (string matches against expected keywords). Drill
  scenarios test behavior, not description-recall. Kept by design.

Subagent verification recorded in commit messages of subsequent
deletions; gap analyses driving these annotations are also in the
verification subagent reports for the gating sweep.
- RELEASE-NOTES.md: note that test-requesting-code-review.sh and
  test-document-review-system.sh were lifted into drill scenarios
  on 2026-05-06; references are preserved as dated artifacts.
- docs/superpowers/plans/2026-03-23-codex-app-compatibility.md:
  note that tests/skill-triggering/ was lifted into drill scenarios
  on 2026-05-06; the run-all.sh reference is a dated artifact.

Subagent second-pass scrub confirmed no other active references in
the tree (excluding evals/ and the spec/plan for this work itself).
- docs/testing.md split into Plugin tests + Skill behavior evals.
  Plugin tests section enumerates the bash tests that survive
  (kept by drill-coverage analysis or as describe-skill tests).
- CLAUDE.md adds Eval harness section pointing at evals/.
- README.md Contributing section mentions evals/ alongside tests/.
- .gitignore adds evals/{results,.venv,.env} as belt-and-suspenders
  (evals/.gitignore covers these locally; root-level entries help
  tooling that does not recurse into nested ignore files).
- evals/README.md, evals/CLAUDE.md: fix uv install command from
  'uv sync --dev' to 'uv sync --extra dev'. Drill's pyproject.toml
  uses [project.optional-dependencies], so --dev is a no-op for
  pytest/ruff/ty; --extra dev is the correct invocation.
- tests/claude-code/run-skill-tests.sh: drop test-requesting-code-review.sh
  from integration_tests array (file deleted earlier in this branch).
- tests/claude-code/README.md: replace test-requesting-code-review.sh
  section with test-worktree-native-preference.sh (the worktree test
  is kept; the code-review test was lifted into drill).
- docs/testing.md, CLAUDE.md: remove "Copilot CLI" from the harness
  list. evals/backends/ has claude*, codex, gemini configs but no
  copilot.yaml, so the claim was unsupported.

Adversarial review credit: reviewer #2 found four legitimate issues
(uv-sync, run-skill-tests stale ref, README stale ref via #1, and
Copilot CLI fabrication); reviewer #1 found two distinct issues
(run-skill-tests + tests/claude-code/README.md). Reviewer #2 wins
this round.
* Remove Circle K signal from review skill

* Add generic review hesitation guidance

* Use Jesse wording for review hesitation guidance
Replace generic third-person "Claude" with "agents" / "your agent"
forms across active skill prose, the README intro, and the vendored
anthropic-best-practices.md reference. Carve-outs preserved:
historical attribution paths, the "Variant C: Claude.AI Emphatic
Style" example label, model identifiers (Haiku/Sonnet/Opus), and the
"In Claude Code:" per-platform skill-dispatch list.

Coined-term rename: "Claude Search Optimization (CSO)" → "Skill
Discovery Optimization (SDO)" in writing-skills/SKILL.md.

Files in this commit also pick up later-phase changes that
accumulated on the same files (dispatching-parallel-agents code-
example transformation, writing-skills numbering and path fixes).
The bundled spec at docs/superpowers/specs/ records the original
scope and the carve-outs.

README.md gets only its prose change here; the alphabetization
lands in Phase C's commit.
Two structural changes:

1. Generalize CLAUDE.md-specific guidance:
   - "Project-specific conventions (put in CLAUDE.md)" → "(put in
     your instructions file)" in writing-skills/SKILL.md
   - "(explicit CLAUDE.md violation)" → "(explicit instruction-file
     violation)" in receiving-code-review/SKILL.md
   - The instruction-priority list in using-superpowers/SKILL.md
     stays inclusive (CLAUDE.md, GEMINI.md, AGENTS.md) — that's
     load-bearing, not a substitution opportunity.

2. Per-platform tool reference files at skills/using-superpowers/
   references/{claude-code,codex,copilot,gemini}-tools.md. Each ref
   documents:
   - The runtime's preferred instructions file (CLAUDE.md, AGENTS.md,
     GEMINI.md, etc.) and how it loads
   - The runtime's personal-skills directory + cross-runtime
     ~/.agents/skills/ path where applicable
   - Action-language → tool-name mapping table

Tool names and table content reflect the source-verified state from
direct inspection of openai/codex, google-gemini/gemini-cli,
sst/opencode, and the installed @github/copilot package. Filenames
and behaviors are sourced from each runtime's official docs.

Files in this commit also pick up later-phase changes that
accumulated on the same files (using-superpowers/SKILL.md "How to
Access Skills" overhaul, action-language flowchart, refs' final
table content). The bundled spec records original scope.
arittr and others added 7 commits June 1, 2026 19:41
Serialize antigravity against the Gemini Code Assist rate limit
(max_concurrency=1), diagnose 429/RESOURCE_EXHAUSTED honestly instead of as
auth, fail-fast on a latched window, and tolerant preflight OK match.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Adds `run-all --scenarios` for resuming a scenario subset across the Code
Assist rate-limit windows. Follows the agy rate-limit fix (79f9963).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Add a mandatory self-identification disclosure (model, harness, harness
version, all installed plugins) to the PR template and all three issue
templates, and document the requirement in the contributor guidelines.
We weigh contributions differently depending on what produced them:
content reasoned from documentation is held to a different bar than work
grounded in a real session.

Also state explicitly, in both CLAUDE.md and the PR template, that all
PRs must target the dev branch rather than main.
@arittr
arittr force-pushed the drew/sup-333-2-sdd-proportionality branch from 162ac4b to 60f6174 Compare June 11, 2026 02:16
@arittr
arittr force-pushed the drew/sup-333-3-brainstorming-triviality-gate branch from aff9195 to 87ddfac Compare June 11, 2026 02:16
@arittr
arittr force-pushed the drew/sup-333-2-sdd-proportionality branch from 60f6174 to 70b52fd Compare June 11, 2026 06:49
@arittr
arittr force-pushed the drew/sup-333-3-brainstorming-triviality-gate branch from 6535b2d to 7857e05 Compare June 11, 2026 06:49
@arittr
arittr changed the base branch from drew/sup-333-2-sdd-proportionality to dev June 11, 2026 06:49
@arittr arittr changed the title fix(skills): brainstorming gate exempts requests with nothing to design fix(skills): brainstorming nothing-to-design exception with authoritative description routing Jun 11, 2026
@arittr
arittr force-pushed the drew/sup-333-3-brainstorming-triviality-gate branch from 7857e05 to e35bd89 Compare June 11, 2026 07:21
…escription exceptions are authoritative (SUP-333 C)

Consolidates the brainstorming exception with its routing-layer
semantics, so this PR is independently mergeable (previously split
across two stacked PRs whose intermediate state left the always-
injected routing text contradicting the shipped description).

brainstorming: the nothing-to-design exception, earned by a tripwire
scan stated in one line before acting. Tripwires precede the
permission (skimmers stop at "implement directly"); security-posture
touches re-gate even with the exact value stated; requested deletions
re-gate; rationalization table per writing-skills bulletproofing.
Description 971/1024 chars, YAML-validated.

using-superpowers: description-level exceptions are authoritative
(compliance, not rationalization); doubt means invoke; only the
description can define one; the skip must state its scan; flowchart
routes the exempt path through the scan statement;
<EXTREMELY-IMPORTANT> defers in one parenthetical.

writing-skills: negative triggering conditions are scope (allowed,
required at the description) vs workflow summaries (still forbidden) —
prevents a future checklist pass from stripping the exception.

Eval evidence (quorum): RED cost-checkbox-over-trigger failed 5/6
agents (pi ⊘); GREEN claude 3/3, codex ✓, antigravity ✓ (kimi
unchanged from baseline — does not read description exceptions);
gate-still-fires: brainstorming-resists 2/2 + codex, spec-plan
brainstorm leg 3/3. Boundary scenarios (security one-liner, requested
deletion): pre-stack dev baseline 0/3 + 0/3 (silent edit every time —
the blanket gate never fired on one-liners); this text 2/3 + 2/3, the
first text in the corpus to catch these at any rate; scenarios ship as
regression instruments (proposed in prime-radiant-inc/superpowers-evals#11, open).

Co-Authored-By: Claude Fable 5 <[email protected]>

Canary-caught addition: on the assembled text, triggering-writing-plans
went 0/3 with claude citing "your explicit instruction wins per the
priority rules" to skip writing-plans under the scenario's "don't ask
me any questions" pressure — the Instruction Priority section read as
licensing ad-hoc pressure to skip workflow steps. User Instructions now
distinguishes pressure phrasing (changes interaction style) from
instructions that name what to skip (honored), and tags the quoted
rationalization.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.