@tangle-network/agent-eval 1.0.38 → 1.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/adapters/http.d.ts +1 -1
- package/dist/{agent-profile-BKgR30kv.d.ts → agent-profile-hytrwAnN.d.ts} +166 -166
- package/dist/agent-profile-hytrwAnN.d.ts.map +1 -0
- package/dist/analyst/index.d.ts +2 -2
- package/dist/analyst/index.js +5 -5
- package/dist/app-grade/index.d.ts +1 -1
- package/dist/{benchmark-command-BpmrrgzA.js → benchmark-command-CJw3ijDV.js} +5 -5
- package/dist/{benchmark-command-BpmrrgzA.js.map → benchmark-command-CJw3ijDV.js.map} +1 -1
- package/dist/benchmarks/index.d.ts +1 -1
- package/dist/benchmarks/index.js +2 -2
- package/dist/campaign/index.d.ts +3 -3
- package/dist/campaign/index.js +3 -3
- package/dist/{campaign-BU6bJNvu.js → campaign-DawSkDag.js} +3 -3
- package/dist/{campaign-BU6bJNvu.js.map → campaign-DawSkDag.js.map} +1 -1
- package/dist/{statistical-heldout-RmdXoz2e.d.ts → campaign-evidence-C1c6uihA.d.ts} +413 -413
- package/dist/campaign-evidence-C1c6uihA.d.ts.map +1 -0
- package/dist/cli.js +1 -1
- package/dist/contract/index.d.ts +5 -5
- package/dist/contract/index.js +4 -4
- package/dist/{default-registry-CpGvgSYQ.js → default-registry-BE5Rj9ba.js} +8 -32
- package/dist/default-registry-BE5Rj9ba.js.map +1 -0
- package/dist/default-registry-C5x2jyD6.d.ts.map +1 -1
- package/dist/{define-agent-eval-4KGwzIVt.d.ts → define-agent-eval-C4yoCqkc.d.ts} +3 -4
- package/dist/define-agent-eval-C4yoCqkc.d.ts.map +1 -0
- package/dist/{define-agent-eval-BeLMK-OM.js → define-agent-eval-CyU7eAzj.js} +5 -4
- package/dist/define-agent-eval-CyU7eAzj.js.map +1 -0
- package/dist/{dspy-rlm-engine-EC-Pkdf-.js → dspy-rlm-engine-aM1RWOUT.js} +2 -2
- package/dist/{dspy-rlm-engine-EC-Pkdf-.js.map → dspy-rlm-engine-aM1RWOUT.js.map} +1 -1
- package/dist/experiment/index.d.ts +1 -1
- package/dist/{feedback-trajectory-FamLu3Wt.d.ts → feedback-trajectory-CCWiFzeE.d.ts} +2 -2
- package/dist/{feedback-trajectory-FamLu3Wt.d.ts.map → feedback-trajectory-CCWiFzeE.d.ts.map} +1 -1
- package/dist/{findings-store-71J302Ls.js → findings-store-B8pq8Rhr.js} +3 -3
- package/dist/{findings-store-71J302Ls.js.map → findings-store-B8pq8Rhr.js.map} +1 -1
- package/dist/{index-BsTGJf2M.d.ts → index-BuuUhU_V.d.ts} +9 -9
- package/dist/{index-BsTGJf2M.d.ts.map → index-BuuUhU_V.d.ts.map} +1 -1
- package/dist/{index-CzEGCOWM.d.ts → index-CXoFLNKI.d.ts} +4 -4
- package/dist/{index-CzEGCOWM.d.ts.map → index-CXoFLNKI.d.ts.map} +1 -1
- package/dist/{index-RBV2Y-7X.d.ts → index-HdlzN11G.d.ts} +2 -2
- package/dist/{index-RBV2Y-7X.d.ts.map → index-HdlzN11G.d.ts.map} +1 -1
- package/dist/index.d.ts +11 -11
- package/dist/index.js +8 -8
- package/dist/{kind-factory-BTUq1Byh.js → kind-factory-B5FfFE5G.js} +20 -2
- package/dist/{kind-factory-BTUq1Byh.js.map → kind-factory-B5FfFE5G.js.map} +1 -1
- package/dist/{llm-judge-BBHrAlcE.js → llm-judge-DHgx29ro.js} +74 -20
- package/dist/llm-judge-DHgx29ro.js.map +1 -0
- package/dist/openapi.json +1 -1
- package/dist/{researcher-k925Q6Jb.d.ts → researcher-DvFDa1o1.d.ts} +2 -2
- package/dist/{researcher-k925Q6Jb.d.ts.map → researcher-DvFDa1o1.d.ts.map} +1 -1
- package/dist/rl.d.ts +1 -1
- package/dist/{index-OvU1UXKC.d.ts → run-improvement-loop-BAxDnaPI.d.ts} +1619 -1619
- package/dist/run-improvement-loop-BAxDnaPI.d.ts.map +1 -0
- package/dist/{skillopt-optimization-method-BmfnAzG4.js → skillopt-optimization-method-Du3GbReg.js} +10 -4
- package/dist/{skillopt-optimization-method-BmfnAzG4.js.map → skillopt-optimization-method-Du3GbReg.js.map} +1 -1
- package/dist/{store-otlp-DQK9hCtH.js → store-otlp-DHc_E78m.js} +2 -2
- package/dist/{store-otlp-DQK9hCtH.js.map → store-otlp-DHc_E78m.js.map} +1 -1
- package/dist/{store-tool-spans-BRR9hsPP.js → store-tool-spans-BR4IhZYZ.js} +3 -3
- package/dist/{store-tool-spans-BRR9hsPP.js.map → store-tool-spans-BR4IhZYZ.js.map} +1 -1
- package/dist/traces.js +3 -3
- package/dist/wire/index.d.ts +3 -3
- package/package.json +1 -1
- package/dist/agent-profile-BKgR30kv.d.ts.map +0 -1
- package/dist/default-registry-CpGvgSYQ.js.map +0 -1
- package/dist/define-agent-eval-4KGwzIVt.d.ts.map +0 -1
- package/dist/define-agent-eval-BeLMK-OM.js.map +0 -1
- package/dist/index-OvU1UXKC.d.ts.map +0 -1
- package/dist/llm-judge-BBHrAlcE.js.map +0 -1
- package/dist/statistical-heldout-RmdXoz2e.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,18 @@ All notable changes to `@tangle-network/agent-eval` and its sibling `agent-eval-
|
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
+
## [1.0.40] — 2026-11-18
|
|
8
|
+
|
|
9
|
+
- fix(cost): selfImprove, compareOptimizationMethods and trace analysts report agent spend the ledger missed (#1296)
|
|
10
|
+
|
|
11
|
+
## [1.0.39] — 2026-11-17
|
|
12
|
+
|
|
13
|
+
- fix(campaign): an executed cell with no agent receipt makes the run's cost unknown, not an observed $0 (#1294)
|
|
14
|
+
- fix(analyst): behavioral claims state the thresholds their rules enforce (#1292)
|
|
15
|
+
- test(release): keep the prepare-release fixture off the host's commit hooks (#1289)
|
|
16
|
+
|
|
17
|
+
- An executed campaign cell whose agent recorded no paid call now reports `costProvenance: uncaptured` and `tokensKnown: false`, and the run's `aggregates.cost` reports `uncaptured` with `accountingComplete: false` and one `incompleteReasons` entry per such cell. An agent that paid outside the ledger (a sandboxed harness through `box.prompt`) used to produce an observed $0 with complete accounting. To claim a known zero, record the call through `ctx.cost.runPaidCall` with `actualCostUsd: 0`; to report a sandbox's own bill, record it as that call's `actualCostUsd`.
|
|
18
|
+
|
|
7
19
|
## [1.0.38] — 2026-11-16
|
|
8
20
|
|
|
9
21
|
- fix(python): accept an optimizer model budget without maxCostUsd (#1285)
|
package/dist/adapters/http.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { d as CostReceipt } from "../cost-ledger-Czro9wmo.js";
|
|
2
2
|
import { R as Scenario, d as DispatchContext, f as DispatchFn } from "../types-DGqGbNY4.js";
|
|
3
|
-
import "../index-
|
|
3
|
+
import "../index-CXoFLNKI.js";
|
|
4
4
|
export interface HttpDispatchOptions<TScenario extends Scenario, _TArtifact> {
|
|
5
5
|
/** Static endpoint URL. Mutually exclusive with `resolveUrl`. */
|
|
6
6
|
url?: string;
|
|
@@ -2,170 +2,6 @@ import { f as CostReceiptInput, m as CustomTokenPricing } from "./cost-ledger-Cz
|
|
|
2
2
|
import { Y as TraceAnalysisStore, i as AnalystFinding, m as EvidenceRef, p as AnalystUsageReceipt } from "./types-DmYd2Igl.js";
|
|
3
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
|
-
interface ExternalOptimizerProcessLimits {
|
|
6
|
-
/** Maximum serialized input written for the child process. */
|
|
7
|
-
maxInputBytes: number;
|
|
8
|
-
/** Maximum JSON result read from the child process. */
|
|
9
|
-
maxResultBytes: number;
|
|
10
|
-
/** Maximum stdout or stderr characters retained for diagnostics. */
|
|
11
|
-
maxOutputChars: number;
|
|
12
|
-
}
|
|
13
|
-
declare const DEFAULT_EXTERNAL_OPTIMIZER_PROCESS_LIMITS: Readonly<ExternalOptimizerProcessLimits>;
|
|
14
|
-
interface ExternalOptimizerCallbackLimits {
|
|
15
|
-
/** Maximum serialized request accepted by the loopback callback. */
|
|
16
|
-
maxRequestBytes: number;
|
|
17
|
-
/** Maximum serialized response returned by the loopback callback. */
|
|
18
|
-
maxResponseBytes: number;
|
|
19
|
-
}
|
|
20
|
-
declare const DEFAULT_EXTERNAL_OPTIMIZER_CALLBACK_LIMITS: Readonly<ExternalOptimizerCallbackLimits>;
|
|
21
|
-
interface ExternalOptimizerRunnerCommand {
|
|
22
|
-
command?: string;
|
|
23
|
-
args?: readonly string[];
|
|
24
|
-
env?: NodeJS.ProcessEnv;
|
|
25
|
-
/** Child-process resource limits. Omitted fields use finite defaults. */
|
|
26
|
-
limits?: Partial<ExternalOptimizerProcessLimits>;
|
|
27
|
-
}
|
|
28
|
-
type ExternalOptimizerResumeMode = 'never' | 'if-compatible' | 'required';
|
|
29
|
-
type ExternalTextCandidate = string | Record<string, string>;
|
|
30
|
-
interface ExternalTextEvaluationRequest {
|
|
31
|
-
candidate: ExternalTextCandidate;
|
|
32
|
-
exampleId: string;
|
|
33
|
-
}
|
|
34
|
-
type DeepReadonly<T> = T extends ((...args: never[]) => unknown) ? T : T extends readonly (infer U)[] ? readonly DeepReadonly<U>[] : T extends object ? { readonly [K in keyof T]: DeepReadonly<T[K]>; } : T;
|
|
35
|
-
/** Provider-neutral request parsed once from the optimizer's loopback protocol. */
|
|
36
|
-
type ExternalOptimizerChatRequest = DeepReadonly<Omit<ChatRequest, 'model'> & {
|
|
37
|
-
model: string;
|
|
38
|
-
}>;
|
|
39
|
-
type ExternalOptimizerEndpointFormat = 'chat-completions' | 'responses' | 'anthropic-messages';
|
|
40
|
-
/** One exact model request admitted by the loopback proxy. */
|
|
41
|
-
interface ExternalOptimizerModelCallRequest {
|
|
42
|
-
/** Stable identity allocated by the cost ledger for this paid call. */
|
|
43
|
-
readonly callId: string;
|
|
44
|
-
/** Deeply immutable canonical request; HTTP protocol fields never cross this boundary. */
|
|
45
|
-
readonly request: ExternalOptimizerChatRequest;
|
|
46
|
-
/** Child response shape, when the execution owner needs to retain it as evidence. */
|
|
47
|
-
readonly endpointFormat?: ExternalOptimizerEndpointFormat;
|
|
48
|
-
readonly signal: AbortSignal;
|
|
49
|
-
}
|
|
50
|
-
/** Runtime-owned result for one admitted optimizer-model call. */
|
|
51
|
-
type ExternalOptimizerModelCallResult = {
|
|
52
|
-
readonly succeeded: true;
|
|
53
|
-
/** Canonical response encoded back into the child's protocol by Agent Eval. */
|
|
54
|
-
readonly response: ChatResponse;
|
|
55
|
-
/**
|
|
56
|
-
* Canonical measured usage/cost input retained by Agent Eval's cost ledger.
|
|
57
|
-
* `inputTokens` is the non-cached portion, `cachedTokens` is the cache-read
|
|
58
|
-
* portion, and response `promptTokens` equals their sum. Cache-write tokens
|
|
59
|
-
* remain a separately billed class and are never silently added to that total.
|
|
60
|
-
*/
|
|
61
|
-
readonly receipt: CostReceiptInput;
|
|
62
|
-
/** Opaque, finite JSON proof of the exact execution retained in provenance. */
|
|
63
|
-
readonly execution: unknown;
|
|
64
|
-
} | {
|
|
65
|
-
readonly succeeded: false;
|
|
66
|
-
/** Public failure text safe to retain and return to the child process. */
|
|
67
|
-
readonly error: string;
|
|
68
|
-
/** Usage/cost state for the failed Runtime call. Unknown values stay unknown. */
|
|
69
|
-
readonly receipt: CostReceiptInput;
|
|
70
|
-
/** Opaque, finite JSON proof of the failed exact execution. */
|
|
71
|
-
readonly execution: unknown;
|
|
72
|
-
};
|
|
73
|
-
/**
|
|
74
|
-
* Execution-neutral model-call seam for an external optimizer.
|
|
75
|
-
*
|
|
76
|
-
* The package that owns execution implements this with its exact execution
|
|
77
|
-
* path. For Discovery that owner is Runtime and the identity is an
|
|
78
|
-
* AgentProfile. The loopback proxy owns request validation, limits, response
|
|
79
|
-
* bounds, and cost-ledger recording. Once invoked, the callback must resolve
|
|
80
|
-
* with one success/failure result. Rejecting loses the execution record and
|
|
81
|
-
* therefore fails the optimizer attempt.
|
|
82
|
-
*/
|
|
83
|
-
type ExternalOptimizerModelCall = (request: ExternalOptimizerModelCallRequest) => Promise<ExternalOptimizerModelCallResult>;
|
|
84
|
-
/** One opaque Runtime execution record retained for one admitted model call. */
|
|
85
|
-
type ExternalOptimizerModelExecutionObservation = {
|
|
86
|
-
readonly sequence: number;
|
|
87
|
-
readonly callId: string;
|
|
88
|
-
readonly callRef: string;
|
|
89
|
-
readonly path: '/v1/chat/completions' | '/v1/responses' | '/v1/messages';
|
|
90
|
-
readonly model: string;
|
|
91
|
-
readonly succeeded: true;
|
|
92
|
-
readonly responseStatus: number;
|
|
93
|
-
readonly execution: unknown;
|
|
94
|
-
} | {
|
|
95
|
-
readonly sequence: number;
|
|
96
|
-
readonly callId: string;
|
|
97
|
-
readonly callRef: string;
|
|
98
|
-
readonly path: '/v1/chat/completions' | '/v1/responses' | '/v1/messages';
|
|
99
|
-
readonly model: string;
|
|
100
|
-
readonly succeeded: false;
|
|
101
|
-
readonly error: string;
|
|
102
|
-
readonly execution: unknown;
|
|
103
|
-
};
|
|
104
|
-
type ExternalOptimizerEvaluationRefusalReason = 'invalid-request' | 'evaluation-limit' | 'evaluation-failed';
|
|
105
|
-
/**
|
|
106
|
-
* Durable callback-side record of every candidate submitted for scoring,
|
|
107
|
-
* scored task, and callback refusal. Optimizer-internal proposals that never
|
|
108
|
-
* reach this callback are outside this record's scope.
|
|
109
|
-
*/
|
|
110
|
-
type ExternalOptimizerEvaluationObservation = {
|
|
111
|
-
readonly kind: 'proposal';
|
|
112
|
-
readonly sequence: number;
|
|
113
|
-
readonly candidate: ExternalTextCandidate;
|
|
114
|
-
readonly candidateHash: string;
|
|
115
|
-
} | {
|
|
116
|
-
readonly kind: 'evaluation';
|
|
117
|
-
readonly sequence: number;
|
|
118
|
-
readonly candidate: ExternalTextCandidate;
|
|
119
|
-
readonly candidateHash: string;
|
|
120
|
-
readonly exampleId: string;
|
|
121
|
-
/** One-based accepted evaluation number for this optimizer attempt. */
|
|
122
|
-
readonly evaluationNumber: number;
|
|
123
|
-
readonly response: unknown;
|
|
124
|
-
} | {
|
|
125
|
-
readonly kind: 'refusal';
|
|
126
|
-
readonly sequence: number;
|
|
127
|
-
readonly reason: ExternalOptimizerEvaluationRefusalReason;
|
|
128
|
-
readonly candidate?: ExternalTextCandidate;
|
|
129
|
-
readonly candidateHash?: string;
|
|
130
|
-
readonly exampleId?: string;
|
|
131
|
-
};
|
|
132
|
-
interface ExternalOptimizerModelBudget {
|
|
133
|
-
/** Optional optimizer-model spend ceiling, independent of task-evaluation spend. */
|
|
134
|
-
maxCostUsd?: number;
|
|
135
|
-
/** Maximum calls into the execution owner; owner-internal retries are reported there. */
|
|
136
|
-
maxRequests: number;
|
|
137
|
-
/** Reject a request body above this byte count. */
|
|
138
|
-
maxRequestBytes: number;
|
|
139
|
-
/** Reject a provider response above this byte count. */
|
|
140
|
-
maxResponseBytes: number;
|
|
141
|
-
/** Reject a request asking the provider for more output tokens. */
|
|
142
|
-
maxOutputTokensPerRequest: number;
|
|
143
|
-
/**
|
|
144
|
-
* Reasoning tokens a single response may bill beyond its completion limit.
|
|
145
|
-
*
|
|
146
|
-
* A reasoning model bounds only the completion by `max_tokens` and bills
|
|
147
|
-
* thinking on top, so a reservation sized to the completion alone is always
|
|
148
|
-
* too small and the ledger refuses the real charge. Callers that route a
|
|
149
|
-
* reasoning model declare its thinking budget here; the reservation covers
|
|
150
|
-
* it and a response exceeding it still fails loudly. Default: 0.
|
|
151
|
-
*/
|
|
152
|
-
maxReasoningTokensPerRequest?: number;
|
|
153
|
-
/**
|
|
154
|
-
* Optional rates used to estimate cost when the provider omits a valid
|
|
155
|
-
* `usage.cost`. Omit when billed USD is unknown; catalog estimates are not
|
|
156
|
-
* enforcement evidence.
|
|
157
|
-
*/
|
|
158
|
-
pricing?: CustomTokenPricing;
|
|
159
|
-
/** Per-provider-request deadline. Default: 300,000 ms. */
|
|
160
|
-
requestTimeoutMs?: number;
|
|
161
|
-
}
|
|
162
|
-
/** Per-wire request accounting for the loopback proxy. */
|
|
163
|
-
interface ExternalOptimizerWireCounts {
|
|
164
|
-
/** Execution-owner calls admitted on this wire, including failures. */
|
|
165
|
-
requestAttempts: number;
|
|
166
|
-
/** Successful 2xx responses recorded on this wire. */
|
|
167
|
-
successfulCompletions: number;
|
|
168
|
-
}
|
|
169
5
|
interface AnalystEvidenceExpectation {
|
|
170
6
|
uri: string;
|
|
171
7
|
kind?: EvidenceRef['kind'];
|
|
@@ -386,6 +222,170 @@ interface RunAnalystBenchmarkOptions<TInput> {
|
|
|
386
222
|
signal?: AbortSignal;
|
|
387
223
|
}
|
|
388
224
|
declare function runAnalystBenchmark<TInput>(options: RunAnalystBenchmarkOptions<TInput>): Promise<AnalystBenchmarkResult>;
|
|
225
|
+
interface ExternalOptimizerProcessLimits {
|
|
226
|
+
/** Maximum serialized input written for the child process. */
|
|
227
|
+
maxInputBytes: number;
|
|
228
|
+
/** Maximum JSON result read from the child process. */
|
|
229
|
+
maxResultBytes: number;
|
|
230
|
+
/** Maximum stdout or stderr characters retained for diagnostics. */
|
|
231
|
+
maxOutputChars: number;
|
|
232
|
+
}
|
|
233
|
+
declare const DEFAULT_EXTERNAL_OPTIMIZER_PROCESS_LIMITS: Readonly<ExternalOptimizerProcessLimits>;
|
|
234
|
+
interface ExternalOptimizerCallbackLimits {
|
|
235
|
+
/** Maximum serialized request accepted by the loopback callback. */
|
|
236
|
+
maxRequestBytes: number;
|
|
237
|
+
/** Maximum serialized response returned by the loopback callback. */
|
|
238
|
+
maxResponseBytes: number;
|
|
239
|
+
}
|
|
240
|
+
declare const DEFAULT_EXTERNAL_OPTIMIZER_CALLBACK_LIMITS: Readonly<ExternalOptimizerCallbackLimits>;
|
|
241
|
+
interface ExternalOptimizerRunnerCommand {
|
|
242
|
+
command?: string;
|
|
243
|
+
args?: readonly string[];
|
|
244
|
+
env?: NodeJS.ProcessEnv;
|
|
245
|
+
/** Child-process resource limits. Omitted fields use finite defaults. */
|
|
246
|
+
limits?: Partial<ExternalOptimizerProcessLimits>;
|
|
247
|
+
}
|
|
248
|
+
type ExternalOptimizerResumeMode = 'never' | 'if-compatible' | 'required';
|
|
249
|
+
type ExternalTextCandidate = string | Record<string, string>;
|
|
250
|
+
interface ExternalTextEvaluationRequest {
|
|
251
|
+
candidate: ExternalTextCandidate;
|
|
252
|
+
exampleId: string;
|
|
253
|
+
}
|
|
254
|
+
type DeepReadonly<T> = T extends ((...args: never[]) => unknown) ? T : T extends readonly (infer U)[] ? readonly DeepReadonly<U>[] : T extends object ? { readonly [K in keyof T]: DeepReadonly<T[K]>; } : T;
|
|
255
|
+
/** Provider-neutral request parsed once from the optimizer's loopback protocol. */
|
|
256
|
+
type ExternalOptimizerChatRequest = DeepReadonly<Omit<ChatRequest, 'model'> & {
|
|
257
|
+
model: string;
|
|
258
|
+
}>;
|
|
259
|
+
type ExternalOptimizerEndpointFormat = 'chat-completions' | 'responses' | 'anthropic-messages';
|
|
260
|
+
/** One exact model request admitted by the loopback proxy. */
|
|
261
|
+
interface ExternalOptimizerModelCallRequest {
|
|
262
|
+
/** Stable identity allocated by the cost ledger for this paid call. */
|
|
263
|
+
readonly callId: string;
|
|
264
|
+
/** Deeply immutable canonical request; HTTP protocol fields never cross this boundary. */
|
|
265
|
+
readonly request: ExternalOptimizerChatRequest;
|
|
266
|
+
/** Child response shape, when the execution owner needs to retain it as evidence. */
|
|
267
|
+
readonly endpointFormat?: ExternalOptimizerEndpointFormat;
|
|
268
|
+
readonly signal: AbortSignal;
|
|
269
|
+
}
|
|
270
|
+
/** Runtime-owned result for one admitted optimizer-model call. */
|
|
271
|
+
type ExternalOptimizerModelCallResult = {
|
|
272
|
+
readonly succeeded: true;
|
|
273
|
+
/** Canonical response encoded back into the child's protocol by Agent Eval. */
|
|
274
|
+
readonly response: ChatResponse;
|
|
275
|
+
/**
|
|
276
|
+
* Canonical measured usage/cost input retained by Agent Eval's cost ledger.
|
|
277
|
+
* `inputTokens` is the non-cached portion, `cachedTokens` is the cache-read
|
|
278
|
+
* portion, and response `promptTokens` equals their sum. Cache-write tokens
|
|
279
|
+
* remain a separately billed class and are never silently added to that total.
|
|
280
|
+
*/
|
|
281
|
+
readonly receipt: CostReceiptInput;
|
|
282
|
+
/** Opaque, finite JSON proof of the exact execution retained in provenance. */
|
|
283
|
+
readonly execution: unknown;
|
|
284
|
+
} | {
|
|
285
|
+
readonly succeeded: false;
|
|
286
|
+
/** Public failure text safe to retain and return to the child process. */
|
|
287
|
+
readonly error: string;
|
|
288
|
+
/** Usage/cost state for the failed Runtime call. Unknown values stay unknown. */
|
|
289
|
+
readonly receipt: CostReceiptInput;
|
|
290
|
+
/** Opaque, finite JSON proof of the failed exact execution. */
|
|
291
|
+
readonly execution: unknown;
|
|
292
|
+
};
|
|
293
|
+
/**
|
|
294
|
+
* Execution-neutral model-call seam for an external optimizer.
|
|
295
|
+
*
|
|
296
|
+
* The package that owns execution implements this with its exact execution
|
|
297
|
+
* path. For Discovery that owner is Runtime and the identity is an
|
|
298
|
+
* AgentProfile. The loopback proxy owns request validation, limits, response
|
|
299
|
+
* bounds, and cost-ledger recording. Once invoked, the callback must resolve
|
|
300
|
+
* with one success/failure result. Rejecting loses the execution record and
|
|
301
|
+
* therefore fails the optimizer attempt.
|
|
302
|
+
*/
|
|
303
|
+
type ExternalOptimizerModelCall = (request: ExternalOptimizerModelCallRequest) => Promise<ExternalOptimizerModelCallResult>;
|
|
304
|
+
/** One opaque Runtime execution record retained for one admitted model call. */
|
|
305
|
+
type ExternalOptimizerModelExecutionObservation = {
|
|
306
|
+
readonly sequence: number;
|
|
307
|
+
readonly callId: string;
|
|
308
|
+
readonly callRef: string;
|
|
309
|
+
readonly path: '/v1/chat/completions' | '/v1/responses' | '/v1/messages';
|
|
310
|
+
readonly model: string;
|
|
311
|
+
readonly succeeded: true;
|
|
312
|
+
readonly responseStatus: number;
|
|
313
|
+
readonly execution: unknown;
|
|
314
|
+
} | {
|
|
315
|
+
readonly sequence: number;
|
|
316
|
+
readonly callId: string;
|
|
317
|
+
readonly callRef: string;
|
|
318
|
+
readonly path: '/v1/chat/completions' | '/v1/responses' | '/v1/messages';
|
|
319
|
+
readonly model: string;
|
|
320
|
+
readonly succeeded: false;
|
|
321
|
+
readonly error: string;
|
|
322
|
+
readonly execution: unknown;
|
|
323
|
+
};
|
|
324
|
+
type ExternalOptimizerEvaluationRefusalReason = 'invalid-request' | 'evaluation-limit' | 'evaluation-failed';
|
|
325
|
+
/**
|
|
326
|
+
* Durable callback-side record of every candidate submitted for scoring,
|
|
327
|
+
* scored task, and callback refusal. Optimizer-internal proposals that never
|
|
328
|
+
* reach this callback are outside this record's scope.
|
|
329
|
+
*/
|
|
330
|
+
type ExternalOptimizerEvaluationObservation = {
|
|
331
|
+
readonly kind: 'proposal';
|
|
332
|
+
readonly sequence: number;
|
|
333
|
+
readonly candidate: ExternalTextCandidate;
|
|
334
|
+
readonly candidateHash: string;
|
|
335
|
+
} | {
|
|
336
|
+
readonly kind: 'evaluation';
|
|
337
|
+
readonly sequence: number;
|
|
338
|
+
readonly candidate: ExternalTextCandidate;
|
|
339
|
+
readonly candidateHash: string;
|
|
340
|
+
readonly exampleId: string;
|
|
341
|
+
/** One-based accepted evaluation number for this optimizer attempt. */
|
|
342
|
+
readonly evaluationNumber: number;
|
|
343
|
+
readonly response: unknown;
|
|
344
|
+
} | {
|
|
345
|
+
readonly kind: 'refusal';
|
|
346
|
+
readonly sequence: number;
|
|
347
|
+
readonly reason: ExternalOptimizerEvaluationRefusalReason;
|
|
348
|
+
readonly candidate?: ExternalTextCandidate;
|
|
349
|
+
readonly candidateHash?: string;
|
|
350
|
+
readonly exampleId?: string;
|
|
351
|
+
};
|
|
352
|
+
interface ExternalOptimizerModelBudget {
|
|
353
|
+
/** Optional optimizer-model spend ceiling, independent of task-evaluation spend. */
|
|
354
|
+
maxCostUsd?: number;
|
|
355
|
+
/** Maximum calls into the execution owner; owner-internal retries are reported there. */
|
|
356
|
+
maxRequests: number;
|
|
357
|
+
/** Reject a request body above this byte count. */
|
|
358
|
+
maxRequestBytes: number;
|
|
359
|
+
/** Reject a provider response above this byte count. */
|
|
360
|
+
maxResponseBytes: number;
|
|
361
|
+
/** Reject a request asking the provider for more output tokens. */
|
|
362
|
+
maxOutputTokensPerRequest: number;
|
|
363
|
+
/**
|
|
364
|
+
* Reasoning tokens a single response may bill beyond its completion limit.
|
|
365
|
+
*
|
|
366
|
+
* A reasoning model bounds only the completion by `max_tokens` and bills
|
|
367
|
+
* thinking on top, so a reservation sized to the completion alone is always
|
|
368
|
+
* too small and the ledger refuses the real charge. Callers that route a
|
|
369
|
+
* reasoning model declare its thinking budget here; the reservation covers
|
|
370
|
+
* it and a response exceeding it still fails loudly. Default: 0.
|
|
371
|
+
*/
|
|
372
|
+
maxReasoningTokensPerRequest?: number;
|
|
373
|
+
/**
|
|
374
|
+
* Optional rates used to estimate cost when the provider omits a valid
|
|
375
|
+
* `usage.cost`. Omit when billed USD is unknown; catalog estimates are not
|
|
376
|
+
* enforcement evidence.
|
|
377
|
+
*/
|
|
378
|
+
pricing?: CustomTokenPricing;
|
|
379
|
+
/** Per-provider-request deadline. Default: 300,000 ms. */
|
|
380
|
+
requestTimeoutMs?: number;
|
|
381
|
+
}
|
|
382
|
+
/** Per-wire request accounting for the loopback proxy. */
|
|
383
|
+
interface ExternalOptimizerWireCounts {
|
|
384
|
+
/** Execution-owner calls admitted on this wire, including failures. */
|
|
385
|
+
requestAttempts: number;
|
|
386
|
+
/** Successful 2xx responses recorded on this wire. */
|
|
387
|
+
successfulCompletions: number;
|
|
388
|
+
}
|
|
389
389
|
/**
|
|
390
390
|
* The agentic coding harnesses an eval sweeps by default — the ones we care about
|
|
391
391
|
* ranking. This is the SINGLE source of that list; consumers import it instead of
|
|
@@ -465,5 +465,5 @@ declare function agentProfileId(profile: AgentProfile): string;
|
|
|
465
465
|
* as absent; explicit `null` fields remain hash-bearing.
|
|
466
466
|
*/
|
|
467
467
|
declare function agentProfileHash(profile: AgentProfile): string;
|
|
468
|
-
export {
|
|
469
|
-
//# sourceMappingURL=agent-profile-
|
|
468
|
+
export { AnalystBenchmarkDescriptor as A, AnalystEvidenceResolution as B, ExternalOptimizerResumeMode as C, ExternalTextEvaluationRequest as D, ExternalTextCandidate as E, AnalystBenchmarkProvenance as F, AnalystLatencyDistribution as G, AnalystEvidenceResolver as H, AnalystBenchmarkResult as I, traceStoreEvidenceResolver as J, RunAnalystBenchmarkOptions as K, AnalystBenchmarkRunner as L, AnalystBenchmarkLabelState as M, AnalystBenchmarkObservation as N, AnalystBenchmarkCase as O, AnalystBenchmarkOutput as P, AnalystBenchmarkSummary as R, ExternalOptimizerProcessLimits as S, ExternalOptimizerWireCounts as T, AnalystFindingScore as U, AnalystEvidenceResolutionError as V, AnalystIssueExpectation as W, ExternalOptimizerModelBudget as _, ProfileAxisSpec as a, ExternalOptimizerModelCallResult as b, expandProfileAxes as c, DEFAULT_EXTERNAL_OPTIMIZER_PROCESS_LIMITS as d, ExternalOptimizerCallbackLimits as f, ExternalOptimizerEvaluationRefusalReason as g, ExternalOptimizerEvaluationObservation as h, HarnessType$1 as i, AnalystBenchmarkError as j, AnalystBenchmarkDatasetRef as k, harnessAxisOf as l, ExternalOptimizerEndpointFormat as m, CODING_HARNESSES as n, agentProfileHash as o, ExternalOptimizerChatRequest as p, runAnalystBenchmark as q, HARNESS_NATIVE_MODEL as r, agentProfileId as s, AgentProfile$1 as t, DEFAULT_EXTERNAL_OPTIMIZER_CALLBACK_LIMITS as u, ExternalOptimizerModelCall as v, ExternalOptimizerRunnerCommand as w, ExternalOptimizerModelExecutionObservation as x, ExternalOptimizerModelCallRequest as y, AnalystEvidenceExpectation as z };
|
|
469
|
+
//# sourceMappingURL=agent-profile-hytrwAnN.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-profile-hytrwAnN.d.ts","names":["_$___cost_ledger0.CostReceiptInput"],"sources":["../src/analyst/benchmark.ts","../src/campaign/external-optimizer-contracts.ts","../src/agent-profile.ts"],"mappings":";;;;UAciB;EACf;EACA,OAAO;;UAGQ;EACf;EACA;EACA;EACA;EACA,oBAAoB;EACpB;;EAEA,4BAA4B;;KAGlB;UAEK,qBAAqB;EACpC;;EAEA;;EAEA,YAAY;EACZ,OAAO;EACP,yBAAyB;;EAEzB,2BAA2B;EAC3B;EACA,WAAW;;UAGI;EACf;EACA;EACA;EACA;EACA;EACA,mBAAmB;EACnB;EACA;EACA;EACA;;EAEA;;EAEA;;EAEA;EACA;;UAGe;EACf,UAAU;EACV;EACA;;UAGe;EACf;EACA;EACA,oBAAoB;EACpB,QAAQ;;EAER;;KAGU,wBAAwB,qBAAqB;EACvD;EACA,WAAW;EACX,UAAU;EACV,SAAS;gBACK;;;;;iBAMA,2BAA2B,QACzC,WAAW,OAAO,WAAW,qBAC5B,wBAAwB;UAoBV;EACf,mBAAmB;EACnB,QAAQ;EACR,WAAW;;;;;EAKX;;EAEA,QAAQ;;UAGO;EACf;EACA;EACA;EACA;;UAGe,uBAAuB;EACtC;EACA,QACE,OAAO,QACP;IAAW;IAAgB;IAAoB,SAAS;MACvD,yBAAyB,QAAQ;;UAGrB;EACf;EACA;EACA;EACA,YAAY;EACZ;EACA;EACA;EACA;EACA,mBAAmB;EACnB,OAAO;EACP,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;UCpQM;;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;;WAGA;WACA;WACA,QAAQ;WACR,YAAY;WACZ;WACA;;UAGE;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;;;;;;;;;EAUA;;;;;;EAMA,UAAU;;EAEV;;;UAIe;;EAEf;;EAEA;;;;;;;;;cCnQW,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"}
|
package/dist/analyst/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { m as CustomTokenPricing, o as CostLedgerHandle } from "../cost-ledger-C
|
|
|
2
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-DmYd2Igl.js";
|
|
3
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
4
|
import { Wt as NominalAgreementOptions } from "../index-Bcy00QoN.js";
|
|
5
|
-
import { A as
|
|
5
|
+
import { A as AnalystBenchmarkDescriptor, B as AnalystEvidenceResolution, F as AnalystBenchmarkProvenance, G as AnalystLatencyDistribution, H as AnalystEvidenceResolver, I as AnalystBenchmarkResult, J as traceStoreEvidenceResolver, K as RunAnalystBenchmarkOptions, L as AnalystBenchmarkRunner, M as AnalystBenchmarkLabelState, N as AnalystBenchmarkObservation, O as AnalystBenchmarkCase, P as AnalystBenchmarkOutput, R as AnalystBenchmarkSummary, U as AnalystFindingScore, V as AnalystEvidenceResolutionError, W as AnalystIssueExpectation, j as AnalystBenchmarkError, k as AnalystBenchmarkDatasetRef, q as runAnalystBenchmark, t as AgentProfile, v as ExternalOptimizerModelCall, w as ExternalOptimizerRunnerCommand, x as ExternalOptimizerModelExecutionObservation, z as AnalystEvidenceExpectation } from "../agent-profile-hytrwAnN.js";
|
|
6
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-C5x2jyD6.js";
|
|
7
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-B0_jA3V7.js";
|
|
8
8
|
import { g as SystemOneState } from "../systemone-protocol-C4t7JH4Y.js";
|
|
@@ -10,7 +10,7 @@ import { B as DiffPolicy, F as FindingsTimeStep, H as FindingsStore, I as Ledger
|
|
|
10
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-B2w3ARpj.js";
|
|
11
11
|
import { n as buildTraceToolsForGroup, t as TraceToolGroupName } from "../tool-groups-BOH1E-E4.js";
|
|
12
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-D23oO0_f.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-
|
|
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-HdlzN11G.js";
|
|
14
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-BR0xy0cF.js";
|
|
15
15
|
import { i as nodeHttpPrimeBridgeTransport, n as PrimeBridgeTransportRequest, r as PrimeBridgeTransportResult, t as PrimeBridgeTransport } from "../prime-bridge-transport-Cfqir_Im.js";
|
|
16
16
|
import { b as SupervisorRunSources } from "../types-_dfu6Ox2.js";
|
package/dist/analyst/index.js
CHANGED
|
@@ -5,13 +5,13 @@ import { r as merkleRoot } from "../ledger-core-7e6sXmhV.js";
|
|
|
5
5
|
import { A as spanningWindow, C as UNKNOWN_LINEAGE, D as mostSevere, E as mergeEvidenceUnits, O as parseAnalystFinding, S as ProposalFindingSchema, T as lineageRoots, b as AnalystFindingSchema, k as readFindingScope, w as independentUnitCount, x as FINDING_LAYERS } from "../external-optimizer-subprocess-BspZ0bZb.js";
|
|
6
6
|
import { a as makeProposalFinding, i as makeFinding, r as computeFindingId } from "../types-C8AyaiFi.js";
|
|
7
7
|
import { t as assertProposalFindings } from "../proposal-findings-DFQvA-k5.js";
|
|
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-
|
|
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-
|
|
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-B5FfFE5G.js";
|
|
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-BE5Rj9ba.js";
|
|
10
10
|
import { n as createChatClient } from "../chat-client-DmPB31_2.js";
|
|
11
|
-
import { t as createDspyRlmTraceEngine } from "../dspy-rlm-engine-
|
|
12
|
-
import { n as diffFindings, r as createChatTraceEngine, t as FindingsStore } from "../findings-store-
|
|
11
|
+
import { t as createDspyRlmTraceEngine } from "../dspy-rlm-engine-aM1RWOUT.js";
|
|
12
|
+
import { n as diffFindings, r as createChatTraceEngine, t as FindingsStore } from "../findings-store-B8pq8Rhr.js";
|
|
13
13
|
import { m as validDecisionIdentity, o as systemOneAnalyst, t as DECISION_POINT_AUC_BAR } from "../decision-point-BN1YQNqk.js";
|
|
14
|
-
import { A as agentRxBenchmarkCase, C as ANALYST_BENCHMARK_COST_LEDGER_FILE, D as AGENT_RX_UPSTREAM_REVISION, E as ANALYST_BENCHMARK_OBSERVATIONS_FILE, F as runAnalystBenchmark, I as traceStoreEvidenceResolver, M as normalizeAgentRxCategory, N as externalId, O as codeTraceBenchCase, P as positiveStep, S as ANALYST_BENCHMARK_IMPLEMENTATION_FILES, T as ANALYST_BENCHMARK_MANIFEST_FILE, _ as readAnalystBenchmarkArtifact, a as runInlineAnalystDefinition, b as ANALYST_BENCHMARK_EVIDENCE_DEPENDENCY_LOCK_SHA256, c as publicRlmAnalystDefinition, d as publicDirectAnalystDefinition, f as runChunkedAnalystDefinition, g as expandCodeTraceFailureBlocks, h as analystDefinitionProtocolSha256, i as primeCodeTraceAnalystDefinition, j as agentRxPredictionsToFindings, k as codeTracerPredictionsToFindings, l as runReplVariableAnalystDefinition, m as analystDefinitionAsymmetries, n as createPrimeBenchmarkRunner, o as loadPublicBenchmarkRows, p as AnalystExpressivenessError, r as primeAnalystProtocolSha256, s as createPublicBenchmarkRlmRunner, t as runAnalystBenchmarkCommand, u as createPublicBenchmarkDirectRunner, v as CODE_TRACE_BENCH_ANALYST_PROMPT, w as ANALYST_BENCHMARK_LOCAL_RECEIPT_FILE, x as ANALYST_BENCHMARK_EVIDENCE_IMPLEMENTATION_SHA256, y as publicBenchmarkProtocolSha256 } from "../benchmark-command-
|
|
14
|
+
import { A as agentRxBenchmarkCase, C as ANALYST_BENCHMARK_COST_LEDGER_FILE, D as AGENT_RX_UPSTREAM_REVISION, E as ANALYST_BENCHMARK_OBSERVATIONS_FILE, F as runAnalystBenchmark, I as traceStoreEvidenceResolver, M as normalizeAgentRxCategory, N as externalId, O as codeTraceBenchCase, P as positiveStep, S as ANALYST_BENCHMARK_IMPLEMENTATION_FILES, T as ANALYST_BENCHMARK_MANIFEST_FILE, _ as readAnalystBenchmarkArtifact, a as runInlineAnalystDefinition, b as ANALYST_BENCHMARK_EVIDENCE_DEPENDENCY_LOCK_SHA256, c as publicRlmAnalystDefinition, d as publicDirectAnalystDefinition, f as runChunkedAnalystDefinition, g as expandCodeTraceFailureBlocks, h as analystDefinitionProtocolSha256, i as primeCodeTraceAnalystDefinition, j as agentRxPredictionsToFindings, k as codeTracerPredictionsToFindings, l as runReplVariableAnalystDefinition, m as analystDefinitionAsymmetries, n as createPrimeBenchmarkRunner, o as loadPublicBenchmarkRows, p as AnalystExpressivenessError, r as primeAnalystProtocolSha256, s as createPublicBenchmarkRlmRunner, t as runAnalystBenchmarkCommand, u as createPublicBenchmarkDirectRunner, v as CODE_TRACE_BENCH_ANALYST_PROMPT, w as ANALYST_BENCHMARK_LOCAL_RECEIPT_FILE, x as ANALYST_BENCHMARK_EVIDENCE_IMPLEMENTATION_SHA256, y as publicBenchmarkProtocolSha256 } from "../benchmark-command-CJw3ijDV.js";
|
|
15
15
|
import { a as normalizePrimeUsage, c as runPrimeExchange, i as mergePrimeRawUsage, n as buildPrimePrompt, o as primeProtocolSha256, r as buildPrimeRepairPrompt, s as projectPrimeTrajectory, t as analystUsageReceiptFromPrimeUsage } from "../prime-protocol-CrhpXRz9.js";
|
|
16
16
|
import { t as nodeHttpPrimeBridgeTransport } from "../prime-bridge-transport-Csd5SQg7.js";
|
|
17
17
|
import { t as clusterBootstrapMean } from "../cluster-bootstrap-ClPYIWoX.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { m as CustomTokenPricing, t as CostLedger } from "../cost-ledger-Czro9wmo.js";
|
|
2
|
-
import "../index-
|
|
2
|
+
import "../index-BuuUhU_V.js";
|
|
3
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
5
|
import "../systemone-B_3Vd395.js";
|
|
@@ -9,10 +9,10 @@ import { c as redactText } from "./redact-zp_ILC4l.js";
|
|
|
9
9
|
import { i as makeFinding } from "./types-C8AyaiFi.js";
|
|
10
10
|
import { t as acquireSingleRunLock } from "./single-run-lock-BSKsoeQF.js";
|
|
11
11
|
import { a as LlmCallError, n as isRecord, o as LlmResponseError } from "./json-DtvZNAU9.js";
|
|
12
|
-
import { A as RawAnalystFindingSchema, U as assertValidAnalystUsageReceipt, W as usageReceiptFromCostLedger, j as evidenceRefsFromRawFinding, k as RAW_FINDING_SCHEMA_PROMPT, m as TRACE_ANALYSIS_LIMITS, n as runTraceAnalyst } from "./kind-factory-
|
|
12
|
+
import { A as RawAnalystFindingSchema, U as assertValidAnalystUsageReceipt, W as usageReceiptFromCostLedger, j as evidenceRefsFromRawFinding, k as RAW_FINDING_SCHEMA_PROMPT, m as TRACE_ANALYSIS_LIMITS, n as runTraceAnalyst } from "./kind-factory-B5FfFE5G.js";
|
|
13
13
|
import { n as callLlmJson } from "./llm-client-CdHo3SH0.js";
|
|
14
|
-
import { t as createDspyRlmTraceEngine } from "./dspy-rlm-engine-
|
|
15
|
-
import { i as otlpTextToTraceAnalysisStore, n as DEFAULT_MAX_TRACE_FILE_BYTES, t as BufferTraceStore } from "./store-otlp-
|
|
14
|
+
import { t as createDspyRlmTraceEngine } from "./dspy-rlm-engine-aM1RWOUT.js";
|
|
15
|
+
import { i as otlpTextToTraceAnalysisStore, n as DEFAULT_MAX_TRACE_FILE_BYTES, t as BufferTraceStore } from "./store-otlp-DHc_E78m.js";
|
|
16
16
|
import "./external-optimizer-process-DFEPdWJY.js";
|
|
17
17
|
import { t as assertEqualDeclarativeTerms } from "./equal-terms-K11VHmR3.js";
|
|
18
18
|
import { c as runPrimeExchange, l as decodeReplyRows, n as buildPrimePrompt, o as primeProtocolSha256, s as projectPrimeTrajectory, t as analystUsageReceiptFromPrimeUsage } from "./prime-protocol-CrhpXRz9.js";
|
|
@@ -2018,7 +2018,7 @@ const ANALYST_BENCHMARK_IMPLEMENTATION_FILES = Object.freeze([
|
|
|
2018
2018
|
"src/trace/schema.ts",
|
|
2019
2019
|
"src/verdict-cache.ts"
|
|
2020
2020
|
]);
|
|
2021
|
-
const ANALYST_BENCHMARK_IMPLEMENTATION_SHA256 = "
|
|
2021
|
+
const ANALYST_BENCHMARK_IMPLEMENTATION_SHA256 = "5a2d303e31fc42a08857c8fac8e4f46b604e499102eff6aaec885e803cf4c2b0";
|
|
2022
2022
|
// src/analyst/benchmark-evidence-validation.ts
|
|
2023
2023
|
const MIN_ACTION_EXCERPT_CHARACTERS = 12;
|
|
2024
2024
|
const MAX_LABEL_SCAN_DEPTH = 64;
|
|
@@ -6855,4 +6855,4 @@ function shellQuote(value) {
|
|
|
6855
6855
|
}
|
|
6856
6856
|
export { agentRxBenchmarkCase as A, ANALYST_BENCHMARK_COST_LEDGER_FILE as C, AGENT_RX_UPSTREAM_REVISION as D, ANALYST_BENCHMARK_OBSERVATIONS_FILE as E, runAnalystBenchmark as F, traceStoreEvidenceResolver as I, normalizeAgentRxCategory as M, externalId as N, codeTraceBenchCase as O, positiveStep as P, ANALYST_BENCHMARK_IMPLEMENTATION_FILES as S, ANALYST_BENCHMARK_MANIFEST_FILE as T, readAnalystBenchmarkArtifact as _, runInlineAnalystDefinition as a, ANALYST_BENCHMARK_EVIDENCE_DEPENDENCY_LOCK_SHA256 as b, publicRlmAnalystDefinition as c, publicDirectAnalystDefinition as d, runChunkedAnalystDefinition as f, expandCodeTraceFailureBlocks as g, analystDefinitionProtocolSha256 as h, primeCodeTraceAnalystDefinition as i, agentRxPredictionsToFindings as j, codeTracerPredictionsToFindings as k, runReplVariableAnalystDefinition as l, analystDefinitionAsymmetries as m, createPrimeBenchmarkRunner as n, loadPublicBenchmarkRows as o, AnalystExpressivenessError as p, primeAnalystProtocolSha256 as r, createPublicBenchmarkRlmRunner as s, runAnalystBenchmarkCommand as t, createPublicBenchmarkDirectRunner as u, CODE_TRACE_BENCH_ANALYST_PROMPT as v, ANALYST_BENCHMARK_LOCAL_RECEIPT_FILE as w, ANALYST_BENCHMARK_EVIDENCE_IMPLEMENTATION_SHA256 as x, publicBenchmarkProtocolSha256 as y };
|
|
6857
6857
|
|
|
6858
|
-
//# sourceMappingURL=benchmark-command-
|
|
6858
|
+
//# sourceMappingURL=benchmark-command-CJw3ijDV.js.map
|