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 run. The 2026 evidence (Semantic Voting, arxiv 2605.08680v1) is that any execution-based selector dominates ou...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Execution Grounded Selection?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/tibsfox-execution-grounded-selection)
---
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 run. 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. Before raising N, check that more
candidates add coverage and that the selector converts it (arxiv
2609.36104, 2609.31563). Triggers: "pick the best candidate",
"majority vote on code", "select from N samples", "check the generated
output", "behavioural verification of code".
user-invocable: true
version: 1.1.0
format: 2025-10-02
triggers:
- "pick the best candidate"
- "majority vote on code"
- "select from N samples"
- "check the generated output"
- "behavioural verification of code"
updated: 2026-11-28
status: ACTIVE
source: arxiv 2605.08680v1 (Semantic Voting), 2605.07248v1 (Plan-on-Trigger), 2607.01953 (underspecification semantic collapse), 2609.36104 (generate-transform decomposition), 2609.31563 (team scaling on disjunctive tasks)
---
# 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.
## Before raising N: coverage and conversion
Extra calls create candidate opportunity that only some architectures, on some tasks, convert. Partitioning a workflow into proposal coverage and a downstream transform splits any accuracy change exactly into an extensive coverage dividend and an intensive transformation change (arxiv 2609.36104). Across eight orchestration architectures, five 7-9B models, five short-answer benchmarks and an executable-code benchmark, going from three to thirty calls raises accuracy by up to 17 points on GSM8K and GSMHard and by at most four on ARC, GPQA and MMLU, for every architecture, and no architecture wins across tasks. In teams of up to 30 agents (arxiv 2609.31563), on disjunctive tasks the probability that at least one agent is correct grows by 5-20 points, yet plurality voting over direct answers realises almost none of it.
Before adding candidates, samples or agents for accuracy, check two things on a small sample of the task at hand. Reading the decomposition as this two-question check is this skill's design, not the papers' procedure.
1. **Coverage headroom.** Does the share of cases in which at least one candidate is right rise with N? If the candidates fail together, more of them buy nothing.
2. **Conversion.** When a right candidate exists, does the selector pick it? Running the candidates (steps 3-5 above) is the selector this skill expects to convert it, and in the second study plurality voting over direct answers realised almost none of the gain; check conversion on the sample instead of assuming it.
Raise N only where both hold, and report which of the two the extra calls bought.
## Limit: one cluster is not correctness
Clustering picks the behaviour most candidates share. When the prompt is underspecified, candidates can collapse onto one coherent but wrong interpretation (arxiv 2607.01953: over 10% of MBPP tasks, 3% of HumanEval, 32% of LiveCodeBench), so a single dominant cluster shows that the candidates agree with each other, not that they match the user's intent. Before treating the largest cluster as the answer, check the request for open readings with `goal-ambiguity-gate`, and if you add an oracle to check the winning cluster, take its expected outputs from the specification, not from the candidates (`test-oracle-independence`).
## 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`
- College: `agent-systems / multi-agent-orchestration / agent-team-scaling-coverage-conversion`
- Related skills: `test-generator` (generates the inputs; pair with this skill for the full loop)