@tangle-network/agent-eval 0.144.4 → 0.144.6

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 (140) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/{agent-profile-cell-Cw0PVwDr.d.ts → agent-profile-cell-BOP-iA9Q.d.ts} +2 -2
  3. package/dist/{agent-profile-cell-Cw0PVwDr.d.ts.map → agent-profile-cell-BOP-iA9Q.d.ts.map} +1 -1
  4. package/dist/analyst/index.d.ts +366 -19
  5. package/dist/analyst/index.d.ts.map +1 -1
  6. package/dist/analyst/index.js +8 -8
  7. package/dist/{benchmark-CYtcIF2V.js → benchmark-B181aMF9.js} +2 -2
  8. package/dist/{benchmark-CYtcIF2V.js.map → benchmark-B181aMF9.js.map} +1 -1
  9. package/dist/{benchmark-CP6kWfj8.d.ts → benchmark-J9Qe6j2_.d.ts} +3 -3
  10. package/dist/{benchmark-CP6kWfj8.d.ts.map → benchmark-J9Qe6j2_.d.ts.map} +1 -1
  11. package/dist/{benchmark-command-9FTgq6Fg.js → benchmark-command-CQd78YHt.js} +922 -36
  12. package/dist/benchmark-command-CQd78YHt.js.map +1 -0
  13. package/dist/benchmarks/index.d.ts +1 -1
  14. package/dist/benchmarks/index.js +1 -1
  15. package/dist/{benchmarks-CkG1bWFa.js → benchmarks-BEOkuvIg.js} +3 -3
  16. package/dist/{benchmarks-CkG1bWFa.js.map → benchmarks-BEOkuvIg.js.map} +1 -1
  17. package/dist/campaign/index.d.ts +6 -6
  18. package/dist/campaign/index.js +3 -3
  19. package/dist/{campaign-DjGFyPxH.js → campaign-CXsdyym7.js} +4 -4
  20. package/dist/{campaign-DjGFyPxH.js.map → campaign-CXsdyym7.js.map} +1 -1
  21. package/dist/cli.js +2 -2
  22. package/dist/{client-Bbht4xxl.d.ts → client-0JI64ovJ.d.ts} +4 -4
  23. package/dist/{client-Bbht4xxl.d.ts.map → client-0JI64ovJ.d.ts.map} +1 -1
  24. package/dist/{completion-verifier-EJERfFwF.d.ts → completion-verifier-CBiee74w.d.ts} +5 -5
  25. package/dist/{completion-verifier-EJERfFwF.d.ts.map → completion-verifier-CBiee74w.d.ts.map} +1 -1
  26. package/dist/contract/index.d.ts +10 -10
  27. package/dist/contract/index.js +5 -5
  28. package/dist/control.d.ts +2 -2
  29. package/dist/{cost-ledger-FuQvHxPm.d.ts → cost-ledger-Bv_e8XHY.d.ts} +2 -2
  30. package/dist/{cost-ledger-FuQvHxPm.d.ts.map → cost-ledger-Bv_e8XHY.d.ts.map} +1 -1
  31. package/dist/{dataset-v_Y5902-.d.ts → dataset-C8xaLXdY.d.ts} +2 -2
  32. package/dist/{dataset-v_Y5902-.d.ts.map → dataset-C8xaLXdY.d.ts.map} +1 -1
  33. package/dist/{default-registry-SOyHB6qG.js → default-registry-Dta70shL.js} +4 -4
  34. package/dist/{default-registry-SOyHB6qG.js.map → default-registry-Dta70shL.js.map} +1 -1
  35. package/dist/{default-registry-iXfu2trt.d.ts → default-registry-J9m-_tya.d.ts} +5 -5
  36. package/dist/{default-registry-iXfu2trt.d.ts.map → default-registry-J9m-_tya.d.ts.map} +1 -1
  37. package/dist/{dspy-rlm-engine-IRCG8kdi.js → dspy-rlm-engine-19FQEMBK.js} +2 -2
  38. package/dist/{dspy-rlm-engine-IRCG8kdi.js.map → dspy-rlm-engine-19FQEMBK.js.map} +1 -1
  39. package/dist/{errors-DkfjIDvD.d.ts → errors-CKPfb2aH.d.ts} +2 -2
  40. package/dist/{errors-DkfjIDvD.d.ts.map → errors-CKPfb2aH.d.ts.map} +1 -1
  41. package/dist/errors-D-LKuDhb.js.map +1 -1
  42. package/dist/{eval-campaign-lZcDIwQM.js → eval-campaign-CfLQQs9B.js} +2 -2
  43. package/dist/{eval-campaign-lZcDIwQM.js.map → eval-campaign-CfLQQs9B.js.map} +1 -1
  44. package/dist/{exact-types-BygCBR4L.d.ts → exact-types-CBYF5MGd.d.ts} +2 -2
  45. package/dist/{exact-types-BygCBR4L.d.ts.map → exact-types-CBYF5MGd.d.ts.map} +1 -1
  46. package/dist/{external-optimizer-contracts-CdmX2K2S.d.ts → external-optimizer-contracts-Q9c0L3eY.d.ts} +3 -3
  47. package/dist/{external-optimizer-contracts-CdmX2K2S.d.ts.map → external-optimizer-contracts-Q9c0L3eY.d.ts.map} +1 -1
  48. package/dist/{extract-usage-7l1Xq5ti.js → extract-usage-BW27f3XW.js} +2 -2
  49. package/dist/{extract-usage-7l1Xq5ti.js.map → extract-usage-BW27f3XW.js.map} +1 -1
  50. package/dist/{feedback-trajectory-CSIkRLQX.d.ts → feedback-trajectory-GgoS0-MK.d.ts} +4 -4
  51. package/dist/{feedback-trajectory-CSIkRLQX.d.ts.map → feedback-trajectory-GgoS0-MK.d.ts.map} +1 -1
  52. package/dist/fuzz.d.ts +1 -1
  53. package/dist/hosted/index.d.ts +3 -3
  54. package/dist/{index-D_qTihaQ.d.ts → index-4XwggC10.d.ts} +5 -5
  55. package/dist/{index-D_qTihaQ.d.ts.map → index-4XwggC10.d.ts.map} +1 -1
  56. package/dist/{index-CNOCxBLh.d.ts → index-B6-B0zTB.d.ts} +2 -2
  57. package/dist/{index-CNOCxBLh.d.ts.map → index-B6-B0zTB.d.ts.map} +1 -1
  58. package/dist/{index-BuHs_OnD.d.ts → index-BIL5vxxt.d.ts} +12 -12
  59. package/dist/{index-BuHs_OnD.d.ts.map → index-BIL5vxxt.d.ts.map} +1 -1
  60. package/dist/{index-DEb46kc6.d.ts → index-CvSN3IG1.d.ts} +2 -2
  61. package/dist/{index-DEb46kc6.d.ts.map → index-CvSN3IG1.d.ts.map} +1 -1
  62. package/dist/{index-DGIzNtRv.d.ts → index-Dx1kF3Ez.d.ts} +3 -3
  63. package/dist/{index-DGIzNtRv.d.ts.map → index-Dx1kF3Ez.d.ts.map} +1 -1
  64. package/dist/index.d.ts +68 -77
  65. package/dist/index.d.ts.map +1 -1
  66. package/dist/index.js +62 -126
  67. package/dist/index.js.map +1 -1
  68. package/dist/{insight-report-D5m1z0_n.d.ts → insight-report-DqEsugpr.d.ts} +4 -4
  69. package/dist/{insight-report-D5m1z0_n.d.ts.map → insight-report-DqEsugpr.d.ts.map} +1 -1
  70. package/dist/{integrity-DRXobPEs.d.ts → integrity-CNGUaGBY.d.ts} +3 -3
  71. package/dist/{integrity-DRXobPEs.d.ts.map → integrity-CNGUaGBY.d.ts.map} +1 -1
  72. package/dist/{kind-factory-Bvwe3pup.js → kind-factory-BHIgPmzS.js} +2 -2
  73. package/dist/{kind-factory-Bvwe3pup.js.map → kind-factory-BHIgPmzS.js.map} +1 -1
  74. package/dist/ledger-core/index.d.ts +1 -1
  75. package/dist/{llm-client-D3EoChAU.js → llm-client-Dv5BiKLE.js} +289 -7
  76. package/dist/llm-client-Dv5BiKLE.js.map +1 -0
  77. package/dist/meta-eval/index.d.ts +2 -2
  78. package/dist/multishot/index.d.ts +2 -2
  79. package/dist/multishot/index.js +1 -1
  80. package/dist/multishot/index.js.map +1 -1
  81. package/dist/openapi.json +1 -1
  82. package/dist/profile-cell.d.ts +1 -1
  83. package/dist/{release-report-BZRWdq_t.d.ts → release-report-ChOgpIoQ.d.ts} +4 -4
  84. package/dist/{release-report-BZRWdq_t.d.ts.map → release-report-ChOgpIoQ.d.ts.map} +1 -1
  85. package/dist/{replay-CqOsGjzU.js → replay-GW61ezMW.js} +4 -4
  86. package/dist/{replay-CqOsGjzU.js.map → replay-GW61ezMW.js.map} +1 -1
  87. package/dist/{replay-DQ-55DC_.d.ts → replay-Krvb114g.d.ts} +7 -7
  88. package/dist/{replay-DQ-55DC_.d.ts.map → replay-Krvb114g.d.ts.map} +1 -1
  89. package/dist/reporting.d.ts +4 -4
  90. package/dist/{researcher-BSiCoM1s.d.ts → researcher-xLeNcpKX.d.ts} +6 -6
  91. package/dist/{researcher-BSiCoM1s.d.ts.map → researcher-xLeNcpKX.d.ts.map} +1 -1
  92. package/dist/{reward-hacking-DFgkEY4p.d.ts → reward-hacking-RZgnGWlx.d.ts} +2 -2
  93. package/dist/{reward-hacking-DFgkEY4p.d.ts.map → reward-hacking-RZgnGWlx.d.ts.map} +1 -1
  94. package/dist/rl.d.ts +5 -5
  95. package/dist/rl.js +1 -1
  96. package/dist/rollout/index.d.ts +1 -1
  97. package/dist/{rubric-predictive-validity-C4r4Y-q8.d.ts → rubric-predictive-validity-9qAwzkZm.d.ts} +2 -2
  98. package/dist/{rubric-predictive-validity-C4r4Y-q8.d.ts.map → rubric-predictive-validity-9qAwzkZm.d.ts.map} +1 -1
  99. package/dist/{run-evidence-H1vRpIdT.d.ts → run-evidence-C6G41MSI.d.ts} +3 -3
  100. package/dist/{run-evidence-H1vRpIdT.d.ts.map → run-evidence-C6G41MSI.d.ts.map} +1 -1
  101. package/dist/{run-record-ooo9FWns.d.ts → run-record-DdSa93_W.d.ts} +4 -4
  102. package/dist/{run-record-ooo9FWns.d.ts.map → run-record-DdSa93_W.d.ts.map} +1 -1
  103. package/dist/{semantic-concept-judge-Do5aM9wP.js → semantic-concept-judge-DwF6n05O.js} +3 -3
  104. package/dist/{semantic-concept-judge-Do5aM9wP.js.map → semantic-concept-judge-DwF6n05O.js.map} +1 -1
  105. package/dist/{server-Df00sdwz.js → server-D6XJQHw7.js} +2 -2
  106. package/dist/{server-Df00sdwz.js.map → server-D6XJQHw7.js.map} +1 -1
  107. package/dist/{skill-usage-DtpLou9L.d.ts → skill-usage-GlOphAhX.d.ts} +9 -9
  108. package/dist/{skill-usage-DtpLou9L.d.ts.map → skill-usage-GlOphAhX.d.ts.map} +1 -1
  109. package/dist/{skillopt-optimization-method-CvSJGdm3.d.ts → skillopt-optimization-method-7S43rbDB.d.ts} +12 -12
  110. package/dist/{skillopt-optimization-method-CvSJGdm3.d.ts.map → skillopt-optimization-method-7S43rbDB.d.ts.map} +1 -1
  111. package/dist/{skillopt-optimization-method-C4FX42dy.js → skillopt-optimization-method-Bfb-vBKe.js} +2 -2
  112. package/dist/{skillopt-optimization-method-C4FX42dy.js.map → skillopt-optimization-method-Bfb-vBKe.js.map} +1 -1
  113. package/dist/{statistics-B4u_CiFd.d.ts → statistics-C-dm-J6H.d.ts} +2 -2
  114. package/dist/{statistics-B4u_CiFd.d.ts.map → statistics-C-dm-J6H.d.ts.map} +1 -1
  115. package/dist/{store-otlp-D4I90_vR.js → store-otlp-CKtTpRhv.js} +2 -2
  116. package/dist/{store-otlp-D4I90_vR.js.map → store-otlp-CKtTpRhv.js.map} +1 -1
  117. package/dist/{summary-report-BOM6dfP7.d.ts → summary-report-B0cAyA7N.d.ts} +3 -3
  118. package/dist/{summary-report-BOM6dfP7.d.ts.map → summary-report-B0cAyA7N.d.ts.map} +1 -1
  119. package/dist/{tool-groups-CMmsgTzj.d.ts → tool-groups-CK0JCkqO.d.ts} +9 -9
  120. package/dist/{tool-groups-CMmsgTzj.d.ts.map → tool-groups-CK0JCkqO.d.ts.map} +1 -1
  121. package/dist/traces.d.ts +6 -6
  122. package/dist/traces.js +4 -4
  123. package/dist/{types-y8jrxXWd.d.ts → types-BhP9q0Fq.d.ts} +22 -4
  124. package/dist/{types-y8jrxXWd.d.ts.map → types-BhP9q0Fq.d.ts.map} +1 -1
  125. package/dist/{types-DcJxgsLy.d.ts → types-DOZyvsFU.d.ts} +5 -5
  126. package/dist/{types-DcJxgsLy.d.ts.map → types-DOZyvsFU.d.ts.map} +1 -1
  127. package/dist/{types-BjMFz88h.d.ts → types-XMVEdrE_.d.ts} +207 -6
  128. package/dist/types-XMVEdrE_.d.ts.map +1 -0
  129. package/dist/{usage-receipt-CgxMEBZq.js → usage-receipt-EVI8B8Xu.js} +8 -1
  130. package/dist/usage-receipt-EVI8B8Xu.js.map +1 -0
  131. package/dist/wire/index.d.ts +3 -3
  132. package/dist/wire/index.js +1 -1
  133. package/docs/building-doctrine.md +15 -0
  134. package/docs/prime-analyst.md +120 -0
  135. package/docs/trace-analysis.md +1 -1
  136. package/package.json +3 -3
  137. package/dist/benchmark-command-9FTgq6Fg.js.map +0 -1
  138. package/dist/llm-client-D3EoChAU.js.map +0 -1
  139. package/dist/types-BjMFz88h.d.ts.map +0 -1
  140. package/dist/usage-receipt-CgxMEBZq.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -4,6 +4,20 @@ All notable changes to `@tangle-network/agent-eval` and its sibling `agent-eval-
4
4
 
5
5
  ---
6
6
 
7
+ ## [0.144.6] - 2026-08-09 - interaction binding cohort alignment
8
+
9
+ ### Changed
10
+
11
+ - Align the exact `@tangle-network/agent-core` and `@tangle-network/agent-interface` dependencies with `0.5.4` and `0.46.1`, so consumers share the canonical provider interaction binding without nested contract copies.
12
+
13
+ ## [0.144.5] - 2026-08-09 - structured profile and prime cohort alignment
14
+
15
+ ### Changed
16
+
17
+ - Align the exact `@tangle-network/agent-core` and `@tangle-network/agent-interface` dependencies with `0.5.3` and `0.46.0`.
18
+ - Preserve the shared profile contract's structured system-prompt capabilities and `prime` harness through Eval's profile matrix without adding a local profile schema or capability copy.
19
+ - Multishot agent requests now preserve the profile's ordered `systemPrompt` and `appendSystemPrompt` values.
20
+
7
21
  ## [0.144.4] - 2026-08-04 - prompt-cache cohort alignment
8
22
 
9
23
  ### Changed
@@ -1,4 +1,4 @@
1
- import { l as ValidationError } from "./errors-DkfjIDvD.js";
1
+ import { l as ValidationError } from "./errors-CKPfb2aH.js";
2
2
  import { AgentProfile } from "@tangle-network/agent-interface";
3
3
  //#region src/agent-profile-cell.d.ts
4
4
  type AgentProfileCellSchemaVersion = 'agent-profile-cell/v1';
@@ -105,4 +105,4 @@ type AgentInterfaceProfileLike = AgentProfile & {
105
105
  declare function buildAgentInterfaceProfileCell(profile: AgentInterfaceProfileLike, input: Omit<AgentProfileCellInput, 'profileId' | 'sourceProfile'>): Promise<AgentProfileCell>;
106
106
  //#endregion
107
107
  export { verifyAgentProfileCell as C, validateAgentProfileCell as S, buildAgentInterfaceProfileCell as _, AgentProfileCellSchemaVersion as a, requireAgentProfileCell as b, AgentProfileHarness as c, AgentProfileKind as d, AgentProfileSource as f, assertRunAgentProfileCell as g, agentProfileCellKey as h, AgentProfileCellInput as i, AgentProfileJson as l, agentProfileCellHashMaterial as m, AgentInterfaceProfileLike as n, AgentProfileCellValidationError as o, AgentProfileSourceInput as p, AgentProfileCell as r, AgentProfileDimensionValue as s, AGENT_PROFILE_KINDS as t, AgentProfileJsonObject as u, buildAgentProfileCell as v, toAgentProfileJson as x, groupRunsByAgentProfileCell as y };
108
- //# sourceMappingURL=agent-profile-cell-Cw0PVwDr.d.ts.map
108
+ //# sourceMappingURL=agent-profile-cell-BOP-iA9Q.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"agent-profile-cell-Cw0PVwDr.d.ts","names":[],"sources":["../src/agent-profile-cell.ts"],"mappings":";;;KAIY;KAEA;GAA4B,cAAc;;KAE1C,sDAKR,qBACA;KAEQ;UAEK;;EAEf;;EAEA;;UAGe;EACf;;EAEA;;EAEA,UAAU;;UAGK;EACf;EACA;EACA;;UAGe;EACf;EACA,eAAe;EACf,UAAU;EACV;EACA;EACA,aAAa,eAAe;;UAGb;EACf,eAAe;EACf;EACA;EACA,eAAe;EACf,UAAU;EACV;EACA;EACA,aAAa,eAAe;;cAGjB,wCAAwC;WAC1C;EACT,YAAY,iBAAiB;;iBAST,sBACpB,OAAO,wBACN,QAAQ;iBAMK,6BACd,MAAM,mBACL,KAAK;;;;iBASc,uBAAuB,MAAM,mBAAmB;iBAQtD,yBAAyB,iBAAiB;iBAqB1C,wBAAwB;EACtC;EACA,eAAe;IACb;iBAUY,oBAAoB;EAClC;EACA,eAAe;;iBAKK,0BAA0B;EAC9C;EACA;EACA;EACA,eAAe;IACb,QAAQ;iBAuBI,4BACd;EAAY;EAAe,eAAe;GAC1C,kBAAkB,MAAM,YAAY;;;;;cA0NzB;;;;WAIX;;KAGU,2BAA2B,kCAAkC;;;;;iBAMzD,mBAAmB,iBAAiB;;KAoBxC,4BAA4B;EAAiB;EAAc;;;;;;;;;;;iBAWjD,+BACpB,SAAS,2BACT,OAAO,KAAK,wDACX,QAAQ"}
1
+ {"version":3,"file":"agent-profile-cell-BOP-iA9Q.d.ts","names":[],"sources":["../src/agent-profile-cell.ts"],"mappings":";;;KAIY;KAEA;GAA4B,cAAc;;KAE1C,sDAKR,qBACA;KAEQ;UAEK;;EAEf;;EAEA;;UAGe;EACf;;EAEA;;EAEA,UAAU;;UAGK;EACf;EACA;EACA;;UAGe;EACf;EACA,eAAe;EACf,UAAU;EACV;EACA;EACA,aAAa,eAAe;;UAGb;EACf,eAAe;EACf;EACA;EACA,eAAe;EACf,UAAU;EACV;EACA;EACA,aAAa,eAAe;;cAGjB,wCAAwC;WAC1C;EACT,YAAY,iBAAiB;;iBAST,sBACpB,OAAO,wBACN,QAAQ;iBAMK,6BACd,MAAM,mBACL,KAAK;;;;iBASc,uBAAuB,MAAM,mBAAmB;iBAQtD,yBAAyB,iBAAiB;iBAqB1C,wBAAwB;EACtC;EACA,eAAe;IACb;iBAUY,oBAAoB;EAClC;EACA,eAAe;;iBAKK,0BAA0B;EAC9C;EACA;EACA;EACA,eAAe;IACb,QAAQ;iBAuBI,4BACd;EAAY;EAAe,eAAe;GAC1C,kBAAkB,MAAM,YAAY;;;;;cA0NzB;;;;WAIX;;KAGU,2BAA2B,kCAAkC;;;;;iBAMzD,mBAAmB,iBAAiB;;KAoBxC,4BAA4B;EAAiB;EAAc;;;;;;;;;;;iBAWjD,+BACpB,SAAS,2BACT,OAAO,KAAK,wDACX,QAAQ"}
@@ -1,14 +1,14 @@
1
1
  import { a as MultiLayerVerifier, l as VerifyOptions, o as Severity } from "../multi-layer-verifier-BHY1gWAc.js";
2
- import { A as parseFindingSubject, C as FINDING_SUBJECT_KINDS, D as FindingSubjectStringSchema, E as FindingSubjectKind, F as DefineExactCustomAnalystOptions, G as SemanticConceptJudgeOptions, I as defineCustomAnalyst, L as defineTraceAnalyst, M as DspyRlmTraceEngineOptions, N as createDspyRlmTraceEngine, O as KIND_EXPECTED_SUBJECTS, P as DefineCustomAnalystOptions, S as FINDING_SUBJECT_GRAMMAR_PROMPT, T as FindingSubject, W as SemanticConceptJudgeInput, Y as RunCritic, Z as RunTrace, _ as FindingsDiff, a as SkillUsageScanConfig, b as defaultIsMaterial, c as DEFAULT_TRACE_ANALYST_KINDS, d as IMPROVEMENT_KIND_SPEC, f as FAILURE_MODE_KIND_SPEC, g as DiffPolicy, h as emitControlIntegrityFindings, i as SkillUsageReport, j as renderFindingSubject, k as findingSubjectGrammarPromptFor, l as KNOWLEDGE_POISONING_KIND_SPEC, m as ControlIntegrityAnalyst, n as SkillUsageAnalyst, o as buildSkillUsageReport, p as CONTROL_INTEGRITY_ANALYST, r as SkillUsageRecord, s as emitSkillUsageFindings, t as SKILL_USAGE_ANALYST, u as KNOWLEDGE_GAP_KIND_SPEC, v as FindingsStore, w as FINDING_SUBJECT_SYNTAX, x as diffFindings, y as PersistedFinding } from "../skill-usage-DtpLou9L.js";
3
- import { b as CustomTokenPricing, c as CostLedgerHandle } from "../cost-ledger-FuQvHxPm.js";
4
- import { A as ChatClient, B as SandboxSdkTransportOpts, F as CreateChatClientOpts, I as CustomTransportOpts, L as DirectProviderTransportOpts, M as ChatResponse, N as ChatTransport, P as CliBridgeTransportOpts, R as MockTransportOpts, V as createChatClient, j as ChatRequest, k as ChatCallOpts, m as JudgeInput, p as JudgeFn, z as RouterTransportOpts } from "../types-BjMFz88h.js";
5
- import { _ as makeFinding, a as AnalystInputKind, c as AnalystRunInputs, d as AnalystSeverity, f as AnalystUsageReceipt, g as computeFindingId, h as ProposalFindingOrigin, i as AnalystFinding, l as AnalystRunResult, m as ProposalFinding, n as AnalystContext, o as AnalystRequirements, p as EvidenceRef, r as AnalystCost, s as AnalystRunEvent, t as Analyst, u as AnalystRunSummary, v as makeProposalFinding, x as TraceAnalysisStore } from "../types-y8jrxXWd.js";
6
- import { a as createTraceAnalyst, c as runTraceAnalyst, d as deriveEfficiencyFindings, i as TraceAnalystDefinition, l as BehavioralAnalystOptions, n as buildDefaultAnalystRegistry, o as renderPriorFindings, r as CreateTraceAnalystOptions, s as renderUpstreamFindings, t as DefaultAnalystRegistryOptions, u as behavioralAnalyst } from "../default-registry-iXfu2trt.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-BygCBR4L.js";
8
- import { A as ExactAnalystRunExecutionError, D as AnalystRegistryOptions, E as AnalystRegistry, M as RegistryRunOpts, N as assertExactRegistryRunOpts, O as BudgetPolicy, T as AnalystHooks, j as ExactRegistryRunOpts, k as ExactAnalystBudgetPolicy } from "../completion-verifier-EJERfFwF.js";
9
- import { C as scoreAnalystFindings, S as traceStoreEvidenceResolver, _ as AnalystIssueExpectation, a as AnalystBenchmarkLabelState, b as registryBenchmarkRunner, c as AnalystBenchmarkProvenance, d as AnalystBenchmarkSummary, f as AnalystEvidenceExpectation, g as AnalystFindingScore, h as AnalystEvidenceResolver, i as AnalystBenchmarkError, l as AnalystBenchmarkResult, m as AnalystEvidenceResolutionError, n as AnalystBenchmarkDatasetRef, o as AnalystBenchmarkObservation, p as AnalystEvidenceResolution, r as AnalystBenchmarkDescriptor, s as AnalystBenchmarkOutput, t as AnalystBenchmarkCase, u as AnalystBenchmarkRunner, v as AnalystLatencyDistribution, x as runAnalystBenchmark, y as RunAnalystBenchmarkOptions } from "../benchmark-CP6kWfj8.js";
10
- import { f as ExternalOptimizerModelExecutionObservation, h as ExternalOptimizerRunnerCommand, l as ExternalOptimizerModelCall } from "../external-optimizer-contracts-CdmX2K2S.js";
11
- import { a as TraceAnalysisEngineRequest, c as resolveTraceAnalystLimits, d as RawAnalystEvidence, f as RawAnalystEvidenceSchema, g as parseRawFinding, h as evidenceRefsFromRawFinding, i as TraceAnalysisEngine, l as ANALYST_SEVERITIES, m as RawAnalystFindingSchema, n as buildTraceToolsForGroup, o as TraceAnalysisEngineResult, p as RawAnalystFinding, r as DEFAULT_TRACE_ANALYST_LIMITS, s as TraceAnalystLimits, t as TraceToolGroupName, u as RAW_FINDING_SCHEMA_PROMPT } from "../tool-groups-CMmsgTzj.js";
2
+ import { A as parseFindingSubject, C as FINDING_SUBJECT_KINDS, D as FindingSubjectStringSchema, E as FindingSubjectKind, F as DefineExactCustomAnalystOptions, G as SemanticConceptJudgeOptions, I as defineCustomAnalyst, L as defineTraceAnalyst, M as DspyRlmTraceEngineOptions, N as createDspyRlmTraceEngine, O as KIND_EXPECTED_SUBJECTS, P as DefineCustomAnalystOptions, S as FINDING_SUBJECT_GRAMMAR_PROMPT, T as FindingSubject, W as SemanticConceptJudgeInput, Y as RunCritic, Z as RunTrace, _ as FindingsDiff, a as SkillUsageScanConfig, b as defaultIsMaterial, c as DEFAULT_TRACE_ANALYST_KINDS, d as IMPROVEMENT_KIND_SPEC, f as FAILURE_MODE_KIND_SPEC, g as DiffPolicy, h as emitControlIntegrityFindings, i as SkillUsageReport, j as renderFindingSubject, k as findingSubjectGrammarPromptFor, l as KNOWLEDGE_POISONING_KIND_SPEC, m as ControlIntegrityAnalyst, n as SkillUsageAnalyst, o as buildSkillUsageReport, p as CONTROL_INTEGRITY_ANALYST, r as SkillUsageRecord, s as emitSkillUsageFindings, t as SKILL_USAGE_ANALYST, u as KNOWLEDGE_GAP_KIND_SPEC, v as FindingsStore, w as FINDING_SUBJECT_SYNTAX, x as diffFindings, y as PersistedFinding } from "../skill-usage-GlOphAhX.js";
3
+ import { b as CustomTokenPricing, c as CostLedgerHandle } from "../cost-ledger-Bv_e8XHY.js";
4
+ import { A as ChatClient, B as SandboxSdkTransportOpts, F as CreateChatClientOpts, I as CustomTransportOpts, L as DirectProviderTransportOpts, M as ChatResponse, N as ChatTransport, P as CliBridgeTransportOpts, R as MockTransportOpts, V as createChatClient, j as ChatRequest, k as ChatCallOpts, m as JudgeInput, p as JudgeFn, z as RouterTransportOpts } from "../types-XMVEdrE_.js";
5
+ import { _ as makeFinding, a as AnalystInputKind, c as AnalystRunInputs, d as AnalystSeverity, f as AnalystUsageReceipt, g as computeFindingId, h as ProposalFindingOrigin, i as AnalystFinding, l as AnalystRunResult, m as ProposalFinding, n as AnalystContext, o as AnalystRequirements, p as EvidenceRef, r as AnalystCost, s as AnalystRunEvent, t as Analyst, u as AnalystRunSummary, v as makeProposalFinding, x as TraceAnalysisStore } from "../types-BhP9q0Fq.js";
6
+ import { a as createTraceAnalyst, c as runTraceAnalyst, d as deriveEfficiencyFindings, i as TraceAnalystDefinition, l as BehavioralAnalystOptions, n as buildDefaultAnalystRegistry, o as renderPriorFindings, r as CreateTraceAnalystOptions, s as renderUpstreamFindings, t as DefaultAnalystRegistryOptions, u as behavioralAnalyst } from "../default-registry-J9m-_tya.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-CBYF5MGd.js";
8
+ import { A as ExactAnalystRunExecutionError, D as AnalystRegistryOptions, E as AnalystRegistry, M as RegistryRunOpts, N as assertExactRegistryRunOpts, O as BudgetPolicy, T as AnalystHooks, j as ExactRegistryRunOpts, k as ExactAnalystBudgetPolicy } from "../completion-verifier-CBiee74w.js";
9
+ import { C as scoreAnalystFindings, S as traceStoreEvidenceResolver, _ as AnalystIssueExpectation, a as AnalystBenchmarkLabelState, b as registryBenchmarkRunner, c as AnalystBenchmarkProvenance, d as AnalystBenchmarkSummary, f as AnalystEvidenceExpectation, g as AnalystFindingScore, h as AnalystEvidenceResolver, i as AnalystBenchmarkError, l as AnalystBenchmarkResult, m as AnalystEvidenceResolutionError, n as AnalystBenchmarkDatasetRef, o as AnalystBenchmarkObservation, p as AnalystEvidenceResolution, r as AnalystBenchmarkDescriptor, s as AnalystBenchmarkOutput, t as AnalystBenchmarkCase, u as AnalystBenchmarkRunner, v as AnalystLatencyDistribution, x as runAnalystBenchmark, y as RunAnalystBenchmarkOptions } from "../benchmark-J9Qe6j2_.js";
10
+ import { f as ExternalOptimizerModelExecutionObservation, h as ExternalOptimizerRunnerCommand, l as ExternalOptimizerModelCall } from "../external-optimizer-contracts-Q9c0L3eY.js";
11
+ import { a as TraceAnalysisEngineRequest, c as resolveTraceAnalystLimits, d as RawAnalystEvidence, f as RawAnalystEvidenceSchema, g as parseRawFinding, h as evidenceRefsFromRawFinding, i as TraceAnalysisEngine, l as ANALYST_SEVERITIES, m as RawAnalystFindingSchema, n as buildTraceToolsForGroup, o as TraceAnalysisEngineResult, p as RawAnalystFinding, r as DEFAULT_TRACE_ANALYST_LIMITS, s as TraceAnalystLimits, t as TraceToolGroupName, u as RAW_FINDING_SCHEMA_PROMPT } from "../tool-groups-CK0JCkqO.js";
12
12
  //#region src/analyst/adapters.d.ts
13
13
  declare function liftSeverity(s: Severity): AnalystSeverity;
14
14
  interface VerifierAdapterOpts<Env> {
@@ -337,6 +337,13 @@ interface PublicAnalystBenchmarkModelConfig {
337
337
  responseCacheDir: string;
338
338
  };
339
339
  }
340
+ /**
341
+ * Model settings the benchmark command records in the run identity. The
342
+ * owner-call pair is present exactly when a model-owner module executes the
343
+ * provider calls (`dspy-rlm` and `direct`); the `prime` analyst owns its own
344
+ * cli-bridge transport and never receives an owner call path.
345
+ */
346
+ type PublicAnalystBenchmarkModelSettings = Omit<PublicAnalystBenchmarkModelConfig, 'call' | 'recordExecution'> & Partial<Pick<PublicAnalystBenchmarkModelConfig, 'call' | 'recordExecution'>>;
340
347
  interface PreparedPublicAnalystBenchmark {
341
348
  cases: AnalystBenchmarkCase<AnalystRunInputs>[];
342
349
  sourceRowCount: number;
@@ -506,6 +513,76 @@ declare function createPublicBenchmarkDirectRunner(dataset: PublicAnalystBenchma
506
513
  /** Public benchmark candidate that runs the actual recursive trace analyst. */
507
514
  declare function createPublicBenchmarkRlmRunner(dataset: PublicAnalystBenchmarkDataset, config: PublicAnalystBenchmarkModelConfig): AnalystBenchmarkRunner<AnalystRunInputs>;
508
515
  //#endregion
516
+ //#region src/analyst/prime-bridge-transport.d.ts
517
+ /**
518
+ * The bridge seam for the prime analyst protocol: one POST to an
519
+ * OpenAI-compatible `/v1/chat/completions` endpoint, returning the raw status
520
+ * and body text.
521
+ *
522
+ * Deliberately NOT `callLlm` from `../llm-client`, which serves a different
523
+ * contract:
524
+ * - it retries transient failures, and a prime turn holds a single model seat
525
+ * for minutes — a silent second attempt doubles the seat time and the spend;
526
+ * - it normalizes usage, while the protocol's receipt depends on the bridge's
527
+ * non-standard `model_requests` and `estimated` fields;
528
+ * - it composes sampling and response-format options the bridge's CLI backends
529
+ * reject;
530
+ * - it collapses HTTP status, unparseable body, and empty content into two
531
+ * error classes, while the protocol classifies them as three distinct
532
+ * terminal reasons.
533
+ */
534
+ interface PrimeBridgeTransportRequest {
535
+ url: string;
536
+ body: {
537
+ model: string;
538
+ messages: Array<{
539
+ role: 'user';
540
+ content: string;
541
+ }>;
542
+ };
543
+ /**
544
+ * The call's only deadline. The protocol aborts it on the per-call timeout
545
+ * and on the caller's cancellation, so a transport that imposes a second
546
+ * deadline of its own competes with this one.
547
+ */
548
+ signal: AbortSignal;
549
+ }
550
+ interface PrimeBridgeTransportResult {
551
+ status: number;
552
+ text: string;
553
+ }
554
+ /** One POST to the bridge. Injectable so tests run against a fake bridge. */
555
+ type PrimeBridgeTransport = (request: PrimeBridgeTransportRequest) => Promise<PrimeBridgeTransportResult>;
556
+ /**
557
+ * Default transport on node:http/node:https rather than fetch: undici's fixed
558
+ * response-header timeout kills prime calls that legitimately run past five
559
+ * minutes, so the request's AbortSignal is the only deadline.
560
+ */
561
+ declare function nodeHttpPrimeBridgeTransport(): PrimeBridgeTransport;
562
+ //#endregion
563
+ //#region src/analyst/benchmark-runner-prime.d.ts
564
+ interface PrimeBenchmarkRunnerOptions {
565
+ /** OpenAI-compatible cli-bridge base URL, e.g. `http://localhost:4181`. */
566
+ baseUrl: string;
567
+ /** Bridge model id in `<backend>/<provider>/<model>` form, e.g. `prime/zai/glm-5.2`. */
568
+ model: string;
569
+ /** Deadline for one bridge call. Prime analyses routinely exceed 5 minutes. */
570
+ timeoutMs: number;
571
+ /** Whether a structurally malformed reply gets one bounded repair turn. */
572
+ repair: boolean;
573
+ /** Exact token rates. Default: the agent-eval catalog rates for `model`. */
574
+ pricing?: CustomTokenPricing;
575
+ /** Bridge transport. Default: node:http POST (see nodeHttpPrimeBridgeTransport). */
576
+ transport?: PrimeBridgeTransport;
577
+ }
578
+ /**
579
+ * Digest of everything this runner can send to the bridge, recorded per
580
+ * observation so a prime result names the exact contract that produced it.
581
+ */
582
+ declare function primeAnalystProtocolSha256(): string;
583
+ /** CodeTraceBench-only: the prompt and output contract speak its block grammar. */
584
+ declare function createPrimeBenchmarkRunner(options: PrimeBenchmarkRunnerOptions): AnalystBenchmarkRunner<AnalystRunInputs>;
585
+ //#endregion
509
586
  //#region src/analyst/benchmark-comparison.d.ts
510
587
  type AnalystComparisonMetric = 'completion' | 'issueRecall' | 'findingPrecision' | 'f1' | 'criticalStepAccuracy' | 'citationCoverage' | 'citationExcerptCoverage' | 'citationLabelAgreement' | 'citationResolution' | 'trustedNegativeAccuracy' | 'latencyMs' | 'calls' | 'inputTokens' | 'outputTokens' | 'reasoningTokens' | 'cachedTokens' | 'cacheWriteTokens' | 'costUsd';
511
588
  interface AnalystMetricComparison {
@@ -731,7 +808,8 @@ interface AnalystBenchmarkLocalRunReceipt {
731
808
  traceDir: string;
732
809
  artifactDir?: string;
733
810
  outputDir: string;
734
- modelOwnerModule: string;
811
+ /** Absent when the analyst owns its own transport (`prime`). */
812
+ modelOwnerModule?: string;
735
813
  };
736
814
  command: string;
737
815
  environment: {
@@ -765,7 +843,7 @@ declare function readAnalystBenchmarkArtifact(path: string): Promise<AnalystBenc
765
843
  //#endregion
766
844
  //#region src/analyst/benchmark-command.d.ts
767
845
  interface AnalystBenchmarkCommandDependencies {
768
- createAnalystRunner?: (dataset: PublicAnalystBenchmarkDataset, config: PublicAnalystBenchmarkModelConfig) => AnalystBenchmarkRunner<AnalystRunInputs>;
846
+ createAnalystRunner?: (dataset: PublicAnalystBenchmarkDataset, config: PublicAnalystBenchmarkModelSettings) => AnalystBenchmarkRunner<AnalystRunInputs>;
769
847
  loadModelExecutionOwner?: (moduleRef: string, context: {
770
848
  model: string;
771
849
  environment: Readonly<NodeJS.ProcessEnv>;
@@ -775,8 +853,15 @@ interface AnalystBenchmarkCommandDependencies {
775
853
  * Which analyst produces the scored arm.
776
854
  *
777
855
  * `dspy-rlm` is the recursive engine. `direct` is the one-shot comparison arm.
856
+ * `prime` is the RLM coding agent reached through an OpenAI-compatible
857
+ * cli-bridge (CodeTraceBench only; see docs/prime-analyst.md).
778
858
  */
779
- type AnalystBenchmarkRunnerKind = 'dspy-rlm' | 'direct';
859
+ type AnalystBenchmarkRunnerKind = 'dspy-rlm' | 'direct' | 'prime';
860
+ /** Bridge execution settings, present exactly when the analyst is `prime`. */
861
+ interface PrimeAnalystBridgeConfig {
862
+ bridgeUrl: string;
863
+ repair: boolean;
864
+ }
780
865
  interface AnalystBenchmarkCommandConfig {
781
866
  dataset: PublicAnalystBenchmarkDataset;
782
867
  analyst: AnalystBenchmarkRunnerKind;
@@ -786,7 +871,7 @@ interface AnalystBenchmarkCommandConfig {
786
871
  outDir: string;
787
872
  revision: string;
788
873
  split: string;
789
- model: PublicAnalystBenchmarkModelConfig;
874
+ model: PublicAnalystBenchmarkModelSettings;
790
875
  limit: number;
791
876
  seed: number;
792
877
  concurrency: number;
@@ -795,18 +880,21 @@ interface AnalystBenchmarkCommandConfig {
795
880
  rlmSamples: number;
796
881
  maxCostUsd: number;
797
882
  maxArtifactBytes: number;
798
- modelOwnerModule: string;
883
+ /** Absent exactly when the analyst is `prime`: the cli-bridge owns execution. */
884
+ modelOwnerModule?: string;
885
+ /** Present exactly when the analyst is `prime`. */
886
+ prime?: PrimeAnalystBridgeConfig;
799
887
  command: string;
800
888
  resume: boolean;
801
889
  }
802
890
  declare function runAnalystBenchmarkCommand(argv: readonly string[], env?: NodeJS.ProcessEnv, dependencies?: AnalystBenchmarkCommandDependencies): Promise<number>;
803
- declare const ANALYST_BENCHMARK_HELP = "agent-eval analyst-benchmark\n\nRun the recursive DSPy trace analyst against public AgentRx or CodeTraceBench labels.\n\nRequired:\n --dataset agentrx|codetracebench\n --analyst dspy-rlm|direct Scored analyst. Default: dspy-rlm.\n 'direct' is the one-shot comparison arm.\n --labels <dataset.json|dataset.jsonl>\n --trace-dir <one-trace-per-file OTLP JSONL directory>\n --artifact-dir <extracted artifact root> Required for CodeTraceBench\n --out <new output directory>\n --revision <full 40- or 64-character hex digest>\n --split <dataset split>\n --model-owner-module <module> Module exporting createModelExecutionOwner;\n the owner keeps provider credentials and policy\n --model <provider model id>\n --limit <positive case count>\n\nControls:\n --resume Continue an interrupted run in --out\n --seed <integer> Case-selection and comparison seed. Default: 0\n --concurrency <positive integer> Parallel benchmark jobs. Default: 1\n --repetitions <positive integer> Runs per case and runner. Default: 1\n --rlm-samples <positive integer> Recursive-engine runs per case; above 1 the\n step-level majority consensus is scored\n (CodeTraceBench + dspy-rlm only). Default: 1\n --instructions-file <path> Replace the recursive analyst instructions\n with this file's text (dspy-rlm only). The\n recorded protocol digest binds the stock\n protocol to the override text, and\n result.json records instructionsOverrideSha256.\n --max-output-tokens <positive> Model output limit per call. Default: 16384\n --max-reasoning-tokens <integer> Reasoning-token limit per call. Default: 65536\n --max-model-requests <positive> Caller-owned model calls per analysis.\n Default: max iterations + model calls + 1\n --max-model-request-bytes <positive> Default: 16777216\n --max-model-response-bytes <positive> Default: 4194304\n --model-request-timeout-ms <positive> Default: --timeout-ms\n --max-iterations <positive> Recursive iterations per analysis. Default: 14\n --max-llm-calls <positive> DSPy model calls per analysis. Default: 8\n --max-tool-calls <positive> Trace-tool calls per analysis. Default: 80\n --max-analysis-output-chars <positive> Default: 8000\n --trace-tool-request-bytes <positive> Default: 1000000\n --trace-tool-response-bytes <positive> Default: 4000000\n --trace-tool-timeout-ms <positive> Default: 60000\n --max-process-input-bytes <positive> Default: 67108864\n --max-process-result-bytes <positive> Default: 4194304\n --max-process-output-chars <positive> Default: 64000\n --python <executable> Python with agent-eval-rpc[dspy]. Default: python\n --timeout-ms <positive> Model analyst deadline per case. Default: 300000\n --max-cost-usd <positive> Run-wide spend limit. Default: 5\n --max-artifact-bytes <positive> Final evidence bytes per case. Default: 8388608\n\nWrites result.json with every observation, metric, usage field, error, comparison,\ninput digest, artifact digest, case distribution, selected case id, and explicit\nunknown cost. Limited deterministic-hash subsets are marked non-representative.\nCompleted observations are fsynced to observations.jsonl. Shareable output is in\nresult.json and report.md. Machine-local paths, execution-owner module, and command\nare isolated in run.local.json. Provider credentials never enter this command.";
891
+ declare const ANALYST_BENCHMARK_HELP = "agent-eval analyst-benchmark\n\nRun the recursive DSPy trace analyst against public AgentRx or CodeTraceBench labels.\n\nRequired:\n --dataset agentrx|codetracebench\n --analyst dspy-rlm|direct|prime Scored analyst. Default: dspy-rlm.\n 'direct' is the one-shot comparison arm.\n 'prime' is the RLM coding agent behind an\n OpenAI-compatible cli-bridge (codetracebench\n only; see docs/prime-analyst.md)\n --labels <dataset.json|dataset.jsonl>\n --trace-dir <one-trace-per-file OTLP JSONL directory>\n --artifact-dir <extracted artifact root> Required for CodeTraceBench\n --out <new output directory>\n --revision <full 40- or 64-character hex digest>\n --split <dataset split>\n --model-owner-module <module> dspy-rlm|direct only. Module exporting\n createModelExecutionOwner; the owner keeps\n provider credentials and policy\n --model <provider model id> For prime, the bridge model id in\n <backend>/<provider>/<model> form, e.g.\n prime/zai/glm-5.2\n --limit <positive case count>\n\nControls:\n --resume Continue an interrupted run in --out\n --bridge-url <url> prime only. OpenAI-compatible cli-bridge\n base URL. Default: http://localhost:4181\n --no-repair prime only. Disable the bounded repair turn\n for a structurally malformed reply\n --seed <integer> Case-selection and comparison seed. Default: 0\n --concurrency <positive integer> Parallel benchmark jobs. Default: 1\n --repetitions <positive integer> Runs per case and runner. Default: 1\n --rlm-samples <positive integer> Recursive-engine runs per case; above 1 the\n step-level majority consensus is scored\n (CodeTraceBench + dspy-rlm only). Default: 1\n --instructions-file <path> Replace the recursive analyst instructions\n with this file's text (dspy-rlm only). The\n recorded protocol digest binds the stock\n protocol to the override text, and\n result.json records instructionsOverrideSha256.\n --max-output-tokens <positive> Model output limit per call. Default: 16384\n --max-reasoning-tokens <integer> Reasoning-token limit per call. Default: 65536\n --max-model-requests <positive> Caller-owned model calls per analysis.\n Default: max iterations + model calls + 1\n --max-model-request-bytes <positive> Default: 16777216\n --max-model-response-bytes <positive> Default: 4194304\n --model-request-timeout-ms <positive> Default: --timeout-ms\n --max-iterations <positive> Recursive iterations per analysis. Default: 14\n --max-llm-calls <positive> DSPy model calls per analysis. Default: 8\n --max-tool-calls <positive> Trace-tool calls per analysis. Default: 80\n --max-analysis-output-chars <positive> Default: 8000\n --trace-tool-request-bytes <positive> Default: 1000000\n --trace-tool-response-bytes <positive> Default: 4000000\n --trace-tool-timeout-ms <positive> Default: 60000\n --max-process-input-bytes <positive> Default: 67108864\n --max-process-result-bytes <positive> Default: 4194304\n --max-process-output-chars <positive> Default: 64000\n --python <executable> Python with agent-eval-rpc[dspy]. Default: python\n --timeout-ms <positive> Model analyst deadline per case. Default: 300000\n --max-cost-usd <positive> Run-wide spend limit. Default: 5\n --max-artifact-bytes <positive> Final evidence bytes per case. Default: 8388608\n\nWrites result.json with every observation, metric, usage field, error, comparison,\ninput digest, artifact digest, case distribution, selected case id, and explicit\nunknown cost. Limited deterministic-hash subsets are marked non-representative.\nCompleted observations are fsynced to observations.jsonl. Shareable output is in\nresult.json and report.md. Machine-local paths, execution-owner module, and command\nare isolated in run.local.json. Provider credentials never enter this command.";
804
892
  //#endregion
805
893
  //#region src/analyst/benchmark-implementation.d.ts
806
894
  declare const ANALYST_BENCHMARK_IMPLEMENTATION_DIGEST_ALGORITHM = "sha256-canonical-source-manifest";
807
895
  declare const ANALYST_BENCHMARK_DEPENDENCY_LOCK_DIGEST_ALGORITHM = "sha256-canonical-file-manifest";
808
896
  declare const ANALYST_BENCHMARK_DEPENDENCY_LOCK_FILES: readonly string[];
809
- declare const ANALYST_BENCHMARK_DEPENDENCY_LOCK_SHA256 = "6d84e54943016e204ddfca4ac7a3cb17508913f3a43201d09c13a82f1f07a318";
897
+ declare const ANALYST_BENCHMARK_DEPENDENCY_LOCK_SHA256 = "c0525dfe7f6931aeefe0e4c98d366cf6558c176e56477c5271d35274f383cf61";
810
898
  /** The published benchmark evidence was produced at this package version, by
811
899
  * the retired one-shot direct runner, before trace analysts moved to the
812
900
  * recursive DSPy RLM engine. Both evidence digests below are historical facts
@@ -818,7 +906,7 @@ declare const ANALYST_BENCHMARK_EVIDENCE_PACKAGE_VERSION = "0.137.0";
818
906
  declare const ANALYST_BENCHMARK_EVIDENCE_DEPENDENCY_LOCK_SHA256 = "1e03f2daed356d60316aabefb407ec1e437ac94d408d61eea4ae096e9c6fbb5b";
819
907
  declare const ANALYST_BENCHMARK_EVIDENCE_IMPLEMENTATION_SHA256 = "4dba263b6256a30d56c7fdb2d992d3a953c0035d731f359b704db806f68f75ac";
820
908
  declare const ANALYST_BENCHMARK_IMPLEMENTATION_FILES: readonly string[];
821
- declare const ANALYST_BENCHMARK_IMPLEMENTATION_SHA256 = "67cd83aaaa158d44a9fa32e172cbe68fa97f01ae673ccb117469688b628bb9b1";
909
+ declare const ANALYST_BENCHMARK_IMPLEMENTATION_SHA256 = "47592eaceab13f9cf40530e02a4af3d9ff5bcd6a7eb7d92b110508cc6cd323e5";
822
910
  declare function analystBenchmarkImplementationDigest(): string;
823
911
  declare function analystBenchmarkDependencyLockDigest(): string;
824
912
  //#endregion
@@ -872,6 +960,265 @@ declare function coerceJson(text: string): unknown;
872
960
  */
873
961
  declare function coerceToFindingRows(raw: unknown): unknown[];
874
962
  //#endregion
963
+ //#region src/analyst/prime-protocol.d.ts
964
+ /**
965
+ * The prime analyst protocol: a one-shot RLM reached through an
966
+ * OpenAI-compatible bridge, given the whole trajectory inline because it has no
967
+ * REPL and no trace tools, answering in one fenced JSON block of short strings.
968
+ *
969
+ * This module owns every part of that protocol that does not depend on what the
970
+ * rows MEAN: prompt and contract composition, the bounded repair turn, reply
971
+ * extraction, row decoding order, the render-measure-fall-back-fail-loud
972
+ * projection ladder, usage normalization, and the protocol identity digest.
973
+ *
974
+ * The cut: the core speaks RAW ROWS and never names a finding type. It knows a
975
+ * prime reply carries an `answer` string plus an array of rows under a named
976
+ * field, and that each row is decoded by a caller-supplied function. Consumers
977
+ * — the CodeTraceBench benchmark runner here, a span-grounded trace analyzer
978
+ * elsewhere — map decoded rows into their own finding shape on the way out. So
979
+ * nothing in this file may import a block type, a finding type, or a trace
980
+ * store, and no consumer needs another copy of the protocol.
981
+ */
982
+ type PrimeRowDecoded<TRow> = {
983
+ ok: true;
984
+ row: TRow;
985
+ } | {
986
+ ok: false;
987
+ reason: string;
988
+ };
989
+ interface PrimeReplyContract<TRow> {
990
+ /** Name of the reply's row array, e.g. `blocks` or `findings`. */
991
+ rowsField: string;
992
+ /** Row-grammar lines spliced into the first-turn prompt. */
993
+ contractLines: readonly string[];
994
+ /** The same grammar restated for the repair turn, which never carries the trajectory. */
995
+ repairContractLines: readonly string[];
996
+ /**
997
+ * Validate and convert one raw row in a single pass. One function rather than
998
+ * a separate validator and constructor, so the two can never disagree about
999
+ * what a valid row is.
1000
+ */
1001
+ decodeRow(row: unknown, index: number): PrimeRowDecoded<TRow>;
1002
+ /**
1003
+ * Cap on ACCEPTED rows. The cap is applied after decoding, so malformed rows
1004
+ * never consume an accepted slot; the surplus is reported as `overflow`.
1005
+ * Omit when the consumer's own expansion owns the cap and records the drop.
1006
+ */
1007
+ maxRows?: number;
1008
+ }
1009
+ interface PrimePromptSpec {
1010
+ question: string;
1011
+ /** Task definition spliced under a `TASK DEFINITION:` heading. Omit when the question is the whole task. */
1012
+ taskDefinition?: string;
1013
+ contractLines: readonly string[];
1014
+ /** Line introducing the trajectory, e.g. `TRAJECTORY (trace_id X; 12 assistant step spans; ...):`. */
1015
+ trajectoryHeader: string;
1016
+ renderedTrajectory: string;
1017
+ /** Material appended after the trajectory, e.g. the final-verification spans. */
1018
+ trailer?: string;
1019
+ }
1020
+ declare function buildPrimePrompt(spec: PrimePromptSpec): string;
1021
+ interface PrimeRepairPromptSpec {
1022
+ defect: string;
1023
+ previousReply: string;
1024
+ repairContractLines: readonly string[];
1025
+ }
1026
+ /** Carries the malformed reply and the contract — never the trajectory. */
1027
+ declare function buildPrimeRepairPrompt(spec: PrimeRepairPromptSpec): string;
1028
+ /**
1029
+ * Recover the reply's JSON object.
1030
+ *
1031
+ * Distinct from `extractJsonPayload` in ../llm-client, which serves a response
1032
+ * that DECLARES a JSON root and therefore must not scan onward. A prime reply
1033
+ * is prose plus a fenced block, and when the model emits several fences the
1034
+ * last one is its answer — so fences are scanned in reverse, and only then is a
1035
+ * brace-to-brace slice tried.
1036
+ */
1037
+ declare function extractPrimeJsonObject(text: string): Record<string, unknown> | null;
1038
+ /** Why the reply cannot be read as a prime answer, or null when it can. */
1039
+ declare function primeReplyDefect(parsed: Record<string, unknown> | null, rowsField: string): string | null;
1040
+ /**
1041
+ * Token accounting exactly as the bridge reported it. Lossless on purpose: a
1042
+ * side the bridge did not report stays null rather than becoming a zero, and a
1043
+ * side it DID report survives even when its partner is missing.
1044
+ */
1045
+ interface PrimeRawUsage {
1046
+ /**
1047
+ * Model-usage records the bridge observed. NOT a count of bridge round trips:
1048
+ * one prime turn routes several internal model calls, so a single turn
1049
+ * typically reports 3-5.
1050
+ */
1051
+ calls: number | null;
1052
+ /** Prompt tokens the bridge reported; null when it reported none. */
1053
+ inputTokens: number | null;
1054
+ /** Completion tokens the bridge reported; null when it reported none. */
1055
+ outputTokens: number | null;
1056
+ /**
1057
+ * True when the bridge DERIVED the counts (from character lengths) because
1058
+ * the backend reported no usage of its own. Pricing derived counts produces a
1059
+ * guess about a guess, which a reader must be able to tell apart from a
1060
+ * rate-estimated cost over exact tokens.
1061
+ */
1062
+ bridgeEstimated: boolean;
1063
+ }
1064
+ declare function emptyPrimeRawUsage(): PrimeRawUsage;
1065
+ /** Read the bridge's OpenAI-shaped `usage` object. */
1066
+ declare function normalizePrimeUsage(raw: unknown): PrimeRawUsage;
1067
+ /**
1068
+ * Sum two turns. Each side poisons independently: two turns that both report
1069
+ * input and neither report output yield a real input total beside a null
1070
+ * output, because discarding a measured count is as wrong as inventing one.
1071
+ */
1072
+ declare function mergePrimeRawUsage(a: PrimeRawUsage, b: PrimeRawUsage): PrimeRawUsage;
1073
+ /**
1074
+ * Bind raw prime usage to agent-eval's typed receipt.
1075
+ *
1076
+ * `RunTokenUsage.input` and `.output` are non-nullable, so a one-sided count
1077
+ * cannot round-trip through `tokens` without writing a zero nobody measured.
1078
+ * The complete-accounting field therefore stays null, the reported side is
1079
+ * carried verbatim in `partialTokens`, and its price becomes the receipt's
1080
+ * `knownCostUsd` lower bound.
1081
+ *
1082
+ * Only agent-eval calls this; consumers with no pricing table read
1083
+ * `PrimeRawUsage` directly.
1084
+ */
1085
+ declare function analystUsageReceiptFromPrimeUsage(usage: PrimeRawUsage, pricing: CustomTokenPricing): AnalystUsageReceipt;
1086
+ /**
1087
+ * Why an exchange ended without a readable reply. `deadline` and `aborted` are
1088
+ * separate members from `transport` on purpose: a model that ran past its
1089
+ * deadline, a caller who cancelled, and a bridge that refused the connection
1090
+ * demand three different responses, and a record that conflates them cannot be
1091
+ * acted on.
1092
+ */
1093
+ type PrimeFailure = {
1094
+ kind: 'transport' | 'unparseable-json' | 'no-content' | 'deadline' | 'malformed-reply';
1095
+ message: string;
1096
+ } | {
1097
+ kind: 'http-status';
1098
+ message: string;
1099
+ status: number;
1100
+ bodySnippet: string;
1101
+ } | {
1102
+ kind: 'aborted';
1103
+ message: string;
1104
+ cause: unknown;
1105
+ };
1106
+ interface PrimeRepairState {
1107
+ attempted: boolean;
1108
+ /** Null when no repair turn ran, or when the repair turn never returned a reply. */
1109
+ succeeded: boolean | null;
1110
+ }
1111
+ /** One completed bridge turn. A turn that failed produces no record. */
1112
+ interface PrimeTurnRecord {
1113
+ turn: 'first' | 'repair';
1114
+ usage: PrimeRawUsage;
1115
+ /** The reply's `usage` object verbatim; null when the bridge sent none. */
1116
+ rawUsage: unknown;
1117
+ }
1118
+ interface PrimeRejectedRow {
1119
+ index: number;
1120
+ reason: string;
1121
+ }
1122
+ type PrimeExchangeOutcome<TRow> = {
1123
+ ok: true;
1124
+ /** The reply's `answer` field; null when absent or not a string. */
1125
+ answer: string | null;
1126
+ rows: TRow[];
1127
+ rejected: PrimeRejectedRow[];
1128
+ /** Rows the model reported, before decoding or the count cap. */
1129
+ reportedRows: number;
1130
+ /** Valid rows dropped by `contract.maxRows`. */
1131
+ overflow: number;
1132
+ usage: PrimeRawUsage;
1133
+ turns: PrimeTurnRecord[];
1134
+ repair: PrimeRepairState;
1135
+ reply: string;
1136
+ } | {
1137
+ ok: false;
1138
+ failure: PrimeFailure;
1139
+ usage: PrimeRawUsage;
1140
+ turns: PrimeTurnRecord[];
1141
+ repair: PrimeRepairState;
1142
+ /** The last reply received, when one arrived — the diagnostic artifact for a malformed case. */
1143
+ reply?: string;
1144
+ };
1145
+ interface PrimeExchangeOptions<TRow> {
1146
+ contract: PrimeReplyContract<TRow>;
1147
+ prompt: string;
1148
+ transport: PrimeBridgeTransport;
1149
+ /** Full endpoint, e.g. `http://localhost:4181/v1/chat/completions`. */
1150
+ url: string;
1151
+ model: string;
1152
+ /** Deadline for ONE turn. Prime analyses routinely exceed five minutes. */
1153
+ timeoutMs: number;
1154
+ /** Whether a structurally malformed reply gets one bounded repair turn. */
1155
+ repair: boolean;
1156
+ signal?: AbortSignal;
1157
+ }
1158
+ /**
1159
+ * Run the protocol: one call, one bounded repair turn on a structurally
1160
+ * malformed reply, then decode. Zero valid rows from a well-formed reply is an
1161
+ * honest null, not a failure.
1162
+ */
1163
+ declare function runPrimeExchange<TRow>(options: PrimeExchangeOptions<TRow>): Promise<PrimeExchangeOutcome<TRow>>;
1164
+ /**
1165
+ * Where the inlined trajectory comes from. The protocol needs only two moves —
1166
+ * fetch it all, or fetch a reduced version — so no store, artifact path, or
1167
+ * span type enters the shared signature.
1168
+ */
1169
+ interface PrimeProjectionSource<TItem> {
1170
+ /** The full projection, or null when the source declares itself oversized. */
1171
+ full(): Promise<readonly TItem[] | null>;
1172
+ /** A reduced projection of the same material. */
1173
+ capped(): Promise<readonly TItem[]>;
1174
+ /** How `capped` reduces, named for the failure message, e.g. `per-attribute cap 1200`. */
1175
+ cappedDescription: string;
1176
+ }
1177
+ interface PrimeProjectionDelivery {
1178
+ mode: 'inline-json';
1179
+ fetch: 'full' | 'capped';
1180
+ renderedChars: number;
1181
+ }
1182
+ type PrimeProjectionOutcome<TItem> = {
1183
+ ok: true;
1184
+ items: readonly TItem[];
1185
+ rendered: string;
1186
+ delivery: PrimeProjectionDelivery;
1187
+ } | {
1188
+ ok: false;
1189
+ reason: string;
1190
+ renderedChars: number;
1191
+ };
1192
+ /**
1193
+ * Render, measure, fall back to the capped projection, re-measure, fail loud.
1194
+ *
1195
+ * Inline is the only delivery prime has, so an oversized trajectory is a
1196
+ * refusal rather than a silent truncation: dropping spans would understate the
1197
+ * trajectory and the analyst would answer a question about a different run.
1198
+ */
1199
+ declare function projectPrimeTrajectory<TItem>(source: PrimeProjectionSource<TItem>, limits: {
1200
+ maxInlineChars: number;
1201
+ }): Promise<PrimeProjectionOutcome<TItem>>;
1202
+ interface PrimeProtocolIdentity {
1203
+ question: string;
1204
+ taskDefinition?: string;
1205
+ contractLines: readonly string[];
1206
+ repairContractLines: readonly string[];
1207
+ /** Numeric limits the contract states, e.g. row and width caps. */
1208
+ limits: Readonly<Record<string, number>>;
1209
+ }
1210
+ /**
1211
+ * Digest of everything a consumer can send to the bridge under the prime
1212
+ * protocol, recorded per observation so a prime result names the exact contract
1213
+ * that produced it.
1214
+ *
1215
+ * Computed over the ACTUALLY composed contract, so two consumers that both
1216
+ * stamp `analyst_id: 'prime'` while asking materially different questions get
1217
+ * different digests by construction. That is what makes 'prime' a reproducible
1218
+ * claim rather than a label.
1219
+ */
1220
+ declare function primeProtocolSha256(identity: PrimeProtocolIdentity): string;
1221
+ //#endregion
875
1222
  //#region src/analyst/proposal-findings.d.ts
876
1223
  /** True when a finding names a source candidate generation may learn from. */
877
1224
  declare function isProposalFinding(finding: unknown): finding is ProposalFinding;
@@ -882,5 +1229,5 @@ declare function isProposalFinding(finding: unknown): finding is ProposalFinding
882
1229
  */
883
1230
  declare function assertProposalFindings(findings: unknown, context?: string): ReadonlyArray<ProposalFinding>;
884
1231
  //#endregion
885
- export { AGENT_RX_UPSTREAM_REVISION, ANALYST_BENCHMARK_COST_LEDGER_FILE, ANALYST_BENCHMARK_DEPENDENCY_LOCK_DIGEST_ALGORITHM, ANALYST_BENCHMARK_DEPENDENCY_LOCK_FILES, ANALYST_BENCHMARK_DEPENDENCY_LOCK_SHA256, ANALYST_BENCHMARK_EVIDENCE_DEPENDENCY_LOCK_SHA256, ANALYST_BENCHMARK_EVIDENCE_IMPLEMENTATION_SHA256, ANALYST_BENCHMARK_EVIDENCE_PACKAGE_VERSION, ANALYST_BENCHMARK_HELP, ANALYST_BENCHMARK_IMPLEMENTATION_DIGEST_ALGORITHM, ANALYST_BENCHMARK_IMPLEMENTATION_FILES, ANALYST_BENCHMARK_IMPLEMENTATION_SHA256, ANALYST_BENCHMARK_LOCAL_RECEIPT_FILE, ANALYST_BENCHMARK_MANIFEST_FILE, ANALYST_BENCHMARK_OBSERVATIONS_FILE, ANALYST_SEVERITIES, type AgentRxBenchmarkCaseOptions, type AgentRxCalibrationRunnerSummary, type AgentRxCalibrationSummary, type AgentRxFailure, type AgentRxPrediction, type AgentRxPredictionReport, type AgentRxRow, type Analyst, type AnalystBenchmarkArtifact, type AnalystBenchmarkCase, type AnalystBenchmarkCommandConfig, type AnalystBenchmarkCommandDependencies, type AnalystBenchmarkDatasetRef, type AnalystBenchmarkDescriptor, type AnalystBenchmarkError, type AnalystBenchmarkLabelState, type AnalystBenchmarkLocalRunReceipt, type AnalystBenchmarkObservation, type AnalystBenchmarkOutput, type AnalystBenchmarkProgressRow, type AnalystBenchmarkProvenance, type AnalystBenchmarkResult, type AnalystBenchmarkRunIdentity, type AnalystBenchmarkRunManifest, type AnalystBenchmarkRunner, type AnalystBenchmarkSummary, type AnalystComparisonMetric, type AnalystContext, type AnalystCost, type AnalystEvidenceExpectation, type AnalystEvidenceResolution, type AnalystEvidenceResolutionError, type AnalystEvidenceResolver, type AnalystFinding, type AnalystFindingScore, type AnalystHooks, type AnalystInputKind, type AnalystInstructionsOverride, type AnalystIssueExpectation, type AnalystLatencyDistribution, type AnalystMetricComparison, AnalystRegistry, type AnalystRegistryOptions, type AnalystRequirements, type AnalystRunEvent, type AnalystRunInputs, type AnalystRunResult, type AnalystRunSummary, type AnalystRunnerComparison, type AnalystSeverity, type AnalystUsageReceipt, type BehavioralAnalystOptions, type BudgetPolicy, CODE_TRACE_BENCH_ANALYST_PROMPT, CONTROL_INTEGRITY_ANALYST, type ChatCallOpts, type ChatClient, type ChatRequest, type ChatResponse, type ChatTransport, type CliBridgeTransportOpts, type CodeTraceBenchCaseOptions, type CodeTraceBenchLabelOptions, type CodeTraceBenchLabelSet, type CodeTraceBenchRow, type CodeTraceBlockDiagnostics, type CodeTraceCalibrationRunnerSummary, type CodeTraceCalibrationSummary, type CodeTraceFailureBlock, type CodeTraceStageAnnotation, type CodeTracerLabelGroup, type CodeTracerPredictionAdapterOptions, type CodeTracerPredictions, type CodeTracerStepLabel, ControlIntegrityAnalyst, type CreateChatClientOpts, type CreateTraceAnalystOptions, type CustomTransportOpts, DEFAULT_MAX_VERIFICATION_ARTIFACT_BYTES, DEFAULT_TRACE_ANALYST_KINDS, DEFAULT_TRACE_ANALYST_LIMITS, type DefaultAnalystRegistryOptions, type DefineCustomAnalystOptions, type DefineExactCustomAnalystOptions, type DiffPolicy, type DirectProviderTransportOpts, type DspyRlmTraceEngineOptions, type EvidenceRef, type ExactAnalystBudgetPolicy, type ExactAnalystBudgetSnapshot, type ExactAnalystExecutionPlanSnapshot, type ExactAnalystRunCompletion, type ExactAnalystRunEvent, ExactAnalystRunExecutionError, type ExactAnalystRunPolicySnapshot, type ExactAnalystRunResult, type ExactAnalystRunSummary, type ExactAnalystSnapshot, type ExactCapableAnalyst, type ExactExecutionComponentIdentity, type ExactExecutionComponentSnapshot, type ExactRegistryRunOpts, FAILURE_MODE_KIND_SPEC, FINDING_SUBJECT_GRAMMAR_PROMPT, FINDING_SUBJECT_KINDS, FINDING_SUBJECT_SYNTAX, type FindingSubject, type FindingSubjectKind, FindingSubjectStringSchema, type FindingsDiff, FindingsStore, IMPROVEMENT_KIND_SPEC, type JudgeAdapterOpts, KIND_EXPECTED_SUBJECTS, KNOWLEDGE_GAP_KIND_SPEC, KNOWLEDGE_POISONING_KIND_SPEC, type LoadedVerificationArtifacts, MAX_INCORRECT_BLOCKS, MAX_INCORRECT_BLOCK_STEPS, type MockTransportOpts, type PersistedFinding, type PreparedPublicAnalystBenchmark, type ProposalFinding, type ProposalFindingOrigin, type PublicAnalystBenchmarkDataset, type PublicAnalystBenchmarkModelConfig, type PublicAnalystBenchmarkModelOwner, type PublicBenchmarkDistributions, type PublicBenchmarkSelectionReport, type PublicBenchmarkValueDistribution, RAW_FINDING_SCHEMA_PROMPT, type RawAnalystEvidence, RawAnalystEvidenceSchema, type RawAnalystFinding, RawAnalystFindingSchema, type RegistryRunOpts, type RouterTransportOpts, type RunAnalystBenchmarkOptions, type RunCriticAdapterOpts, SKILL_USAGE_ANALYST, type SandboxSdkTransportOpts, type SemanticConceptJudgeAdapterOpts, SkillUsageAnalyst, type SkillUsageRecord, type SkillUsageReport, type SkillUsageScanConfig, type StepLabelAdapterOptions, type TraceAnalysisEngine, type TraceAnalysisEngineRequest, type TraceAnalysisEngineResult, type TraceAnalystDefinition, type TraceAnalystLimits, type TraceToolGroupName, type UpstreamPredictionAdapterOptions, type VerificationArtifactFile, type VerificationArtifactManifest, type VerificationArtifactRole, type VerificationAvailabilitySummary, type VerificationOutcome, type VerificationOutcomeSource, type VerificationOutcomeStatus, type VerificationResultFile, type VerifierAdapterOpts, adaptPublicBenchmarkFindings, agentRxBenchmarkCase, agentRxPredictionsToFindings, analystBenchmarkDependencyLockDigest, analystBenchmarkImplementationDigest, analystInstructionsOverrideFromText, appendVerificationArtifactsToOtlp, assertExactRegistryRunOpts, assertProposalFindings, behavioralAnalyst, buildDefaultAnalystRegistry, buildSkillUsageReport, buildTraceToolsForGroup, codeTraceBenchCase, codeTracerPredictionsToFindings, coerceJson, coerceToFindingRows, compareAnalystRunners, computeFindingId, createChatClient, createDspyRlmTraceEngine, createJudgeAdapter, createPublicBenchmarkDirectRunner, createPublicBenchmarkRlmRunner, createRunCriticAdapter, createSemanticConceptJudgeAdapter, createTraceAnalyst, createVerifierAdapter, defaultIsMaterial, defineCustomAnalyst, defineTraceAnalyst, deriveEfficiencyFindings, diffFindings, effectiveAnalystProtocolSha256, emitControlIntegrityFindings, emitSkillUsageFindings, emptyPublicBenchmarkRunner, evidenceRefsFromRawFinding, expandCodeTraceFailureBlocks, findingSubjectGrammarPromptFor, isProposalFinding, liftSeverity, loadCodeTraceVerificationArtifacts, loadPublicBenchmarkRows, makeFinding, makeProposalFinding, normalizeAgentRxCategory, normalizeBenchmarkLabel, parseFindingSubject, parseRawFinding, parseVerificationOutcome, preparePublicAnalystBenchmark, publicBenchmarkDistributions, publicBenchmarkProtocolSha256, publicBenchmarkRlmInstructions, publicBenchmarkSelectionReport, publicBenchmarkSystemPrompt, readAnalystBenchmarkArtifact, readAnalystInstructionsOverride, registryBenchmarkRunner, renderAgentRxCalibrationMarkdown, renderAnalystBenchmarkMarkdown, renderCodeTraceCalibrationMarkdown, renderFindingSubject, renderPriorFindings, renderUpstreamFindings, resolveTraceAnalystLimits, roundAgentRxStep, runAnalystBenchmark, runAnalystBenchmarkCommand, runTraceAnalyst, scoreAnalystFindings, selectPublicBenchmarkRows, stripCodeFences, summarizeAgentRxCalibration, summarizeAnalystBenchmarkRunner, summarizeCodeTraceCalibration, traceStoreEvidenceResolver };
1232
+ export { AGENT_RX_UPSTREAM_REVISION, ANALYST_BENCHMARK_COST_LEDGER_FILE, ANALYST_BENCHMARK_DEPENDENCY_LOCK_DIGEST_ALGORITHM, ANALYST_BENCHMARK_DEPENDENCY_LOCK_FILES, ANALYST_BENCHMARK_DEPENDENCY_LOCK_SHA256, ANALYST_BENCHMARK_EVIDENCE_DEPENDENCY_LOCK_SHA256, ANALYST_BENCHMARK_EVIDENCE_IMPLEMENTATION_SHA256, ANALYST_BENCHMARK_EVIDENCE_PACKAGE_VERSION, ANALYST_BENCHMARK_HELP, ANALYST_BENCHMARK_IMPLEMENTATION_DIGEST_ALGORITHM, ANALYST_BENCHMARK_IMPLEMENTATION_FILES, ANALYST_BENCHMARK_IMPLEMENTATION_SHA256, ANALYST_BENCHMARK_LOCAL_RECEIPT_FILE, ANALYST_BENCHMARK_MANIFEST_FILE, ANALYST_BENCHMARK_OBSERVATIONS_FILE, ANALYST_SEVERITIES, type AgentRxBenchmarkCaseOptions, type AgentRxCalibrationRunnerSummary, type AgentRxCalibrationSummary, type AgentRxFailure, type AgentRxPrediction, type AgentRxPredictionReport, type AgentRxRow, type Analyst, type AnalystBenchmarkArtifact, type AnalystBenchmarkCase, type AnalystBenchmarkCommandConfig, type AnalystBenchmarkCommandDependencies, type AnalystBenchmarkDatasetRef, type AnalystBenchmarkDescriptor, type AnalystBenchmarkError, type AnalystBenchmarkLabelState, type AnalystBenchmarkLocalRunReceipt, type AnalystBenchmarkObservation, type AnalystBenchmarkOutput, type AnalystBenchmarkProgressRow, type AnalystBenchmarkProvenance, type AnalystBenchmarkResult, type AnalystBenchmarkRunIdentity, type AnalystBenchmarkRunManifest, type AnalystBenchmarkRunner, type AnalystBenchmarkSummary, type AnalystComparisonMetric, type AnalystContext, type AnalystCost, type AnalystEvidenceExpectation, type AnalystEvidenceResolution, type AnalystEvidenceResolutionError, type AnalystEvidenceResolver, type AnalystFinding, type AnalystFindingScore, type AnalystHooks, type AnalystInputKind, type AnalystInstructionsOverride, type AnalystIssueExpectation, type AnalystLatencyDistribution, type AnalystMetricComparison, AnalystRegistry, type AnalystRegistryOptions, type AnalystRequirements, type AnalystRunEvent, type AnalystRunInputs, type AnalystRunResult, type AnalystRunSummary, type AnalystRunnerComparison, type AnalystSeverity, type AnalystUsageReceipt, type BehavioralAnalystOptions, type BudgetPolicy, CODE_TRACE_BENCH_ANALYST_PROMPT, CONTROL_INTEGRITY_ANALYST, type ChatCallOpts, type ChatClient, type ChatRequest, type ChatResponse, type ChatTransport, type CliBridgeTransportOpts, type CodeTraceBenchCaseOptions, type CodeTraceBenchLabelOptions, type CodeTraceBenchLabelSet, type CodeTraceBenchRow, type CodeTraceBlockDiagnostics, type CodeTraceCalibrationRunnerSummary, type CodeTraceCalibrationSummary, type CodeTraceFailureBlock, type CodeTraceStageAnnotation, type CodeTracerLabelGroup, type CodeTracerPredictionAdapterOptions, type CodeTracerPredictions, type CodeTracerStepLabel, ControlIntegrityAnalyst, type CreateChatClientOpts, type CreateTraceAnalystOptions, type CustomTransportOpts, DEFAULT_MAX_VERIFICATION_ARTIFACT_BYTES, DEFAULT_TRACE_ANALYST_KINDS, DEFAULT_TRACE_ANALYST_LIMITS, type DefaultAnalystRegistryOptions, type DefineCustomAnalystOptions, type DefineExactCustomAnalystOptions, type DiffPolicy, type DirectProviderTransportOpts, type DspyRlmTraceEngineOptions, type EvidenceRef, type ExactAnalystBudgetPolicy, type ExactAnalystBudgetSnapshot, type ExactAnalystExecutionPlanSnapshot, type ExactAnalystRunCompletion, type ExactAnalystRunEvent, ExactAnalystRunExecutionError, type ExactAnalystRunPolicySnapshot, type ExactAnalystRunResult, type ExactAnalystRunSummary, type ExactAnalystSnapshot, type ExactCapableAnalyst, type ExactExecutionComponentIdentity, type ExactExecutionComponentSnapshot, type ExactRegistryRunOpts, FAILURE_MODE_KIND_SPEC, FINDING_SUBJECT_GRAMMAR_PROMPT, FINDING_SUBJECT_KINDS, FINDING_SUBJECT_SYNTAX, type FindingSubject, type FindingSubjectKind, FindingSubjectStringSchema, type FindingsDiff, FindingsStore, IMPROVEMENT_KIND_SPEC, type JudgeAdapterOpts, KIND_EXPECTED_SUBJECTS, KNOWLEDGE_GAP_KIND_SPEC, KNOWLEDGE_POISONING_KIND_SPEC, type LoadedVerificationArtifacts, MAX_INCORRECT_BLOCKS, MAX_INCORRECT_BLOCK_STEPS, type MockTransportOpts, type PersistedFinding, type PreparedPublicAnalystBenchmark, type PrimeBenchmarkRunnerOptions, type PrimeBridgeTransport, type PrimeBridgeTransportRequest, type PrimeBridgeTransportResult, type PrimeExchangeOptions, type PrimeExchangeOutcome, type PrimeFailure, type PrimeProjectionDelivery, type PrimeProjectionOutcome, type PrimeProjectionSource, type PrimePromptSpec, type PrimeProtocolIdentity, type PrimeRawUsage, type PrimeRejectedRow, type PrimeRepairPromptSpec, type PrimeRepairState, type PrimeReplyContract, type PrimeRowDecoded, type PrimeTurnRecord, type ProposalFinding, type ProposalFindingOrigin, type PublicAnalystBenchmarkDataset, type PublicAnalystBenchmarkModelConfig, type PublicAnalystBenchmarkModelOwner, type PublicAnalystBenchmarkModelSettings, type PublicBenchmarkDistributions, type PublicBenchmarkSelectionReport, type PublicBenchmarkValueDistribution, RAW_FINDING_SCHEMA_PROMPT, type RawAnalystEvidence, RawAnalystEvidenceSchema, type RawAnalystFinding, RawAnalystFindingSchema, type RegistryRunOpts, type RouterTransportOpts, type RunAnalystBenchmarkOptions, type RunCriticAdapterOpts, SKILL_USAGE_ANALYST, type SandboxSdkTransportOpts, type SemanticConceptJudgeAdapterOpts, SkillUsageAnalyst, type SkillUsageRecord, type SkillUsageReport, type SkillUsageScanConfig, type StepLabelAdapterOptions, type TraceAnalysisEngine, type TraceAnalysisEngineRequest, type TraceAnalysisEngineResult, type TraceAnalystDefinition, type TraceAnalystLimits, type TraceToolGroupName, type UpstreamPredictionAdapterOptions, type VerificationArtifactFile, type VerificationArtifactManifest, type VerificationArtifactRole, type VerificationAvailabilitySummary, type VerificationOutcome, type VerificationOutcomeSource, type VerificationOutcomeStatus, type VerificationResultFile, type VerifierAdapterOpts, adaptPublicBenchmarkFindings, agentRxBenchmarkCase, agentRxPredictionsToFindings, analystBenchmarkDependencyLockDigest, analystBenchmarkImplementationDigest, analystInstructionsOverrideFromText, analystUsageReceiptFromPrimeUsage, appendVerificationArtifactsToOtlp, assertExactRegistryRunOpts, assertProposalFindings, behavioralAnalyst, buildDefaultAnalystRegistry, buildPrimePrompt, buildPrimeRepairPrompt, buildSkillUsageReport, buildTraceToolsForGroup, codeTraceBenchCase, codeTracerPredictionsToFindings, coerceJson, coerceToFindingRows, compareAnalystRunners, computeFindingId, createChatClient, createDspyRlmTraceEngine, createJudgeAdapter, createPrimeBenchmarkRunner, createPublicBenchmarkDirectRunner, createPublicBenchmarkRlmRunner, createRunCriticAdapter, createSemanticConceptJudgeAdapter, createTraceAnalyst, createVerifierAdapter, defaultIsMaterial, defineCustomAnalyst, defineTraceAnalyst, deriveEfficiencyFindings, diffFindings, effectiveAnalystProtocolSha256, emitControlIntegrityFindings, emitSkillUsageFindings, emptyPrimeRawUsage, emptyPublicBenchmarkRunner, evidenceRefsFromRawFinding, expandCodeTraceFailureBlocks, extractPrimeJsonObject, findingSubjectGrammarPromptFor, isProposalFinding, liftSeverity, loadCodeTraceVerificationArtifacts, loadPublicBenchmarkRows, makeFinding, makeProposalFinding, mergePrimeRawUsage, nodeHttpPrimeBridgeTransport, normalizeAgentRxCategory, normalizeBenchmarkLabel, normalizePrimeUsage, parseFindingSubject, parseRawFinding, parseVerificationOutcome, preparePublicAnalystBenchmark, primeAnalystProtocolSha256, primeProtocolSha256, primeReplyDefect, projectPrimeTrajectory, publicBenchmarkDistributions, publicBenchmarkProtocolSha256, publicBenchmarkRlmInstructions, publicBenchmarkSelectionReport, publicBenchmarkSystemPrompt, readAnalystBenchmarkArtifact, readAnalystInstructionsOverride, registryBenchmarkRunner, renderAgentRxCalibrationMarkdown, renderAnalystBenchmarkMarkdown, renderCodeTraceCalibrationMarkdown, renderFindingSubject, renderPriorFindings, renderUpstreamFindings, resolveTraceAnalystLimits, roundAgentRxStep, runAnalystBenchmark, runAnalystBenchmarkCommand, runPrimeExchange, runTraceAnalyst, scoreAnalystFindings, selectPublicBenchmarkRows, stripCodeFences, summarizeAgentRxCalibration, summarizeAnalystBenchmarkRunner, summarizeCodeTraceCalibration, traceStoreEvidenceResolver };
886
1233
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/analyst/adapters.ts","../../src/analyst/benchmark-agentrx-calibration.ts","../../src/analyst/benchmark-dataset-types.ts","../../src/analyst/benchmark-dataset-agentrx.ts","../../src/analyst/benchmark-dataset-codetrace.ts","../../src/analyst/benchmark-dataset-utils.ts","../../src/analyst/benchmark-verification-outcome.ts","../../src/analyst/benchmark-verification-artifacts.ts","../../src/analyst/benchmark-public-types.ts","../../src/analyst/benchmark-public-adapters.ts","../../src/analyst/benchmark-public-data.ts","../../src/analyst/benchmark-public-prompt.ts","../../src/analyst/benchmark-public-model.ts","../../src/analyst/benchmark-public-rlm.ts","../../src/analyst/benchmark-comparison.ts","../../src/analyst/benchmark-public-calibration.ts","../../src/analyst/benchmark-command-artifact.ts","../../src/analyst/benchmark-command-result.ts","../../src/analyst/benchmark-command.ts","../../src/analyst/benchmark-implementation.ts","../../src/analyst/benchmark-instructions-override.ts","../../src/analyst/benchmark-report.ts","../../src/analyst/benchmark-summary.ts","../../src/analyst/parse-tolerant.ts","../../src/analyst/proposal-findings.ts"],"mappings":";;;;;;;;;;;;iBA4CgB,aAAa,GAAG,WAAgB;UAe/B,oBAAoB;EACnC;EACA;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ACA;EACA;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA,SAAS;;iBAGK,8BACd,QAAQ,yBACP;iBAca,mCAAmC,SAAS;;;UCpC3C;EACf;EACA;EACA;IACE,SAAS;IACT;IACA;IACA;IACA;IACA,YAAY;MAAQ;MAAiB;MAAsB;;IAC3D,uBAAuB;IACvB,0BAA0B;IAC1B;MACE;MACA;MACA;MACA,QAAQ;;IAEV;MACE;MACA;;MAEA;MACA;;MAEA;MACA;MACA;MACA;MACA;MACA;MACA;MACA,UAAU;MACV;QACE;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;MAEF;QACE;QACA;QACA;;MAEF;MACA;MACA;;MAEA;MACA;MACA;;;EAGJ,QAAQ;EACR,aAAa;EACb,uBAAuB;EACvB,qBAAqB;;UAGN;EACf;EACA;EACA;EACA;IACE;IACA;IACA;;;UAIa;EACf;IACE,SAAS;IACT;IACA;IACA;MACE;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA,SAAS;MACT;QACE;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;MAEF;QACE;QACA;QACA;;;IAGJ;IACA;IACA;IACA;;IAEA;IACA;IACA;IACA;;IAEA;IACA;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA,YAAY;MAAQ;MAAiB;MAAsB;;IAC3D;IACA;;;UAIa;EACf;EACA;EACA;EACA;EACA,UAAU;;UAGK;EACf;EACA;EACA;EACA;IACE;IACA;IACA;IACA;IACA;;EAEF;EACA;IACE;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA;IACA;IACA;;;UAIa;EACf;EACA;EACA;EACA,aAAa;EACb;;cAGW;cACA;cACA;cACA;;;iBC3KS,6BACpB,eACC,QAAQ;;;UCqEM;EACf,uBACE,SAAS,+BACT,QAAQ,sCACL,uBAAuB;EAC5B,2BACE,mBACA;IACE;IACA,aAAa,SAAS,OAAO;QAE5B,QAAQ;;;;;;;KAQH;UAEK;EACf,SAAS;EACT,SAAS;EACT;EACA;EACA;EACA;EACA;EACA;EACA,OAAO;EACP;EACA;EACA;EACA;;EAEA;EACA;EACA;EACA;EACA;EACA;;iBAKoB,2BACpB,yBACA,MAAK,OAAO,YACZ,eAAc,sCACb;cA0TU;;;cCtcA;cAEA;cAEA;cAOA;;;;;;;;cAUA;cAEA;cAGA;cAGA;cAyFA;iBAGG;iBAIA;;;;iBCpHA,oCAAoC,eAAe;;iBAQnD,gCAAgC,eAAe;;;;;;;;;;;iBAyB/C,+BACd,SAAS,+BACT,WAAW,KAAK;;;iBCzCF,+BACd,QAAQ,wBACR,uBAAsB;;;iBCER,gCACd,kBACA,uBAAuB,gCACtB;;;;;;;;;;;;;;;iBCGa,gBAAgB;;;;;iBAgBhB,WAAW;;;;;;;iBAeX,oBAAoB;;;;iBCXpB,kBAAkB,mBAAmB,WAAW;;;;;;iBAShD,uBACd,mBACA,mBACC,cAAc"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/analyst/adapters.ts","../../src/analyst/benchmark-agentrx-calibration.ts","../../src/analyst/benchmark-dataset-types.ts","../../src/analyst/benchmark-dataset-agentrx.ts","../../src/analyst/benchmark-dataset-codetrace.ts","../../src/analyst/benchmark-dataset-utils.ts","../../src/analyst/benchmark-verification-outcome.ts","../../src/analyst/benchmark-verification-artifacts.ts","../../src/analyst/benchmark-public-types.ts","../../src/analyst/benchmark-public-adapters.ts","../../src/analyst/benchmark-public-data.ts","../../src/analyst/benchmark-public-prompt.ts","../../src/analyst/benchmark-public-model.ts","../../src/analyst/benchmark-public-rlm.ts","../../src/analyst/prime-bridge-transport.ts","../../src/analyst/benchmark-runner-prime.ts","../../src/analyst/benchmark-comparison.ts","../../src/analyst/benchmark-public-calibration.ts","../../src/analyst/benchmark-command-artifact.ts","../../src/analyst/benchmark-command-result.ts","../../src/analyst/benchmark-command.ts","../../src/analyst/benchmark-implementation.ts","../../src/analyst/benchmark-instructions-override.ts","../../src/analyst/benchmark-report.ts","../../src/analyst/benchmark-summary.ts","../../src/analyst/parse-tolerant.ts","../../src/analyst/prime-protocol.ts","../../src/analyst/proposal-findings.ts"],"mappings":";;;;;;;;;;;;iBA4CgB,aAAa,GAAG,WAAgB;UAe/B,oBAAoB;EACnC;EACA;EACA,UAAU,mBAAmB;;;;;EAK7B,UAAU,KAAK,cAAc;;iBAGf,sBAAsB,KAAK,MAAM,oBAAoB,OAAO,QAAQ;UAwEnE;EACf;EACA;EACA,SAAS;;EAET;;iBAGc,uBAAuB,OAAM,uBAA4B,QAAQ;UAiEhE;EACf;EACA;EACA,OAAO;;EAEP,MAAM;;EAEN,OAAO;;EAEP;;iBAGc,mBAAmB,MAAM,mBAAmB,QAAQ;UAiDnD;EACf;EACA;;EAEA,UAAU,KAAK;;EAEf;;iBAGc,kCACd,OAAM,kCACL,QAAQ;;;cC5RE;UAEI;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA,SAAS;;iBAGK,4BACd,QAAQ,wBACR,2BACC;iBAkBa,iCAAiC,SAAS;;;KCtD9C;UAEK;EACf,YAAY;EACZ;EACA;EACA;EACA;EACA;;UAGe;EACf,eAAe;EACf,mBAAmB;EACnB;IAAe,YAAY;IAAY;;EACvC,wBAAwB;EACxB;EACA;EACA;;UAGe;EACf,UAAU;EACV;EACA;EACA;EACA;;UAGe;EACf,UAAU;EACV,mBAAmB;EACnB;EACA;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA,iBAAiB;;KAGP,0CAEC,sCACA,iCACA;UAEI;EACf;EACA;EACA;EACA;;EAEA;EACA;EACA;EACA;EACA;EACA;EACA,oCAAoC;;UAGrB;EACf,eAAe;EACf,WAAW,sBAAsB;;KAGvB;UAEK;;;;;EAKf,WAAW;;UAGI,kCACP,yBACN;UAEa,oCAAoC;EACnD;;EAE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ACN,QAAQ;;;;;;iBAOG,gCAAgC;;;UC2B/B;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA,UAAU;;EAEV,YAAY;;;;;;iBA8EE;;iBAKA,2BACd,SAAS,8BACR,uBAAuB;;;KC1Kd;UAoBK;EACf,QAAQ;EACR;;EAEA;;EAEA;;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA,SAAS;;iBASK,sBACd,QAAQ,wBACR;EACE;EACA;EACA;EACA;EACA;IAED;;;UCnEc;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA,SAAS;;iBAGK,8BACd,QAAQ,yBACP;iBAca,mCAAmC,SAAS;;;UCpC3C;EACf;EACA;EACA;IACE,SAAS;IACT;IACA;IACA;IACA;IACA,YAAY;MAAQ;MAAiB;MAAsB;;IAC3D,uBAAuB;IACvB,0BAA0B;IAC1B;MACE;MACA;MACA;MACA,QAAQ;;IAEV;MACE;MACA;;MAEA;MACA;;MAEA;MACA;MACA;MACA;MACA;MACA;MACA;MACA,UAAU;MACV;QACE;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;MAEF;QACE;QACA;QACA;;MAEF;MACA;MACA;;MAEA;MACA;MACA;;;EAGJ,QAAQ;EACR,aAAa;EACb,uBAAuB;EACvB,qBAAqB;;UAGN;EACf;EACA;EACA;EACA;IACE;IACA;IACA;;;UAIa;EACf;IACE,SAAS;IACT;IACA;IACA;MACE;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA,SAAS;MACT;QACE;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;MAEF;QACE;QACA;QACA;;;IAGJ;IACA;IACA;IACA;;IAEA;IACA;IACA;IACA;;IAEA;IACA;IACA;IACA;;EAEF;IACE;IACA;IACA;IACA,YAAY;MAAQ;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