@tangle-network/agent-eval 1.0.38 → 1.0.39
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 +8 -0
- package/dist/analyst/index.js +1 -1
- package/dist/benchmarks/index.js +2 -2
- package/dist/campaign/index.js +3 -3
- package/dist/{campaign-BU6bJNvu.js → campaign-UzOUBIwA.js} +3 -3
- package/dist/{campaign-BU6bJNvu.js.map → campaign-UzOUBIwA.js.map} +1 -1
- package/dist/contract/index.js +4 -4
- package/dist/default-registry-C5x2jyD6.d.ts.map +1 -1
- package/dist/{default-registry-CpGvgSYQ.js → default-registry-DSo3tnsW.js} +7 -31
- package/dist/default-registry-DSo3tnsW.js.map +1 -0
- package/dist/{define-agent-eval-BeLMK-OM.js → define-agent-eval-C6zFzxp7.js} +2 -2
- package/dist/{define-agent-eval-BeLMK-OM.js.map → define-agent-eval-C6zFzxp7.js.map} +1 -1
- package/dist/index-OvU1UXKC.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/{llm-judge-BBHrAlcE.js → llm-judge-lUQCBY1e.js} +24 -5
- package/dist/llm-judge-lUQCBY1e.js.map +1 -0
- package/dist/openapi.json +1 -1
- package/dist/{skillopt-optimization-method-BmfnAzG4.js → skillopt-optimization-method-Dch9LiNR.js} +2 -2
- package/dist/{skillopt-optimization-method-BmfnAzG4.js.map → skillopt-optimization-method-Dch9LiNR.js.map} +1 -1
- package/package.json +1 -1
- package/dist/default-registry-CpGvgSYQ.js.map +0 -1
- package/dist/llm-judge-BBHrAlcE.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -16,7 +16,7 @@ import { a as welchsTTest, i as iqr, n as checkCanaries, t as analyzeRuns } from
|
|
|
16
16
|
import { i as pairedDeltaTest, n as pairedDecisionShape, r as minimumPairsForPairedDeltaTest, t as decidePairedPromotion } from "./paired-promotion-decision-BoWHWL1i.js";
|
|
17
17
|
import { c as runsForScenario, i as judgeSpans, t as argHash } from "./query-Ck6KhcDo.js";
|
|
18
18
|
import { n as contentHash, r as fileVerdictCache, t as canonicalJson } from "./verdict-cache-DfzlHLdf.js";
|
|
19
|
-
import { B as DEFAULT_RED_TEAM_CORPUS, G as runCanaries, H as redTeamReport, U as scoreRedTeamOutput, V as redTeamDataset, W as Dataset, a as clamp01, et as runCampaign, i as aggregateRunScore, r as transientDispatchFailure, t as llmJudge } from "./llm-judge-
|
|
19
|
+
import { B as DEFAULT_RED_TEAM_CORPUS, G as runCanaries, H as redTeamReport, U as scoreRedTeamOutput, V as redTeamDataset, W as Dataset, a as clamp01, et as runCampaign, i as aggregateRunScore, r as transientDispatchFailure, t as llmJudge } from "./llm-judge-lUQCBY1e.js";
|
|
20
20
|
import { c as costForTokenPricing, d as estimateCost, f as estimateTokens, i as CostCeilingReachedError, l as costForUsage, m as resolveModelPricing, n as CostAccountingIncompleteError, p as isModelPriced, t as CostLedger, u as MODEL_PRICING } from "./cost-ledger-1CwUnVOd.js";
|
|
21
21
|
import { C as assertRealBackend, S as BackendIntegrityError, _ as parseReflectionResponse, a as ATTESTATION_ALGORITHM, g as buildReflectionPrompt, o as attest, s as verifyAttestation, w as summarizeBackendIntegrity } from "./campaign-evidence-BX8OveG5.js";
|
|
22
22
|
import { s as surfaceContentHash } from "./json-recovery-b7O9WVTF.js";
|
|
@@ -25,11 +25,11 @@ import { c as redactText, l as shareAllowed, n as REDACTION_VERSION, o as redact
|
|
|
25
25
|
import { a as makeProposalFinding, i as makeFinding, r as computeFindingId } from "./types-C8AyaiFi.js";
|
|
26
26
|
import { n as pairedPromotionPower, r as requiredPairsForPairedPromotion } from "./paired-promotion-power-BXH3gzvs.js";
|
|
27
27
|
import { a as LlmCallError, i as stripFencedJson, n as isRecord, o as LlmResponseError } from "./json-DtvZNAU9.js";
|
|
28
|
-
import { r as selfImprove, t as defineAgentEval } from "./define-agent-eval-
|
|
28
|
+
import { r as selfImprove, t as defineAgentEval } from "./define-agent-eval-C6zFzxp7.js";
|
|
29
29
|
import { n as equivalenceVerdict, t as certificationEvidenceDigest } from "./verdict-CKo1iZkI.js";
|
|
30
30
|
import { a as runEquivalenceCheck, i as defineEquivalenceCheck, n as VERIFICATION_STRATEGIES, r as VERIFICATION_STRATEGY_SOURCES, t as EquivalenceProtocolError } from "./verification-strategy-CYhDX1rE.js";
|
|
31
31
|
import { c as createBoundedTraceAnalysisStore, p as DEFAULT_TRACE_ANALYST_BUDGETS, t as createTraceAnalyst } from "./kind-factory-BTUq1Byh.js";
|
|
32
|
-
import { C as assertUniqueFindingIds, D as validateAnalystReviewDecisions, E as snapshotAnalystRun, S as analystRunDigest, T as readAnalystReview, c as FAILURE_MODE_KIND_SPEC, i as DEFAULT_TRACE_ANALYST_KINDS, n as AnalystRegistry, t as buildDefaultAnalystRegistry, w as completedAnalystReviewQuality, x as analystFindingDigest } from "./default-registry-
|
|
32
|
+
import { C as assertUniqueFindingIds, D as validateAnalystReviewDecisions, E as snapshotAnalystRun, S as analystRunDigest, T as readAnalystReview, c as FAILURE_MODE_KIND_SPEC, i as DEFAULT_TRACE_ANALYST_KINDS, n as AnalystRegistry, t as buildDefaultAnalystRegistry, w as completedAnalystReviewQuality, x as analystFindingDigest } from "./default-registry-DSo3tnsW.js";
|
|
33
33
|
import { OUTPUT_VALUE } from "./trace-attributes.js";
|
|
34
34
|
import { n as extractUsageFromSse, t as extractUsage } from "./extract-usage-ISFqhfDz.js";
|
|
35
35
|
import { n as InMemoryRawProviderSink, r as NoopRawProviderSink, t as FileSystemRawProviderSink } from "./raw-provider-sink-RbaEv2vB.js";
|
|
@@ -104,7 +104,7 @@ function computeAggregates(cells, judges, seed, cost) {
|
|
|
104
104
|
return {
|
|
105
105
|
byJudge,
|
|
106
106
|
byScenario,
|
|
107
|
-
cost,
|
|
107
|
+
cost: withUncapturedAgentCells(cost, cells),
|
|
108
108
|
cellsExecuted: cells.filter((cell) => !cell.error?.startsWith("skipped:") && cell.errorStage !== "dispatch" && !(cell.error && cell.errorStage === void 0)).length,
|
|
109
109
|
cellsSkipped: cells.filter((c) => c.error?.startsWith("skipped:")).length,
|
|
110
110
|
cellsCached: cells.filter((c) => c.cached).length,
|
|
@@ -118,6 +118,25 @@ function computeAggregates(cells, judges, seed, cost) {
|
|
|
118
118
|
cellsUnclassifiedFailed: unclassifiedFailures.length
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
|
+
/**
|
|
122
|
+
* The run's ledger summary, made incomplete by each cell whose agent spend the ledger did not
|
|
123
|
+
* capture. A judge receipt elsewhere in the run says nothing about an agent that paid outside the
|
|
124
|
+
* ledger, so the run claims complete accounting only when every executed cell's agent spend is known.
|
|
125
|
+
*/
|
|
126
|
+
function withUncapturedAgentCells(cost, cells) {
|
|
127
|
+
const uncaptured = cells.filter((cell) => !cell.error?.startsWith("skipped:") && cell.costProvenance.kind === "uncaptured");
|
|
128
|
+
if (uncaptured.length === 0) return cost;
|
|
129
|
+
return {
|
|
130
|
+
...cost,
|
|
131
|
+
costProvenance: {
|
|
132
|
+
kind: "uncaptured",
|
|
133
|
+
usd: null
|
|
134
|
+
},
|
|
135
|
+
usageComplete: cost.usageComplete && uncaptured.every((cell) => cell.tokenUsage.tokensKnown !== false),
|
|
136
|
+
accountingComplete: false,
|
|
137
|
+
incompleteReasons: [.../* @__PURE__ */ new Set([...cost.incompleteReasons, ...uncaptured.map((cell) => `agent spend for cell '${cell.cellId}' was not captured by the cost ledger`)])]
|
|
138
|
+
};
|
|
139
|
+
}
|
|
121
140
|
function aggregate(samples, seed) {
|
|
122
141
|
const distribution = summarizeNumberSeries(samples);
|
|
123
142
|
if (distribution === null) throw new Error("aggregate requires at least one finite score");
|
|
@@ -245,7 +264,7 @@ function withCurrentAgentEvidence(source, costLedger, stableCostTags) {
|
|
|
245
264
|
const cell = { ...source };
|
|
246
265
|
delete cell.resolvedModel;
|
|
247
266
|
delete cell.resolvedModels;
|
|
248
|
-
if (
|
|
267
|
+
if (receipts.length === 0) {
|
|
249
268
|
cell.tokenUsage = {
|
|
250
269
|
...cell.tokenUsage,
|
|
251
270
|
tokensKnown: false
|
|
@@ -258,8 +277,8 @@ function withCurrentAgentEvidence(source, costLedger, stableCostTags) {
|
|
|
258
277
|
return Object.assign(cell, modelEvidenceFromReceipts(receipts));
|
|
259
278
|
}
|
|
260
279
|
function cachedCellReceiptProblem(cached, costLedger, stableCostTags) {
|
|
261
|
-
const
|
|
262
|
-
const reportsPaidActivity = cached.costProvenance.kind !== "observed" && !
|
|
280
|
+
const unmetered = cached.costCallIds?.length === 0 && cached.costProvenance.kind === "uncaptured" && cached.tokenUsage.tokensKnown === false && cached.costUsd === 0 && cached.tokenUsage.input === 0 && cached.tokenUsage.output === 0;
|
|
281
|
+
const reportsPaidActivity = cached.costProvenance.kind !== "observed" && !unmetered || cached.costUsd > 0 || cached.tokenUsage.input > 0 || cached.tokenUsage.output > 0;
|
|
263
282
|
if (cached.costCallIds === void 0) {
|
|
264
283
|
if (reportsPaidActivity || Object.keys(cached.judgeScores).length > 0) return "does not identify its ledger receipts";
|
|
265
284
|
return;
|
|
@@ -6024,4 +6043,4 @@ function firstString(value) {
|
|
|
6024
6043
|
}
|
|
6025
6044
|
export { runEval as $, campaignCellSearchResult as A, DEFAULT_RED_TEAM_CORPUS as B, surfaceDiff as C, createSearchHistoryReceipt as D, assertSearchHistoryMatchesState as E, uniform as F, runCanaries as G, redTeamReport as H, runFinalComparison as I, evaluationUnitMap as J, assertIndependentEvaluationSplit as K, openAutoPr as L, searchProposalExecution as M, searchReceiptAccounting as N, verifySearchHistoryArtifact as O, asha as P, withFinalEvidenceSources as Q, captureJudge as R, searchEdgeId as S, assertSearchHistoryAdmissionOptions as T, scoreRedTeamOutput as U, redTeamDataset as V, Dataset as W, prepareSearchFinalEvidence as X, exposeFinalEvidence as Y, reserveFinalEvidence as Z, crowdedFrontierParent as _, clamp01 as a, cellCachePath as at, SearchRecorder as b, readGepaCandidatePopulationArtifact as c, optimizationTokenUsageFromSummary as d, runCampaign as et, runImprovementLoop as f, beam as g, aide as h, aggregateRunScore as i, buildCellSchedule as it, searchModelIdentity as j, verifySearchHistoryReceipt as k, combineComparisonCosts as l, isProposedCandidate as m, isTransientTransportFailure as n, resolveRunDir as nt, executeOptimizationMethod as o, computeManifestHash as ot, runOptimization as p, captureFinalEvidencePolicy as q, transientDispatchFailure as r, cellReceiptModels as rt, assertGepaCandidatePopulationSummary as s, llmJudge as t, planCampaignRun as tt, costFromLedgerSummary as u, incumbent as v, surfaceNode as w, developmentClaim as x, incumbentWithOperatorBandit as y, defaultProductionGate as z };
|
|
6026
6045
|
|
|
6027
|
-
//# sourceMappingURL=llm-judge-
|
|
6046
|
+
//# sourceMappingURL=llm-judge-lUQCBY1e.js.map
|