@tangle-network/agent-eval 2.0.10 → 2.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist/adapters/http.d.ts +2 -2
- package/dist/{agent-profile-_JzxgLDM.d.ts → agent-profile-C0FBdYa6.d.ts} +3 -3
- package/dist/{agent-profile-_JzxgLDM.d.ts.map → agent-profile-C0FBdYa6.d.ts.map} +1 -1
- package/dist/analyst/index.d.ts +292 -74
- package/dist/analyst/index.d.ts.map +1 -1
- package/dist/analyst/index.js +11 -161
- package/dist/analyst/index.js.map +1 -1
- package/dist/app-grade/index.d.ts +2 -2
- package/dist/app-grade/index.js +3 -3
- package/dist/{benchmark-command-CGQXNFj7.js → benchmark-command-Be5O6A2v.js} +797 -13
- package/dist/benchmark-command-Be5O6A2v.js.map +1 -0
- package/dist/benchmarks/index.d.ts +5 -5
- package/dist/benchmarks/index.d.ts.map +1 -1
- package/dist/benchmarks/index.js +19 -10
- package/dist/benchmarks/index.js.map +1 -1
- package/dist/campaign/index.d.ts +5 -5
- package/dist/campaign/index.js +10 -10
- package/dist/{campaign-eus7YRs2.js → campaign-CE08mvQO.js} +11 -11
- package/dist/{campaign-eus7YRs2.js.map → campaign-CE08mvQO.js.map} +1 -1
- package/dist/{campaign-evidence-KM5GTsHG.js → campaign-evidence-71uzJMVY.js} +2 -2
- package/dist/{campaign-evidence-KM5GTsHG.js.map → campaign-evidence-71uzJMVY.js.map} +1 -1
- package/dist/{campaign-evidence-BOcX4w0r.d.ts → campaign-evidence-DRvr7lZU.d.ts} +2 -2
- package/dist/{campaign-evidence-BOcX4w0r.d.ts.map → campaign-evidence-DRvr7lZU.d.ts.map} +1 -1
- package/dist/{chat-client-Oyot5tyo.js → chat-client-TkNgQDLj.js} +2 -2
- package/dist/{chat-client-Oyot5tyo.js.map → chat-client-TkNgQDLj.js.map} +1 -1
- package/dist/{chat-json-call-DTmv2uNY.js → chat-json-call-gu3deRID.js} +2 -2
- package/dist/{chat-json-call-DTmv2uNY.js.map → chat-json-call-gu3deRID.js.map} +1 -1
- package/dist/cli.js +778 -10
- package/dist/cli.js.map +1 -1
- package/dist/code-agent-jsonl-aPWZG3vr.js +104 -0
- package/dist/code-agent-jsonl-aPWZG3vr.js.map +1 -0
- package/dist/{completion-verifier-CCPG2Yc0.js → completion-verifier-BvPqg9Gp.js} +4 -4
- package/dist/{completion-verifier-CCPG2Yc0.js.map → completion-verifier-BvPqg9Gp.js.map} +1 -1
- package/dist/contract/index.d.ts +8 -8
- package/dist/contract/index.js +16 -112
- package/dist/contract/index.js.map +1 -1
- package/dist/{cost-ledger-C5CCidPm.js → cost-ledger-ni6f77QJ.js} +106 -50
- package/dist/cost-ledger-ni6f77QJ.js.map +1 -0
- package/dist/{decision-point-CfqtnGop.js → decision-point-CjC56Enj.js} +2 -2
- package/dist/{decision-point-CfqtnGop.js.map → decision-point-CjC56Enj.js.map} +1 -1
- package/dist/{default-registry-Rs5uzlfJ.js → default-registry-C5iSuS8e.js} +5 -5
- package/dist/{default-registry-Rs5uzlfJ.js.map → default-registry-C5iSuS8e.js.map} +1 -1
- package/dist/{default-registry-X8McMoUV.d.ts → default-registry-DFRlBniE.d.ts} +2 -2
- package/dist/{default-registry-X8McMoUV.d.ts.map → default-registry-DFRlBniE.d.ts.map} +1 -1
- package/dist/{define-agent-eval-D8ntOXqV.js → define-agent-eval-BHn6t-DC.js} +4 -4
- package/dist/{define-agent-eval-D8ntOXqV.js.map → define-agent-eval-BHn6t-DC.js.map} +1 -1
- package/dist/{define-agent-eval-DH5-xi-F.d.ts → define-agent-eval-n63vmQMR.d.ts} +4 -4
- package/dist/{define-agent-eval-DH5-xi-F.d.ts.map → define-agent-eval-n63vmQMR.d.ts.map} +1 -1
- package/dist/{dspy-rlm-engine-ChE1PUM5.js → dspy-rlm-engine-CR5MSL2k.js} +6 -5
- package/dist/{dspy-rlm-engine-ChE1PUM5.js.map → dspy-rlm-engine-CR5MSL2k.js.map} +1 -1
- package/dist/{evaluation-BAisv8ZR.js → evaluation-DqfNMaKr.js} +2 -2
- package/dist/{evaluation-BAisv8ZR.js.map → evaluation-DqfNMaKr.js.map} +1 -1
- package/dist/{evaluation-CjZH6gW0.d.ts → evaluation-VbjqORBn.d.ts} +2 -2
- package/dist/{evaluation-CjZH6gW0.d.ts.map → evaluation-VbjqORBn.d.ts.map} +1 -1
- package/dist/evaluation.d.ts +1 -1
- package/dist/evaluation.js +1 -1
- package/dist/experiment/index.d.ts +1 -1
- package/dist/experiment/index.js +1 -1
- package/dist/{external-optimizer-contracts-BFV8lnhl.js → external-optimizer-contracts-vrye9kti.js} +2 -2
- package/dist/{external-optimizer-contracts-BFV8lnhl.js.map → external-optimizer-contracts-vrye9kti.js.map} +1 -1
- package/dist/{external-optimizer-process-B6emPodQ.js → external-optimizer-process-DkOMkeHW.js} +3 -3
- package/dist/{external-optimizer-process-B6emPodQ.js.map → external-optimizer-process-DkOMkeHW.js.map} +1 -1
- package/dist/{external-optimizer-subprocess-_O06eDVA.js → external-optimizer-subprocess-CFIiwHSE.js} +3 -3
- package/dist/{external-optimizer-subprocess-_O06eDVA.js.map → external-optimizer-subprocess-CFIiwHSE.js.map} +1 -1
- package/dist/{finding-scope-B_As3F_v.js → finding-scope-BVQVcjz7.js} +2 -2
- package/dist/{finding-scope-B_As3F_v.js.map → finding-scope-BVQVcjz7.js.map} +1 -1
- package/dist/{findings-store-CvYUzQBR.js → findings-store-Drnjid7m.js} +5 -5
- package/dist/{findings-store-CvYUzQBR.js.map → findings-store-Drnjid7m.js.map} +1 -1
- package/dist/fuzz.js +1 -1
- package/dist/hosted/index.js +1 -1
- package/dist/{index-BmWw8zN6.d.ts → index-BEXEYURJ.d.ts} +7 -7
- package/dist/{index-BmWw8zN6.d.ts.map → index-BEXEYURJ.d.ts.map} +1 -1
- package/dist/{index-ZffK_5sD.d.ts → index-CbzPtg7O.d.ts} +205 -29
- package/dist/index-CbzPtg7O.d.ts.map +1 -0
- package/dist/{index-CCOaNmh2.d.ts → index-Dt3zWlRa.d.ts} +3 -3
- package/dist/{index-CCOaNmh2.d.ts.map → index-Dt3zWlRa.d.ts.map} +1 -1
- package/dist/{index-aRalB_Ma.d.ts → index-rrPT3Pw0.d.ts} +2 -2
- package/dist/{index-aRalB_Ma.d.ts.map → index-rrPT3Pw0.d.ts.map} +1 -1
- package/dist/index.d.ts +13 -13
- package/dist/index.js +471 -22
- package/dist/index.js.map +1 -1
- package/dist/{judge-gate-CpD3wmcf.js → judge-gate-WgYqQ9LA.js} +2 -2
- package/dist/{judge-gate-CpD3wmcf.js.map → judge-gate-WgYqQ9LA.js.map} +1 -1
- package/dist/{kind-factory-B-xCxG7p.js → kind-factory-C8MJpMTV.js} +2 -2
- package/dist/{kind-factory-B-xCxG7p.js.map → kind-factory-C8MJpMTV.js.map} +1 -1
- package/dist/{llm-client-Dk8lBnMh.js → llm-client-D4B1qR_1.js} +2 -2
- package/dist/{llm-client-Dk8lBnMh.js.map → llm-client-D4B1qR_1.js.map} +1 -1
- package/dist/{llm-judge-DYmEdo3M.js → llm-judge-CgF3ZM3R.js} +4 -4
- package/dist/{llm-judge-DYmEdo3M.js.map → llm-judge-CgF3ZM3R.js.map} +1 -1
- package/dist/{matrix-BDl7hoBr.d.ts → matrix-B95YsrV7.d.ts} +2 -2
- package/dist/{matrix-BDl7hoBr.d.ts.map → matrix-B95YsrV7.d.ts.map} +1 -1
- package/dist/meta-eval/index.js +2 -2
- package/dist/metrics-C6pXdupw.js +9 -0
- package/dist/metrics-C6pXdupw.js.map +1 -0
- package/dist/multishot/golden/index.d.ts +1 -1
- package/dist/multishot/index.d.ts +6 -6
- package/dist/multishot/index.js +8 -7
- package/dist/multishot/index.js.map +1 -1
- package/dist/openapi.json +1 -1
- package/dist/{optimization-method-4JlbMxd2.js → optimization-method-1xzXK-B6.js} +9 -9
- package/dist/{optimization-method-4JlbMxd2.js.map → optimization-method-1xzXK-B6.js.map} +1 -1
- package/dist/{proposal-findings-CfRFCFXS.js → proposal-findings-BCd4KjLy.js} +2 -2
- package/dist/{proposal-findings-CfRFCFXS.js.map → proposal-findings-BCd4KjLy.js.map} +1 -1
- package/dist/rl.d.ts +1 -1
- package/dist/rollout/index.d.ts +2 -2
- package/dist/rollout/index.js +1 -1
- package/dist/{rollout--rSr43Pd.js → rollout-CbHMVoDr.js} +2 -2
- package/dist/{rollout--rSr43Pd.js.map → rollout-CbHMVoDr.js.map} +1 -1
- package/dist/{run-improvement-loop-BeHu5D9Z.d.ts → run-improvement-loop-BPhkYKV2.d.ts} +5 -5
- package/dist/{run-improvement-loop-BeHu5D9Z.d.ts.map → run-improvement-loop-BPhkYKV2.d.ts.map} +1 -1
- package/dist/search/index.d.ts +2 -2
- package/dist/search/index.js +2 -2
- package/dist/{search-kernel-mZc79S6N.js → search-kernel-BkkDo75N.js} +2 -2
- package/dist/{search-kernel-mZc79S6N.js.map → search-kernel-BkkDo75N.js.map} +1 -1
- package/dist/{search-kernel-CJZ-ZSV1.d.ts → search-kernel-CDSEWa2X.d.ts} +2 -2
- package/dist/{search-kernel-CJZ-ZSV1.d.ts.map → search-kernel-CDSEWa2X.d.ts.map} +1 -1
- package/dist/{search-ledger-C7t68cmy.js → search-ledger-sormHFLS.js} +17 -1
- package/dist/search-ledger-sormHFLS.js.map +1 -0
- package/dist/{search-shipper-CmDW9dU6.js → search-shipper-BJ2Bkx2q.js} +2 -2
- package/dist/{search-shipper-CmDW9dU6.js.map → search-shipper-BJ2Bkx2q.js.map} +1 -1
- package/dist/{search-summary-CCgP2qXz.js → search-summary-DMckFUNY.js} +2 -2
- package/dist/{search-summary-CCgP2qXz.js.map → search-summary-DMckFUNY.js.map} +1 -1
- package/dist/{self-improve-C_Bcdmv8.js → self-improve-CMrPmjYE.js} +5 -5
- package/dist/{self-improve-C_Bcdmv8.js.map → self-improve-CMrPmjYE.js.map} +1 -1
- package/dist/{self-improve-B1fsNejr.d.ts → self-improve-D0TtJz4e.d.ts} +5 -5
- package/dist/{self-improve-B1fsNejr.d.ts.map → self-improve-D0TtJz4e.d.ts.map} +1 -1
- package/dist/{server-aZFmRucn.js → server-B-7vXS9T.js} +4 -4
- package/dist/{server-aZFmRucn.js.map → server-B-7vXS9T.js.map} +1 -1
- package/dist/{skillopt-optimization-method-DHk1K757.js → skillopt-optimization-method-D-BPMi8J.js} +9 -9
- package/dist/{skillopt-optimization-method-DHk1K757.js.map → skillopt-optimization-method-D-BPMi8J.js.map} +1 -1
- package/dist/{store-otlp-CdeW7NWq.js → store-otlp-DL30pdXE.js} +2 -2
- package/dist/{store-otlp-CdeW7NWq.js.map → store-otlp-DL30pdXE.js.map} +1 -1
- package/dist/{store-tool-spans-CVX-jfkk.js → store-tool-spans-DRdpbrnb.js} +3 -3
- package/dist/{store-tool-spans-CVX-jfkk.js.map → store-tool-spans-DRdpbrnb.js.map} +1 -1
- package/dist/{systemone-4PadCE4C.d.ts → systemone-C26IFS-a.d.ts} +3 -3
- package/dist/{systemone-4PadCE4C.d.ts.map → systemone-C26IFS-a.d.ts.map} +1 -1
- package/dist/systemone.d.ts +2 -2
- package/dist/systemone.js +2 -2
- package/dist/traces.js +3 -3
- package/dist/{tree-CiIe-f3f.js → tree-BX9ykHi3.js} +3 -3
- package/dist/{tree-CiIe-f3f.js.map → tree-BX9ykHi3.js.map} +1 -1
- package/dist/{types-D5XtEH9Q.d.ts → types-CBT-XcX5.d.ts} +14 -1
- package/dist/types-CBT-XcX5.d.ts.map +1 -0
- package/dist/{types-an-CUndX.d.ts → types-CYPV2dlR.d.ts} +52 -5
- package/dist/types-CYPV2dlR.d.ts.map +1 -0
- package/dist/wire/index.js +1 -1
- package/docs/feature-guide.md +2 -0
- package/docs/public-api.md +23 -16
- package/docs/skill-eval.md +103 -0
- package/package.json +4 -2
- package/dist/benchmark-command-CGQXNFj7.js.map +0 -1
- package/dist/cost-ledger-C5CCidPm.js.map +0 -1
- package/dist/index-ZffK_5sD.d.ts.map +0 -1
- package/dist/search-ledger-C7t68cmy.js.map +0 -1
- package/dist/types-D5XtEH9Q.d.ts.map +0 -1
- package/dist/types-an-CUndX.d.ts.map +0 -1
|
@@ -93,6 +93,19 @@ interface SearchCell {
|
|
|
93
93
|
spentUsd: number;
|
|
94
94
|
/** Every attempt's cost is known. */
|
|
95
95
|
costKnown: boolean;
|
|
96
|
+
/** Tokens summed over the attempts that reported them. Read `tokensKnown`
|
|
97
|
+
* before treating the sum as the cell's total. */
|
|
98
|
+
tokens: {
|
|
99
|
+
inputTokens: number;
|
|
100
|
+
outputTokens: number;
|
|
101
|
+
cachedTokens: number;
|
|
102
|
+
};
|
|
103
|
+
/** Every attempt reported its tokens; false once one did not, and the sum above is then a floor. */
|
|
104
|
+
tokensKnown: boolean;
|
|
105
|
+
/** Wall time summed over the attempts that reported it, in milliseconds. */
|
|
106
|
+
wallMs: number;
|
|
107
|
+
/** Every attempt reported its wall time; false once one did not, and the sum above is then a floor. */
|
|
108
|
+
wallKnown: boolean;
|
|
96
109
|
traceId: string | null;
|
|
97
110
|
allocatedSequence: number;
|
|
98
111
|
updatedSequence: number;
|
|
@@ -1106,4 +1119,4 @@ interface CampaignResult<TArtifact = unknown, TScenario extends Scenario = Scena
|
|
|
1106
1119
|
scenarios: Array<CampaignScenarioIdentity & Pick<TScenario, 'id' | 'kind'>>;
|
|
1107
1120
|
}
|
|
1108
1121
|
export { MintRolloutResult as $, LabeledScenarioWrite as A, ScoredSurfaceOutcome as B, JudgeDimension as C, LabeledScenarioSampleArgs as D, LabeledScenarioRecord as E, ProposeContext as F, SearchProposerView as G, SurfaceProposer as H, ProposedCandidate as I, searchProposerView as J, SearchSummaryOptions as K, RedactionStatus as L, OptimizerConfig as M, ParetoParent as N, LabeledScenarioSource as O, ProposalTrackContext as P, MintRolloutOptions as Q, Scenario as R, JudgeConfig as S, LabelTrust as T, TraceSpan as U, SessionScript as V, isProposedCandidate as W, SearchStateView as X, SearchState as Y, searchUnitScores as Z, GateDecision as _, CampaignResult as a, SearchCompletion as at, GenerationRecord as b, CampaignTraceWriter as c, SearchOperation as ct, DispatchContext as d, SearchUnitScore as dt, RolloutScrubber as et, DispatchFn as f, searchCellId as ft, GateContribution as g, GateContext as h, CampaignCostMeter as i, SearchCell as it, MutableSurface as j, LabeledScenarioStore as k, CodeSurface as l, SearchScoredCell as lt, GateCheckStatus as m, searchTaskSetDigest as mt, CampaignArtifactWriter as n, mintRolloutRows as nt, CampaignScenarioIdentity as o, SearchDecisionRecord as ot, Gate as p, searchNodeId as pt, renderSearchSummary as q, CampaignCellResult as r, unmintableReasons as rt, CampaignTokenUsage as s, SearchNode as st, CampaignAggregates as t, RolloutSearchLineage as tt, ComponentSurface as u, SearchSpend as ut, GateResult as v, JudgeScore as w, JudgeAggregate as x, GenerationCandidate as y, ScenarioAggregate as z };
|
|
1109
|
-
//# sourceMappingURL=types-
|
|
1122
|
+
//# sourceMappingURL=types-CBT-XcX5.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-CBT-XcX5.d.ts","names":[],"sources":["../src/campaign/search-state-identity.ts","../src/campaign/search-state-types.ts","../src/campaign/search-state-indexes.ts","../src/rollout/mint.ts","../src/campaign/search-state-view.ts","../src/campaign/search-state-projection.ts","../src/campaign/search-summary.ts","../src/campaign/types.ts"],"mappings":";;;;;;;;;;;iBAOgB,aAAa,kBAAkB;;iBAK/B,aACd,kBACA,gBACA,gBACA,OAAO,aACP;;iBAMc,oBAAoB,gBAAgB,eAAe;UCHlD;EACf;EACA,UAAU;EACV,OAAO;EACP;EACA;;UAGe;EACf;EACA;EACA;EACA;;;;UAKe;EACf;EACA;EACA;EACA;;;UAIe;EACf;EACA;;EAEA;EACA;;UAGe;EACf;;EAEA;EACA,gBAAgB;EAChB,UAAU;EACV,mBAAmB;;;EAGnB;;EAEA;;;;EAIA,kBAAkB;EAClB;EACA;EACA,QAAQ;EACR;;EAEA;EACA,oBAAoB;EACpB;EACA,OAAO;EACP;EACA;;UAGe;EACf;EACA;EACA;EACA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C;;;EAGA;;UAGe;EACf;;EAEA;;;;EAIA;EACA;IACE;IACA,SAAS,wBAAwB;IACjC;IACA;;;;;IAKA,WAAW;;;UAIE;EACf,QAAQ,OAAO,uBAAuB;EACtC,OAAO,MAAM,4BAA4B,QAAQ;EACjD,QAAQ;IACN;IACA;IACA,UAAU;;;IAGV,SAAS,OAAO;;;UAMH,mBAAmB;;EAElC,gBAAgB;;;EAGhB;EACA;;EAEA;IAAY;IAAsB;;EAClC;EACA;EACA;EACA,UAAU;EACV,aAAa,eAAe;;;EAG5B;;EAEA,gBAAgB;;EAEhB;;;;EAIA,YAAY;;;EAGZ;;;EAGA;;EAEA;;EAEA;EACA;EACA;;;;;EAKA,WAAW;;;;EAIX;;EAEA;;EAEA;EACA;;UAGe;EACf;EACA;EACA;EACA;;;;;;EAMA,cAAc;;UAGC;EACf;EACA;EACA;;;EAGA,cAAc;;UAGC;EACf;EACA,YAAY;EACZ;;;;;;UAOe;EACf;;;;EAIA;;;;EAIA;;;;EAIA;IACE;IACA;IACA,iBAAiB;MAAQ;MAAgB;;;;;EAI3C,YAAY;;;;;;;;;;EAUZ,WAAW;IAAQ;IAAoB;IAAmB;IAAgB;;;;EAG1E;;;;EAIA;;;;EAIA,cAAc,SAAS;;UAGR;EACf,SAAS,eAAe;EACxB,YAAY,eAAe;;EAE3B,MAAM;;EAEN;EACA;EACA;;EAEA;;EAEA;;EAEA;;EAEA;;UAGe,eAAe,qBAAqB,kBAAkB,WAAW;;EAEhF;;EAEA;EACA;;EAEA;EACA;EACA;EACA;EACA,OAAO,MAAM,mBAAmB;EAChC,YAAY;EACZ;IACE,aAAa;IACb;;EAEF,OAAO;EACP;EACA;EACA,iBAAiB;;;EAGjB,WAAW,MAAM,2BAA2B,KAAK"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as RunSplitTag } from "./run-record-kuOr3BCF.js";
|
|
2
2
|
import { a as CheckerIdentity, n as VerdictCertification, x as VerificationStrategySource } from "./verdict-D_qiBQ6_.js";
|
|
3
|
-
import { R as Scenario, d as DispatchContext } from "./types-
|
|
3
|
+
import { R as Scenario, d as DispatchContext } from "./types-CBT-XcX5.js";
|
|
4
4
|
/** A planned measurement contract. It is not evidence that its checker executed. */
|
|
5
5
|
interface BenchmarkDefinition {
|
|
6
6
|
schemaVersion: 1;
|
|
@@ -110,8 +110,53 @@ interface BenchmarkSource {
|
|
|
110
110
|
*/
|
|
111
111
|
contamination?: 'unknown' | 'none-known' | 'suspected' | 'confirmed';
|
|
112
112
|
}
|
|
113
|
+
/**
|
|
114
|
+
* What a caller may ask of `loadDataset` beyond the split: a sample, or exact items. An adapter applies them with
|
|
115
|
+
* `selectBenchmarkItems`: the asked `ids` that are in the split, in the asked order, then at most `limit` items.
|
|
116
|
+
*/
|
|
117
|
+
interface BenchmarkLoadOptions {
|
|
118
|
+
limit?: number;
|
|
119
|
+
ids?: readonly string[];
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* What an agent runtime needs from a benchmark to run its items as agent turns, beyond loading and scoring. agent-eval
|
|
123
|
+
* names the shapes and a runtime supplies the execution, so this package never imports a runtime: `TEvent` is the
|
|
124
|
+
* runtime's own event type. `prompt` is required; every other hook is optional.
|
|
125
|
+
*/
|
|
126
|
+
interface BenchmarkRuntimeHooks<TPayload = unknown, TArtifact = string, TEvent = unknown> {
|
|
127
|
+
/** The task statement handed to the agent for one item. */
|
|
128
|
+
prompt(item: BenchmarkDatasetItem<TPayload>): string;
|
|
129
|
+
/** Throw with actionable guidance when the benchmark's harness or grader cannot run on this host. */
|
|
130
|
+
preflight?(): Promise<void>;
|
|
131
|
+
/** A known-good artifact, so a runner can check the grader before it spends model tokens. */
|
|
132
|
+
goldArtifact?(item: BenchmarkDatasetItem<TPayload>): Promise<TArtifact | undefined>;
|
|
133
|
+
/** The judged artifact read from the run's collected events, when it is not the agent's final answer text. */
|
|
134
|
+
output?: {
|
|
135
|
+
parse(events: TEvent[]): TArtifact;
|
|
136
|
+
};
|
|
137
|
+
/** A command run in the agent's workspace before the turn, such as checking the task's repository out at its base commit. */
|
|
138
|
+
workspaceSetup?(item: BenchmarkDatasetItem<TPayload>): {
|
|
139
|
+
command: string;
|
|
140
|
+
cwd?: string;
|
|
141
|
+
};
|
|
142
|
+
/** A command run in the agent's workspace after the turn whose output is the judged artifact, such as `git diff`. */
|
|
143
|
+
workspaceExtract?(item: BenchmarkDatasetItem<TPayload>): {
|
|
144
|
+
command: string;
|
|
145
|
+
cwd?: string;
|
|
146
|
+
};
|
|
147
|
+
/** A benchmark-owned worker, for a benchmark whose own protocol is the worker (an interactive episode); opaque here. */
|
|
148
|
+
worker?(config: {
|
|
149
|
+
model: string;
|
|
150
|
+
routerBaseUrl: string;
|
|
151
|
+
routerKey: string;
|
|
152
|
+
}): unknown;
|
|
153
|
+
}
|
|
154
|
+
/** `BenchmarkLoadOptions` applied to one split's items: the asked ids present in the split, in order, then the limit. */
|
|
155
|
+
declare function selectBenchmarkItems<T extends {
|
|
156
|
+
id: string;
|
|
157
|
+
}>(items: readonly T[], options?: BenchmarkLoadOptions): T[];
|
|
113
158
|
/** Common signature implemented by every adapter under `src/benchmarks/*`. */
|
|
114
|
-
interface BenchmarkAdapter<_TItem = unknown, TPayload = unknown, TArtifact = string> {
|
|
159
|
+
interface BenchmarkAdapter<_TItem = unknown, TPayload = unknown, TArtifact = string, TEvent = unknown> {
|
|
115
160
|
/** Stable benchmark id such as `beir/nfcorpus` or `crag/smoke`. */
|
|
116
161
|
id?: string;
|
|
117
162
|
family?: BenchmarkFamily | string;
|
|
@@ -127,7 +172,9 @@ interface BenchmarkAdapter<_TItem = unknown, TPayload = unknown, TArtifact = str
|
|
|
127
172
|
* first call but should be cache-friendly. Adapters that don't
|
|
128
173
|
* ship the dataset itself MUST throw a clearly-marked error
|
|
129
174
|
* pointing the caller at the loader script. */
|
|
130
|
-
loadDataset(split: RunSplitTag): Promise<BenchmarkDatasetItem<TPayload>[]>;
|
|
175
|
+
loadDataset(split: RunSplitTag, options?: BenchmarkLoadOptions): Promise<BenchmarkDatasetItem<TPayload>[]>;
|
|
176
|
+
/** Present when an agent runtime can run this benchmark's items as agent turns. */
|
|
177
|
+
runtime?: BenchmarkRuntimeHooks<TPayload, TArtifact, TEvent>;
|
|
131
178
|
/** Score a single response. Pure with respect to the inputs. */
|
|
132
179
|
evaluate(item: BenchmarkDatasetItem<TPayload>, artifact: TArtifact): Promise<BenchmarkEvaluation>;
|
|
133
180
|
/** Optional identity-bound receipt, retained by the runner without executing the checker twice. */
|
|
@@ -163,5 +210,5 @@ declare const BENCHMARK_SPLIT_SEED = "agent-eval-v1";
|
|
|
163
210
|
* holdout:20% (paper-grade held-out, gated reads)
|
|
164
211
|
*/
|
|
165
212
|
declare function deterministicSplit(itemId: string, seed?: string, cuts?: readonly [number, number]): RunSplitTag;
|
|
166
|
-
export {
|
|
167
|
-
//# sourceMappingURL=types-
|
|
213
|
+
export { defineBenchmarkResult as _, BenchmarkFamily as a, defineBenchmark as b, BenchmarkRuntimeHooks as c, BenchmarkTaskKind as d, deterministicSplit as f, benchmarkResultEvidenceDigest as g, benchmarkResult as h, BenchmarkEvaluation as i, BenchmarkScenario as l, BenchmarkResult as m, BenchmarkAdapter as n, BenchmarkLoadOptions as o, selectBenchmarkItems as p, BenchmarkDatasetItem as r, BenchmarkResponder as s, BENCHMARK_SPLIT_SEED as t, BenchmarkSource as u, BenchmarkDefinition as v, benchmarkDefinitionDigest as y };
|
|
214
|
+
//# sourceMappingURL=types-CYPV2dlR.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-CYPV2dlR.d.ts","names":[],"sources":["../src/benchmarks/definition.ts","../src/benchmarks/result.ts","../src/benchmarks/types.ts"],"mappings":";;;;UAQiB;EACf;EACA;EACA,QAAQ;IAAoB;;;EAE5B;EACA;IACE;IACA;IACA;;IAEA;;IAEA;;IAEA;;EAEF;IACE,UAAU;IACV,SAAS;IACT;;;;iBA4DY,gBAAgB,iBAAiB;;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GjB,mBAAmB,oBAAoB,uBAAuB;EACxE,UAAU,kBAAkB;EAC5B,MAAM,qBAAqB;EAC3B,SAAS;MACL,QAAQ,aAAa;;;cAoBd;;;;;;;;;;iBAWG,mBACd,gBACA,eACA,mCACC"}
|
package/dist/wire/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { u as ErrorResponseSchema, d as FeedbackTrajectorySchema, f as TraceEventSchema, p as WIRE_VERSION, c as WireError, t as createApp, a as dispatchRpc, n as startServer, r as startServerAsync } from "../server-
|
|
1
|
+
export { u as ErrorResponseSchema, d as FeedbackTrajectorySchema, f as TraceEventSchema, p as WIRE_VERSION, c as WireError, t as createApp, a as dispatchRpc, n as startServer, r as startServerAsync } from "../server-B-7vXS9T.js";
|
package/docs/feature-guide.md
CHANGED
|
@@ -37,6 +37,8 @@ Evaluation measures whether the result met its requirements, whether another att
|
|
|
37
37
|
| “Improve an agent over conversations with a simulated user.” | `multishotRollout` with `selfImprove`, `conversationJudge`, `conversationGate` | Each cell is one conversation under a fixed simulated user; see [multi-turn optimization](./multi-turn-optimization.md). |
|
|
38
38
|
| “Is my simulated user realistic?” | `measureSimulatorRealism` | A calibrated judge picks the real user's message at recorded turns; 50% is indistinguishable. |
|
|
39
39
|
| “Improve prompts, then code if prompts plateau.” | `gepaOptimizationMethod` or `externalTextOptimizationMethod` for the prompt; agent-runtime's worktree path for the code | Text search stays here; executable code changes belong to the runtime. |
|
|
40
|
+
| “Does this skill or instruction block earn its place?” | `runSkillEval` | Runs the same cases with and without it, judges answers blind, and returns keep, cut or inconclusive; see [skill eval](./skill-eval.md). |
|
|
41
|
+
| “Which skills do my agents use, and what follows?” | `agent-eval skill-usage` | Counts invocations in recorded sessions by skill and version; see [skill usage](./skill-eval.md#skill-usage). |
|
|
40
42
|
| “Find why a regression happened.” | bisector, traces, run records | Narrows changes and preserves evidence. |
|
|
41
43
|
| “Expose evals to another language.” | Wire protocol and Python client | HTTP/RPC boundary for non-TypeScript apps. |
|
|
42
44
|
|
package/docs/public-api.md
CHANGED
|
@@ -7,11 +7,11 @@ Generated by `pnpm api:census` on demand — this is a dated reading, not a gate
|
|
|
7
7
|
| measure | count |
|
|
8
8
|
| --- | --- |
|
|
9
9
|
| export subpaths | 38 |
|
|
10
|
-
| published value exports (subpath x symbol) |
|
|
11
|
-
| distinct symbols |
|
|
12
|
-
| production |
|
|
13
|
-
| planned |
|
|
14
|
-
| none |
|
|
10
|
+
| published value exports (subpath x symbol) | 1498 |
|
|
11
|
+
| distinct symbols | 1247 |
|
|
12
|
+
| production | 1076 |
|
|
13
|
+
| planned | 344 |
|
|
14
|
+
| none | 78 |
|
|
15
15
|
|
|
16
16
|
Type-only exports are not listed: a type binds no runtime surface, and removing one cannot break a caller at run time.
|
|
17
17
|
|
|
@@ -90,7 +90,7 @@ The `none` set was reviewed symbol by symbol on 2026-08-21. Four rules decided m
|
|
|
90
90
|
|
|
91
91
|
### `.`
|
|
92
92
|
|
|
93
|
-
|
|
93
|
+
342 value exports — 290 production, 40 planned, 12 none.
|
|
94
94
|
|
|
95
95
|
| symbol | consumer | evidence |
|
|
96
96
|
| --- | --- | --- |
|
|
@@ -382,6 +382,7 @@ The `none` set was reviewed symbol by symbol on 2026-08-21. Four rules decided m
|
|
|
382
382
|
| `RunRecordValidationError` | production | starter-foundry:src/lib/index.ts |
|
|
383
383
|
| `runSemanticConceptJudge` | production | agent-dev-container:products/intelligence/api/src/lib/optimization-router.ts |
|
|
384
384
|
| `runsForScenario` | production | ph0ny:products/builder/api/src/eval/gate.ts |
|
|
385
|
+
| `runSkillEval` | planned | example: examples/skill-eval/index.ts:19 |
|
|
385
386
|
| `runTaskScore` | production | this package: src/campaign/presets/profile-matrix-analysis.ts:25 |
|
|
386
387
|
| `sampleMedian` | production | agent-dev-container:products/sandbox/evals/run.ts |
|
|
387
388
|
| `scoreKnowledgeReadiness` | production | agent-builder:src/lib/.server/runtime/agent-task-readiness.ts |
|
|
@@ -393,6 +394,7 @@ The `none` set was reviewed symbol by symbol on 2026-08-21. Four rules decided m
|
|
|
393
394
|
| `sequentialCrossingHorizon` | none | only this package's tests: tests/sequential.test.ts:2 |
|
|
394
395
|
| `sequentialPairedPower` | none | only this package's tests: tests/sequential.test.ts:2 |
|
|
395
396
|
| `shareAllowed` | production | agent-dev-container:products/intelligence/api/src/lib/search-blobs.ts |
|
|
397
|
+
| `skillEvalTraceFromRun` | planned | doc: docs/skill-eval.md |
|
|
396
398
|
| `snapshotFromJudgeAgreement` | production | gtm-agent:src/lib/.server/judges/quality.ts |
|
|
397
399
|
| `spanRecordsToTraceAnalysisStore` | production | agent-dev-container:products/intelligence/api/src/lib/pg-trace-analyst-store.ts |
|
|
398
400
|
| `spearmanR` | production | this package: scripts/synthetic-search-ledger.ts:71 |
|
|
@@ -446,7 +448,7 @@ The `none` set was reviewed symbol by symbol on 2026-08-21. Four rules decided m
|
|
|
446
448
|
|
|
447
449
|
### `./analyst`
|
|
448
450
|
|
|
449
|
-
|
|
451
|
+
126 value exports — 69 production, 43 planned, 14 none.
|
|
450
452
|
|
|
451
453
|
| symbol | consumer | evidence |
|
|
452
454
|
| --- | --- | --- |
|
|
@@ -478,12 +480,13 @@ The `none` set was reviewed symbol by symbol on 2026-08-21. Four rules decided m
|
|
|
478
480
|
| `buildDefaultAnalystRegistry` | production | agent-dev-container:products/intelligence/api/src/lib/deep-trace-analyst.ts |
|
|
479
481
|
| `buildPrimePrompt` | production | this package: src/analyst/benchmark-runner-prime.ts:19 |
|
|
480
482
|
| `buildPrimeRepairPrompt` | planned | doc: docs/prime-analyst.md |
|
|
481
|
-
| `buildSkillUsageReport` |
|
|
483
|
+
| `buildSkillUsageReport` | production | this package: src/skill-usage/command.ts:22 |
|
|
482
484
|
| `buildTraceToolsForGroup` | production | this package: src/analyst/kind-factory.ts:20 |
|
|
483
485
|
| `calibrateBehavioralTraceQuestions` | planned | doc: docs/behavioral-trace-questions.md |
|
|
484
486
|
| `calibrateChoiceQuestion` | planned | doc: docs/behavioral-trace-questions.md |
|
|
485
487
|
| `calibrateFailureModes` | planned | doc: docs/finding-layers.md |
|
|
486
488
|
| `classifyTeamShape` | none | only this package's tests: tests/finding-layers.test.ts:16 |
|
|
489
|
+
| `claudeCodeSkillSessions` | production | this package: src/skill-usage/command.ts:21 |
|
|
487
490
|
| `CODE_TRACE_BENCH_ANALYST_PROMPT` | production | this package: scripts/gepa-analyst/configuration.ts:5 |
|
|
488
491
|
| `codeTraceBenchCase` | production | this package: scripts/gepa-analyst/scenarios.ts:5 |
|
|
489
492
|
| `codeTracerPredictionsToFindings` | production | this package: benchmarks/trace-analysis/codetracebench-glm52-20260730/summarize-codetracer.mjs:6 |
|
|
@@ -555,13 +558,16 @@ The `none` set was reviewed symbol by symbol on 2026-08-21. Four rules decided m
|
|
|
555
558
|
| `RawAnalystFindingSchema` | production | this package: scripts/emit-finding-contract.ts:20 |
|
|
556
559
|
| `readAnalystBenchmarkArtifact` | production | this package: src/analyst/benchmark-command.ts:42 |
|
|
557
560
|
| `readFindingScope` | planned | doc: docs/finding-layers.md |
|
|
561
|
+
| `readSkillFile` | production | this package: src/skill-usage/command.ts:23 |
|
|
558
562
|
| `renderFindingSubject` | production | creative-agent:eval/analyst-loop.ts |
|
|
563
|
+
| `renderSkillUsageTable` | production | this package: src/skill-usage/command.ts:22 |
|
|
559
564
|
| `resolveDomainPath` | none | — |
|
|
560
565
|
| `rollupFindings` | planned | doc: docs/finding-layers.md |
|
|
561
566
|
| `runAnalystBenchmark` | production | this package: benchmarks/trace-analysis/codetracebench-glm52-20260730/summarize-codetracer.mjs:6 |
|
|
562
|
-
| `runAnalystBenchmarkCommand` | production | this package: src/cli.ts:
|
|
567
|
+
| `runAnalystBenchmarkCommand` | production | this package: src/cli.ts:20 |
|
|
563
568
|
| `runPrimeExchange` | production | this package: src/analyst/benchmark-runner-prime.ts:19 |
|
|
564
569
|
| `runTraceAnalyst` | production | discovery-lab:experiments/axes-screen-r1/review.mjs |
|
|
570
|
+
| `skillSessionFromHarnessSession` | production | this package: src/skill-usage/claude-code.ts:27 |
|
|
565
571
|
| `stripCodeFences` | planned | named in agent-builder (bind not in the import graph) |
|
|
566
572
|
| `taxonomyAncestry` | production | this package: src/analyst/promote.ts:33 |
|
|
567
573
|
| `taxonomyLayerOf` | production | this package: src/analyst/promote.ts:33 |
|
|
@@ -653,7 +659,7 @@ The `none` set was reviewed symbol by symbol on 2026-08-21. Four rules decided m
|
|
|
653
659
|
|
|
654
660
|
### `./benchmarks`
|
|
655
661
|
|
|
656
|
-
|
|
662
|
+
26 value exports — 8 production, 13 planned, 5 none.
|
|
657
663
|
|
|
658
664
|
| symbol | consumer | evidence |
|
|
659
665
|
| --- | --- | --- |
|
|
@@ -682,6 +688,7 @@ The `none` set was reviewed symbol by symbol on 2026-08-21. Four rules decided m
|
|
|
682
688
|
| `releaseCaseEnvironment` | none | only this package's tests: tests/fixtures/harbor-case-pass.ts:13 |
|
|
683
689
|
| `routing` | planned | doc: docs/behavioral-trace-questions.md |
|
|
684
690
|
| `runBenchmarkAdapter` | planned | example: examples/benchmarks/research/ode-verifier.ts:8 |
|
|
691
|
+
| `selectBenchmarkItems` | production | this package: src/benchmarks/harbor.ts:33 |
|
|
685
692
|
|
|
686
693
|
### `./builder-eval`
|
|
687
694
|
|
|
@@ -1061,7 +1068,7 @@ The `none` set was reviewed symbol by symbol on 2026-08-21. Four rules decided m
|
|
|
1061
1068
|
| `LedgerCanonicalizationError` | production | this package: src/rl/process-reward.ts:42 |
|
|
1062
1069
|
| `merkleInclusionProof` | none | — |
|
|
1063
1070
|
| `merkleLeafHash` | none | — |
|
|
1064
|
-
| `merkleRoot` | production | this package: src/analyst/findings-ledger.ts:
|
|
1071
|
+
| `merkleRoot` | production | this package: src/analyst/findings-ledger.ts:19 |
|
|
1065
1072
|
| `merkleSalt` | none | — |
|
|
1066
1073
|
| `tryAcquireAtomicFileLock` | production | discovery-lab:runner/evidence-review.mjs |
|
|
1067
1074
|
| `tryWithLedgerFileLock` | production | discovery-lab:experiments/diu-campaign-v1/launch-wave-cloud.mjs |
|
|
@@ -1160,10 +1167,10 @@ The `none` set was reviewed symbol by symbol on 2026-08-21. Four rules decided m
|
|
|
1160
1167
|
| `DEFAULT_USER_ENDING` | production | this package: src/multishot/realism.ts:36 |
|
|
1161
1168
|
| `defaultDelegationTools` | production | gtm-agent:eval/lib/multishot-graph.ts |
|
|
1162
1169
|
| `defaultShapeFromProfile` | production | gtm-agent:eval/lib/multishot-graph.ts |
|
|
1163
|
-
| `describeConversation` | production | this package: src/multishot/adversarial-user.ts:
|
|
1170
|
+
| `describeConversation` | production | this package: src/multishot/adversarial-user.ts:34 |
|
|
1164
1171
|
| `estimateMultishotCost` | production | gtm-agent:eval/lib/multishot-graph.ts |
|
|
1165
1172
|
| `improveAdversarialUser` | planned | doc: docs/multi-turn-optimization.md |
|
|
1166
|
-
| `measureSimulatorRealism` | production | this package: src/multishot/adversarial-user.ts:
|
|
1173
|
+
| `measureSimulatorRealism` | production | this package: src/multishot/adversarial-user.ts:35 |
|
|
1167
1174
|
| `MultishotDriverEmptyError` | production | gtm-agent:eval/lib/multishot-graph.ts |
|
|
1168
1175
|
| `MultishotFatalToolError` | production | gtm-agent:eval/lib/multishot-graph.ts |
|
|
1169
1176
|
| `multishotRollout` | planned | example: examples/multi-turn-optimization/index.ts:28 |
|
|
@@ -1175,11 +1182,11 @@ The `none` set was reviewed symbol by symbol on 2026-08-21. Four rules decided m
|
|
|
1175
1182
|
| `runMultishotConversation` | production | this package: src/multishot/multishot.ts:13 |
|
|
1176
1183
|
| `runMultishotMatrix` | production | gtm-agent:eval/lib/multishot-matrix-graph.ts |
|
|
1177
1184
|
| `SharedContextIdentityError` | planned | doc: docs/multi-turn-optimization.md |
|
|
1178
|
-
| `simulatedUserDriver` | production | this package: src/multishot/adversarial-user.ts:
|
|
1185
|
+
| `simulatedUserDriver` | production | this package: src/multishot/adversarial-user.ts:35 |
|
|
1179
1186
|
| `SimulatedUserMismatchError` | planned | doc: docs/multi-turn-optimization.md |
|
|
1180
1187
|
| `SIMULATOR_REALISM_QUESTIONS` | planned | doc: docs/multi-turn-optimization.md |
|
|
1181
1188
|
| `simulatorRealismJudge` | planned | doc: docs/multi-turn-optimization.md |
|
|
1182
|
-
| `UserSideObjectiveError` | production | this package: src/multishot/adversarial-user.ts:
|
|
1189
|
+
| `UserSideObjectiveError` | production | this package: src/multishot/adversarial-user.ts:33 |
|
|
1183
1190
|
| `userTurnContextDigest` | none | only this package's tests: tests/multishot/simulator-realism.integration.test.ts:10 |
|
|
1184
1191
|
|
|
1185
1192
|
### `./multishot/golden`
|
|
@@ -1816,7 +1823,7 @@ The `none` set was reviewed symbol by symbol on 2026-08-21. Four rules decided m
|
|
|
1816
1823
|
| `ErrorResponseSchema` | production | this package: src/wire/openapi.ts:15 |
|
|
1817
1824
|
| `FeedbackTrajectorySchema` | production | insurance-agent:src/routes/api.feedback.ts |
|
|
1818
1825
|
| `startServer` | production | creative-agent:eval/ingestion-server.ts |
|
|
1819
|
-
| `startServerAsync` | production | this package: src/cli.ts:
|
|
1826
|
+
| `startServerAsync` | production | this package: src/cli.ts:29 |
|
|
1820
1827
|
| `TraceEventSchema` | planned | named in insurance-agent (bind not in the import graph) |
|
|
1821
1828
|
| `WIRE_VERSION` | production | this package: src/wire/handlers.ts:22 |
|
|
1822
1829
|
| `WireError` | production | this package: src/wire/rpc.ts:15 |
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# Skill usage and the skill eval recipe
|
|
2
|
+
|
|
3
|
+
A unit is anything an agent can be given and have taken away again: a skill, a block of instructions, a profile difference.
|
|
4
|
+
Two questions about a unit have two tools:
|
|
5
|
+
|
|
6
|
+
| Question | Tool | Reads |
|
|
7
|
+
|---|---|---|
|
|
8
|
+
| Which units do agents use, how often, and what does the session do afterwards? | `agent-eval skill-usage` | Recorded sessions |
|
|
9
|
+
| Does the unit make the work better? | `runSkillEval` | Runs you start for the purpose |
|
|
10
|
+
|
|
11
|
+
The usage report says what happened. It cannot say the unit caused it; the recipe runs the comparison that can.
|
|
12
|
+
|
|
13
|
+
## Skill usage
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
pnpm skill-usage ~/.claude/projects --since 7d # from a checkout
|
|
17
|
+
agent-eval skill-usage ~/.claude/projects --since 7d # from the installed package
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
The JSON report goes to stdout and a short table to stderr. `--format json|table|both`, `--limit <rows>` and `--pricing <rates.json>` are the other flags.
|
|
21
|
+
|
|
22
|
+
The report has one row per skill and version:
|
|
23
|
+
|
|
24
|
+
- **Invocations**, counted once per call id across every file, by who started them: the agent (a `Skill` tool call), a person (a typed command that expands to a prompt) or the harness (a preload).
|
|
25
|
+
A resumed session's copy of an earlier call, and a request snapshot that quotes one, add nothing.
|
|
26
|
+
- **Version**: the hash of the text the session loaded, so two versions of one skill are two rows whatever the skill file holds today.
|
|
27
|
+
`skillFile` then says whether that file is still this version (`current`), a different one (`changed`) or cannot be read.
|
|
28
|
+
- **Sessions and subagent share**: how many sessions invoked it and what share of invocations came from subagents.
|
|
29
|
+
- **After the first invocation**: tool calls, tool errors, tokens, wall time and cost from the first counted invocation to the end of that session, summed over sessions, with a per-session median.
|
|
30
|
+
|
|
31
|
+
Three things never print as zero: a transcript that could not be read (`unreadable`), a version the session did not record (`version: null`), and a measure with no reading (`null`, with the count of what is missing beside it).
|
|
32
|
+
|
|
33
|
+
Cost uses the cost ledger's model table in `src/cost-ledger/pricing.ts`. It prices cache reads and writes only at a rate the table names for that model; a call with cache tokens on a model without one, or a model with no row, is not priced and stays out of the total.
|
|
34
|
+
A model the table does not know is `not priced`, not free.
|
|
35
|
+
`--pricing` takes a JSON object of per-million rates by model id (`inputUsdPerMillion`, `cachedInputUsdPerMillion`, `cacheWriteUsdPerMillion`, `outputUsdPerMillion`) and prices those models with it.
|
|
36
|
+
|
|
37
|
+
A session that invokes several skills counts its later work under each of them, so the after-invocation columns overlap across rows and do not add up.
|
|
38
|
+
|
|
39
|
+
### Other session sources
|
|
40
|
+
|
|
41
|
+
`buildSkillUsageReport(source, options)` reads any iterable of `SkillSessionRead`: a session's events in recorded order (skill invocations, tool calls, model calls), or the reason it could not be read.
|
|
42
|
+
`claudeCodeSkillSessions(directory)` is the adapter for a Claude Code projects directory.
|
|
43
|
+
`skillSessionFromHarnessSession(session, markers)` maps any session `@tangle-network/harness-sessions` normalizes; `markers` says which tool calls or messages invoke a skill, because that is the one thing that differs by harness.
|
|
44
|
+
|
|
45
|
+
Codex sessions map this way today and report tool and model calls with no skill invocations.
|
|
46
|
+
A Codex session records no invocation: the agent uses a skill by reading its file with an ordinary shell command, which looks like any other read, and the list of skills arrives as developer text.
|
|
47
|
+
A caller that knows how its Codex setup marks a skill supplies `skillOfToolCall`; a general reader needs Codex to record the invocation.
|
|
48
|
+
|
|
49
|
+
## The recipe
|
|
50
|
+
|
|
51
|
+
Use `runSkillEval` before adopting a unit, before cutting one the usage report shows is rare or costly, and when a unit's text changes materially.
|
|
52
|
+
It needs real cases with a pass check the baseline neither always passes nor always fails, a judge you have checked against human verdicts ([judge calibration](./concepts.md#judge-calibration)), and a way to run the agent with and without the unit.
|
|
53
|
+
|
|
54
|
+
```ts
|
|
55
|
+
import { runSkillEval, skillEvalTraceFromRun } from '@tangle-network/agent-eval'
|
|
56
|
+
|
|
57
|
+
const report = await runSkillEval({
|
|
58
|
+
unit: { name: 'run-the-checks', text: skillText },
|
|
59
|
+
cases, // each with an id
|
|
60
|
+
run: async (testCase, arm) => {
|
|
61
|
+
// arm.arm is 'with' | 'without' | 'control'; arm.text is the text to add, or null
|
|
62
|
+
const { answer, pass, runId } = await myAgent(testCase, arm.text)
|
|
63
|
+
return { answer, pass, trace: await skillEvalTraceFromRun(store, runId) }
|
|
64
|
+
},
|
|
65
|
+
judge: async ({ case: testCase, first, second }) => myJudge(testCase, first, second), // 'first' | 'second' | 'tie'
|
|
66
|
+
control: true, // a third arm with neutral text of the unit's length
|
|
67
|
+
seed: 7,
|
|
68
|
+
})
|
|
69
|
+
report.decision // 'keep' | 'cut' | 'inconclusive'
|
|
70
|
+
report.reason // the clause that decided, with its numbers
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
`trace` is four numbers, each null when it was not read: `toolCalls`, `toolErrors`, `wallMs`, `costUsd`.
|
|
74
|
+
`skillEvalTraceFromRun` reads them from a run recorded in a `TraceStore`.
|
|
75
|
+
[`examples/skill-eval`](../examples/skill-eval/) runs the whole recipe offline.
|
|
76
|
+
|
|
77
|
+
What it does, in order:
|
|
78
|
+
|
|
79
|
+
1. Runs `without` on every case and checks headroom (`capabilityHeadroom`). When the baseline passes at least 90% or at most 10% of the cases with a known outcome, it stops: no other arm runs.
|
|
80
|
+
2. Runs `with`, then `control` when asked for.
|
|
81
|
+
3. Gives the judge each pair of answers once, with no arm label, in an order drawn from the seed.
|
|
82
|
+
4. Reports, for `with` against each other arm: wins, losses and ties; the win rate with its Wilson interval; the paired decision on net preference (`decidePairedPromotion`); and the paired change in tool calls, tool errors, wall time and cost (`comparePairedArms`).
|
|
83
|
+
5. Applies one rule, which the report carries in `rule`:
|
|
84
|
+
- A suite that passes 100% is not evidence: a headroom stop is inconclusive.
|
|
85
|
+
- Cut when blind judges reliably prefer `without`, or the control, over `with`.
|
|
86
|
+
- Keep when blind judges reliably prefer `with` over `without`, and over the control when one ran.
|
|
87
|
+
- Cut when the comparison rules out a net preference for `with` of `smallestBenefit` (default 10% of cases) and no process measure is reliably lower.
|
|
88
|
+
- Otherwise inconclusive.
|
|
89
|
+
|
|
90
|
+
A `run` or `judge` callback that throws is listed in `failures` and its case is left out of that comparison; it is never scored as a tie.
|
|
91
|
+
|
|
92
|
+
## What the recipe does not prove
|
|
93
|
+
|
|
94
|
+
- **That the judge is right.** The win rate is the judge's preference. Blinding and a seeded order remove arm and position effects, not a judge that prefers the wrong thing.
|
|
95
|
+
- **That the result holds elsewhere.** It covers these cases, this model and this harness.
|
|
96
|
+
- **That the agent would use the unit.** `run` applies it. Whether an agent loads a skill unprompted is a usage question.
|
|
97
|
+
- **Run-to-run stability.** Each case runs once per arm, so a case that flips between runs counts as a win or a loss. Repeat the eval to see how much the decision moves.
|
|
98
|
+
- **That a unit is worth its cost.** Process changes are reported. A unit that answers no better but reliably costs less is inconclusive, and the call is yours.
|
|
99
|
+
- **That there is no effect.** Inconclusive means these cases could not tell. A no-benefit cut rules out only a net preference of `smallestBenefit` or more.
|
|
100
|
+
- **Every non-specific effect.** A neutral text of equal length controls for added reading, not for where the text sits in the prompt.
|
|
101
|
+
- **Several units at once.** Each eval is one comparison. Evaluating many units on the same cases makes some pass by chance; correct for that with `holm` from `./statistics`.
|
|
102
|
+
|
|
103
|
+
Pass outcomes decide headroom and are reported as a paired comparison; they do not enter the keep or cut rule.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/agent-eval",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.12",
|
|
4
4
|
"description": "Evaluate and improve AI agents from runs, traces, judges, and feedback. Compare candidates, cluster failures, measure lift, and gate releases.",
|
|
5
5
|
"homepage": "https://github.com/tangle-network/agent-eval#readme",
|
|
6
6
|
"repository": {
|
|
@@ -244,7 +244,9 @@
|
|
|
244
244
|
"contract:finding:check": "node --import tsx scripts/emit-finding-contract.ts --check",
|
|
245
245
|
"evidence:render": "tsx scripts/render-evidence-index.ts",
|
|
246
246
|
"evidence:check": "node --import tsx scripts/render-evidence-index.ts --check",
|
|
247
|
-
"redaction:corpus": "tsx scripts/redaction-corpus.ts"
|
|
247
|
+
"redaction:corpus": "tsx scripts/redaction-corpus.ts",
|
|
248
|
+
"procedure-registry": "tsx scripts/procedure-registry.ts",
|
|
249
|
+
"skill-usage": "tsx scripts/skill-usage.ts"
|
|
248
250
|
},
|
|
249
251
|
"dependencies": {
|
|
250
252
|
"@asteasolutions/zod-to-openapi": "^9.1.0",
|