@tangle-network/agent-eval 1.0.34 → 1.0.36
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 +13 -0
- package/dist/adapters/http.d.ts +2 -2
- package/dist/analyst/index.d.ts +3 -3
- package/dist/app-grade/index.d.ts +2 -2
- package/dist/benchmarks/index.d.ts +90 -8
- package/dist/benchmarks/index.d.ts.map +1 -1
- package/dist/benchmarks/index.js +592 -52
- package/dist/benchmarks/index.js.map +1 -1
- package/dist/campaign/index.d.ts +5 -5
- package/dist/campaign/index.js +5 -5
- package/dist/{campaign-BOoc6hc3.js → campaign-CifihyXp.js} +4 -4
- package/dist/{campaign-BOoc6hc3.js.map → campaign-CifihyXp.js.map} +1 -1
- package/dist/{campaign-evidence-DGTNdS_7.js → campaign-evidence-BPaJAccn.js} +27 -3
- package/dist/campaign-evidence-BPaJAccn.js.map +1 -0
- package/dist/contract/index.d.ts +8 -8
- package/dist/contract/index.js +5 -5
- package/dist/{default-registry-2Ziw-0sL.d.ts → default-registry-CfZCJdJT.d.ts} +2 -2
- package/dist/{default-registry-2Ziw-0sL.d.ts.map → default-registry-CfZCJdJT.d.ts.map} +1 -1
- package/dist/{define-agent-eval-DmCV1TZo.d.ts → define-agent-eval-C4v1f7hM.d.ts} +5 -5
- package/dist/{define-agent-eval-DmCV1TZo.d.ts.map → define-agent-eval-C4v1f7hM.d.ts.map} +1 -1
- package/dist/{define-agent-eval-Cw0HHdMF.js → define-agent-eval-DkvfaHya.js} +3 -3
- package/dist/{define-agent-eval-Cw0HHdMF.js.map → define-agent-eval-DkvfaHya.js.map} +1 -1
- package/dist/{evaluation-BQQ2ga5W.d.ts → evaluation-imW3I7tD.d.ts} +2 -2
- package/dist/{evaluation-BQQ2ga5W.d.ts.map → evaluation-imW3I7tD.d.ts.map} +1 -1
- package/dist/evaluation.d.ts +1 -1
- package/dist/experiment/index.d.ts +1 -1
- package/dist/experiment/index.js +1 -1
- package/dist/{index-8hbrQwdR.d.ts → index-0xdMmIi4.d.ts} +10 -5
- package/dist/index-0xdMmIi4.d.ts.map +1 -0
- package/dist/{index-BwJtNdaj.d.ts → index-BmtnyRsI.d.ts} +11 -11
- package/dist/{index-BwJtNdaj.d.ts.map → index-BmtnyRsI.d.ts.map} +1 -1
- package/dist/{index-BnqugnsM.d.ts → index-C8OFP1qj.d.ts} +6 -6
- package/dist/{index-BnqugnsM.d.ts.map → index-C8OFP1qj.d.ts.map} +1 -1
- package/dist/{index-BFpDeCuS.d.ts → index-CeTno9aO.d.ts} +2 -2
- package/dist/{index-BFpDeCuS.d.ts.map → index-CeTno9aO.d.ts.map} +1 -1
- package/dist/{index-BfxYoHGF.d.ts → index-_Gwk9sZl.d.ts} +2 -2
- package/dist/{index-BfxYoHGF.d.ts.map → index-_Gwk9sZl.d.ts.map} +1 -1
- package/dist/index.d.ts +11 -11
- package/dist/index.js +4 -156
- package/dist/index.js.map +1 -1
- package/dist/{llm-judge-DOgWUOml.js → llm-judge-DXygU107.js} +39 -5
- package/dist/llm-judge-DXygU107.js.map +1 -0
- package/dist/{matrix-D0fEU0fq.d.ts → matrix-Bk8Iz49C.d.ts} +2 -2
- package/dist/{matrix-D0fEU0fq.d.ts.map → matrix-Bk8Iz49C.d.ts.map} +1 -1
- package/dist/multishot/golden/index.d.ts +1 -1
- package/dist/multishot/index.d.ts +2 -2
- package/dist/openapi.json +1 -1
- package/dist/rl.d.ts +1 -1
- package/dist/rollout/index.d.ts +2 -2
- package/dist/search/index.d.ts +2 -2
- package/dist/{search-kernel-IpyhPDQd.d.ts → search-kernel-BigyOZX3.d.ts} +2 -2
- package/dist/{search-kernel-IpyhPDQd.d.ts.map → search-kernel-BigyOZX3.d.ts.map} +1 -1
- package/dist/{skillopt-optimization-method-lDHnLno3.js → skillopt-optimization-method-D3xC4hG9.js} +3 -3
- package/dist/{skillopt-optimization-method-lDHnLno3.js.map → skillopt-optimization-method-D3xC4hG9.js.map} +1 -1
- package/dist/{statistical-heldout-AvgLVFp6.d.ts → statistical-heldout-Bx4q4NUa.d.ts} +4 -2
- package/dist/statistical-heldout-Bx4q4NUa.d.ts.map +1 -0
- package/dist/{systemone-DPVj7a1g.d.ts → systemone-Dpp7I3uV.d.ts} +3 -3
- package/dist/{systemone-DPVj7a1g.d.ts.map → systemone-Dpp7I3uV.d.ts.map} +1 -1
- package/dist/systemone.d.ts +2 -2
- package/dist/{types-qJwFZTqa.d.ts → types-BeJIREX-.d.ts} +6 -1
- package/dist/types-BeJIREX-.d.ts.map +1 -0
- package/dist/{types-rf0yhJmW.d.ts → types-ff0YYJnj.d.ts} +69 -3
- package/dist/types-ff0YYJnj.d.ts.map +1 -0
- package/dist/verification-strategy-CYhDX1rE.js +156 -0
- package/dist/verification-strategy-CYhDX1rE.js.map +1 -0
- package/dist/wire/index.d.ts +3 -3
- package/docs/evaluation-integrity.md +14 -0
- package/package.json +1 -1
- package/dist/campaign-evidence-DGTNdS_7.js.map +0 -1
- package/dist/index-8hbrQwdR.d.ts.map +0 -1
- package/dist/llm-judge-DOgWUOml.js.map +0 -1
- package/dist/statistical-heldout-AvgLVFp6.d.ts.map +0 -1
- package/dist/types-qJwFZTqa.d.ts.map +0 -1
- package/dist/types-rf0yhJmW.d.ts.map +0 -1
|
@@ -9,7 +9,7 @@ import { a as mapConcurrent } from "./journal-DQsbHGjX.js";
|
|
|
9
9
|
import { n as contentHash } from "./verdict-cache-DfzlHLdf.js";
|
|
10
10
|
import { r as projectCampaignCellQuality, t as campaignCellCostProvenance } from "./run-record-B7b7fLMj.js";
|
|
11
11
|
import { n as CostAccountingIncompleteError, t as CostLedger } from "./cost-ledger-1CwUnVOd.js";
|
|
12
|
-
import { A as campaignSplitDigest, D as assertCompleteCampaign, E as assertCampaignSplitIdentity, M as formatCoverageFailures, O as campaignCoverage, S as BackendIntegrityError, T as assertCampaignDesign, b as FinalEvidenceError, f as campaignBreakdown, k as campaignScenarioIdentity, m as campaignMeanCompositeOrNull, p as campaignMeanComposite, y as FinalEvidenceConflictError } from "./campaign-evidence-
|
|
12
|
+
import { A as campaignSplitDigest, D as assertCompleteCampaign, E as assertCampaignSplitIdentity, M as formatCoverageFailures, O as campaignCoverage, S as BackendIntegrityError, T as assertCampaignDesign, b as FinalEvidenceError, f as campaignBreakdown, k as campaignScenarioIdentity, m as campaignMeanCompositeOrNull, p as campaignMeanComposite, y as FinalEvidenceConflictError } from "./campaign-evidence-BPaJAccn.js";
|
|
13
13
|
import { t as deepFreezeCanonicalJson } from "./deep-freeze-CK8-2W7p.js";
|
|
14
14
|
import { M as fsCampaignStorage, h as isExternalTextCandidate, j as createRunCostLedger } from "./external-optimizer-subprocess-BUCI-uFn.js";
|
|
15
15
|
import { c as surfaceDispatchRef, l as surfaceHash, o as renderSurfaceDiff, s as surfaceContentHash, u as surfaceHashMatches } from "./json-recovery-b7O9WVTF.js";
|
|
@@ -1078,9 +1078,21 @@ function captureFinalEvidencePolicy(policy) {
|
|
|
1078
1078
|
return Object.freeze({
|
|
1079
1079
|
ledger: policy.ledger,
|
|
1080
1080
|
requestId: policy.requestId,
|
|
1081
|
-
evaluatorDigest: policy.evaluatorDigest
|
|
1081
|
+
evaluatorDigest: policy.evaluatorDigest,
|
|
1082
|
+
...policy.sourceDigestByScenarioId === void 0 ? {} : { sourceDigestByScenarioId: new Map(policy.sourceDigestByScenarioId) }
|
|
1083
|
+
});
|
|
1084
|
+
}
|
|
1085
|
+
/** Opt into content-based exposure checks without teaching Eval a product's input schema. */
|
|
1086
|
+
function withFinalEvidenceSources(policy, sourceDigestByScenarioId) {
|
|
1087
|
+
assertSourceIdentities(sourceDigestByScenarioId);
|
|
1088
|
+
return captureFinalEvidencePolicy({
|
|
1089
|
+
...policy,
|
|
1090
|
+
sourceDigestByScenarioId
|
|
1082
1091
|
});
|
|
1083
1092
|
}
|
|
1093
|
+
function assertSourceIdentities(sources) {
|
|
1094
|
+
for (const [id, source] of sources) if (!id.trim() || !LEDGER_HASH_PATTERN.test(source)) throw new ValidationError("final evidence source identities require scenario ids and content digests");
|
|
1095
|
+
}
|
|
1084
1096
|
function evaluationUnitMap(claim, scenarios) {
|
|
1085
1097
|
const map = /* @__PURE__ */ new Map();
|
|
1086
1098
|
for (const scenario of scenarios) {
|
|
@@ -1105,6 +1117,24 @@ function finalEvidenceReservation(policy, claimInput, scenarios, developmentScen
|
|
|
1105
1117
|
const units = evaluationUnitMap(claim, scenarios);
|
|
1106
1118
|
const finalUnitIds = new Set(units.values());
|
|
1107
1119
|
assertIndependentEvaluationSplit(claim, scenarios, developmentScenarios);
|
|
1120
|
+
const sources = policy.sourceDigestByScenarioId;
|
|
1121
|
+
let sourceDigests;
|
|
1122
|
+
let developmentSourceDigests;
|
|
1123
|
+
if (sources !== void 0) {
|
|
1124
|
+
assertSourceIdentities(sources);
|
|
1125
|
+
for (const scenario of [...scenarios, ...developmentScenarios]) if (!sources.has(scenario.id)) throw new ValidationError(`final evidence source identity is missing for '${scenario.id}'`);
|
|
1126
|
+
const finalIds = new Set(scenarios.map((scenario) => scenario.id));
|
|
1127
|
+
sourceDigests = [...new Set(scenarios.map((scenario) => sources.get(scenario.id)))].sort(compareCodeUnits);
|
|
1128
|
+
developmentSourceDigests = [...new Set([...sources].filter(([id]) => !finalIds.has(id)).map(([, source]) => source))].sort(compareCodeUnits);
|
|
1129
|
+
if (sourceDigests.some((source) => developmentSourceDigests.includes(source))) throw new ValidationError("development and final evidence share source content");
|
|
1130
|
+
const sourceUnits = /* @__PURE__ */ new Map();
|
|
1131
|
+
for (const scenario of scenarios) {
|
|
1132
|
+
const source = sources.get(scenario.id);
|
|
1133
|
+
const unit = units.get(scenario.id);
|
|
1134
|
+
if (sourceUnits.has(source) && sourceUnits.get(source) !== unit) throw new ValidationError("identical final source content cannot name different independent units");
|
|
1135
|
+
sourceUnits.set(source, unit);
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1108
1138
|
return {
|
|
1109
1139
|
claim,
|
|
1110
1140
|
reservation: {
|
|
@@ -1116,7 +1146,11 @@ function finalEvidenceReservation(policy, claimInput, scenarios, developmentScen
|
|
|
1116
1146
|
}),
|
|
1117
1147
|
populationId: claim.population.id,
|
|
1118
1148
|
inputDigest: hashCanonical([...scenarios].sort((a, b) => compareCodeUnits(a.id, b.id))),
|
|
1119
|
-
unitIds: [...finalUnitIds].sort(compareCodeUnits)
|
|
1149
|
+
unitIds: [...finalUnitIds].sort(compareCodeUnits),
|
|
1150
|
+
...sourceDigests === void 0 ? {} : {
|
|
1151
|
+
sourceDigests,
|
|
1152
|
+
developmentSourceDigests
|
|
1153
|
+
}
|
|
1120
1154
|
}
|
|
1121
1155
|
};
|
|
1122
1156
|
}
|
|
@@ -5948,6 +5982,6 @@ function parseResponse(name, response, schema, llmCall) {
|
|
|
5948
5982
|
function firstString(value) {
|
|
5949
5983
|
return typeof value === "string" && value.trim() ? value : void 0;
|
|
5950
5984
|
}
|
|
5951
|
-
export {
|
|
5985
|
+
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, computeManifestHash 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, cellCachePath as it, searchModelIdentity as j, verifySearchHistoryReceipt as k, combineComparisonCosts as l, isProposedCandidate as m, isTransientTransportFailure as n, resolveRunDir as nt, executeOptimizationMethod as o, runOptimization as p, captureFinalEvidencePolicy as q, transientDispatchFailure as r, buildCellSchedule 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 };
|
|
5952
5986
|
|
|
5953
|
-
//# sourceMappingURL=llm-judge-
|
|
5987
|
+
//# sourceMappingURL=llm-judge-DXygU107.js.map
|