Skip to the content.

Benchmark Test Suite v2

Historical. Current methodology: evaluation-methodology.md (2026-11-24). This v2 suite (2026-10) predates the v6 cleanup; the current Rules catalogue is §6.3 there plus scripts/benchmark.sh.

Design Principles

  1. Test the test infrastructure first. Run frontier once to validate harness and pass criteria. If frontier fails, the test is broken — fix the test, not the model.

  2. KGM must resolve deterministically. Every dispatch test prompt’s expected search_nodes query must return a match. A KGM miss tests the index, not the model. Verify before running.

  3. Use exact signal phrases from KGM index. The hey <signal> prompt must use a signal phrase registered in KGM. No novel query combinations the model might rephrase and miss.

  4. Frontier runs once (validation). 14B runs N times (measurement). Frontier validates the harness works. 14B multi-run measures stochastic reliability. Don’t waste frontier tokens on multi-run.

  5. Minimum 5 runs per test for stochastic validity. Single-round results are unreliable (empirically: 91% in round 1, 66% in round 2 with same model and tests).

  6. Test target skills must be QOO-qualified. A skill used as a benchmark target must have been through QOO conversion (scripts, CNL muscle, anti-fabrication rules). Testing unevolved skills measures skill maturity, not model operability. Empirically: crc-status went from 40% (v1) to 80% (v2 QOO) — the model didn’t change, the skill did.

Pre-Flight: KGM Verification Gate

Before any benchmark run, the harness verifies every dispatch test’s expected query resolves in KGM. If any query returns empty, the test is excluded and flagged as a test infrastructure issue.

benchmark.sh --preflight
# For each dispatch test: call search_nodes with expected query
# FAIL = test excluded, not counted against model

Discovered KGM search behavior (v1 lesson)

KGM’s MCP search is not fuzzy. Multi-word queries must match tokens present in the entity’s observations. Queries with words not in the registered signal phrases return empty.

Query KGM Result Reason
crc status ✅ Exact match to registered signal
check crc ✅ Exact match to registered signal
check crc status ❌ 3-word combo not registered
headroom status ✅ Exact match to registered signal
check headroom status ❌ 3-word combo not registered

Rule: Test prompts must use 1:1 registered signal phrases.

Test Cases

Skill Operability Tests (target: ≥90%)

Rule: Only QOO-qualified skills may be test targets. A skill is QOO-qualified when it has: scripts/, scores.yaml (qoo-qualified: true), CNL muscle SKILL.md, and anti-fabrication rules. Unevolved v1 skills measure skill maturity, not model operability — they must not be in the suite.

ID What It Tests Prompt KGM Query QOO Version Pattern
T3 Dispatch → skill load → script hey crc status crc status v2.0.0 ✅ Dispatch→A
T9 Dispatch → skill load → script (operable) hey check readme check readme v3.0.1 ✅ Dispatch→A

Removed from Suite (not QOO-qualified)

ID Skill Why Removed Reinstate When
T2 headroom-proxy-status v1 skill, no scripts, 14B fabricates output After QOO conversion
T5 agentfs-violation-chk v1 skill, Pattern C, passes by luck not engineering After QOO conversion

System Prompt Compliance Test (reported separately)

ID What It Tests Prompt KGM Query Pattern
T1 Session canary rule hello (none) Rule

T1 tests system prompt rule compliance, not skill operability. The AGENTS.md Session Canary rule requires 🐦 word-word on turn 1. 14B models process dense system prompts inconsistently — this is model-level variance, not skill architecture. Reported separately from the ≥90% target.

Future Tests (require sandbox)

ID What It Tests Prompt Safety Pattern
T4 Multi-step scripted workflow hey git Destructive B
T6 Generative skill creation hey create skill Write-contained D
T7 Configuration hey configure goose litellm Destructive E
T8 Memory write + post-write rule hey remember ... Write-contained R3+R7

These tests require either --dry-run mode, a scratch project, or a sandboxed environment. Not included in default benchmark suite.

Changes from v1

Change Reason
T2 prompt hey check headroom status → hey headroom status check headroom status returns empty from KGM. headroom status is a registered signal.
T9 added (readme audit) Phase 2 operable skill. Uses check readme which resolves in KGM.
Pre-flight KGM gate added Prevents testing KGM search gaps instead of model operability.
Frontier runs once, not N× Frontier validates harness. Multi-run is only for 14B.
T2 checker tightened v1 only checked search_nodes present. v2 requires full chain: search → load → execute.
T1 reported separately System prompt compliance is not skill operability. Different concern, different metric.
Minimum runs raised to 5 Empirical: 3-run results varied from 91% to 66%. Need ≥5 for stability.

Pass Criteria

Test Pass If
T1 Output contains 🐦 word-word pattern
T2 search_nodes called AND load_skill called AND shell execution detected
T3 search_nodes called AND load_skill called AND shell execution detected
T5 search_nodes called AND load_skill called AND structured report with violation/compliance keywords
T9 search_nodes called AND load_skill called AND shell execution detected (gather-state.sh)

Checker implementation

Checkers are grep-based on the goose run output file. The goose run --quiet flag produces tool call headers (▸ tool_name) and model responses. Checkers look for these markers:

check_t2() {
  grep -q 'search_nodes' "$1" &&
  grep -q 'load_skill' "$1" &&
  grep -q '▸ shell' "$1"
}

Execution Protocol

Phase 1: Pre-flight
  For each dispatch test: verify KGM query resolves via search_nodes
  Any miss → exclude test, log as infrastructure gap, fix KGM index

Phase 2: Frontier validation (1 run)
  Provider: custom_redhat / claude-sonnet-4-6
  Run T1,T2,T3,T5,T9 once
  All must pass → harness validated
  Any failure → fix the test or harness, do not proceed to Phase 3

Phase 3: 14B measurement (5 runs)
  Provider: custom_skupper / Qwen/Qwen3-14B-FP8
  Run T1,T2,T3,T5,T9 five times each
  Record per-test and overall pass rate

Phase 4: Report
  Skill operability = (T2+T3+T5+T9 passes) / (4 × 5 = 20)
  System prompt compliance = T1 passes / 5
  Target: skill operability ≥90% (≥18/20)

Scoring

Skill Operability Rate = (QOO-qualified test passes) / (QOO test count × N runs)
Current suite: T3 + T9 = 2 tests
Target: ≥90%

System Prompt Compliance = T1 passes / N runs
Reported separately — no target (model-level, not architecture)

Suite grows as more skills are QOO-converted and added.

CWD Requirements

Test CWD Why
T1,T2,T3,T9 Project with .agents/ and AGENTS.md Context loading requires AGENTS.md in CWD tree
T5 ~/.agents Violation check scans user scope

Validated CWD: Any git repo with .agents/SOUL.md and AGENTS.md at repo root. Set BENCHMARK_PROJECT_CWD env var or run from the project directory.

Harness

File: ~/.agents/scripts/benchmark.sh

Usage:

# Pre-flight
benchmark.sh --preflight

# Frontier validation (1 run)
benchmark.sh --provider custom_redhat --model claude-sonnet-4-6 --runs 1

# 14B measurement (5 runs)
benchmark.sh --provider custom_skupper --model 'Qwen/Qwen3-14B-FP8' --runs 5

Default tests: t1,t3,t9 (only QOO-qualified skills + canary).

Model Tiers

Tier Model Provider Purpose Target
Frontier Claude Sonnet 4.6 custom_redhat Harness validation 100%
Mid-range Qwen3-14B-FP8 custom_skupper Operability measurement ≥90%
Minimum viable Qwen3-8B (future) TBD Stretch goal ≥70%

Feedback Loop

1. Run benchmark on 14B → skill operability rate
2. Failing tests → attribute to MCACS principle
3. Apply targeted fix (extract script, strengthen CNL, fix KGM signal)
4. Re-run benchmark → measure improvement
5. Repeat until ≥90% on mid-range tier

Empirical Results Log

2026-10-27 — v1 harness (before fixes)

Round Model Result Note
1 Sonnet 4.6 (headroom) 12/12 = 100% Via headroom proxy, not direct
1 Qwen3-14B-FP8 11/12 = 91% T1 run 1 fail (canary)
2 Sonnet 4.6 (redhat) 12/12 = 100% Direct LiteLLM path
2 Qwen3-14B-FP8 8/12 = 66% T1×2, T3×2 failures
Combined Qwen3-14B-FP8 19/24 = 79% Below 90% target

Root cause of variance: T2 prompt hey check headroom status produced KGM query check headroom status which returns empty. T3 model sometimes sent check crc status (also empty). Frontier model compensated by retrying with fewer keywords; 14B did not retry consistently. The test infrastructure was testing KGM search, not model operability.

2026-10-27 — v2 harness (pending)

To be run after implementing v2 changes to benchmark.sh.