@tangle-network/agent-eval 0.198.0 → 0.198.1

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.
Files changed (51) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +3 -1
  3. package/dist/adapters/http.d.ts +1 -1
  4. package/dist/analyst/index.d.ts +1 -1
  5. package/dist/analyst/index.js +1 -1
  6. package/dist/{benchmark-command-D8E5TaPC.js → benchmark-command-DKQuLrrD.js} +2 -2
  7. package/dist/{benchmark-command-D8E5TaPC.js.map → benchmark-command-DKQuLrrD.js.map} +1 -1
  8. package/dist/benchmarks/index.d.ts +2 -2
  9. package/dist/benchmarks/index.js +2 -2
  10. package/dist/campaign/index.d.ts +2 -2
  11. package/dist/campaign/index.js +5 -5
  12. package/dist/{campaign-Dlg2iOzH.js → campaign-DRdKwxm-.js} +6 -6
  13. package/dist/{campaign-Dlg2iOzH.js.map → campaign-DRdKwxm-.js.map} +1 -1
  14. package/dist/cli.js +16 -12
  15. package/dist/cli.js.map +1 -1
  16. package/dist/contract/index.d.ts +4 -4
  17. package/dist/contract/index.js +3 -3
  18. package/dist/{define-agent-eval-By9PImpa.d.ts → define-agent-eval-9JYoCkDI.d.ts} +3 -3
  19. package/dist/{define-agent-eval-By9PImpa.d.ts.map → define-agent-eval-9JYoCkDI.d.ts.map} +1 -1
  20. package/dist/{define-agent-eval-DvBgSzAI.js → define-agent-eval-DkfcqaCF.js} +2 -2
  21. package/dist/{define-agent-eval-DvBgSzAI.js.map → define-agent-eval-DkfcqaCF.js.map} +1 -1
  22. package/dist/{index-BhoOCduB.d.ts → index-BXJHJ_jE.d.ts} +2 -2
  23. package/dist/{index-BhoOCduB.d.ts.map → index-BXJHJ_jE.d.ts.map} +1 -1
  24. package/dist/{index-D-tI1vgf.d.ts → index-DzQ6T34s.d.ts} +3 -3
  25. package/dist/{index-D-tI1vgf.d.ts.map → index-DzQ6T34s.d.ts.map} +1 -1
  26. package/dist/index.d.ts +2 -2
  27. package/dist/index.js +4 -4
  28. package/dist/{llm-judge-BYWXsxhZ.js → llm-judge-3ncNcWNT.js} +3 -3
  29. package/dist/{llm-judge-BYWXsxhZ.js.map → llm-judge-3ncNcWNT.js.map} +1 -1
  30. package/dist/openapi.json +1 -1
  31. package/dist/{produced-state-DOfmCEwP.js → produced-state-qIhqN3V5.js} +2 -2
  32. package/dist/{produced-state-DOfmCEwP.js.map → produced-state-qIhqN3V5.js.map} +1 -1
  33. package/dist/search/index.d.ts +39 -14
  34. package/dist/search/index.d.ts.map +1 -1
  35. package/dist/search/index.js +2 -2
  36. package/dist/{search-kernel-D8_kxChy.js → search-kernel-CumYAjA3.js} +55 -27
  37. package/dist/search-kernel-CumYAjA3.js.map +1 -0
  38. package/dist/{search-kernel-CuvbakC_.d.ts → search-kernel-TLoiMMcq.d.ts} +15 -6
  39. package/dist/search-kernel-TLoiMMcq.d.ts.map +1 -0
  40. package/dist/{search-summary-Dmppg8kV.js → search-summary-dJOaZ3Dw.js} +2 -2
  41. package/dist/{search-summary-Dmppg8kV.js.map → search-summary-dJOaZ3Dw.js.map} +1 -1
  42. package/dist/{skillopt-optimization-method-BMP2qV_1.js → skillopt-optimization-method-BL_j6mX8.js} +2 -2
  43. package/dist/{skillopt-optimization-method-BMP2qV_1.js.map → skillopt-optimization-method-BL_j6mX8.js.map} +1 -1
  44. package/dist/{tree-DHHWsH-X.js → tree-DxGfhISA.js} +115 -60
  45. package/dist/tree-DxGfhISA.js.map +1 -0
  46. package/docs/search-ledger.md +6 -4
  47. package/docs/trace-contracts.md +1 -3
  48. package/package.json +1 -1
  49. package/dist/search-kernel-CuvbakC_.d.ts.map +0 -1
  50. package/dist/search-kernel-D8_kxChy.js.map +0 -1
  51. package/dist/tree-DHHWsH-X.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -6,6 +6,16 @@ All notable changes to `@tangle-network/agent-eval` and its sibling `agent-eval-
6
6
 
7
7
  ## Unreleased
8
8
 
9
+ ## [0.198.1] — 2026-09-27
10
+
11
+ ### Fixed
12
+
13
+ - `operatorYield` counted a node once per incoming edge instead of once; on a ledger with re-proposals, invalid nodes and nodes sharing only one unit with the root inflated an operator’s measured-outcome count. Those nodes now give no sample.
14
+ - `taskMatrix` ignored whether the objective is maximized or minimized, and reported a specialist gain from as little as one shared unit while comparing nodes measured on different units. It now reports ‘insufficient’ below 2 nodes or 6 units, and sorts cluster ids with the same code-unit order every other lens uses (not `localeCompare`, which is locale-dependent).
15
+ - `front` could place an invalid node on the frontier, and measured its cost axis by how far the allocator had run a node rather than by known spend. It now excludes invalid nodes and uses known cost per attempted cell.
16
+ - `tree` showed a node with only unknown-cost cells as `$0.00` instead of the known spend plus the minimum over those cells.
17
+ - `summarizeSamples` kept its own copy of the sample-size thresholds instead of using `searchEstimateMethod`, so it called a single sample ‘insufficient’ and printed a root’s yield against itself as `0.0000/$` instead of `unknown`.
18
+
9
19
  ## [0.198.0] — 2026-09-27
10
20
 
11
21
  ### Added
package/README.md CHANGED
@@ -96,7 +96,7 @@ The [existing-agent example](./examples/foreign-agent-quickstart/) shows how to
96
96
  | Register evidence and decision rules | [`defineEvaluationClaim()` and `sealExperiment()`](./docs/evaluation-integrity.md) from `/experiment` | A declared population, independent unit, optional practical effect, and sealed rules. |
97
97
  | Check the evaluator | [`auditEvaluator()`](./docs/evaluation-integrity.md) and [calibration tools](./docs/outcome-validity.md) from `/meta-eval` | Error rates, admission evidence, bias diagnostics, and outcome associations. |
98
98
  | Analyze completed work | [`analyzeRuns()`](./examples/analyze-existing-runs/) from `/contract`; [trace analysts](./docs/trace-analysis.md) from `/analyst` | Comparisons and findings with links to recorded evidence. |
99
- | Gate on the path a run took | A [trace contract](./docs/trace-contracts.md) (`compileTraceContractSpec()` from the root), or `traces check` in CI (unreleased — `/traces` `feat/traces-check`, pending its redaction-core migration) | `pass`, `fail`, or `error` per rule, with the spans that broke it. |
99
+ | Gate on the path a run took | A [trace contract](./docs/trace-contracts.md) (`compileTraceContractSpec()` from the root), or `traces check` in CI | `pass`, `fail`, or `error` per rule, with the spans that broke it. |
100
100
 
101
101
  `defineAgentEval()` also exposes `improve()` when the same agent, cases, judge, and baseline should share configuration.
102
102
  Use direct [campaign controls](./docs/eval-surface-map.md) for scheduling, durable caches, model matrices, or custom release rules.
@@ -180,6 +180,8 @@ The [benchmark-book review](./docs/design/mlbenchmarks-book-review.md) records t
180
180
 
181
181
  ## Development
182
182
 
183
+ Read [CLAUDE.md](./CLAUDE.md) (or [AGENTS.md](./AGENTS.md)) first: dependency boundaries, ledger canonicalization, and local conventions apply to every change.
184
+
183
185
  ```sh
184
186
  pnpm install
185
187
  pnpm build
@@ -1,6 +1,6 @@
1
1
  import { m as CostReceipt } from "../cost-ledger-DbQdN3nO.js";
2
2
  import { R as Scenario, d as DispatchContext, f as DispatchFn } from "../types-EBUav9Bu.js";
3
- import "../index-D-tI1vgf.js";
3
+ import "../index-DzQ6T34s.js";
4
4
  //#region src/adapters/http.d.ts
5
5
  interface HttpDispatchOptions<TScenario extends Scenario, _TArtifact> {
6
6
  /** Static endpoint URL. Mutually exclusive with `resolveUrl`. */
@@ -1181,7 +1181,7 @@ declare function runAnalystBenchmarkCommand(argv: readonly string[], env?: NodeJ
1181
1181
  declare const ANALYST_BENCHMARK_IMPLEMENTATION_DIGEST_ALGORITHM = "sha256-canonical-source-manifest";
1182
1182
  declare const ANALYST_BENCHMARK_DEPENDENCY_LOCK_DIGEST_ALGORITHM = "sha256-canonical-file-manifest";
1183
1183
  declare const ANALYST_BENCHMARK_DEPENDENCY_LOCK_FILES: readonly string[];
1184
- declare const ANALYST_BENCHMARK_DEPENDENCY_LOCK_SHA256 = "6a4ac13d561bde646277270c5861b6f1021ae91d582d6eff2047af6e52f2dce9";
1184
+ declare const ANALYST_BENCHMARK_DEPENDENCY_LOCK_SHA256 = "81747e7659edeebdfd839de0b77e130cf4d7e66d6863de9c957fa1ebd1a40d3b";
1185
1185
  declare const ANALYST_BENCHMARK_EVIDENCE_DEPENDENCY_LOCK_SHA256 = "1e03f2daed356d60316aabefb407ec1e437ac94d408d61eea4ae096e9c6fbb5b";
1186
1186
  declare const ANALYST_BENCHMARK_EVIDENCE_IMPLEMENTATION_SHA256 = "4dba263b6256a30d56c7fdb2d992d3a953c0035d731f359b704db806f68f75ac";
1187
1187
  declare const ANALYST_BENCHMARK_IMPLEMENTATION_FILES: readonly string[];
@@ -8,7 +8,7 @@ import { t as createDspyRlmTraceEngine } from "../dspy-rlm-engine-B5T43BkZ.js";
8
8
  import { a as diffFindings, i as defaultIsMaterial, n as runSemanticConceptJudge, o as createChatTraceEngine, r as FindingsStore, t as SEMANTIC_CONCEPT_JUDGE_VERSION } from "../semantic-concept-judge-2SE_kXGF.js";
9
9
  import { t as createChatClient } from "../chat-client-CJORSG_J.js";
10
10
  import { a as scoreAnalystFindings, i as summarizeAnalystBenchmarkRunner, n as runAnalystBenchmark, r as traceStoreEvidenceResolver, t as registryBenchmarkRunner } from "../benchmark-BeQJyrRC.js";
11
- import { $ as ANALYST_BENCHMARK_MANIFEST_FILE, A as readAnalystInstructionsOverride, B as parseVerificationOutcome, C as emptyPublicBenchmarkRunner, D as summarizeCodeTraceCalibration, E as renderCodeTraceCalibrationMarkdown, F as publicBenchmarkRlmInstructions, G as ANALYST_BENCHMARK_EVIDENCE_IMPLEMENTATION_SHA256, H as ANALYST_BENCHMARK_DEPENDENCY_LOCK_FILES, I as publicBenchmarkSystemPrompt, J as ANALYST_BENCHMARK_IMPLEMENTATION_SHA256, K as ANALYST_BENCHMARK_IMPLEMENTATION_DIGEST_ALGORITHM, L as DEFAULT_MAX_VERIFICATION_ARTIFACT_BYTES, M as MAX_INCORRECT_BLOCKS, N as MAX_INCORRECT_BLOCK_STEPS, O as analystInstructionsOverrideFromText, P as publicBenchmarkProtocolSha256, Q as ANALYST_BENCHMARK_LOCAL_RECEIPT_FILE, R as appendVerificationArtifactsToOtlp, S as adaptPublicBenchmarkFindings, T as readAnalystBenchmarkArtifact, U as ANALYST_BENCHMARK_DEPENDENCY_LOCK_SHA256, V as ANALYST_BENCHMARK_DEPENDENCY_LOCK_DIGEST_ALGORITHM, W as ANALYST_BENCHMARK_EVIDENCE_DEPENDENCY_LOCK_SHA256, X as analystBenchmarkImplementationDigest, Y as analystBenchmarkDependencyLockDigest, Z as ANALYST_BENCHMARK_COST_LEDGER_FILE, _ as publicDirectAnalystDefinition, a as primeCodeTraceAnalystDefinition, at as codeTraceBenchCase, b as analystDefinitionAsymmetries, c as preparePublicAnalystBenchmark, ct as agentRxPredictionsToFindings, d as selectPublicBenchmarkRows, dt as normalizeBenchmarkLabel, et as ANALYST_BENCHMARK_OBSERVATIONS_FILE, f as createPublicBenchmarkRlmRunner, g as createPublicBenchmarkDirectRunner, h as runReplVariableAnalystDefinition, i as primeAnalystProtocolSha256, it as summarizeAgentRxCalibration, j as CODE_TRACE_BENCH_ANALYST_PROMPT, k as effectiveAnalystProtocolSha256, l as publicBenchmarkDistributions, lt as normalizeAgentRxCategory, m as rlmEngineLimits, n as renderAnalystBenchmarkMarkdown, nt as AGENT_RX_UPSTREAM_REVISION, o as runInlineAnalystDefinition, ot as codeTracerPredictionsToFindings, p as publicRlmAnalystDefinition, q as ANALYST_BENCHMARK_IMPLEMENTATION_FILES, r as createPrimeBenchmarkRunner, rt as renderAgentRxCalibrationMarkdown, s as loadPublicBenchmarkRows, st as agentRxBenchmarkCase, t as runAnalystBenchmarkCommand, tt as compareAnalystRunners, u as publicBenchmarkSelectionReport, ut as roundAgentRxStep, v as runChunkedAnalystDefinition, w as expandCodeTraceFailureBlocks, x as analystDefinitionProtocolSha256, y as AnalystExpressivenessError, z as loadCodeTraceVerificationArtifacts } from "../benchmark-command-D8E5TaPC.js";
11
+ import { $ as ANALYST_BENCHMARK_MANIFEST_FILE, A as readAnalystInstructionsOverride, B as parseVerificationOutcome, C as emptyPublicBenchmarkRunner, D as summarizeCodeTraceCalibration, E as renderCodeTraceCalibrationMarkdown, F as publicBenchmarkRlmInstructions, G as ANALYST_BENCHMARK_EVIDENCE_IMPLEMENTATION_SHA256, H as ANALYST_BENCHMARK_DEPENDENCY_LOCK_FILES, I as publicBenchmarkSystemPrompt, J as ANALYST_BENCHMARK_IMPLEMENTATION_SHA256, K as ANALYST_BENCHMARK_IMPLEMENTATION_DIGEST_ALGORITHM, L as DEFAULT_MAX_VERIFICATION_ARTIFACT_BYTES, M as MAX_INCORRECT_BLOCKS, N as MAX_INCORRECT_BLOCK_STEPS, O as analystInstructionsOverrideFromText, P as publicBenchmarkProtocolSha256, Q as ANALYST_BENCHMARK_LOCAL_RECEIPT_FILE, R as appendVerificationArtifactsToOtlp, S as adaptPublicBenchmarkFindings, T as readAnalystBenchmarkArtifact, U as ANALYST_BENCHMARK_DEPENDENCY_LOCK_SHA256, V as ANALYST_BENCHMARK_DEPENDENCY_LOCK_DIGEST_ALGORITHM, W as ANALYST_BENCHMARK_EVIDENCE_DEPENDENCY_LOCK_SHA256, X as analystBenchmarkImplementationDigest, Y as analystBenchmarkDependencyLockDigest, Z as ANALYST_BENCHMARK_COST_LEDGER_FILE, _ as publicDirectAnalystDefinition, a as primeCodeTraceAnalystDefinition, at as codeTraceBenchCase, b as analystDefinitionAsymmetries, c as preparePublicAnalystBenchmark, ct as agentRxPredictionsToFindings, d as selectPublicBenchmarkRows, dt as normalizeBenchmarkLabel, et as ANALYST_BENCHMARK_OBSERVATIONS_FILE, f as createPublicBenchmarkRlmRunner, g as createPublicBenchmarkDirectRunner, h as runReplVariableAnalystDefinition, i as primeAnalystProtocolSha256, it as summarizeAgentRxCalibration, j as CODE_TRACE_BENCH_ANALYST_PROMPT, k as effectiveAnalystProtocolSha256, l as publicBenchmarkDistributions, lt as normalizeAgentRxCategory, m as rlmEngineLimits, n as renderAnalystBenchmarkMarkdown, nt as AGENT_RX_UPSTREAM_REVISION, o as runInlineAnalystDefinition, ot as codeTracerPredictionsToFindings, p as publicRlmAnalystDefinition, q as ANALYST_BENCHMARK_IMPLEMENTATION_FILES, r as createPrimeBenchmarkRunner, rt as renderAgentRxCalibrationMarkdown, s as loadPublicBenchmarkRows, st as agentRxBenchmarkCase, t as runAnalystBenchmarkCommand, tt as compareAnalystRunners, u as publicBenchmarkSelectionReport, ut as roundAgentRxStep, v as runChunkedAnalystDefinition, w as expandCodeTraceFailureBlocks, x as analystDefinitionProtocolSha256, y as AnalystExpressivenessError, z as loadCodeTraceVerificationArtifacts } from "../benchmark-command-DKQuLrrD.js";
12
12
  import { a as extractPrimeJsonObject, c as primeProtocolSha256, d as runPrimeExchange, f as decodeReplyRows, i as emptyPrimeRawUsage, l as primeReplyDefect, n as buildPrimePrompt, o as mergePrimeRawUsage, r as buildPrimeRepairPrompt, s as normalizePrimeUsage, t as analystUsageReceiptFromPrimeUsage, u as projectPrimeTrajectory } from "../prime-protocol-DcAK9pC8.js";
13
13
  import { t as nodeHttpPrimeBridgeTransport } from "../prime-bridge-transport-Z3cpKGoV.js";
14
14
  import { existsSync, readFileSync, readdirSync, statSync } from "node:fs";
@@ -1416,7 +1416,7 @@ const ANALYST_BENCHMARK_DEPENDENCY_LOCK_FILES = Object.freeze([
1416
1416
  "package.json",
1417
1417
  "pnpm-lock.yaml"
1418
1418
  ]);
1419
- const ANALYST_BENCHMARK_DEPENDENCY_LOCK_SHA256 = "6a4ac13d561bde646277270c5861b6f1021ae91d582d6eff2047af6e52f2dce9";
1419
+ const ANALYST_BENCHMARK_DEPENDENCY_LOCK_SHA256 = "81747e7659edeebdfd839de0b77e130cf4d7e66d6863de9c957fa1ebd1a40d3b";
1420
1420
  const ANALYST_BENCHMARK_EVIDENCE_DEPENDENCY_LOCK_SHA256 = "1e03f2daed356d60316aabefb407ec1e437ac94d408d61eea4ae096e9c6fbb5b";
1421
1421
  const ANALYST_BENCHMARK_EVIDENCE_IMPLEMENTATION_SHA256 = "4dba263b6256a30d56c7fdb2d992d3a953c0035d731f359b704db806f68f75ac";
1422
1422
  const ANALYST_BENCHMARK_IMPLEMENTATION_FILES = Object.freeze([
@@ -6317,4 +6317,4 @@ function shellQuote(value) {
6317
6317
  //#endregion
6318
6318
  export { ANALYST_BENCHMARK_MANIFEST_FILE as $, readAnalystInstructionsOverride as A, parseVerificationOutcome as B, emptyPublicBenchmarkRunner as C, summarizeCodeTraceCalibration as D, renderCodeTraceCalibrationMarkdown as E, publicBenchmarkRlmInstructions as F, ANALYST_BENCHMARK_EVIDENCE_IMPLEMENTATION_SHA256 as G, ANALYST_BENCHMARK_DEPENDENCY_LOCK_FILES as H, publicBenchmarkSystemPrompt as I, ANALYST_BENCHMARK_IMPLEMENTATION_SHA256 as J, ANALYST_BENCHMARK_IMPLEMENTATION_DIGEST_ALGORITHM as K, DEFAULT_MAX_VERIFICATION_ARTIFACT_BYTES as L, MAX_INCORRECT_BLOCKS as M, MAX_INCORRECT_BLOCK_STEPS as N, analystInstructionsOverrideFromText as O, publicBenchmarkProtocolSha256 as P, ANALYST_BENCHMARK_LOCAL_RECEIPT_FILE as Q, appendVerificationArtifactsToOtlp as R, adaptPublicBenchmarkFindings as S, readAnalystBenchmarkArtifact as T, ANALYST_BENCHMARK_DEPENDENCY_LOCK_SHA256 as U, ANALYST_BENCHMARK_DEPENDENCY_LOCK_DIGEST_ALGORITHM as V, ANALYST_BENCHMARK_EVIDENCE_DEPENDENCY_LOCK_SHA256 as W, analystBenchmarkImplementationDigest as X, analystBenchmarkDependencyLockDigest as Y, ANALYST_BENCHMARK_COST_LEDGER_FILE as Z, publicDirectAnalystDefinition as _, primeCodeTraceAnalystDefinition as a, codeTraceBenchCase as at, analystDefinitionAsymmetries as b, preparePublicAnalystBenchmark as c, agentRxPredictionsToFindings as ct, selectPublicBenchmarkRows as d, normalizeBenchmarkLabel as dt, ANALYST_BENCHMARK_OBSERVATIONS_FILE as et, createPublicBenchmarkRlmRunner as f, createPublicBenchmarkDirectRunner as g, runReplVariableAnalystDefinition as h, primeAnalystProtocolSha256 as i, summarizeAgentRxCalibration as it, CODE_TRACE_BENCH_ANALYST_PROMPT as j, effectiveAnalystProtocolSha256 as k, publicBenchmarkDistributions as l, normalizeAgentRxCategory as lt, rlmEngineLimits as m, renderAnalystBenchmarkMarkdown as n, AGENT_RX_UPSTREAM_REVISION as nt, runInlineAnalystDefinition as o, codeTracerPredictionsToFindings as ot, publicRlmAnalystDefinition as p, ANALYST_BENCHMARK_IMPLEMENTATION_FILES as q, createPrimeBenchmarkRunner as r, renderAgentRxCalibrationMarkdown as rt, loadPublicBenchmarkRows as s, agentRxBenchmarkCase as st, runAnalystBenchmarkCommand as t, compareAnalystRunners as tt, publicBenchmarkSelectionReport as u, roundAgentRxStep as ut, runChunkedAnalystDefinition as v, expandCodeTraceFailureBlocks as w, analystDefinitionProtocolSha256 as x, AnalystExpressivenessError as y, loadCodeTraceVerificationArtifacts as z };
6319
6319
 
6320
- //# sourceMappingURL=benchmark-command-D8E5TaPC.js.map
6320
+ //# sourceMappingURL=benchmark-command-DKQuLrrD.js.map