/soleur:eval-harnessfrom soleur
Provides a promptfoo eval harness for Soleur skills and agents, measuring behavioral changes from edits via A/B comparison of routing accuracy and priority classification.
Ships in soleur. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Cloud Mode (Devin): before pipeline work run bash "${CLAUDE_PLUGIN_ROOT}/scripts/cloud-detect.sh". If CLAUDE_PLUGIN_ROOT is unset (cloud exec shells do not export it), resolve the root by IDENTITY, never by script basename: for d in "$HOME/.local/share/devin/cli/plugins/cache" and /opt/.devin/plugins, skip unless [ -d "$d" ], then MANIFEST="$(find "$d" -path '*/.claude-plugin/plugin.json' -exec grep -l '"name"[[:space:]]*:[[:space:]]*"soleur"' {} + 2>/dev/null | head -1)", ROOT="${MANIFEST%/.claude-plugin/plugin.json}" — one resolution, two consumers: $ROOT/scripts/cloud-detect.sh and $ROOT/scripts/precommit-guard.sh. (Shape check, not authentication: a planted {"name":"soleur"} dir passes — ADR-179 A11.) local or not-local:no-devin-env proceeds normally; any other not-local:<reason> applies <plugin-root>/devin/INSTRUCTIONS.md §Cloud Mode: emit the --banner, fan out sequentially with Reviewed-Coverage: sequential-fallback disclosure (never claim an independent review ran), message_user ack before any secrets read or production mutation, and run precommit-guard.sh before any git commit — hooks do not fire in cloud.
Grok Build (plugins/soleur/lib/harness.ts invokeSkill()): Read this SKILL.md in this process and run it to completion. A one-segment soleur:<name> in this document names a SKILL — on Grok Build, Read plugins/soleur/skills/<name>/SKILL.md in this process; it is not a nested tool_use. A multi-segment id such as soleur:<domain>:<name> names an AGENT: spawn it, never Read it, and on Grok Build spawn_subagent takes the id with its colons replaced by hyphens (agentIdToGrokSubagentType). Claude Code: Skill tool for a skill (soleur:<name>), Task tool with subagent_type for an agent. Forbidden is executing a subset, not the Read.
A reproducible promptfoo harness that answers the question Soleur could not answer before: does this prompt/agent edit actually change behavior, or does it just carry new text? It adapts the benchmark methodology of the ponytail Claude Code plugin (MIT) to Soleur's own surfaces.
v1 targets two high-traffic classifiers (the design makes adding a third cheap):
soleur:go routing accuracy — does the routing table produce the correct route token?Grok Build arm (Phase C #6323): The harness now covers Grok slash-command + spawn_subagent semantics for soleur:go routes (in addition to Claude Skill/Task). Golden assertions and regression tests exercise the adapter contract from lib/harness.ts (detect via GROK_* markers or argv). The go-routing target in gated-skills.json + eval-gate block in go.md are the source; projections feed the skill arm for both harnesses. See plan 2026-07-11-feat-grok-phase-c-go-md-eval-harness-plan.md and self-ref in go.md.
<decision_gate>
API budget. Each npx promptfoo eval --repeat 3 run calls the Anthropic API against the key in
your session — 2 arms × 3 models × the target's golden tasks × 3 repeats. At the current task counts
that is ≈ 144 API calls for go-routing (8 tasks) and ≈ 108 for soleur:support:ticket-triage (6 tasks), so
≈ 230 to run both. Cost scales with the model mix (one arm runs Opus), the task count, and the
--repeat value (outputs are single tokens, so per-call cost is small — the first full run was well
under $1). This harness is opt-in and manual — it is deliberately NOT wired into per-PR CI (that
cost decision is separate and later). Soleur does not bill or proxy these calls — Anthropic does,
against your key. The Soleur LICENSE (BSL 1.1) disclaims warranty for runtime cost; you operate this
harness against your own budget. To inspect the config without spending, use
npx promptfoo validate config (no API calls).
</decision_gate>
Pipeline tally (#9403). bash "${CLAUDE_PLUGIN_ROOT}/scripts/pipeline-tally.sh" init first. Before each npx promptfoo eval arm: bash "${CLAUDE_PLUGIN_ROOT}/scripts/pipeline-tally.sh" gate agent_rounds — STOP → write knowledge-base/project/specs/<feature>/session-state.md (status: budget-capped + budget-capped: agent_rounds=<count>/<cap> + resume) and stop cleanly; WARN/UNKNOWN → continue. bash "${CLAUDE_PLUGIN_ROOT}/scripts/pipeline-tally.sh" incr agent_rounds once per eval arm dispatched.
loc.js analog.correctness.js analog.Both asserts share one parser, parse-label.cjs. Golden tasks are synthesized fixtures only (no real user data): go-routing.jsonl, tasks/ticket-triage.jsonl.
Skill-arm prompts are generated projections (no hand-copy). The skill-arm prompts
(prompts/go-skill.txt, prompts/triage-skill.txt) are a mechanical projection of the
production classifier block, not a hand-distilled paraphrase. Each gated source wraps its rules in
HTML-comment sentinels — the soleur:go routing table in plugins/soleur/commands/go.md
(<!-- eval-gate:block:go-routing:start --> … :end) and the soleur:support:ticket-triage priority rubric in
plugins/soleur/agents/support/ticket-triage.md (eval-gate:block:ticket-triage). The block is the
single source of truth; scripts/extract-block.cjs projects it and
scripts/gen-skill-prompt.cjs wraps it into the skill-arm prompt.
Regenerate on any source-block edit (node scripts/gen-skill-prompt.cjs --all); the AC4
round-trip test (test/extract-block.test.sh) asserts the committed
projection equals the freshly generated one byte-for-byte, so a stale projection fails CI rather than
silently measuring an out-of-date classifier.
Beyond measuring a delta, the harness gates edits to a classifier block: an edit must not regress
the corpus AND must make its targeted case pass before it is applied
(scripts/eval-gate.cjs, proposer-agnostic — heal-skill, compound, or a
manual edit). The registry gated-skills.json lists each gated block:
{ source_file, block_id, block_start_marker, block_end_marker, target, projected_prompt_path }.
--check <file> — print {gated, target, block_id} for whether a file is a gated source
(lookup-only, no API). A proposer runs this first; a non-gated edit proceeds unchanged.--dry-run --target <id> — print the skill-arm-only API-call estimate
(2 (current+candidate) × models × (corpus+1) × repeat; the baseline control arm is skipped) and
exit without spending.--target <id> --candidate-file <edited-source> --target-task <json|path> [--repeat N] [--append-on-accept]) — extract the current block (source on disk) and candidate
block (edited file); if they are identical it prints {accept:true, reason:"no gated-block change"} (the ungateable no-op). Otherwise it projects both into skill-arm prompts, runs promptfoo
skill-arm-only for each with --output, normalizes the JSON, and calls the pure
computeVerdict(). On accept with --append-on-accept, the synthesized
target task is appended to tasks/<target>.jsonl (real-data-shaped input is rejected per
cq-test-fixtures-synthesized-only).The verdict math is pure and unit-tested with zero API
(test/verdict.test.sh): corpus_regressed = candidate_rate < current_rate − epsilon (ε = one-task-equivalent; boundary equality is NOT a regression), target_task_passes = pooled candidate target rate ≥ 0.5, accept = !corpus_regressed && target_task_passes. Fail-closed:
any gate error (missing key, promptfoo non-zero, malformed task) exits non-zero and defaults to NOT
accept. The gate is only honest while the skill-arm prompt is a mechanical projection of the block
(see ADR-069) — if the projection link is broken the gate silently no-ops on out-of-block edits.
See README.md for the reproduce commands, how to read the baseline-vs-skill delta, and the additive recipe for adding a new target. In short:
cd plugins/soleur/skills/eval-harness
bash scripts/gen-models.sh # refresh model IDs from the registry
npx promptfoo eval -c promptfooconfig-go-routing.yaml --repeat 3 # ~144 API calls (8 tasks)
npx promptfoo eval -c promptfooconfig-ticket-triage.yaml --repeat 3 # ~108 API calls (6 tasks)
npx promptfoo eval -c promptfooconfig-tool-selection.yaml --repeat 5 # ~450 API calls (15 tasks) — manual only
tool-selection is a manual measurement-only target (#5768 AC(c)): it
measures whether the L3 phase-scoped surface (the hint
.claude/hooks/phase-surface-hint.sh injects) lets the model pick the correct
next skill more often than the full-surface baseline. The mean of the MEASUREMENT
score across the two arms IS the before/after uplift. Unlike the target keys behind
promptfooconfig-go-routing.yaml and
promptfooconfig-ticket-triage.yaml it is not in
gated-skills.json — there
is no prose block to project (the surface lives in phase-surface-map.json, not a
SKILL.md eval-gate block), so it never runs as a per-PR projection round-trip;
run it by hand when you want the AC(c) number.
--repeat 3 runs each cell 3× so the rate can be a median over runs — a config-level repeat: key
is NOT honored by promptfoo, so the flag is required.
Model IDs are single-sourced via gen-models.sh, which reads the three
current IDs from the TypeScript registry into models.generated.json — no model literal is
hardcoded in any config-class file.
Deterministic, no live LLM / no API (stubbed model outputs, recorded result fixtures):
gen-models.test.sh,
measure-classification.test.sh,
gate-classification.test.sh,
extract-block.test.sh (block extraction + AC4 round-trip,
registry-driven target loop),
verdict.test.sh (pure computeVerdict — accept / corpus-regress /
target-fail / ε-boundary), eval-gate.test.sh (--check, --dry-run,
no-op — no API), and
registry-completeness.test.sh (bidirectional parity
between eval-gate:block source markers and gated-skills.json block_ids — DEDUP +
set-equality + charset guard). They run under the standard bash scripts/test-all.sh discovery.
README.md (opens in a new tab)enums/go-routes.json (opens in a new tab)enums/incident-threshold.json (opens in a new tab)enums/lane.json (opens in a new tab)enums/tool-selection.json (opens in a new tab)enums/triage-levels.json (opens in a new tab)gated-skills.json (opens in a new tab)models.generated.json (opens in a new tab)promptfooconfig-go-routing.yaml (opens in a new tab)promptfooconfig-incident-threshold.yaml (opens in a new tab)promptfooconfig-lane-inference.yaml (opens in a new tab)promptfooconfig-ticket-triage.yaml (opens in a new tab)promptfooconfig-tool-selection.yaml (opens in a new tab)prompts/go-baseline.txt (opens in a new tab)prompts/go-skill.txt (opens in a new tab)prompts/incident-threshold-baseline.txt (opens in a new tab)prompts/incident-threshold-skill.txt (opens in a new tab)prompts/lane-inference-baseline.txt (opens in a new tab)prompts/lane-inference-skill.txt (opens in a new tab)prompts/tool-selection-baseline.txt (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub jikig-ai/soleur --plugin soleur108 skills in this plugin
/admin-ip-refreshThis skill should be used to refresh the prod SSH allowlist (Doppler ADMIN_IPS) after operator IP rotation. Detects drift, mutates Doppler with explicit ack./agent-browserThis skill should be used when automating browser interactions via Vercel's agent-browser CLI. It handles web page navigation, form filling, screenshots, and data scraping using ref-based element selection./agent-native-architectureThis skill should be used when designing agent-native applications where agents are first-class citizens: architecting autonomous agents, creating MCP tools, building apps where features are agent-driven outcomes.Other plugins' skills for the same job