Compete cron builder

From weiyangzen/b3ehive · View interactive version

Compete cron builder is an AI agent skill from the GitHub repository weiyangzen/b3ehive. Runs bounded proposal competitions with n workers and m candidates, selecting by oracle score or independent review, or keeping the union of all valid findings. Use for one-round parallel comparison, root-cause or repair search, audits, coverage sweeps, and blueprint synthesis. 方案竞争、并行比较、择优、覆盖审计。

How to use this skill

Skill file

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:

execution_choice

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

  1. Freeze task, oracle, and lease; candidates change none of them.
  2. Each candidate submits a result and a receipt inside its own directory.
  3. A candidate that fails any stage leaves; the rest continue. With none left,

the run reports failure.

  1. Missions differ in approach, not wording; reject cosmetic variants at

planning time.

  1. Coverage and audit findings take the form

FINDING: <location> | <claim> | <reproduction> | <severity>; a finding

without a reproduction is dropped.

Select

In this order:

  1. Oracle: every run passes; the worst run's score ranks. Where results can be

gamed, add fresh runs (--oracle-runs).

  1. Blind review: a non-author, read-only reviewer, preferably of another model

family, judges candidates labeled A/B/C without scores.

  1. Votes from round two; votes for oneself are void.
  2. 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

agree (for example a trajectory scan and a runner attestation) and a non-author

reviewer finds the restricted material was both seen and used.

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

hints, decisions.log, and selection_evidence.json or findings.json.

--parent-lease-ref; cost rolls into that lease.

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.