eval-corpus
БесплатноБез исполняемых скриптовНе проверенUse when changing local eval capture, gold labels, diversified and tune sets, matching, replay storage, or eval CLI behavior.
от kunchenguid★ 9 314 звёзд на GitHubОб этом скилле
Local Eval Corpus Collection (internal/eval)
- Collection is automatic and default-on through
eval.capture_provenance/eval.auto_capture/eval.max_cases/eval.diversified_sizeinconfig.yaml, never an environment variable: the daemon's launchd/systemd unit is re-rendered on install and update and preserves only proxy variables (internal/daemon/service.goproxyEnvKeys), so an env-gated corpus silently stops collecting after an update. The keys are global-only -Mergecopies them straight fromGlobalConfig, and anevalblock in a repo's.no-mistakes.yamlis ignored. - Provenance is unrecoverable:
executor.gowrites it with the review round or never. A round recorded withcapture_provenanceoff can never be captured, so the rejection names the setting rather than the round's age. - The trigger is
RunManager.autoCaptureEvalCase, called last in the run goroutine after the outcome is already reported: it recovers its own panic (the enclosing recover would otherwise mark a finished run failed), bounds itself withevalAutoCaptureTimeoutoff the run context, serializes runs onevalCaptureMu(shared pool + registry), and logs rather than propagates.ErrNoCapturableReviewseparates "nothing to freeze" (DEBUG) from a real fault (WARN). Automatic and manual capture call the sameeval.Capture. A merged PR also best-effort relabels already-captured cases viaRunManager.relabelEvalRun(same mutex/timeout);eval relabelis the CLI path. - Finding-level capture is owned by
goldFromRound,hasRecordedDecision, andIngestPostPRMiss; matching is owned byScoreCandidate. The capture rules and provenance meanings are authoritative indocs/src/content/docs/reference/eval.md(Finding-level gold; Inspect and adjudicate gold labels).Labels.ActiveFindingssupplies the shared scoring/set view, whileFindingGold.Adjudicationretains explicit decisions separately from captured evidence. diversifiedis gold-only and pinned (empty gold -> empty set +eval setswarning, never unlabeled fill). Those pins are the held-out official set; leftover labeled cases aretune. ListCases trims pins to the liveeval.diversified_sizecap (at most one per stratum when reconciling to 0 or a lower cap);RefreshDiversifiedis only for an explicit rebuild. Never fit matcher thresholds or review prompts ondiversified. Report F1 as the headline metric only when false-positive gold exists; otherwise recall + precision bounds. RelabelRun recomputes derived merge labels and drops obsolete ones unless they carry an explicit adjudication. Matcher assignment is ONE globally optimal bipartite matching over all gold and candidate findings, weighted so an exact match outweighs any number of fuzzy ones; per-strength-tier greedy assignment understated recall and must not come back. Regressions:TestListCasesDiversified_*,TestGoldFromRoundLabelsByRecordedDecision,TestCaptureWritesAutoFixMergedAsTruePositive,TestCaptureWritesShippedUnfixedAsFalsePositive,TestCaptureWritesShippedUnfixedEvenWhenTheFinalRoundNoLongerRaisesIt,TestCaptureLabelsSelectedAutoFixAsTruePositiveEvenWhenLaterRoundReRaisesIt,TestRelabelReplacesShippedUnfixedWhenTheRoundLaterRecordsAFixDecision,TestMergeGoldClearsStoredShippedUnfixedWhenRecomputedUnlabeled,TestRelabelClearsStoredShippedUnfixedFPWhenRecomputedUnlabeled,TestScoreCandidateDoesNotLetFuzzyEarlierGoldStealExactLaterMatch,TestScoreCandidateRecoversMatchTheTieredMatcherLost,TestMaxWeightAssignmentMatchesBruteForceOptimum,TestEvaluationSummaryWithholdsHeadlineF1WithoutFalsePositiveGold,TestCaptureDoesNotLabelSkipOrApproveAsPass,TestCaptureWritesFalseNegativeGoldForUserAddedFinding,TestCaptureSkipsIncompleteReviewRoundAndKeepsCompletedSibling,TestIngestPostPRMissWritesFalseNegativeGoldOnGreenReview,TestCaptureAndReport*, CLITestEvalCaptureAndSetsSpeakInFindingGoldTerms,TestEvalMissIngestLabelsFalseNegativeGold.- A case stores no Git bundle. Bundles were a full history copy per review pass (~8 MB each here) and cannot be trimmed, because a bundle built with negative refs records prerequisites an empty restore gate lacks. Cases of one repository instead share
<NM_HOME>/eval/pools/<fingerprint>.git, pinned byrefs/no-mistakes/eval/<caseID>/{head,source-head,base,trusted-config}; the marginal case costs ~8 KB.Store.Pruneappliesmax_casesoldest-first but protects active replay reservations and cases with recorded evaluations, so the cap is a retention target rather than a hard bound. - Capture stays read-only against the gate, so objects reach the pool through a throwaway bare clone plus a refspec fetch - never a bare-object-id fetch, whose want policy is off by default and version-dependent.
- Every eval subcommand is idempotent and tested so (
internal/eval/idempotency_test.go, CLITestEvalCaptureSetsReportAndRelabelAreIdempotentAtTheCLI): capture/relabel converge in place, sets reads self-stabilize
Установить eval-corpus в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл eval-corpus?
Use when changing local eval capture, gold labels, diversified and tune sets, matching, replay storage, or eval CLI behavior.
Как установить скилл eval-corpus?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл eval-corpus запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic