Skip to content
Development
Skill

/execution-grounded-selection

Pick among candidate outputs (code, configs, plans) by running them on diverse inputs and clustering by behavioural fingerprint, rather than by textual aggregation or log-probability. Activates when an executor returns multiple plausible candidates that need disambiguation, when

From plugin
gsd-skill-creator
71102 skills61 agents26 commands1 MCP

Claude Code

$ npx -y skills add Tibsfox/gsd-skill-creator --skill execution-grounded-selection --agent claude-code

SKILL.md

execution-grounded-selection.SKILL.md
name: execution-grounded-selection
description: >
  Pick among candidate outputs (code, configs, plans) by running them on
  diverse inputs and clustering by behavioural fingerprint, rather than
  by textual aggregation or log-probability. Activates when an executor
  returns multiple plausible candidates that need disambiguation, when
  output-majority voting would be the default choice, or when reviewing
  generated code that has not yet been validated. The 2026 evidence
  (Semantic Voting, arxiv 2605.08680v1) is that any execution-based
  selector dominates output-majority voting by 19-52pp; sketch-generated
  inputs beat random fuzz by 11.3pp. Triggers: "pick the best candidate",
  "majority vote on code", "select from N samples", "validate the
  generated output", "behavioural verification".
user-invocable: true
version: 1.0.0
format: 2025-10-02
triggers:
  - "pick the best candidate"
  - "majority vote on code"
  - "select from N samples"
  - "validate the generated output"
  - "behavioural verification of code"
updated: 2026-05-16
status: ACTIVE
source: arxiv 2605.08680v1 (Semantic Voting), 2605.07248v1 (Plan-on-Trigger)

Execution-Grounded Selection

Why

Output-majority voting (pick the most common string output) is dominated by *any* selector that actually runs the candidates. Semantic Voting (arxiv 2605.08680v1) shows 19-52pp improvement over output voting across multiple code benchmarks. The specific aggregation rule (majority, weighted, MBR-Exec) is statistically indistinguishable once execution evidence is present — *execution is the dominant signal, aggregation is the residual*.

This is the code-domain analogue of the **noise-as-exploration** Rosetta concept: execution diversity is the exploration mechanism; behavioural fingerprint is the equilibrium signal.

How

The Semantic Voting pipeline:

1. **Sample N candidates** — generate at temperature > 0 (typical N = 5-10). 2. **Generate diverse inputs** — sketch-generated inputs (derived from candidate population structure) beat random fuzz by ~11pp. If sketch generation is infeasible, fall back to LLM-generated test inputs > random fuzz. 3. **Execute each candidate on each input** — collect (candidate_i, input_j, output_ij) tuples. Crash counts as a distinct fingerprint, not a discard. 4. **Cluster by fingerprint** — equivalence on `[output_ij for j in inputs]` defines the cluster. 5. **Pick the largest cluster** — break ties by candidate self-confidence or by Pareto on execution cost.

When to skip

  • Generation is deterministic (temperature = 0) — there's nothing to select among.
  • Execution is expensive or has side effects (touches the network, modifies state) — fall back to dry-run / static analysis.
  • The output isn't executable (e.g., natural-language summary) — use paired-trace audit instead.

Integration

  • `wrap:verify` and `gsd-verify-work` — pre-merge gate when verification produces multiple candidate fixes.
  • `gsd-code-fixer` — when the fixer proposes more than one fix per finding.
  • `code-review` — adds a "did you actually run it?" subsection to the review rubric.

Cross-references

  • Rosetta concept #9 (Execution-Grounded Selection) — canonical definition
  • College: `agent-systems / agentic-code-generation / agent-execution-grounded-selection`
  • Related skills: `test-generator` (generates the inputs; pair with this skill for the full loop)
Read more
@tibsfox
Ships withgsd-skill-creator

An adaptive learning and coprocessor architecture for Claude Code, built as an extension to GSD (open-gsd)

71102 skills61 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
71
Star history of Tibsfox/gsd-skill-creator on GitHub, a chart by star-history.com

Other skills on gsd-skill-creator.

aminet-index

aminet-index

Manages Aminet INDEX infrastructure: fetch, parse, cache, and incremental update of ~84,000-entry package database. Use when…

aminet-mirror

aminet-mirror

Selective Aminet package mirroring: single-package fetch, integrity verification, mirror state tracking, bulk download, and sync…

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills11d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react2d252k
@facebook@facebookInstall Skill

Questions about execution-grounded-selection.

Which coding agents can use execution-grounded-selection?
execution-grounded-selection installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.