Compete
For a user-facing choice guide, read docs/skill-selection.md. This skill
selects proposals or findings; it does not replace the master acceptance step.
core v2 · loop v2, shape lanes. Read references/core.md and
references/loop.md first; this body adds only competition rules.
Compete is a single-round parallel comparison. It runs a bounded set of
candidates against one frozen question and selects or unions the results. It
does not own the serial ratchet used by optimization.
Decide
Before launch, decide and log:
- question:
precision,coverage,audit,repair,blueprint, or
execution_choice
- m (candidates) and k (selected count, or
all-valid) - oracle: the command that measures a candidate, or the review protocol
- routes: spread candidates across model families when more than one exists
Coverage and audit keep every valid finding. Other questions rank by oracle.
Starting points: precision m ≤ 4, k 1; repair m ≤ 4, k 1 plus a fallback;
blueprint m ≤ 5, k 2–3 then synthesis; execution_choice m ≤ 3, k 1.
Run
- Freeze task, oracle, and lease; candidates change none of them.
- Each candidate submits a result and a receipt inside its own directory.
- A candidate that fails any stage leaves; the rest continue. With none left,
the run reports failure.
- Missions differ in approach, not wording; reject cosmetic variants at
planning time.
- Coverage and audit findings take the form
FINDING: <location> | <claim> | <reproduction> | <severity>; a finding
without a reproduction is dropped.
Select
In this order:
- Oracle: every run passes; the worst run's score ranks. Where results can be
gamed, add fresh runs (--oracle-runs).
- Blind review: a non-author, read-only reviewer, preferably of another model
family, judges candidates labeled A/B/C without scores.
- Votes from round two; votes for oneself are void.
- Stable candidate id.
Coverage: dedupe by location and claim, keep the union, rank audits by severity.
Oracle lines the script reads: SCORE: <x>; REGRESSED: <target> (a guard
target that passed at baseline now fails, so the candidate fails);
OBSERVED_ONLY (evidence below declared fidelity: kept, never ranked);
SUSPECT: <reason> (integrity suspicion, recorded only).
Integrity
- A suspicion never disqualifies alone. Confirm cheating only when two channels
agree (for example a trajectory scan and a runner attestation) and a non-author
reviewer finds the restricted material was both seen and used.
- Solvers never see analyst outputs, holdout data, or scores of peers.
Shadow Mode
To change a prompt, policy, or validator, run the incumbent and the proposal as
two candidates on a frozen gold set. Recommend promotion only when the proposal
meets the declared quality thresholds and its token and latency ratios stay
within the declared caps. The master applies the change; compete never does.
Script
scripts/compete_cron_builder.py runs stages in parallel, writes receipts,
measures, tallies, and merges. It never infers the question type or ranks by
id order alone.
python3 scripts/compete_cron_builder.py \
--task "Find validation risks in this API" --output ./competition-runs/api \
--question-type audit --why "release gate" --proposal-count 4 \
--command '<runner template using {prompt_file} {output_file}>' \
--review-command '<reviewer template using {prompt_file}>'
Precision run with an oracle:
python3 scripts/compete_cron_builder.py \
--task "Pick the root cause" --output ./competition-runs/rc \
--question-type precision --oracle-command 'make check CANDIDATE={candidate_dir}' \
--oracle-runs 3 --command "$B3EHIVE_AGENT_RUNNER"
Template fields: {candidate_id}, {stage}, {prompt_file},
{output_file}, {candidate_dir}, {result_file}, {competition_id},
{question_type}, {run_index}. Oracle runs see B3_ORACLE_RUN and
B3_ORACLE_SEED. --runner mock is a dry run. --shape three_way_challenge
with --artifact-layout old_three_way keeps the run_a/run_b/run_c layout:
references/three-way-layout.md.
Hand Off
- Output is
[_]: selected ids, rejected ids, repair assignments, validation
hints, decisions.log, and selection_evidence.json or findings.json.
- Execution turns accepted findings into
[ ]child items; the master accepts. - Inside a looper attempt, pass
--handoff-mode looper_attemptwith
--parent-lease-ref; cost rolls into that lease.
References
references/core.md,references/loop.md: shared laws and loopreferences/three-way-layout.md: three-way shape and artifact layoutreferences/substrate-cron.md: cron, runners, disk guardsreferences/lessons.md: where each v1 rule now lives