360 Secure SkillHub
360 安全技能中心

Patello Bench

核心功能:针对生产助手的特定失败,生成泛化且证据固定的基准用例,经验证后在多模型矩阵运行,筛选出能区分模型优劣的有效用例。典型场景:所有者投诉助手输出不实、违反指令等特定错误时使用,不支持通用模型基准请求。输入为修剪后的故障会话记录及投诉内容,输出为标准化基准用例目录与模型测试打分卡,需先展示样本结果再批量执行。

patello
patello
热度 7.65
最近更新 2026-08-28 04:48:29
分类:开发依赖:代码执行 / 读写文件 / 内部调用大模型应用场景:研究 / 自动化脚本 / 报告撰写

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add bench-it
Metadata
name
bench-it
description
Turn a production assistant failure into a permanent, discriminating LLM benchmark case — genericized prompt with frozen evidence, judge, model-matrix run, discrimination check.
version
0.2.0

bench-it

Turn a specific production failure reported by the owner into a discriminating benchmark case: generate a genericized case with frozen evidence from the failing transcript, validate it, run it across the model matrix, and accept only cases that discriminate (some models pass, some fail). Requires a sample run shown to the owner before any batch run.

When to use

The owner complains about a specific assistant failure ("it said X, but that wasn't true / not supported / contradicts its instructions"). This skill is NOT for generic "benchmark this model" requests.

How bench-it works

How bench-it works

  1. Trim the failing session transcript so the problematic message is last.
  2. Generate the intake brief: bench/intake.py brief --complaint "..." --transcript <path> [--full] — pipe it into an isolated subagent (intake model: glm-5.3, a config knob).
  3. The subagent writes data/cases/<case-id>/ (case.json, prompt.md with frozen evidence, rubric.md, notes.md; --full adds prompt-full.md). Validate: bench/intake.py validate <case-dir> --leak-terms <real proper nouns>.
  4. Sample run first (standing rule: one sample shown to the owner before any batch): bench/run_case.py <case-dir> --models <m1>,<m2> --sample-only
  5. Batch + discrimination check: bench/run_case.py <case-dir> --models ... --n 3 [--jury] [--until-discriminating]. A case is accepted only if some models pass and some fail; revise (budget 3) or park as flaky.
  6. On tag push, CI publishes the skill to ClawHub.

What bench-it judges

What bench-it judges

Failure class Judge Origin
claim_follows_from_evidence ClaimFollowsFromEvidence 2026-08-27 GFN verification-theater incident: real citations, clean format, unsupported conclusion. First run: glm-5.3 3P, claude-sonnet-4-6 3P, deepseek-v4-flash 1P/2F, minimax-m2.7 3F — discriminating on revision 0.
swedish_fabrication, kcal_budget_framing, transit_connection_feasibility, english_stickiness see above + EnglishStickiness production incidents 2026-05..08

Procedure

  1. Trim the transcript. Copy the failing session's .jsonl, keep messages up to and including the problematic assistant reply (it must be the last message). Store under private-transcripts/ (git-ignored).
  2. Generate the intake brief with bench/intake.py brief --complaint "<the owner's complaint>" --transcript <trimmed.jsonl> [--full].
  3. Spawn an isolated subagent (intake model: glm-5.3, a config knob in intake.py) with that brief. It writes data/cases/<case-id>/.
  4. Validate: bench/intake.py validate <case-dir> --leak-terms <comma,separated,real,proper,nouns>.
  5. Sample run (standing rule — show the owner before any batch): bench/run_case.py <case-dir> --models <m> --sample-only
  6. Batch + discrimination check: bench/run_case.py <case-dir> --n 3 [--jury] [--full] [--until-discriminating]. Not discriminating → revise (budget 3), then park as flaky.
  7. Report the scorecard to the owner.

Rules

  • One turn, no live tools: all evidence is frozen in the case prompt.
  • Genericization preserves the failure mode, not the trivia.
  • Case context may include standing instructions (AGENTS.md rules live in the failing turn) — instruction-following failures need the instruction in the frozen context.
  • Old models stay in the matrix (known-floor anchors, e.g. minimax-m2.7).
  • Private transcripts and the full-tier payload are never committed or pushed; only genericized cases are tracked.
  • Repo: patello/bench-it on GitHub; skill published to ClawHub automatically on tag push.