@tangle-network/agent-eval 1.0.24 → 1.0.26

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 (124) hide show
  1. package/CHANGELOG.md +88 -0
  2. package/dist/adapters/http.d.ts +2 -2
  3. package/dist/{agent-profile-DC_v4p1f.d.ts → agent-profile-BF1WLMco.d.ts} +3 -3
  4. package/dist/{agent-profile-DC_v4p1f.d.ts.map → agent-profile-BF1WLMco.d.ts.map} +1 -1
  5. package/dist/analyst/index.d.ts +14 -14
  6. package/dist/analyst/index.js +1 -1
  7. package/dist/{analyze-runs-DGr7mpC3.d.ts → analyze-runs-BaziIw93.d.ts} +4 -4
  8. package/dist/{analyze-runs-DGr7mpC3.d.ts.map → analyze-runs-BaziIw93.d.ts.map} +1 -1
  9. package/dist/app-grade/index.d.ts +4 -4
  10. package/dist/benchmarks/index.d.ts +30 -5
  11. package/dist/benchmarks/index.d.ts.map +1 -1
  12. package/dist/benchmarks/index.js +103 -15
  13. package/dist/benchmarks/index.js.map +1 -1
  14. package/dist/campaign/index.d.ts +7 -7
  15. package/dist/campaign/index.js +1 -1
  16. package/dist/{campaign-C9QC27C2.js → campaign-Cqz2vk2p.js} +2 -2
  17. package/dist/{campaign-C9QC27C2.js.map → campaign-Cqz2vk2p.js.map} +1 -1
  18. package/dist/{chat-client-9XLgWrQ7.js → chat-client-PJEzoot9.js} +3 -3
  19. package/dist/chat-client-PJEzoot9.js.map +1 -0
  20. package/dist/cli.js +2 -2
  21. package/dist/{cluster-CkzP4h3T.d.ts → cluster-CSd0LE_M.d.ts} +3 -3
  22. package/dist/{cluster-CkzP4h3T.d.ts.map → cluster-CSd0LE_M.d.ts.map} +1 -1
  23. package/dist/{completion-verifier-BYLOcQt7.js → completion-verifier-DVZx0x6x.js} +3 -3
  24. package/dist/{completion-verifier-BYLOcQt7.js.map → completion-verifier-DVZx0x6x.js.map} +1 -1
  25. package/dist/{completion-verifier-CJVDPv2T.d.ts → completion-verifier-oAgSwdFe.d.ts} +3 -3
  26. package/dist/{completion-verifier-CJVDPv2T.d.ts.map → completion-verifier-oAgSwdFe.d.ts.map} +1 -1
  27. package/dist/contract/index.d.ts +10 -10
  28. package/dist/contract/index.js +1 -1
  29. package/dist/{default-registry-C_Akmpui.d.ts → default-registry-DoIBhuS-.d.ts} +7 -7
  30. package/dist/{default-registry-C_Akmpui.d.ts.map → default-registry-DoIBhuS-.d.ts.map} +1 -1
  31. package/dist/{define-agent-eval-nNPC7cD5.d.ts → define-agent-eval-Be2Ser8j.d.ts} +7 -7
  32. package/dist/{define-agent-eval-nNPC7cD5.d.ts.map → define-agent-eval-Be2Ser8j.d.ts.map} +1 -1
  33. package/dist/diagnosis/index.d.ts +2 -2
  34. package/dist/{engine-B0gr15-l.d.ts → engine-CPBhCLJR.d.ts} +2 -2
  35. package/dist/{engine-B0gr15-l.d.ts.map → engine-CPBhCLJR.d.ts.map} +1 -1
  36. package/dist/{evaluation-mk3u_ZJC.d.ts → evaluation-BjRgUyst.d.ts} +4 -4
  37. package/dist/{evaluation-mk3u_ZJC.d.ts.map → evaluation-BjRgUyst.d.ts.map} +1 -1
  38. package/dist/evaluation.d.ts +1 -1
  39. package/dist/{exact-types-Blq7YvsK.d.ts → exact-types-DEnrf7NX.d.ts} +2 -2
  40. package/dist/{exact-types-Blq7YvsK.d.ts.map → exact-types-DEnrf7NX.d.ts.map} +1 -1
  41. package/dist/experiment/index.d.ts +3 -3
  42. package/dist/{feedback-trajectory-D3oISeGl.d.ts → feedback-trajectory-DxkG5EPi.d.ts} +3 -3
  43. package/dist/{feedback-trajectory-D3oISeGl.d.ts.map → feedback-trajectory-DxkG5EPi.d.ts.map} +1 -1
  44. package/dist/{index-CxuK3sxA.d.ts → index-AjfEHHA8.d.ts} +8 -8
  45. package/dist/{index-CxuK3sxA.d.ts.map → index-AjfEHHA8.d.ts.map} +1 -1
  46. package/dist/{index-cp5gkylN.d.ts → index-BI9ecONy.d.ts} +10 -10
  47. package/dist/{index-cp5gkylN.d.ts.map → index-BI9ecONy.d.ts.map} +1 -1
  48. package/dist/{index-BdFlQP54.d.ts → index-BriU7rfL.d.ts} +3 -3
  49. package/dist/{index-BdFlQP54.d.ts.map → index-BriU7rfL.d.ts.map} +1 -1
  50. package/dist/{index-Dodw93oW.d.ts → index-C8a9Dyan.d.ts} +23 -23
  51. package/dist/{index-Dodw93oW.d.ts.map → index-C8a9Dyan.d.ts.map} +1 -1
  52. package/dist/{index-IE8O0HNr.d.ts → index-D-0mg-eu.d.ts} +8 -8
  53. package/dist/{index-IE8O0HNr.d.ts.map → index-D-0mg-eu.d.ts.map} +1 -1
  54. package/dist/{index-BN6htPVi.d.ts → index-DHWFYUVW.d.ts} +2 -2
  55. package/dist/{index-BN6htPVi.d.ts.map → index-DHWFYUVW.d.ts.map} +1 -1
  56. package/dist/{index-KAYaJtMA.d.ts → index-VSN1IZQp.d.ts} +3 -3
  57. package/dist/{index-KAYaJtMA.d.ts.map → index-VSN1IZQp.d.ts.map} +1 -1
  58. package/dist/index.d.ts +27 -27
  59. package/dist/index.js +5 -5
  60. package/dist/{integrity-zeWMeTQt.d.ts → integrity-BMyCpnZ8.d.ts} +2 -2
  61. package/dist/{integrity-zeWMeTQt.d.ts.map → integrity-BMyCpnZ8.d.ts.map} +1 -1
  62. package/dist/{matrix-Diw3yJCG.d.ts → matrix-DdniPG_M.d.ts} +2 -2
  63. package/dist/{matrix-Diw3yJCG.d.ts.map → matrix-DdniPG_M.d.ts.map} +1 -1
  64. package/dist/meta-eval/index.d.ts +2 -2
  65. package/dist/multishot/golden/index.d.ts +1 -1
  66. package/dist/multishot/index.d.ts +3 -3
  67. package/dist/multishot/index.js +2 -2
  68. package/dist/openapi.json +1 -1
  69. package/dist/{paired-promotion-decision-COeOgNHG.d.ts → paired-promotion-decision-DawN2o0G.d.ts} +2 -2
  70. package/dist/{paired-promotion-decision-COeOgNHG.d.ts.map → paired-promotion-decision-DawN2o0G.d.ts.map} +1 -1
  71. package/dist/{prime-protocol-bRbh6dqd.d.ts → prime-protocol-RUPtoYiI.d.ts} +2 -2
  72. package/dist/{prime-protocol-bRbh6dqd.d.ts.map → prime-protocol-RUPtoYiI.d.ts.map} +1 -1
  73. package/dist/{promotion-gate-XglbDCNo.d.ts → promotion-gate-DG_PSJx_.d.ts} +2 -2
  74. package/dist/{promotion-gate-XglbDCNo.d.ts.map → promotion-gate-DG_PSJx_.d.ts.map} +1 -1
  75. package/dist/{registry-Pfeqsr5k.d.ts → registry-BqoX13FD.d.ts} +4 -4
  76. package/dist/{registry-Pfeqsr5k.d.ts.map → registry-BqoX13FD.d.ts.map} +1 -1
  77. package/dist/reporting.d.ts +4 -4
  78. package/dist/{researcher-DlyjP5uq.d.ts → researcher-BuojS14L.d.ts} +4 -4
  79. package/dist/{researcher-DlyjP5uq.d.ts.map → researcher-BuojS14L.d.ts.map} +1 -1
  80. package/dist/rl.d.ts +7 -7
  81. package/dist/rollout/index.d.ts +2 -2
  82. package/dist/rollout/index.js +1 -1
  83. package/dist/{rollout-Dh5q6CPA.js → rollout-B86tqluQ.js} +2 -2
  84. package/dist/{rollout-Dh5q6CPA.js.map → rollout-B86tqluQ.js.map} +1 -1
  85. package/dist/search/index.d.ts +2 -2
  86. package/dist/{search-kernel-6P1dRpJ4.d.ts → search-kernel-C4XnLKIW.d.ts} +3 -3
  87. package/dist/{search-kernel-6P1dRpJ4.d.ts.map → search-kernel-C4XnLKIW.d.ts.map} +1 -1
  88. package/dist/{sequential-OeSwJ2uG.d.ts → sequential-1-T2oi1_.d.ts} +2 -2
  89. package/dist/{sequential-OeSwJ2uG.d.ts.map → sequential-1-T2oi1_.d.ts.map} +1 -1
  90. package/dist/{server-BorE0Y3O.js → server-BQbd__Hr.js} +3 -3
  91. package/dist/{server-BorE0Y3O.js.map → server-BQbd__Hr.js.map} +1 -1
  92. package/dist/{statistical-heldout-vjrs8iyO.d.ts → statistical-heldout-Bx1QUDNy.d.ts} +5 -5
  93. package/dist/{statistical-heldout-vjrs8iyO.d.ts.map → statistical-heldout-Bx1QUDNy.d.ts.map} +1 -1
  94. package/dist/statistics.d.ts +2 -2
  95. package/dist/{store-tool-spans-BemsQEhd.d.ts → store-tool-spans-kCDPEwjL.d.ts} +5 -5
  96. package/dist/{store-tool-spans-BemsQEhd.d.ts.map → store-tool-spans-kCDPEwjL.d.ts.map} +1 -1
  97. package/dist/{summary-report-vdhE20Zf.d.ts → summary-report-9kwI6jFQ.d.ts} +2 -2
  98. package/dist/{summary-report-vdhE20Zf.d.ts.map → summary-report-9kwI6jFQ.d.ts.map} +1 -1
  99. package/dist/supervisor-run/index.d.ts +1 -1
  100. package/dist/{systemone-DFUN9DL1.d.ts → systemone-CSwi1hp-.d.ts} +7 -7
  101. package/dist/{systemone-DFUN9DL1.d.ts.map → systemone-CSwi1hp-.d.ts.map} +1 -1
  102. package/dist/{systemone-review-4CKmHvr5.d.ts → systemone-review-WpWosn3a.d.ts} +2 -2
  103. package/dist/{systemone-review-4CKmHvr5.d.ts.map → systemone-review-WpWosn3a.d.ts.map} +1 -1
  104. package/dist/systemone.d.ts +3 -3
  105. package/dist/{tool-groups-Dpl3picW.d.ts → tool-groups-Bcasvncd.d.ts} +3 -3
  106. package/dist/tool-groups-Bcasvncd.d.ts.map +1 -0
  107. package/dist/{trace-questions-oT2fZWJ8.d.ts → trace-questions-DI42jXPj.d.ts} +3 -3
  108. package/dist/{trace-questions-oT2fZWJ8.d.ts.map → trace-questions-DI42jXPj.d.ts.map} +1 -1
  109. package/dist/trace-repair/index.d.ts +1 -1
  110. package/dist/traces.d.ts +5 -5
  111. package/dist/{types-C9yEqDjQ.d.ts → types-ByrbgALT.d.ts} +4 -4
  112. package/dist/{types-C9yEqDjQ.d.ts.map → types-ByrbgALT.d.ts.map} +1 -1
  113. package/dist/{types-CP3rkpir.d.ts → types-CEgIBy0W.d.ts} +5 -4
  114. package/dist/{types-CP3rkpir.d.ts.map → types-CEgIBy0W.d.ts.map} +1 -1
  115. package/dist/{types-CwHU7U9J.d.ts → types-CLGrB4Sv.d.ts} +2 -2
  116. package/dist/{types-CwHU7U9J.d.ts.map → types-CLGrB4Sv.d.ts.map} +1 -1
  117. package/dist/{types-6GuPL-Vt.d.ts → types-DbGSC2No.d.ts} +2 -2
  118. package/dist/{types-6GuPL-Vt.d.ts.map → types-DbGSC2No.d.ts.map} +1 -1
  119. package/dist/wire/index.d.ts +4 -4
  120. package/dist/wire/index.js +1 -1
  121. package/docs/wire-protocol.md +1 -1
  122. package/package.json +1 -1
  123. package/dist/chat-client-9XLgWrQ7.js.map +0 -1
  124. package/dist/tool-groups-Dpl3picW.d.ts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -4,6 +4,94 @@ All notable changes to `@tangle-network/agent-eval` and its sibling `agent-eval-
4
4
 
5
5
  ---
6
6
 
7
+ ## [1.0.26] — 2026-11-08
8
+
9
+ - feat(benchmarks): grade a code patch with a Harbor task's own verifier
10
+ - chore(release): 1.0.25
11
+ - fix(judges): default to zai/glm-5.3, which every restricted Router key may call
12
+ - chore(release): 1.0.24
13
+ - test(multishot): judge default model and its price in runJudge
14
+ - test(multishot): price judge calls at the new default judge model
15
+ - fix(judges): one judge default, gpt-6-luna, which the Router serves
16
+ - chore(release): 1.0.23
17
+ - fix(run-record): a Claude id from 4.6 on is a pinned snapshot
18
+ - feat(adopt): expose scoped consumer in managed adoption
19
+ - fix(adopt): stage selected peer cohort before install
20
+ - feat(search): an objective key names the judge revision
21
+ - feat(adopt): scope programmatic adoption to one consumer
22
+ - feat: size a sequential pair cap under a registered law (#1223)
23
+ - fix(test): bound shared release verification workers (#1225)
24
+ - fix(test): qualify refreshed harness contracts with maintained pnpm (#1224)
25
+ - chore(release): 1.0.22 (#1222)
26
+ - chore(deps): refresh first-party library dependencies (#1221)
27
+ - docs(release): describe independent interval API and drop duplicate bumps
28
+ - chore(release): 1.0.21
29
+ - docs(test): cite printed Newcombe table pages
30
+ - feat(statistics): add independent risk differences from Wilson limits
31
+ - fix(test): mark disposable identities for host Git hooks
32
+ - fix(test): declare identity in disposable integration repositories
33
+ - fix(release): authenticate public evidence reads in verification
34
+ - fix(statistics): exclude steps through every selected cluster extent
35
+ - test(statistics): retain overlapping-cluster sealed-step regression
36
+ - docs(release): remove redundant release commit entries
37
+ - chore(release): 1.0.20
38
+ - docs(statistics): trim whitespace in interval guidance
39
+ - fix(verification): retain valid replay baselines and current release evidence
40
+ - chore(analyst): refresh manifest for shared statistics owner
41
+ - fix(statistics): preserve degenerate bootstrap results and mean seed
42
+ - feat(statistics): share stratified cluster resampling and calibrated placebo bands
43
+ - fix(adoption): retain unselected pnpm resolutions
44
+ - fix(exports): ship ./statistics subpath, gpt-5-mini pricing, sequentialCrossingHorizon
45
+ - fix(adopt-stack): qualify the committed caller tree
46
+ - fix(adopt-stack): read large tracked path inventories
47
+ - fix(adoption): read a Runtime release's evidence from its Publish run, and raise pins below a dependency floor (#1211)
48
+ - fix(adoption): hold a Runtime release whose tag evidence failed or never ran
49
+ - fix(adoption): gate stable-major candidates against installed versions
50
+ - feat(app-grade): probes take a method and JSON body (#1208)
51
+
52
+ ## [1.0.25] — 2026-11-08
53
+
54
+ - fix(judges): default to zai/glm-5.3, which every restricted Router key may call
55
+ - chore(release): 1.0.24
56
+ - test(multishot): judge default model and its price in runJudge
57
+ - test(multishot): price judge calls at the new default judge model
58
+ - fix(judges): one judge default, gpt-6-luna, which the Router serves
59
+ - chore(release): 1.0.23
60
+ - fix(run-record): a Claude id from 4.6 on is a pinned snapshot
61
+ - feat(adopt): expose scoped consumer in managed adoption
62
+ - fix(adopt): stage selected peer cohort before install
63
+ - feat(search): an objective key names the judge revision
64
+ - feat(adopt): scope programmatic adoption to one consumer
65
+ - feat: size a sequential pair cap under a registered law (#1223)
66
+ - fix(test): bound shared release verification workers (#1225)
67
+ - fix(test): qualify refreshed harness contracts with maintained pnpm (#1224)
68
+ - chore(release): 1.0.22 (#1222)
69
+ - chore(deps): refresh first-party library dependencies (#1221)
70
+ - docs(release): describe independent interval API and drop duplicate bumps
71
+ - chore(release): 1.0.21
72
+ - docs(test): cite printed Newcombe table pages
73
+ - feat(statistics): add independent risk differences from Wilson limits
74
+ - fix(test): mark disposable identities for host Git hooks
75
+ - fix(test): declare identity in disposable integration repositories
76
+ - fix(release): authenticate public evidence reads in verification
77
+ - fix(statistics): exclude steps through every selected cluster extent
78
+ - test(statistics): retain overlapping-cluster sealed-step regression
79
+ - docs(release): remove redundant release commit entries
80
+ - chore(release): 1.0.20
81
+ - docs(statistics): trim whitespace in interval guidance
82
+ - fix(verification): retain valid replay baselines and current release evidence
83
+ - chore(analyst): refresh manifest for shared statistics owner
84
+ - fix(statistics): preserve degenerate bootstrap results and mean seed
85
+ - feat(statistics): share stratified cluster resampling and calibrated placebo bands
86
+ - fix(adoption): retain unselected pnpm resolutions
87
+ - fix(exports): ship ./statistics subpath, gpt-5-mini pricing, sequentialCrossingHorizon
88
+ - fix(adopt-stack): qualify the committed caller tree
89
+ - fix(adopt-stack): read large tracked path inventories
90
+ - fix(adoption): read a Runtime release's evidence from its Publish run, and raise pins below a dependency floor (#1211)
91
+ - fix(adoption): hold a Runtime release whose tag evidence failed or never ran
92
+ - fix(adoption): gate stable-major candidates against installed versions
93
+ - feat(app-grade): probes take a method and JSON body (#1208)
94
+
7
95
  ## [1.0.24] — 2026-11-08
8
96
 
9
97
  - test(multishot): judge default model and its price in runJudge
@@ -1,6 +1,6 @@
1
1
  import { d as CostReceipt } from "../cost-ledger-Czro9wmo.js";
2
- import { R as Scenario, d as DispatchContext, f as DispatchFn } from "../types-C9yEqDjQ.js";
3
- import "../index-IE8O0HNr.js";
2
+ import { R as Scenario, d as DispatchContext, f as DispatchFn } from "../types-ByrbgALT.js";
3
+ import "../index-D-0mg-eu.js";
4
4
  export interface HttpDispatchOptions<TScenario extends Scenario, _TArtifact> {
5
5
  /** Static endpoint URL. Mutually exclusive with `resolveUrl`. */
6
6
  url?: string;
@@ -1,6 +1,6 @@
1
1
  import { f as CostReceiptInput, m as CustomTokenPricing } from "./cost-ledger-Czro9wmo.js";
2
- import { Y as TraceAnalysisStore, i as AnalystFinding, m as EvidenceRef, p as AnalystUsageReceipt } from "./types-6GuPL-Vt.js";
3
- import { A as ChatResponse, k as ChatRequest } from "./cluster-CkzP4h3T.js";
2
+ import { Y as TraceAnalysisStore, i as AnalystFinding, m as EvidenceRef, p as AnalystUsageReceipt } from "./types-DbGSC2No.js";
3
+ import { A as ChatResponse, k as ChatRequest } from "./cluster-CSd0LE_M.js";
4
4
  import { AgentProfile, AgentProfile as AgentProfile$1, HarnessType, HarnessType as HarnessType$1 } from "@tangle-network/agent-interface";
5
5
  interface ExternalOptimizerProcessLimits {
6
6
  /** Maximum serialized input written for the child process. */
@@ -466,4 +466,4 @@ declare function agentProfileId(profile: AgentProfile): string;
466
466
  */
467
467
  declare function agentProfileHash(profile: AgentProfile): string;
468
468
  export { traceStoreEvidenceResolver as A, ExternalOptimizerModelCallRequest as B, AnalystEvidenceResolutionError as C, AnalystLatencyDistribution as D, AnalystIssueExpectation as E, ExternalOptimizerEndpointFormat as F, ExternalOptimizerRunnerCommand as G, ExternalOptimizerModelExecutionObservation as H, ExternalOptimizerEvaluationObservation as I, ExternalTextEvaluationRequest as J, ExternalOptimizerWireCounts as K, ExternalOptimizerEvaluationRefusalReason as L, DEFAULT_EXTERNAL_OPTIMIZER_PROCESS_LIMITS as M, ExternalOptimizerCallbackLimits as N, RunAnalystBenchmarkOptions as O, ExternalOptimizerChatRequest as P, ExternalOptimizerModelBudget as R, AnalystEvidenceResolution as S, AnalystFindingScore as T, ExternalOptimizerProcessLimits as U, ExternalOptimizerModelCallResult as V, ExternalOptimizerResumeMode as W, AnalystBenchmarkProvenance as _, ProfileAxisSpec as a, AnalystBenchmarkSummary as b, expandProfileAxes as c, AnalystBenchmarkDatasetRef as d, AnalystBenchmarkDescriptor as f, AnalystBenchmarkOutput as g, AnalystBenchmarkObservation as h, HarnessType$1 as i, DEFAULT_EXTERNAL_OPTIMIZER_CALLBACK_LIMITS as j, runAnalystBenchmark as k, harnessAxisOf as l, AnalystBenchmarkLabelState as m, CODING_HARNESSES as n, agentProfileHash as o, AnalystBenchmarkError as p, ExternalTextCandidate as q, HARNESS_NATIVE_MODEL as r, agentProfileId as s, AgentProfile$1 as t, AnalystBenchmarkCase as u, AnalystBenchmarkResult as v, AnalystEvidenceResolver as w, AnalystEvidenceExpectation as x, AnalystBenchmarkRunner as y, ExternalOptimizerModelCall as z };
469
- //# sourceMappingURL=agent-profile-DC_v4p1f.d.ts.map
469
+ //# sourceMappingURL=agent-profile-BF1WLMco.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"agent-profile-DC_v4p1f.d.ts","names":["_$___cost_ledger0.CostReceiptInput"],"sources":["../src/campaign/external-optimizer-contracts.ts","../src/analyst/benchmark.ts","../src/agent-profile.ts"],"mappings":";;;;UAciB;;EAEf;;EAEA;;EAEA;;cAGW,2CAA2C,SAAS;UAOhD;;EAEf;;EAEA;;cAGW,4CAA4C,SAAS;UAMjD;EACf;EACA;EACA,MAAM,OAAO;;EAEb,SAAS,QAAQ;;KAGP;KAEA,iCAAiC;UAE5B;EACf,WAAW;EACX;;KAqDG,aAAa,KAAK,eAAc,6BACjC,IACA,0BAA0B,gBACf,aAAa,OACtB,+BACc,WAAW,IAAI,aAAa,EAAE,SAC1C;;KAGI,+BAA+B,aACzC,KAAK;EAA0B;;KAGrB;;UAMK;;WAEN;;WAEA,SAAS;;WAET,iBAAiB;WACjB,QAAQ;;;KAIP;WAEG;;WAEA,UAAU;;;;;;;WAOV,SAPUA;;WASV;;WAGA;;WAEA;;WAEA,SATkCA;;WAWlC;;;;;;;;;;;;KAaH,8BACV,SAAS,sCACN,QAAQ;;KAGD;WAEG;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAGA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;KAGH;;;;;;KAUA;WAEG;WACA;WACA,WAAW;WACX;;WAGA;WACA;WACA,WAAW;WACX;WACA;;WAEA;WACA;;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;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA;;UAGe;EACf;EACA,UAAU;EACV;EACA,cAAc;EACd,WAAW;;UAGI,mCAAmC;EAClD;EACA;EACA;EACA;EACA;EACA;EACA;;UAGe;EACf,YAAY;EACZ,cAAc;EACd,WAAW;;UAGI,2BAA2B;EAC1C,gBAAgB,qBAAqB;EACrC,kBAAkB,uBAAuB;EACzC;EACA;EACA;EACA,kBAAkB,wBAAwB;EAC1C,YAAY;;EAEZ,+BAA+B;EAC/B,iBAAiB,aAAa,uCAAuC;EACrE,SAAS;;iBAGW,oBAAoB,QACxC,SAAS,2BAA2B,UACnC,QAAQ;;;;;;;;cCnQE,2BAA2B;UAOvB;;;EAGf,MAAM;;EAEN,qBAAqB;;;EAGrB;;;;;;EAMA;;;;;;;cAQW;;;;;;;;;;;;;;;;;;;iBAoBG,kBAAkB,MAAM,kBAAkB;;;;;;;;iBAkD1C,cACd,SAAS,KAAK;EACX,SAAS;EAAa;;;;;;;;;iBAiBX,eAAe,SAAS;;;;;;;;;;;iBAmDxB,iBAAiB,SAAS"}
1
+ {"version":3,"file":"agent-profile-BF1WLMco.d.ts","names":["_$___cost_ledger0.CostReceiptInput"],"sources":["../src/campaign/external-optimizer-contracts.ts","../src/analyst/benchmark.ts","../src/agent-profile.ts"],"mappings":";;;;UAciB;;EAEf;;EAEA;;EAEA;;cAGW,2CAA2C,SAAS;UAOhD;;EAEf;;EAEA;;cAGW,4CAA4C,SAAS;UAMjD;EACf;EACA;EACA,MAAM,OAAO;;EAEb,SAAS,QAAQ;;KAGP;KAEA,iCAAiC;UAE5B;EACf,WAAW;EACX;;KAqDG,aAAa,KAAK,eAAc,6BACjC,IACA,0BAA0B,gBACf,aAAa,OACtB,+BACc,WAAW,IAAI,aAAa,EAAE,SAC1C;;KAGI,+BAA+B,aACzC,KAAK;EAA0B;;KAGrB;;UAMK;;WAEN;;WAEA,SAAS;;WAET,iBAAiB;WACjB,QAAQ;;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qBAAqB;EACrB;EACA,eAAe;EACf,QAAQ;EACR,iBAAiB;EACjB,QAAQ;;UAGO;EACf;EACA;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA;EACA;EACA;EACA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;EAEA;;EAEA;;EAEA;;EAEA;EACA,WAAW;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA;;UAGe;EACf;EACA,UAAU;EACV;EACA,cAAc;EACd,WAAW;;UAGI,mCAAmC;EAClD;EACA;EACA;EACA;EACA;EACA;EACA;;UAGe;EACf,YAAY;EACZ,cAAc;EACd,WAAW;;UAGI,2BAA2B;EAC1C,gBAAgB,qBAAqB;EACrC,kBAAkB,uBAAuB;EACzC;EACA;EACA;EACA,kBAAkB,wBAAwB;EAC1C,YAAY;;EAEZ,+BAA+B;EAC/B,iBAAiB,aAAa,uCAAuC;EACrE,SAAS;;iBAGW,oBAAoB,QACxC,SAAS,2BAA2B,UACnC,QAAQ;;;;;;;;cCnQE,2BAA2B;UAOvB;;;EAGf,MAAM;;EAEN,qBAAqB;;;EAGrB;;;;;;EAMA;;;;;;;cAQW;;;;;;;;;;;;;;;;;;;iBAoBG,kBAAkB,MAAM,kBAAkB;;;;;;;;iBAkD1C,cACd,SAAS,KAAK;EACX,SAAS;EAAa;;;;;;;;;iBAiBX,eAAe,SAAS;;;;;;;;;;;iBAmDxB,iBAAiB,SAAS"}
@@ -1,20 +1,20 @@
1
1
  import { m as CustomTokenPricing, o as CostLedgerHandle } from "../cost-ledger-Czro9wmo.js";
2
- import { A as FindingParseOutcome, B as FindingTreatment, C as CalibrationInterval, D as FindingLayer, E as FindingEvidenceUnit, F as independentUnitCount, H as TreatmentLayer, I as lineageRoots, L as parseAnalystFinding, M as FindingScope, N as FindingScopeReading, O as FindingMeasure, P as ProposalFindingSchema, R as readFindingScope, S as makeProposalFinding, T as FindingCalibration, V as TREATMENT_LAYERS, Y as TraceAnalysisStore, _ as ExecutionProbeRequest, a as AnalystFindingSchemaVersion, b as computeFindingId, c as AnalystRunEvent, d as AnalystRunSummary, f as AnalystSeverity, g as ExecutionProbeOutcome, h as ExecutionProbe, i as AnalystFinding, j as FindingReaderLabel, k as FindingMethod, l as AnalystRunInputs, m as EvidenceRef, n as AnalystContext, o as AnalystInputKind, ot as TraceAnalystSpan, p as AnalystUsageReceipt, r as AnalystCost, s as AnalystRequirements, t as Analyst, u as AnalystRunResult, v as ProposalFinding, w as FINDING_LAYERS, x as makeFinding, y as ProposalFindingOrigin, z as FindingConditions } from "../types-6GuPL-Vt.js";
3
- import { A as ChatResponse, D as ChatCallOpts, F as MockTransportOpts, I as OpenAiCompatibleTransportOpts, L as SandboxSdkTransportOpts, M as CreateChatClientOpts, N as CustomTransportOpts, O as ChatClient, R as createChatClient, j as ChatTransport, k as ChatRequest, t as BootstrapInterval } from "../cluster-CkzP4h3T.js";
4
- import { Ft as NominalAgreementOptions } from "../index-BN6htPVi.js";
5
- import { A as traceStoreEvidenceResolver, C as AnalystEvidenceResolutionError, D as AnalystLatencyDistribution, E as AnalystIssueExpectation, G as ExternalOptimizerRunnerCommand, H as ExternalOptimizerModelExecutionObservation, O as RunAnalystBenchmarkOptions, S as AnalystEvidenceResolution, T as AnalystFindingScore, _ as AnalystBenchmarkProvenance, b as AnalystBenchmarkSummary, d as AnalystBenchmarkDatasetRef, f as AnalystBenchmarkDescriptor, g as AnalystBenchmarkOutput, h as AnalystBenchmarkObservation, k as runAnalystBenchmark, m as AnalystBenchmarkLabelState, p as AnalystBenchmarkError, t as AgentProfile, u as AnalystBenchmarkCase, v as AnalystBenchmarkResult, w as AnalystEvidenceResolver, x as AnalystEvidenceExpectation, y as AnalystBenchmarkRunner, z as ExternalOptimizerModelCall } from "../agent-profile-DC_v4p1f.js";
6
- import { C as BehavioralWindowPolicy, S as BehavioralTraceWindow, _ as BehavioralTraceEventMap, a as createTraceAnalyst, b as BehavioralTraceQuestionsOptions, c as BehavioralAnalystOptions, d as pinBehavioralFailureClass, f as BEHAVIORAL_TRACE_QUESTIONS, g as BehavioralTraceEvent, h as BehavioralTraceAnswer, i as TraceAnalystDefinition, l as assertFailureClasses, m as BehavioralQuestionCalibration, n as buildDefaultAnalystRegistry, o as runTraceAnalyst, p as BEHAVIORAL_TRACE_QUESTIONS_VERSION, r as CreateTraceAnalystOptions, s as BEHAVIORAL_FAILURE_CLASS, t as DefaultAnalystRegistryOptions, u as behavioralAnalyst, v as BehavioralTraceLayer, w as behavioralTraceQuestionDigest, x as BehavioralTraceSupport, y as BehavioralTraceQuestionId } from "../default-registry-C_Akmpui.js";
7
- import { a as ExactAnalystRunPolicySnapshot, c as ExactAnalystSnapshot, d as ExactExecutionComponentSnapshot, i as ExactAnalystRunEvent, l as ExactCapableAnalyst, n as ExactAnalystExecutionPlanSnapshot, o as ExactAnalystRunResult, r as ExactAnalystRunCompletion, s as ExactAnalystRunSummary, t as ExactAnalystBudgetSnapshot, u as ExactExecutionComponentIdentity } from "../exact-types-Blq7YvsK.js";
2
+ import { A as FindingParseOutcome, B as FindingTreatment, C as CalibrationInterval, D as FindingLayer, E as FindingEvidenceUnit, F as independentUnitCount, H as TreatmentLayer, I as lineageRoots, L as parseAnalystFinding, M as FindingScope, N as FindingScopeReading, O as FindingMeasure, P as ProposalFindingSchema, R as readFindingScope, S as makeProposalFinding, T as FindingCalibration, V as TREATMENT_LAYERS, Y as TraceAnalysisStore, _ as ExecutionProbeRequest, a as AnalystFindingSchemaVersion, b as computeFindingId, c as AnalystRunEvent, d as AnalystRunSummary, f as AnalystSeverity, g as ExecutionProbeOutcome, h as ExecutionProbe, i as AnalystFinding, j as FindingReaderLabel, k as FindingMethod, l as AnalystRunInputs, m as EvidenceRef, n as AnalystContext, o as AnalystInputKind, ot as TraceAnalystSpan, p as AnalystUsageReceipt, r as AnalystCost, s as AnalystRequirements, t as Analyst, u as AnalystRunResult, v as ProposalFinding, w as FINDING_LAYERS, x as makeFinding, y as ProposalFindingOrigin, z as FindingConditions } from "../types-DbGSC2No.js";
3
+ import { A as ChatResponse, D as ChatCallOpts, F as MockTransportOpts, I as OpenAiCompatibleTransportOpts, L as SandboxSdkTransportOpts, M as CreateChatClientOpts, N as CustomTransportOpts, O as ChatClient, R as createChatClient, j as ChatTransport, k as ChatRequest, t as BootstrapInterval } from "../cluster-CSd0LE_M.js";
4
+ import { Ft as NominalAgreementOptions } from "../index-DHWFYUVW.js";
5
+ import { A as traceStoreEvidenceResolver, C as AnalystEvidenceResolutionError, D as AnalystLatencyDistribution, E as AnalystIssueExpectation, G as ExternalOptimizerRunnerCommand, H as ExternalOptimizerModelExecutionObservation, O as RunAnalystBenchmarkOptions, S as AnalystEvidenceResolution, T as AnalystFindingScore, _ as AnalystBenchmarkProvenance, b as AnalystBenchmarkSummary, d as AnalystBenchmarkDatasetRef, f as AnalystBenchmarkDescriptor, g as AnalystBenchmarkOutput, h as AnalystBenchmarkObservation, k as runAnalystBenchmark, m as AnalystBenchmarkLabelState, p as AnalystBenchmarkError, t as AgentProfile, u as AnalystBenchmarkCase, v as AnalystBenchmarkResult, w as AnalystEvidenceResolver, x as AnalystEvidenceExpectation, y as AnalystBenchmarkRunner, z as ExternalOptimizerModelCall } from "../agent-profile-BF1WLMco.js";
6
+ import { C as BehavioralWindowPolicy, S as BehavioralTraceWindow, _ as BehavioralTraceEventMap, a as createTraceAnalyst, b as BehavioralTraceQuestionsOptions, c as BehavioralAnalystOptions, d as pinBehavioralFailureClass, f as BEHAVIORAL_TRACE_QUESTIONS, g as BehavioralTraceEvent, h as BehavioralTraceAnswer, i as TraceAnalystDefinition, l as assertFailureClasses, m as BehavioralQuestionCalibration, n as buildDefaultAnalystRegistry, o as runTraceAnalyst, p as BEHAVIORAL_TRACE_QUESTIONS_VERSION, r as CreateTraceAnalystOptions, s as BEHAVIORAL_FAILURE_CLASS, t as DefaultAnalystRegistryOptions, u as behavioralAnalyst, v as BehavioralTraceLayer, w as behavioralTraceQuestionDigest, x as BehavioralTraceSupport, y as BehavioralTraceQuestionId } from "../default-registry-DoIBhuS-.js";
7
+ import { a as ExactAnalystRunPolicySnapshot, c as ExactAnalystSnapshot, d as ExactExecutionComponentSnapshot, i as ExactAnalystRunEvent, l as ExactCapableAnalyst, n as ExactAnalystExecutionPlanSnapshot, o as ExactAnalystRunResult, r as ExactAnalystRunCompletion, s as ExactAnalystRunSummary, t as ExactAnalystBudgetSnapshot, u as ExactExecutionComponentIdentity } from "../exact-types-DEnrf7NX.js";
8
8
  import { g as SystemOneState } from "../systemone-protocol-C4t7JH4Y.js";
9
- import { B as DiffPolicy, F as FindingsTimeStep, H as FindingsStore, I as LedgerFinding, L as diffFindingsOverTime, M as FindingsLedgerOutcome, N as FindingsLedgerRead, P as FindingsQuery, R as openFindingsLedger, U as PersistedFinding, V as FindingsDiff, W as diffFindings, j as FindingsLedger, r as SystemOneEvaluatorOptions, z as queryFindings } from "../systemone-DFUN9DL1.js";
10
- import { a as RAW_FINDING_SCHEMA_PROMPT, c as RawAnalystFindingSchema, i as TraceAnalystLimits, l as evidenceRefsFromRawFinding, n as TraceAnalysisEngineRequest, o as RawAnalystEvidence, r as TraceAnalysisEngineResult, s as RawAnalystFinding, t as TraceAnalysisEngine, u as parseRawFinding } from "../engine-B0gr15-l.js";
11
- import { n as buildTraceToolsForGroup, t as TraceToolGroupName } from "../tool-groups-Dpl3picW.js";
12
- import { a as BudgetPolicy, c as RegistryRunOpts, i as AnalystRegistryOptions, n as ExactAnalystRunExecutionError, o as ExactAnalystBudgetPolicy, r as AnalystHooks, s as ExactRegistryRunOpts, t as AnalystRegistry } from "../registry-Pfeqsr5k.js";
13
- import { T as SemanticConceptJudgeOptions, _ as DspyRlmTraceEngineOptions, a as FAILURE_MODE_KIND_SPEC, b as createChatTraceEngine, c as emitControlIntegrityFindings, d as FindingSubject, f as FindingSubjectKind, g as renderFindingSubject, h as parseFindingSubject, i as IMPROVEMENT_KIND_SPEC, l as FINDING_SUBJECT_KINDS, m as findingSubjectGrammarPromptFor, n as KNOWLEDGE_POISONING_KIND_SPEC, o as CONTROL_INTEGRITY_ANALYST, p as KIND_EXPECTED_SUBJECTS, r as KNOWLEDGE_GAP_KIND_SPEC, s as ControlIntegrityAnalyst, t as DEFAULT_TRACE_ANALYST_KINDS, u as FINDING_SUBJECT_SYNTAX, v as createDspyRlmTraceEngine, y as ChatTraceEngineOptions } from "../index-CxuK3sxA.js";
14
- import { C as runPrimeExchange, D as ReplyRowDecoded, E as ReplyEnvelope, O as ReplyRowRejection, S as projectPrimeTrajectory, T as ReplyContract, _ as buildPrimePrompt, a as PrimeProjectionOutcome, b as normalizePrimeUsage, c as PrimeProtocolIdentity, d as PrimeRepairPromptSpec, f as PrimeRepairState, g as analystUsageReceiptFromPrimeUsage, h as PrimeTurnRecord, i as PrimeProjectionDelivery, l as PrimeRawUsage, m as PrimeRowDecoded, n as PrimeExchangeOutcome, o as PrimeProjectionSource, p as PrimeReplyContract, r as PrimeFailure, s as PrimePromptSpec, t as PrimeExchangeOptions, u as PrimeRejectedRow, v as buildPrimeRepairPrompt, w as DecodedReply, x as primeProtocolSha256, y as mergePrimeRawUsage } from "../prime-protocol-bRbh6dqd.js";
9
+ import { B as DiffPolicy, F as FindingsTimeStep, H as FindingsStore, I as LedgerFinding, L as diffFindingsOverTime, M as FindingsLedgerOutcome, N as FindingsLedgerRead, P as FindingsQuery, R as openFindingsLedger, U as PersistedFinding, V as FindingsDiff, W as diffFindings, j as FindingsLedger, r as SystemOneEvaluatorOptions, z as queryFindings } from "../systemone-CSwi1hp-.js";
10
+ import { a as RAW_FINDING_SCHEMA_PROMPT, c as RawAnalystFindingSchema, i as TraceAnalystLimits, l as evidenceRefsFromRawFinding, n as TraceAnalysisEngineRequest, o as RawAnalystEvidence, r as TraceAnalysisEngineResult, s as RawAnalystFinding, t as TraceAnalysisEngine, u as parseRawFinding } from "../engine-CPBhCLJR.js";
11
+ import { n as buildTraceToolsForGroup, t as TraceToolGroupName } from "../tool-groups-Bcasvncd.js";
12
+ import { a as BudgetPolicy, c as RegistryRunOpts, i as AnalystRegistryOptions, n as ExactAnalystRunExecutionError, o as ExactAnalystBudgetPolicy, r as AnalystHooks, s as ExactRegistryRunOpts, t as AnalystRegistry } from "../registry-BqoX13FD.js";
13
+ import { T as SemanticConceptJudgeOptions, _ as DspyRlmTraceEngineOptions, a as FAILURE_MODE_KIND_SPEC, b as createChatTraceEngine, c as emitControlIntegrityFindings, d as FindingSubject, f as FindingSubjectKind, g as renderFindingSubject, h as parseFindingSubject, i as IMPROVEMENT_KIND_SPEC, l as FINDING_SUBJECT_KINDS, m as findingSubjectGrammarPromptFor, n as KNOWLEDGE_POISONING_KIND_SPEC, o as CONTROL_INTEGRITY_ANALYST, p as KIND_EXPECTED_SUBJECTS, r as KNOWLEDGE_GAP_KIND_SPEC, s as ControlIntegrityAnalyst, t as DEFAULT_TRACE_ANALYST_KINDS, u as FINDING_SUBJECT_SYNTAX, v as createDspyRlmTraceEngine, y as ChatTraceEngineOptions } from "../index-AjfEHHA8.js";
14
+ import { C as runPrimeExchange, D as ReplyRowDecoded, E as ReplyEnvelope, O as ReplyRowRejection, S as projectPrimeTrajectory, T as ReplyContract, _ as buildPrimePrompt, a as PrimeProjectionOutcome, b as normalizePrimeUsage, c as PrimeProtocolIdentity, d as PrimeRepairPromptSpec, f as PrimeRepairState, g as analystUsageReceiptFromPrimeUsage, h as PrimeTurnRecord, i as PrimeProjectionDelivery, l as PrimeRawUsage, m as PrimeRowDecoded, n as PrimeExchangeOutcome, o as PrimeProjectionSource, p as PrimeReplyContract, r as PrimeFailure, s as PrimePromptSpec, t as PrimeExchangeOptions, u as PrimeRejectedRow, v as buildPrimeRepairPrompt, w as DecodedReply, x as primeProtocolSha256, y as mergePrimeRawUsage } from "../prime-protocol-RUPtoYiI.js";
15
15
  import { i as nodeHttpPrimeBridgeTransport, n as PrimeBridgeTransportRequest, r as PrimeBridgeTransportResult, t as PrimeBridgeTransport } from "../prime-bridge-transport-Cfqir_Im.js";
16
- import { b as SupervisorRunSources } from "../types-CwHU7U9J.js";
17
- import { a as askTraceQuestions, i as VerifiedTraceFinding, n as TraceQuestionOutcome, r as TraceQuestionSpec, t as AskTraceQuestionsOptions } from "../trace-questions-oT2fZWJ8.js";
16
+ import { b as SupervisorRunSources } from "../types-CLGrB4Sv.js";
17
+ import { a as askTraceQuestions, i as VerifiedTraceFinding, n as TraceQuestionOutcome, r as TraceQuestionSpec, t as AskTraceQuestionsOptions } from "../trace-questions-DI42jXPj.js";
18
18
  import { z } from "zod";
19
19
  interface SemanticConceptJudgeAdapterOpts {
20
20
  id?: string;
@@ -7,7 +7,7 @@ import { a as makeProposalFinding, i as makeFinding, r as computeFindingId } fro
7
7
  import { t as assertProposalFindings } from "../proposal-findings-CS6LoGGp.js";
8
8
  import { A as RawAnalystFindingSchema, B as parseFindingSubject, F as stripCodeFences, I as FINDING_SUBJECT_KINDS, L as FINDING_SUBJECT_SYNTAX, M as parseRawFinding, N as parseTraceSpanEvidenceUri, R as KIND_EXPECTED_SUBJECTS, V as renderFindingSubject, j as evidenceRefsFromRawFinding, k as RAW_FINDING_SCHEMA_PROMPT, n as runTraceAnalyst, r as buildTraceToolsForGroup, t as createTraceAnalyst, z as findingSubjectGrammarPromptFor } from "../kind-factory-CJXaE1oF.js";
9
9
  import { _ as behavioralTraceSupportSchema, a as KNOWLEDGE_POISONING_KIND_SPEC, b as behavioralTraceQuestionDigest, c as FAILURE_MODE_KIND_SPEC, d as emitControlIntegrityFindings, f as BEHAVIORAL_FAILURE_CLASS, g as validBehavioralCalibration, h as pinBehavioralFailureClass, i as DEFAULT_TRACE_ANALYST_KINDS, l as CONTROL_INTEGRITY_ANALYST, m as behavioralAnalyst, n as AnalystRegistry, o as KNOWLEDGE_GAP_KIND_SPEC, p as assertFailureClasses, r as ExactAnalystRunExecutionError, s as IMPROVEMENT_KIND_SPEC, t as buildDefaultAnalystRegistry, u as ControlIntegrityAnalyst, v as BEHAVIORAL_TRACE_QUESTIONS, y as BEHAVIORAL_TRACE_QUESTIONS_VERSION } from "../default-registry-D-xd7KxV.js";
10
- import { n as createChatClient } from "../chat-client-9XLgWrQ7.js";
10
+ import { n as createChatClient } from "../chat-client-PJEzoot9.js";
11
11
  import { t as createDspyRlmTraceEngine } from "../dspy-rlm-engine-BS_jxE0P.js";
12
12
  import { n as diffFindings, r as createChatTraceEngine, t as FindingsStore } from "../findings-store-CTy71Lnr.js";
13
13
  import { m as validDecisionIdentity, o as systemOneAnalyst, t as DECISION_POINT_AUC_BAR } from "../decision-point-CQOczIIH.js";
@@ -1,9 +1,9 @@
1
1
  import { o as FailureClass } from "./schema-CkIvnmLU.js";
2
2
  import { a as RunRecord, u as RunTerminalOutcome } from "./run-record-pBlhZizT.js";
3
- import { Ht as ContinuousAgreement } from "./index-BN6htPVi.js";
3
+ import { Ht as ContinuousAgreement } from "./index-DHWFYUVW.js";
4
4
  import { r as DatasetScenario } from "./dataset-DThC1S6G.js";
5
- import { f as ParetoFigureSpec, l as GainDistributionBin } from "./summary-report-vdhE20Zf.js";
6
- import { t as AnalystRegistry } from "./registry-Pfeqsr5k.js";
5
+ import { f as ParetoFigureSpec, l as GainDistributionBin } from "./summary-report-9kwI6jFQ.js";
6
+ import { t as AnalystRegistry } from "./registry-BqoX13FD.js";
7
7
  interface InsightReport {
8
8
  /** Number of runs analyzed. */
9
9
  n: number;
@@ -480,4 +480,4 @@ interface AnalyzeRunsOptions {
480
480
  }
481
481
  declare function analyzeRuns(opts: AnalyzeRunsOptions): Promise<InsightReport>;
482
482
  export { ReleaseSummary as _, summarizeExecution as a, ExecutionInsight as c, InsightReport as d, InterRaterInsight as f, Recommendation as g, OutcomeCorrelationInsight as h, SummarizeExecutionOptions as i, FailureClassTally as l, LiftInsight as m, analyzeRuns as n, CostProvenanceSummary as o, JudgeInsight as p, ExecutionReport as r, ExecutionErrorOutcomeCell as s, AnalyzeRunsOptions as t, FailureClusterInsight as u, ScalarDistribution as v, TokenUsageInsight as y };
483
- //# sourceMappingURL=analyze-runs-DGr7mpC3.d.ts.map
483
+ //# sourceMappingURL=analyze-runs-BaziIw93.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"analyze-runs-DGr7mpC3.d.ts","names":[],"sources":["../src/contract/insight-report.ts","../src/contract/execution-insight.ts","../src/contract/analyze-runs.ts"],"mappings":";;;;;;UAqCiB;;EAEf;;;;EAKA,WAAW;;EAGX,WAAW;;;EAIX,cAAc,eAAe;;EAG7B;IACE,MAAM;IACN,QAAQ;;;;;IAKR,aAAa;;;;;IAKb;MAAa;MAAe;;;;;;EAM9B,QAAQ,eAAe;;;;EAKvB,aAAa;;;;EAKb,OAAO;;;EAIP,kBAAkB;;;EAIlB,gBAAgB;;;;;EAMhB,qBAAqB;;;;;EAMrB,SAAS;;;;;;EAOT,wBAAwB;;;;EAKxB,iBAAiB;;;EAIjB,iBAAiB;;UAGF;EACf;IAAY;IAAW;;EACvB;IAAa;IAAW;;;;EAGxB;IAAc;IAAW;;EACzB;IAAc;;EACd;;UAGe;;EAEf,YAAY;;EAEZ,SAAS;;;EAGT,YAAY;;;EAGZ;IACE;IACA,YAAY;IACZ,SAAS;IACT;;;EAGF,QAAQ;IAAQ;IAAe;;;;;EAI/B;IACE;IACA;IACA;;;;;EAKF;IACE;;;IAGA;;IAEA;;IAEA;;IAEA;;IAEA;;;;;IAKA,mBAAmB,OAAO,oBAAoB;;;;EAIhD;IACE;IACA;IACA;IACA;IACA;;;UAIa;;EAEf;;EAEA;;EAEA;;UAGe;EACf,OAAO;EACP,QAAQ;EACR,WAAW;EACX,QAAQ;EACR,YAAY;EACZ;IACE;IACA;IACA;IACA;IACA;;;;UAOa;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA,WAAW;;;;;EAKX,WAAW;IAAQ;IAAe;;;UAGnB;;EAEf;;EAEA;;;EAGA,cAAc;;;EAGd;;;EAGA;;;EAGA;;UAGe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA,SAAS;;EAET,mBAAmB;IACjB;IACA,SAAS;MAAQ;MAAe;;IAChC;;;UAIa;EACf;EACA;;EAEA;;EAEA;;;EAGA;;EAEA;;EAEA;;EAEA;;EAEA;;;;;;;;;;;EAWA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;UAGe;;EAEf,UAAU;IACR;IACA;;IAEA;;IAEA;;IAEA;;EAEF;;;;;UAMe;;EAEf,cAAc;;EAEd;;EAEA;;UAGe;;EAEf;;;EAGA;EACA,UAAU;IAAQ;IAAe;IAAgB;;;UAGlC;;;EAGf;;EAEA;;EAEA;;EAEA;;EAEA;IACE;IACA;IACA;;;UAIa;;;EAGf;EACA,MAAM;IACJ;IACA;IACA;;;;EAIF;;UAGQ;;EAER;;EAEA;;;;EAIA;;EAEA;EACA;;KAGU,eACP;EACC;;EAEA;;EAEA;;EAEA;;EAEA;MAED;EACC;;EAEA;EACA;EACA;EACA;;UAGW;;EAEf;EACA;;EAEA;;;;EAIA,SAAS,eAAe;;;EAGxB;;EAEA;;EAEA;;UAGe;EACf;EACA;EACA;EACA;;EAEA;;UCzbe;EACf,MAAM;EACN;;UAGe;EACf,WAAW;EACX,gBAAgB;;;iBAIF,mBAAmB,MAAM,4BAA4B;UC4BpD;;EAEf,MAAM;;;EAGN;;;;;EAKA;EACA;;;EAGA,8BAA8B;;;EAG9B,kBAAkB;;;EAGlB,UAAU;;;;EAIV;IACE;IACA,cAAc;;;;;EAKhB,cAAc;IAAQ;IAAe;IAAe;;;EAEpD;;;;EAIA;;;;;;;;;EASA,eAAe;;;EAGf;;iBAGoB,YAAY,MAAM,qBAAqB,QAAQ"}
1
+ {"version":3,"file":"analyze-runs-BaziIw93.d.ts","names":[],"sources":["../src/contract/insight-report.ts","../src/contract/execution-insight.ts","../src/contract/analyze-runs.ts"],"mappings":";;;;;;UAqCiB;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;IAEA;;IAEA;;IAEA;;EAEF;;;;;UAMe;;EAEf,cAAc;;EAEd;;EAEA;;UAGe;;EAEf;;;EAGA;EACA,UAAU;IAAQ;IAAe;IAAgB;;;UAGlC;;;EAGf;;EAEA;;EAEA;;EAEA;;EAEA;IACE;IACA;IACA;;;UAIa;;;EAGf;EACA,MAAM;IACJ;IACA;IACA;;;;EAIF;;UAGQ;;EAER;;EAEA;;;;EAIA;;EAEA;EACA;;KAGU,eACP;EACC;;EAEA;;EAEA;;EAEA;;EAEA;MAED;EACC;;EAEA;EACA;EACA;EACA;;UAGW;;EAEf;EACA;;EAEA;;;;EAIA,SAAS,eAAe;;;EAGxB;;EAEA;;EAEA;;UAGe;EACf;EACA;EACA;EACA;;EAEA;;UCzbe;EACf,MAAM;EACN;;UAGe;EACf,WAAW;EACX,gBAAgB;;;iBAIF,mBAAmB,MAAM,4BAA4B;UC4BpD;;EAEf,MAAM;;;EAGN;;;;;EAKA;EACA;;;EAGA,8BAA8B;;;EAG9B,kBAAkB;;;EAGlB,UAAU;;;;EAIV;IACE;IACA,cAAc;;;;;EAKhB,cAAc;IAAQ;IAAe;IAAe;;;EAEpD;;;;EAIA;;;;;;;;;EASA,eAAe;;;EAGf;;iBAGoB,YAAY,MAAM,qBAAqB,QAAQ"}
@@ -1,9 +1,9 @@
1
1
  import { m as CustomTokenPricing, t as CostLedger } from "../cost-ledger-Czro9wmo.js";
2
- import "../index-Dodw93oW.js";
3
- import { O as ChatClient, j as ChatTransport } from "../cluster-CkzP4h3T.js";
2
+ import "../index-C8a9Dyan.js";
3
+ import { O as ChatClient, j as ChatTransport } from "../cluster-CSd0LE_M.js";
4
4
  import { d as SystemOneRequest, g as SystemOneState, s as SystemOneQuestions } from "../systemone-protocol-C4t7JH4Y.js";
5
- import "../systemone-DFUN9DL1.js";
6
- import { a as SystemOneReviewReport, r as SystemOneReviewCheck, t as PreparedSystemOneReview } from "../systemone-review-4CKmHvr5.js";
5
+ import "../systemone-CSwi1hp-.js";
6
+ import { a as SystemOneReviewReport, r as SystemOneReviewCheck, t as PreparedSystemOneReview } from "../systemone-review-WpWosn3a.js";
7
7
  import { IncomingHttpHeaders, OutgoingHttpHeaders } from "node:http";
8
8
  import { Browser, BrowserContext, Locator, Page } from "playwright";
9
9
  /**
@@ -1,8 +1,8 @@
1
1
  import { c as RunSplitTag } from "../run-record-pBlhZizT.js";
2
- import "../index-cp5gkylN.js";
3
- import { a as CampaignResult } from "../types-C9yEqDjQ.js";
4
- import { Wt as CampaignStorage } from "../search-kernel-6P1dRpJ4.js";
5
- import { a as BenchmarkFamily, c as BenchmarkSource, i as BenchmarkEvaluation, l as BenchmarkTaskKind, n as BenchmarkAdapter, o as BenchmarkResponder, r as BenchmarkDatasetItem, s as BenchmarkScenario, t as BENCHMARK_SPLIT_SEED, u as deterministicSplit } from "../types-CP3rkpir.js";
2
+ import "../index-BI9ecONy.js";
3
+ import { S as JudgeConfig, a as CampaignResult } from "../types-ByrbgALT.js";
4
+ import { Wt as CampaignStorage } from "../search-kernel-C4XnLKIW.js";
5
+ import { a as BenchmarkFamily, c as BenchmarkSource, i as BenchmarkEvaluation, l as BenchmarkTaskKind, n as BenchmarkAdapter, o as BenchmarkResponder, r as BenchmarkDatasetItem, s as BenchmarkScenario, t as BENCHMARK_SPLIT_SEED, u as deterministicSplit } from "../types-CEgIBy0W.js";
6
6
  interface BenchmarkMetricCalibrationOptions<TPayload = unknown, TArtifact = string> {
7
7
  adapter: BenchmarkAdapter<BenchmarkDatasetItem<TPayload>, TPayload, TArtifact>;
8
8
  item: BenchmarkDatasetItem<TPayload>;
@@ -88,6 +88,29 @@ interface HarborBenchmarkAdapter<TArtifact> extends BenchmarkAdapter<HarborTaskI
88
88
  }
89
89
  /** Import a Harbor dataset checkout as a `BenchmarkAdapter` whose scorer is the dataset's own verifier. */
90
90
  export declare function createHarborBenchmarkAdapter<TArtifact = string>(options: HarborBenchmarkOptions<TArtifact>): HarborBenchmarkAdapter<TArtifact>;
91
+ /**
92
+ * `retries` counts extra runs after one with no reward (default 2); `maxDetailChars` bounds
93
+ * `JSON.stringify(detail).length` (default 2000); `timeoutMs` bounds one `harbor run`; `keepImage`
94
+ * (default true) passes `--no-delete` so the next grade reuses the built task image.
95
+ */
96
+ interface HarborPatchGradeOptions {
97
+ harborBin?: string;
98
+ jobsDir?: string;
99
+ retries?: number;
100
+ maxDetailChars?: number;
101
+ timeoutMs?: number;
102
+ env?: Record<string, string>;
103
+ keepImage?: boolean;
104
+ }
105
+ /**
106
+ * A `grade` callback that scores `{ patch }` with the task's own verifier: Harbor's oracle agent
107
+ * runs a `solution/solve.sh` that applies the patch (`git apply --binary`) in the environment's
108
+ * working directory, on a copy of the task. An empty patch changes nothing. A run with no reward
109
+ * is retried, then reported as `succeeded: false`, never as a reward of 0.
110
+ */
111
+ export declare function gradeHarborPatch(options?: HarborPatchGradeOptions): (item: HarborTaskItem, artifact: {
112
+ patch: string;
113
+ }) => Promise<HarborGradeOutcome>;
91
114
  /**
92
115
  * Synthetic routing dataset. 16 tasks across 4 categories. Used as a
93
116
  * deterministic, dependency-free benchmark for any router that maps a
@@ -209,6 +232,8 @@ interface BenchmarkRunResult<TPayload = unknown, TArtifact = string> {
209
232
  reportMarkdownPath: string;
210
233
  }
211
234
  export declare function runBenchmarkAdapter<TPayload = unknown, TArtifact = string>(options: BenchmarkRunOptions<TPayload, TArtifact>): Promise<BenchmarkRunResult<TPayload, TArtifact>>;
235
+ export declare function benchmarkScenarios<TPayload>(adapter: BenchmarkAdapter<BenchmarkDatasetItem<TPayload>, TPayload, unknown>, splits?: readonly RunSplitTag[]): Promise<Array<BenchmarkScenario<TPayload>>>;
236
+ export declare function benchmarkJudge<TPayload, TArtifact>(adapter: BenchmarkAdapter<BenchmarkDatasetItem<TPayload>, TPayload, TArtifact>): JudgeConfig<TArtifact, BenchmarkScenario<TPayload>>;
212
237
  interface StandardRetrievalDocument {
213
238
  id: string;
214
239
  title?: string;
@@ -284,5 +309,5 @@ export declare function evaluateStandardRetrieval(payload: StandardRetrievalPayl
284
309
  expectedScores: Record<string, number>;
285
310
  };
286
311
  };
287
- export { BENCHMARK_SPLIT_SEED, type BenchmarkAdapter, type BenchmarkDatasetItem, type BenchmarkDistribution, type BenchmarkEvaluation, type BenchmarkFamily, type BenchmarkMetricCalibrationOptions, type BenchmarkMetricCalibrationResult, type BenchmarkReport, type BenchmarkResponder, type BenchmarkRunOptions, type BenchmarkRunResult, type BenchmarkScenario, type BenchmarkSliceSummary, type BenchmarkSource, type BenchmarkTaskKind, type BuildStandardRetrievalItemsOptions, type HarborBenchmarkAdapter, type HarborBenchmarkOptions, type HarborGradeOutcome, type HarborTaskItem, type HarborTaskPayload, type RetrievalIdAdapterOptions, type StandardRetrievalArtifact, type StandardRetrievalDocument, type StandardRetrievalEvaluationOptions, type StandardRetrievalPayload, type StandardRetrievalQrel, type StandardRetrievalQuery, type StandardRetrievalResult, deterministicSplit, index_d_exports as routing };
312
+ export { BENCHMARK_SPLIT_SEED, type BenchmarkAdapter, type BenchmarkDatasetItem, type BenchmarkDistribution, type BenchmarkEvaluation, type BenchmarkFamily, type BenchmarkMetricCalibrationOptions, type BenchmarkMetricCalibrationResult, type BenchmarkReport, type BenchmarkResponder, type BenchmarkRunOptions, type BenchmarkRunResult, type BenchmarkScenario, type BenchmarkSliceSummary, type BenchmarkSource, type BenchmarkTaskKind, type BuildStandardRetrievalItemsOptions, type HarborBenchmarkAdapter, type HarborBenchmarkOptions, type HarborGradeOutcome, type HarborPatchGradeOptions, type HarborTaskItem, type HarborTaskPayload, type RetrievalIdAdapterOptions, type StandardRetrievalArtifact, type StandardRetrievalDocument, type StandardRetrievalEvaluationOptions, type StandardRetrievalPayload, type StandardRetrievalQrel, type StandardRetrievalQuery, type StandardRetrievalResult, deterministicSplit, index_d_exports as routing };
288
313
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/benchmarks/calibration.ts","../../src/benchmarks/harbor.ts","../../src/benchmarks/routing/dataset.ts","../../src/benchmarks/routing/index.ts","../../src/benchmarks/runner.ts","../../src/benchmarks/standard-formats.ts"],"mappings":";;;;;UAEiB,kCAAkC,oBAAoB;EACrE,SAAS,iBAAiB,qBAAqB,WAAW,UAAU;EACpE,MAAM,qBAAqB;EAC3B,cAAc;EACd,gBAAgB;EAChB;EACA;EACA;;UAGe;EACf;EACA,MAAM;EACN,QAAQ;EACR;EACA;EACA;EACA;;wBAGoB,yBAAyB,oBAAoB,oBACjE,SAAS,kCAAkC,UAAU,aACpD,QAAQ;;UCKM;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;IACE;IACA;IACA;IACA;;;EAGF;;EAEA;;EAEA;;EAEA;;KAGU,iBAAiB,qBAAqB;;KAGtC;EACN;EAAiB;IAAS;IAAgB;;;EAC1C;EAAkB;;UAEP,uBAAuB;;EAEtC;;EAEA;;EAEA,QAAQ;IAAoB;;;EAE5B;;EAEA,QAAQ,MAAM,gBAAgB,UAAU,cAAc,QAAQ;;EAE9D,eAAe,mBAAmB;;;UAInB,uBAAuB,mBAC9B,iBAAiB,gBAAgB,mBAAmB;EAC5D,WAAW,QAAQ;;;wBA0DL,6BAA6B,oBAC3C,SAAS,uBAAuB,aAC/B,uBAAuB;;;;;;;;;;;;;;;;;;;;;;UC5HT;EACf;EACA;EACA;;EAEA;;EAEA;;EAEA;;cAGW,iBAAiB;;;;KChBlB,iBAAiB;KACjB,qBAAqB,qBAAqB;cAEhD,0BAA0B,iBAAiB,oBAAoB;WAC1D;WACA;WACA;WACA;WACA;EAEH,YAAY,OAAO,cAAc,QAAQ;EAMzC,SAAS,MAAM,oBAAoB,mBAAmB,QAAQ;EAqBpE,YAAY,iBAAiB;;;;;;;;iBAef,mBAAmB;cAOtB,cAAW,OAjDG,gBAAc,QAAQ;cAkDpC,WAAQ,MA5CE,oBAAkB,qBAAqB,QAAQ;cA6CzD,cAAW,mBAxBO;UChCd,oBAAoB,oBA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V,UAAS"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/benchmarks/calibration.ts","../../src/benchmarks/harbor.ts","../../src/benchmarks/routing/dataset.ts","../../src/benchmarks/routing/index.ts","../../src/benchmarks/runner.ts","../../src/benchmarks/standard-formats.ts"],"mappings":";;;;;UAEiB,kCAAkC,oBAAoB;EACrE,SAAS,iBAAiB,qBAAqB,WAAW,UAAU;EACpE,MAAM,qBAAqB;EAC3B,cAAc;EACd,gBAAgB;EAChB;EACA;EACA;;UAGe;EACf;EACA,MAAM;EACN,QAAQ;EACR;EACA;EACA;EACA;;wBAGoB,yBAAyB,oBAAoB,oBACjE,SAAS,kCAAkC,UAAU,aACpD,QAAQ;;UCWM;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;IACE;IACA;IACA;IACA;;;EAGF;;EAEA;;EAEA;;EAEA;;KAGU,iBAAiB,qBAAqB;;KAGtC;EACN;EAAiB;IAAS;IAAgB;;;EAC1C;EAAkB;;UAEP,uBAAuB;;EAEtC;;EAEA;;EAEA,QAAQ;IAAoB;;;EAE5B;;EAEA,QAAQ,MAAM,gBAAgB,UAAU,cAAc,QAAQ;;EAE9D,eAAe,mBAAmB;;;UAInB,uBAAuB,mBAC9B,iBAAiB,gBAAgB,mBAAmB;EAC5D,WAAW,QAAQ;;;wBA0DL,6BAA6B,oBAC3C,SAAS,uBAAuB,aAC/B,uBAAuB;;;;;;UAgFT;EACf;EACA;EACA;EACA;EACA;EACA,MAAM;EACN;;;;;;;;wBAoBc,iBACd,UAAS,2BACP,MAAM,gBAAgB;EAAY;MAAoB,QAAQ;;;;;;;;;;;;;;;;;;;;;;UC/OjD;EACf;EACA;EACA;;EAEA;;EAEA;;EAEA;;cAGW,iBAAiB;;;;KChBlB,iBAAiB;KACjB,qBAAqB,qBAAqB;cAEhD,0BAA0B,iBAAiB,oBAAoB;WAC1D;WACA;WACA;WACA;WACA;EAEH,YAAY,OAAO,cAAc,QAAQ;EA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AClB;EACA,SAAS;EACT;EACA,WAAW,oBAAoB;;UAGhB,kCAAkC;EACjD,oBAAoB;EACpB;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA;;KAGU,kEAGC;EAEP;EACA;EACA,mBAAmB;;UAGR;EACf,oBAAoB;EACpB;EACA;EACA;EACA;;wBA0Bc,WAAW,eAAe;wBAgB1B,qBAAqB,eAAe;wBAgBpC,sBAAsB,eAAe;wBAerC,4BACd,SAAS,qCACR,MAAM,qBAAqB;wBAuCd,kCACd,SAAS,4BACR,iBACD,qBAAqB,2BACrB,0BACA;wBAqBc,0BACd,SAAS,0BACT,UAAU,2BACV,UAAS"}
@@ -2,9 +2,13 @@ import { t as __exportAll } from "../rolldown-runtime-BJohB4LM.js";
2
2
  import { at as summarizeNumberSeries, ct as mean } from "../statistics-CvvC-MPv.js";
3
3
  import { Z as runCampaign } from "../llm-judge-DzAT7Wka.js";
4
4
  import { M as fsCampaignStorage } from "../external-optimizer-subprocess-GO6s84Ov.js";
5
- import "../campaign-C9QC27C2.js";
5
+ import "../campaign-Cqz2vk2p.js";
6
+ import { randomUUID } from "node:crypto";
6
7
  import { join, resolve } from "node:path";
7
- import { readFile, readdir, stat } from "node:fs/promises";
8
+ import { tmpdir } from "node:os";
9
+ import { execFile } from "node:child_process";
10
+ import { cp, mkdir, mkdtemp, readFile, readdir, rm, stat, writeFile } from "node:fs/promises";
11
+ import { promisify, stripVTControlCharacters } from "node:util";
8
12
  import { parse } from "smol-toml";
9
13
  // src/benchmarks/calibration.ts
10
14
  async function calibrateBenchmarkMetric(options) {
@@ -56,16 +60,19 @@ function fnv1a32(input) {
56
60
  const BENCHMARK_SPLIT_SEED = "agent-eval-v1";
57
61
  /**
58
62
  * Assign an item id to one of `'search' | 'dev' | 'holdout'` using a
59
- * stable 32-bit hash of `${seed}::${id}`. Default proportions:
63
+ * stable 32-bit hash of `${seed}::${id}`. `cuts` [a, b] with 0 < a < b < 1 put
64
+ * positions below a in search, below b in dev, the rest in holdout. Default [0.6, 0.8]:
60
65
  *
61
66
  * search: 60% (optimization-readable)
62
67
  * dev: 20% (held-out for tuning, leak-on-purpose during dev)
63
68
  * holdout:20% (paper-grade held-out, gated reads)
64
69
  */
65
- function deterministicSplit(itemId, seed = BENCHMARK_SPLIT_SEED) {
70
+ function deterministicSplit(itemId, seed = BENCHMARK_SPLIT_SEED, cuts = [.6, .8]) {
71
+ const [a, b] = cuts;
72
+ if (!(a > 0 && a < b && b < 1)) throw new RangeError(`split cuts need 0 < a < b < 1, got [${a}, ${b}]`);
66
73
  const pos = fnv1a32(`${seed}::${itemId}`) / 4294967296;
67
- if (pos < .6) return "search";
68
- if (pos < .8) return "dev";
74
+ if (pos < a) return "search";
75
+ if (pos < b) return "dev";
69
76
  return "holdout";
70
77
  }
71
78
  // src/benchmarks/harbor.ts
@@ -78,10 +85,11 @@ function deterministicSplit(itemId, seed = BENCHMARK_SPLIT_SEED) {
78
85
  * revision the caller pins in `source`, into `BenchmarkDatasetItem`s.
79
86
  *
80
87
  * Scoring stays Harbor's. `evaluate` hands the task and the agent's artifact to the caller's
81
- * `grade` callback, which runs the task's own verifier (for example `harbor run -p <taskDir>`
82
- * with an agent that installs the collected artifacts) and reports its reward. This package does
83
- * not start containers. A verifier that did not run is an error, never a score of zero.
88
+ * `grade` callback, which runs the task's own verifier and reports its reward. `gradeHarborPatch`
89
+ * is that callback for a code patch: it spawns the Harbor CLI, which starts the containers; this
90
+ * package starts none itself. A verifier that did not run is an error, never a score of zero.
84
91
  */
92
+ const execute = promisify(execFile);
85
93
  const table = (value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : {};
86
94
  const numberOrNull = (value) => typeof value === "number" && Number.isFinite(value) ? value : null;
87
95
  const textOrNull = (value) => typeof value === "string" && value.length > 0 ? value : null;
@@ -163,12 +171,92 @@ function createHarborBenchmarkAdapter(options) {
163
171
  raw: {
164
172
  reward,
165
173
  ...detail === void 0 ? {} : { detail }
166
- }
174
+ },
175
+ ...detail === void 0 ? {} : { notes: detail }
167
176
  };
168
177
  },
169
178
  assignSplit: split
170
179
  };
171
180
  }
181
+ const SOLVE_SH = "#!/bin/bash\nset -euo pipefail\npatch=\"$(dirname \"$0\")/patch.diff\"\nif [ -s \"$patch\" ]; then git apply --binary \"$patch\"; fi\n";
182
+ /** The last characters of `text` without ANSI codes, so that its JSON string fits in `max`. */
183
+ function detailTail(text, max) {
184
+ let tail = stripVTControlCharacters(text).slice(-max);
185
+ while (JSON.stringify(tail).length > max) tail = tail.slice(JSON.stringify(tail).length - max);
186
+ return tail;
187
+ }
188
+ /**
189
+ * A `grade` callback that scores `{ patch }` with the task's own verifier: Harbor's oracle agent
190
+ * runs a `solution/solve.sh` that applies the patch (`git apply --binary`) in the environment's
191
+ * working directory, on a copy of the task. An empty patch changes nothing. A run with no reward
192
+ * is retried, then reported as `succeeded: false`, never as a reward of 0.
193
+ */
194
+ function gradeHarborPatch(options = {}) {
195
+ const { harborBin = "harbor", retries = 2, maxDetailChars = 2e3, keepImage = true } = options;
196
+ const { timeoutMs: timeout, env: extra } = options;
197
+ const run = {
198
+ env: {
199
+ ...process.env,
200
+ ...extra
201
+ },
202
+ timeout,
203
+ maxBuffer: 1 << 26
204
+ };
205
+ return async (item, artifact) => {
206
+ const work = await mkdtemp(join(tmpdir(), "harbor-grade-"));
207
+ try {
208
+ const task = join(work, item.payload.dir);
209
+ await cp(item.payload.taskDir, task, { recursive: true });
210
+ await rm(join(task, "solution"), {
211
+ recursive: true,
212
+ force: true
213
+ });
214
+ await mkdir(join(task, "solution"));
215
+ await writeFile(join(task, "solution/patch.diff"), artifact.patch);
216
+ await writeFile(join(task, "solution/solve.sh"), SOLVE_SH, { mode: 493 });
217
+ const jobsDir = resolve(options.jobsDir ?? join(work, "jobs"));
218
+ const errors = [];
219
+ const args = [
220
+ "run",
221
+ "-p",
222
+ task,
223
+ "-a",
224
+ "oracle",
225
+ "-o",
226
+ jobsDir,
227
+ "-q",
228
+ keepImage ? "--no-delete" : "--delete",
229
+ "--job-name"
230
+ ];
231
+ for (let attempt = 1; attempt <= retries + 1; attempt += 1) {
232
+ const job = `${item.payload.dir}-${randomUUID()}`;
233
+ const failure = await execute(harborBin, [...args, job], run).then(() => null, (error) => detailTail(error.message, 500));
234
+ const trial = (await readdir(join(jobsDir, job), { withFileTypes: true }).catch(() => [])).filter((entry) => entry.isDirectory()).map((entry) => join(jobsDir, job, entry.name, "/"))[0];
235
+ const read = (path) => readFile(`${trial}${path}`, "utf8").catch(() => "");
236
+ const result = table(trial === void 0 ? {} : JSON.parse(await read("result.json") || "{}"));
237
+ const reward = numberOrNull(table(table(result.verifier_result).rewards).reward);
238
+ if (reward !== null) return {
239
+ succeeded: true,
240
+ value: {
241
+ reward,
242
+ detail: detailTail(await read("verifier/test-stdout.txt"), maxDetailChars)
243
+ }
244
+ };
245
+ const exception = textOrNull(table(result.exception_info).exception_message);
246
+ errors.push(`attempt ${attempt}: ${failure ?? exception ?? "harbor recorded no reward"}`);
247
+ }
248
+ return {
249
+ succeeded: false,
250
+ error: errors.join("; ")
251
+ };
252
+ } finally {
253
+ await rm(work, {
254
+ recursive: true,
255
+ force: true
256
+ });
257
+ }
258
+ };
259
+ }
172
260
  // src/benchmarks/routing/dataset.ts
173
261
  const ROUTING_DATASET = [
174
262
  {
@@ -362,8 +450,8 @@ const assignSplit = adapter.assignSplit.bind(adapter);
362
450
  async function runBenchmarkAdapter(options) {
363
451
  const storage = options.storage ?? fsCampaignStorage();
364
452
  const benchmarkId = benchmarkIdFor(options.adapter);
365
- const scenarios = await loadBenchmarkScenarios(options.adapter, options.splits);
366
- const judge = benchmarkAdapterJudge(options.adapter);
453
+ const scenarios = await benchmarkScenarios(options.adapter, options.splits);
454
+ const judge = benchmarkJudge(options.adapter);
367
455
  const dispatch = async (scenario, context) => {
368
456
  return options.respond({
369
457
  scenario,
@@ -406,7 +494,7 @@ async function runBenchmarkAdapter(options) {
406
494
  reportMarkdownPath
407
495
  };
408
496
  }
409
- async function loadBenchmarkScenarios(adapter, splits = [
497
+ async function benchmarkScenarios(adapter, splits = [
410
498
  "search",
411
499
  "dev",
412
500
  "holdout"
@@ -438,7 +526,7 @@ async function loadBenchmarkScenarios(adapter, splits = [
438
526
  }
439
527
  return out;
440
528
  }
441
- function benchmarkAdapterJudge(adapter) {
529
+ function benchmarkJudge(adapter) {
442
530
  const benchmarkId = benchmarkIdFor(adapter);
443
531
  return {
444
532
  name: `${benchmarkId}:score`,
@@ -821,6 +909,6 @@ function discountedGain(relevance, zeroBasedRank) {
821
909
  if (relevance <= 0) return 0;
822
910
  return (2 ** relevance - 1) / Math.log2(zeroBasedRank + 2);
823
911
  }
824
- export { BENCHMARK_SPLIT_SEED, buildStandardRetrievalItems, calibrateBenchmarkMetric, createHarborBenchmarkAdapter, createRetrievalIdBenchmarkAdapter, deterministicSplit, evaluateStandardRetrieval, parseBeirCorpusJsonl, parseBeirQueriesJsonl, parseQrels, routing_exports as routing, runBenchmarkAdapter };
912
+ export { BENCHMARK_SPLIT_SEED, benchmarkJudge, benchmarkScenarios, buildStandardRetrievalItems, calibrateBenchmarkMetric, createHarborBenchmarkAdapter, createRetrievalIdBenchmarkAdapter, deterministicSplit, evaluateStandardRetrieval, gradeHarborPatch, parseBeirCorpusJsonl, parseBeirQueriesJsonl, parseQrels, routing_exports as routing, runBenchmarkAdapter };
825
913
 
826
914
  //# sourceMappingURL=index.js.map