zhihe-eval-harness
БесплатноБез исполняемых скриптовНе проверенExternal-correctness gate + judge stack + contamination audit for self-improving agent loops. Deterministic verifier (exact-match only, no LLM judge)…
от modelrt153 установки в других каталогахОб этом скилле
Zhihe Eval Harness
External-correctness gate for self-improving agent loops — productize the judge that verifies the loop, not another agent.
Components
| File | Role |
|---|---|
verifier.py |
Deterministic verifier. Exact comparison only, no floats, no LLM judge. Answer tasks: full-string exact match. Code tasks: subprocess solve(input) comparison. Fail-closed: any verifier surprise = FAIL. Emits machine-readable findings (verdict + evidence: ref vs got). Isolation model (disclosed): untrusted submitted code runs in a subprocess with (1) a scrubbed secret-free environment — no host API keys / tokens / shell rc state inherited, (2) a throwaway working directory so relative file access lands in an isolated temp tree, (3) a 20 s wall timeout. An OS-level job-object working-set memory cap was probed on the target host and is unavailable there (CreateJobObject/SetInformationJobObject return ERROR_INVALID_PARAMETER under this VM), so isolation is environment + filesystem + time based, not a hard memory jail. This is a verifier, not a sandbox: it compares outputs, and the isolation prevents accidental host exposure (credentials/files), which is the stated threat model. |
tasks.py |
Locked-protocol task registry. Pool A = classic algorithm families (known in training/canonical text, in-pool reference allowed); Pool B = exotic families (must pass contamination_audit: stem+instance input absent from workspace before admission). New seed makes each instance unique. References live only on the verifier side; the executor gets spec+input only. |
contamination_audit.py |
Exact-substring contamination audit. R40 self-contamination lesson: memory/ is a model exposure surface — fix records leak the needle. Audits whether stem keywords / rendered instances appear verbatim in the workspace. Coverage is first-class (disclosed): files skipped by the size/depth/extension limits are reported, never silently dropped — coverage_report() lists every skipped file with its reason, and coverage_gap_in_exposure() flags a skip that sits in a model-exposure surface (memory/ docs/ skills/ AGENTS.md SOUL.md). A clean verdict with such a gap is a clean-WITH-CAVEAT, and the release gate blocks publish on any exposure-surface gap, so the audit can no longer report clean despite incomplete coverage. |
semantic_audit.py |
Concept-level contamination audit (semantic analysis step). Embeds the task spec and scans workspace cognition text in overlapping windows, flagging a concept-leak at cosine >= 0.60 (threshold from measured separation: same-family paraphrase 0.839 vs across-family <= 0.318). Network dependency: requires a local embeddings endpoint (default http://127.0.0.1:19432/v1/embeddings); when unreachable it returns clean=None and the caller falls back to the exact-substring audit only — never a hard failure. |
tests/test_external_gate_mutation.py |
Mutation-testing CI gate: 12 plausible-but-wrong algorithms per registered code family, asserting the gate rejects every one (negative verification). R37 rule enforced: code-family count == mutant-coverage count. |
Why this is a moat
99% of "agent commerce" has no external correctness gate. This one:
- Verdict is machine-readable (cloudflare-style findings) — feeds CI / billing / insurance inputs directly
- Ratchet signal uncontaminated (Pool B contamination-audit isolation, POOL_VERSION pinned)
- Prior audit is distribution-level (100 seeds x 6 families, not a single seed)
- Negative verification: a bad generator must be caught by the gate, otherwise the gate itself is unproven
Usage
import tasks, verifier
task = tasks.render(seed=20261129, family="B4_coin_change")
ok, evidence = verifier.verify(task, model_output)
Open-core / paid split
- Open-core: verifier + task pool (trust + inbound traffic)
- Paid layer: ratchet baselines, judge-stack tuning, contamination-audit policy
- Settlement rails: x402 (USDC on Base, per-call) / PayPal Orders v2 / Stripe MPP (Tempo) — per live activation status
- Weight-freeze iron law: this harness only verifies; it never modifies model weights
- Fail-closed semantics: all-endpoint failure → explicit FAIL-CLOSED, never silent empty findings
Getting the paid layer
Contact [email protected] (reply carries pricing + delivery handshake terms).
Установить zhihe-eval-harness в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл zhihe-eval-harness?
External-correctness gate + judge stack + contamination audit for self-improving agent loops. Deterministic verifier (exact-match only, no LLM judge), locked-protocol task registry (Pool A classic / Pool B exotic with contamination gate), distribution-level prior audit (100 seeds x 6 families). Machine-readable cloudflare-style findings for CI/billing/insurance inputs. Ratchet baselines, judge-stack tuning, and contamination-audit policy are the paid layer.
Как установить скилл zhihe-eval-harness?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл zhihe-eval-harness запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub