@tangle-network/agent-eval 0.136.0 → 0.137.0
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 +38 -1
- package/README.md +4 -2
- package/dist/{agent-profile-cell-OhuTee9n.js → agent-profile-cell-CbfBm2g6.js} +2 -2
- package/dist/{agent-profile-cell-OhuTee9n.js.map → agent-profile-cell-CbfBm2g6.js.map} +1 -1
- package/dist/{agent-profile-cell-CCm3l2v2.d.ts → agent-profile-cell-Cw0PVwDr.d.ts} +2 -2
- package/dist/{agent-profile-cell-CCm3l2v2.d.ts.map → agent-profile-cell-Cw0PVwDr.d.ts.map} +1 -1
- package/dist/analyst/index.d.ts +139 -17
- package/dist/analyst/index.d.ts.map +1 -1
- package/dist/analyst/index.js +606 -4
- package/dist/analyst/index.js.map +1 -1
- package/dist/{analyze-runs-jjCmF8pU.js → analyze-runs-BScZvqMV.js} +6 -6
- package/dist/{analyze-runs-jjCmF8pU.js.map → analyze-runs-BScZvqMV.js.map} +1 -1
- package/dist/{analyze-runs-Cda5Xkj1.d.ts → analyze-runs-PVtnfjvA.d.ts} +6 -6
- package/dist/{analyze-runs-Cda5Xkj1.d.ts.map → analyze-runs-PVtnfjvA.d.ts.map} +1 -1
- package/dist/{baseline-BUeFcgrn.js → baseline-C-GocmIW.js} +2 -2
- package/dist/{baseline-BUeFcgrn.js.map → baseline-C-GocmIW.js.map} +1 -1
- package/dist/benchmark-CHX4orG7.d.ts +184 -0
- package/dist/benchmark-CHX4orG7.d.ts.map +1 -0
- package/dist/benchmark-YDrpumqB.js +414 -0
- package/dist/benchmark-YDrpumqB.js.map +1 -0
- package/dist/benchmarks/index.d.ts +1 -1
- package/dist/benchmarks/index.js +1 -1
- package/dist/{benchmarks-Dfgm9ts5.js → benchmarks-DCLkQOmc.js} +3 -3
- package/dist/{benchmarks-Dfgm9ts5.js.map → benchmarks-DCLkQOmc.js.map} +1 -1
- package/dist/builder-eval/index.js +2 -2
- package/dist/campaign/index.d.ts +6 -6
- package/dist/campaign/index.js +3 -3
- package/dist/{campaign-Dz8uQnhC.js → campaign-lgObcHFC.js} +212 -78
- package/dist/campaign-lgObcHFC.js.map +1 -0
- package/dist/cli.js +1 -1
- package/dist/client-C8L6h6Wf.d.ts +202 -0
- package/dist/client-C8L6h6Wf.d.ts.map +1 -0
- package/dist/completion-verifier-DSyRNVzU.d.ts +240 -0
- package/dist/completion-verifier-DSyRNVzU.d.ts.map +1 -0
- package/dist/contract/index.d.ts +10 -9
- package/dist/contract/index.d.ts.map +1 -1
- package/dist/contract/index.js +10 -10
- package/dist/control.d.ts +2 -2
- package/dist/control.js +1 -1
- package/dist/{cost-ledger-DHAjwNj7.js → cost-ledger-D-5_-dhi.js} +2 -2
- package/dist/{cost-ledger-DHAjwNj7.js.map → cost-ledger-D-5_-dhi.js.map} +1 -1
- package/dist/{cost-ledger-fGS_u_O1.d.ts → cost-ledger-D2o6JOrL.d.ts} +2 -2
- package/dist/{cost-ledger-fGS_u_O1.d.ts.map → cost-ledger-D2o6JOrL.d.ts.map} +1 -1
- package/dist/{dataset-BvtnC8Dc.d.ts → dataset-v_Y5902-.d.ts} +2 -2
- package/dist/{dataset-BvtnC8Dc.d.ts.map → dataset-v_Y5902-.d.ts.map} +1 -1
- package/dist/{default-registry-CHmdy2An.js → default-registry-CLXbRt0f.js} +119 -38
- package/dist/default-registry-CLXbRt0f.js.map +1 -0
- package/dist/{default-registry-Brxr728w.d.ts → default-registry-Dc5D_Loc.d.ts} +63 -137
- package/dist/default-registry-Dc5D_Loc.d.ts.map +1 -0
- package/dist/{errors-8YnH8WlF.js → errors-D-LKuDhb.js} +8 -2
- package/dist/errors-D-LKuDhb.js.map +1 -0
- package/dist/{errors-CEk209JS.d.ts → errors-DkfjIDvD.d.ts} +9 -3
- package/dist/errors-DkfjIDvD.d.ts.map +1 -0
- package/dist/{eval-campaign-Cc8WZJ6b.js → eval-campaign-CHqfLnff.js} +6 -6
- package/dist/{eval-campaign-Cc8WZJ6b.js.map → eval-campaign-CHqfLnff.js.map} +1 -1
- package/dist/{extract-usage-DIQpN-ww.js → extract-usage-p-56bh8q.js} +3 -3
- package/dist/{extract-usage-DIQpN-ww.js.map → extract-usage-p-56bh8q.js.map} +1 -1
- package/dist/{feedback-trajectory-CVaeREXV.d.ts → feedback-trajectory-N_F0PwHz.d.ts} +90 -3
- package/dist/feedback-trajectory-N_F0PwHz.d.ts.map +1 -0
- package/dist/fuzz.d.ts +1 -1
- package/dist/fuzz.js +2 -2
- package/dist/hosted/index.d.ts +3 -2
- package/dist/hosted/index.d.ts.map +1 -1
- package/dist/index-BipJlj-C.d.ts +316 -0
- package/dist/index-BipJlj-C.d.ts.map +1 -0
- package/dist/{index-CQsJcqch.d.ts → index-BnP1QJUv.d.ts} +5 -5
- package/dist/{index-CQsJcqch.d.ts.map → index-BnP1QJUv.d.ts.map} +1 -1
- package/dist/{index-B4Fjfo5U.d.ts → index-C-Pr4OWg.d.ts} +88 -317
- package/dist/index-C-Pr4OWg.d.ts.map +1 -0
- package/dist/{index-DuhJaaiH.d.ts → index-DEb46kc6.d.ts} +2 -2
- package/dist/{index-DuhJaaiH.d.ts.map → index-DEb46kc6.d.ts.map} +1 -1
- package/dist/{index-C2fkZhv_.d.ts → index-DRNl6g_N.d.ts} +3 -3
- package/dist/{index-C2fkZhv_.d.ts.map → index-DRNl6g_N.d.ts.map} +1 -1
- package/dist/{index-AbhwHp0V.d.ts → index-U3RHOShi.d.ts} +2 -2
- package/dist/{index-AbhwHp0V.d.ts.map → index-U3RHOShi.d.ts.map} +1 -1
- package/dist/index.d.ts +29 -70
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +507 -33
- package/dist/index.js.map +1 -1
- package/dist/{client-DcvgkaZi.d.ts → insight-report-B9ooYH_g.d.ts} +5 -203
- package/dist/insight-report-B9ooYH_g.d.ts.map +1 -0
- package/dist/integrity-CCXTftiL.js +1360 -0
- package/dist/integrity-CCXTftiL.js.map +1 -0
- package/dist/{integrity-rmVhXWA7.d.ts → integrity-CKxosZ5Z.d.ts} +3 -3
- package/dist/{integrity-rmVhXWA7.d.ts.map → integrity-CKxosZ5Z.d.ts.map} +1 -1
- package/dist/{integrity-BzRbCHzi.js → integrity-fdt8XPAv.js} +2 -2
- package/dist/{integrity-BzRbCHzi.js.map → integrity-fdt8XPAv.js.map} +1 -1
- package/dist/ledger-core/index.d.ts +1 -1
- package/dist/ledger-core/index.js +1 -1
- package/dist/{ledger-core-DAKFKRzi.js → ledger-core-t6sItivm.js} +85 -85
- package/dist/{ledger-core-DAKFKRzi.js.map → ledger-core-t6sItivm.js.map} +1 -1
- package/dist/{llm-client-DHx8pzyJ.js → llm-client-DKB25jV8.js} +3 -3
- package/dist/{llm-client-DHx8pzyJ.js.map → llm-client-DKB25jV8.js.map} +1 -1
- package/dist/meta-eval/index.d.ts +2 -2
- package/dist/meta-eval/index.js +3 -3
- package/dist/{mint-DyRUc9k6.js → mint-Ctwk079K.js} +4 -4
- package/dist/{mint-DyRUc9k6.js.map → mint-Ctwk079K.js.map} +1 -1
- package/dist/multishot/index.d.ts +2 -2
- package/dist/openapi.json +1 -1
- package/dist/{paired-arms-BbFKrAU-.js → paired-arms-iZ08VFMN.js} +3 -3
- package/dist/{paired-arms-BbFKrAU-.js.map → paired-arms-iZ08VFMN.js.map} +1 -1
- package/dist/pipelines/index.js +2 -2
- package/dist/profile-cell.d.ts +1 -1
- package/dist/profile-cell.js +1 -1
- package/dist/{propose-review-control-SQ-n9-We.js → propose-review-control-DLXz4FCX.js} +2 -2
- package/dist/{propose-review-control-SQ-n9-We.js.map → propose-review-control-DLXz4FCX.js.map} +1 -1
- package/dist/registry-BdM7SuTr.d.ts +124 -0
- package/dist/registry-BdM7SuTr.d.ts.map +1 -0
- package/dist/{release-report-DooPguBc.js → release-report-B5XPBvAU.js} +4 -4
- package/dist/{release-report-DooPguBc.js.map → release-report-B5XPBvAU.js.map} +1 -1
- package/dist/{release-report-DpBxGGI1.d.ts → release-report-CofgVNZt.d.ts} +4 -4
- package/dist/{release-report-DpBxGGI1.d.ts.map → release-report-CofgVNZt.d.ts.map} +1 -1
- package/dist/{replay-C6wRg47C.js → replay-Bju0T8Ls.js} +248 -8
- package/dist/replay-Bju0T8Ls.js.map +1 -0
- package/dist/{replay-BRfMIs81.d.ts → replay-K8FaC0CB.d.ts} +227 -52
- package/dist/replay-K8FaC0CB.d.ts.map +1 -0
- package/dist/reporting.d.ts +4 -4
- package/dist/reporting.js +4 -4
- package/dist/{researcher-Doo95b50.d.ts → researcher-Da0Wj-bt.d.ts} +6 -7
- package/dist/researcher-Da0Wj-bt.d.ts.map +1 -0
- package/dist/{reward-hacking-D-QqXvg-.d.ts → reward-hacking-CQ3hTCO3.d.ts} +2 -2
- package/dist/{reward-hacking-D-QqXvg-.d.ts.map → reward-hacking-CQ3hTCO3.d.ts.map} +1 -1
- package/dist/{reward-hacking-a-kYs0-i.js → reward-hacking-GyN0kMd8.js} +3 -3
- package/dist/{reward-hacking-a-kYs0-i.js.map → reward-hacking-GyN0kMd8.js.map} +1 -1
- package/dist/rl.d.ts +6 -6
- package/dist/rl.js +9 -9
- package/dist/rollout/index.d.ts +1 -1
- package/dist/rollout/index.js +3 -3
- package/dist/{rollout-DLSUIWLu.js → rollout-DQFl0UXA.js} +2 -2
- package/dist/{rollout-DLSUIWLu.js.map → rollout-DQFl0UXA.js.map} +1 -1
- package/dist/{rubric-predictive-validity-BJf-8ejY.js → rubric-predictive-validity-BRR632r1.js} +2 -2
- package/dist/{rubric-predictive-validity-BJf-8ejY.js.map → rubric-predictive-validity-BRR632r1.js.map} +1 -1
- package/dist/{rubric-predictive-validity-C1dCLcvb.d.ts → rubric-predictive-validity-C4sztLR3.d.ts} +2 -2
- package/dist/{rubric-predictive-validity-C1dCLcvb.d.ts.map → rubric-predictive-validity-C4sztLR3.d.ts.map} +1 -1
- package/dist/{run-evidence-DokQtX0-.d.ts → run-evidence-BDIircdA.d.ts} +3 -3
- package/dist/{run-evidence-DokQtX0-.d.ts.map → run-evidence-BDIircdA.d.ts.map} +1 -1
- package/dist/{run-record-DcObtIGh.d.ts → run-record-BPCa2rQ8.d.ts} +4 -4
- package/dist/{run-record-DcObtIGh.d.ts.map → run-record-BPCa2rQ8.d.ts.map} +1 -1
- package/dist/{run-record-BIwU2wdV.js → run-record-vRgqWmJw.js} +3 -3
- package/dist/{run-record-BIwU2wdV.js.map → run-record-vRgqWmJw.js.map} +1 -1
- package/dist/{semantic-concept-judge-Btozx3Vc.js → semantic-concept-judge-Bz64IckK.js} +4 -4
- package/dist/{semantic-concept-judge-Btozx3Vc.js.map → semantic-concept-judge-Bz64IckK.js.map} +1 -1
- package/dist/{server-Bz3WQJs6.js → server-KjXZZUDX.js} +3 -3
- package/dist/{server-Bz3WQJs6.js.map → server-KjXZZUDX.js.map} +1 -1
- package/dist/{skill-usage-BDQVPIG1.d.ts → skill-usage-CFDLLlhF.d.ts} +25 -47
- package/dist/skill-usage-CFDLLlhF.d.ts.map +1 -0
- package/dist/{skillopt-optimization-method-CwSYkv35.d.ts → skillopt-optimization-method-BpbnlvAZ.d.ts} +11 -12
- package/dist/skillopt-optimization-method-BpbnlvAZ.d.ts.map +1 -0
- package/dist/{skillopt-optimization-method-0UmPD6aP.js → skillopt-optimization-method-f4o9sUT4.js} +7 -7
- package/dist/{skillopt-optimization-method-0UmPD6aP.js.map → skillopt-optimization-method-f4o9sUT4.js.map} +1 -1
- package/dist/{statistics-CnGCLLqc.js → statistics-ByxzSiOM.js} +2 -2
- package/dist/{statistics-CnGCLLqc.js.map → statistics-ByxzSiOM.js.map} +1 -1
- package/dist/{statistics-CKOqre5S.d.ts → statistics-_7P642CN.d.ts} +2 -2
- package/dist/{statistics-CKOqre5S.d.ts.map → statistics-_7P642CN.d.ts.map} +1 -1
- package/dist/{summary-report-BEk8OFLs.js → summary-report-9A5y7EsK.js} +4 -4
- package/dist/{summary-report-BEk8OFLs.js.map → summary-report-9A5y7EsK.js.map} +1 -1
- package/dist/{summary-report-CPMINBqs.d.ts → summary-report-DHipz9Kx.d.ts} +3 -3
- package/dist/{summary-report-CPMINBqs.d.ts.map → summary-report-DHipz9Kx.d.ts.map} +1 -1
- package/dist/supervisor-run/index.d.ts +3 -2
- package/dist/supervisor-run/index.js +3 -2
- package/dist/{supervisor-run-Dr5HnTup.js → supervisor-run-B2EWUmQY.js} +28 -454
- package/dist/supervisor-run-B2EWUmQY.js.map +1 -0
- package/dist/{test-graded-scenario-BsqWLmPt.js → test-graded-scenario-JHcKQNpq.js} +2 -2
- package/dist/{test-graded-scenario-BsqWLmPt.js.map → test-graded-scenario-JHcKQNpq.js.map} +1 -1
- package/dist/tools-DZk2Jn64.js +1876 -0
- package/dist/tools-DZk2Jn64.js.map +1 -0
- package/dist/traces.d.ts +6 -7
- package/dist/traces.js +5 -6
- package/dist/{types-DVjczBM9.d.ts → types-CKswbJGO.d.ts} +260 -6
- package/dist/types-CKswbJGO.d.ts.map +1 -0
- package/dist/{types-DiWLru6Z.d.ts → types-CTGbIm57.d.ts} +5 -5
- package/dist/{types-DiWLru6Z.d.ts.map → types-CTGbIm57.d.ts.map} +1 -1
- package/dist/types-CTvKfr5F.d.ts +804 -0
- package/dist/types-CTvKfr5F.d.ts.map +1 -0
- package/dist/{index-CyC1BTmn.d.ts → types-Dea6tiVI.d.ts} +16 -238
- package/dist/types-Dea6tiVI.d.ts.map +1 -0
- package/dist/wire/index.d.ts +3 -3
- package/dist/wire/index.js +1 -1
- package/docs/feedback-trajectories.md +100 -1
- package/docs/trace-analysis.md +374 -58
- package/package.json +5 -1
- package/dist/analyst-BkTS3C58.d.ts +0 -89
- package/dist/analyst-BkTS3C58.d.ts.map +0 -1
- package/dist/analyst-j5je5J7c.js +0 -152
- package/dist/analyst-j5je5J7c.js.map +0 -1
- package/dist/campaign-Dz8uQnhC.js.map +0 -1
- package/dist/client-DcvgkaZi.d.ts.map +0 -1
- package/dist/default-registry-Brxr728w.d.ts.map +0 -1
- package/dist/default-registry-CHmdy2An.js.map +0 -1
- package/dist/errors-8YnH8WlF.js.map +0 -1
- package/dist/errors-CEk209JS.d.ts.map +0 -1
- package/dist/feedback-trajectory-CVaeREXV.d.ts.map +0 -1
- package/dist/index-B4Fjfo5U.d.ts.map +0 -1
- package/dist/index-CyC1BTmn.d.ts.map +0 -1
- package/dist/llm-client-BiK4HW0u.d.ts +0 -290
- package/dist/llm-client-BiK4HW0u.d.ts.map +0 -1
- package/dist/raw-provider-sink-BU29Sh8h.d.ts +0 -134
- package/dist/raw-provider-sink-BU29Sh8h.d.ts.map +0 -1
- package/dist/replay-BRfMIs81.d.ts.map +0 -1
- package/dist/replay-C6wRg47C.js.map +0 -1
- package/dist/researcher-Doo95b50.d.ts.map +0 -1
- package/dist/skill-usage-BDQVPIG1.d.ts.map +0 -1
- package/dist/skillopt-optimization-method-CwSYkv35.d.ts.map +0 -1
- package/dist/store-CxJry_cs.d.ts +0 -229
- package/dist/store-CxJry_cs.d.ts.map +0 -1
- package/dist/supervisor-run-Dr5HnTup.js.map +0 -1
- package/dist/tools-D8yTtNSN.js +0 -1190
- package/dist/tools-D8yTtNSN.js.map +0 -1
- package/dist/types-Cc3qbqzj.d.ts +0 -387
- package/dist/types-Cc3qbqzj.d.ts.map +0 -1
- package/dist/types-DVjczBM9.d.ts.map +0 -1
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { o as
|
|
1
|
+
import { c as ReplayError, l as ValidationError, o as LimitExceededError, r as CaptureIntegrityError, s as NotFoundError, t as AgentEvalError } from "./errors-DkfjIDvD.js";
|
|
2
2
|
import { S as ToolSpan, f as Run } from "./schema-BtVldJ3T.js";
|
|
3
|
-
import { a as RunRecord, l as RunTerminalOutcome, s as RunSplitTag, u as RunTokenUsage } from "./run-record-
|
|
4
|
-
import {
|
|
3
|
+
import { a as RunRecord, l as RunTerminalOutcome, s as RunSplitTag, u as RunTokenUsage } from "./run-record-BPCa2rQ8.js";
|
|
4
|
+
import { _t as RawProviderSink, gt as RawProviderEvent } from "./types-CTvKfr5F.js";
|
|
5
5
|
import { s as TraceStore } from "./store-CT9YIIve.js";
|
|
6
6
|
import { n as RunCompleteHookContext, t as RunCompleteHook } from "./emitter-DGQGoLyj.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
7
|
+
import { D as SearchSpanResult, E as QueryTracesPage, F as TraceAnalystSpanStatus, L as ViewSpansResult, M as TraceAnalystFilters, O as SearchTraceResult, P as TraceAnalystSpanKind, S as TraceAnalysisStoreContext, w as DatasetOverview, x as TraceAnalysisStore, y as BoundedTraceAnalysisStoreOptions, z as ViewTraceResult } from "./types-CKswbJGO.js";
|
|
8
|
+
import { S as JudgeConfig } from "./types-CTGbIm57.js";
|
|
9
|
+
import { r as CorrectnessChecker } from "./completion-verifier-DSyRNVzU.js";
|
|
10
|
+
import { t as AnalyzeRunsOptions } from "./analyze-runs-PVtnfjvA.js";
|
|
11
|
+
import { AxAIService, AxAgentActorTurnCallbackArgs, AxFunction } from "@ax-llm/ax";
|
|
10
12
|
//#region src/trace/otel.d.ts
|
|
11
13
|
declare const OTEL_AGENT_EVAL_SCOPE: {
|
|
12
14
|
name: string;
|
|
@@ -235,6 +237,145 @@ interface TraceStoreToOtlpOptions {
|
|
|
235
237
|
*/
|
|
236
238
|
declare function convertTraceStoresToOtlp(source: string | TraceStoreSource | readonly TraceStoreSource[], outPath: string, opts?: TraceStoreToOtlpOptions): TracesToOtlpResult;
|
|
237
239
|
//#endregion
|
|
240
|
+
//#region src/trace-analyst/store-boundary.d.ts
|
|
241
|
+
/** Apply the public validation, cancellation, not-found, and size rules to any adapter. */
|
|
242
|
+
declare function createBoundedTraceAnalysisStore(source: TraceAnalysisStore, options?: BoundedTraceAnalysisStoreOptions): TraceAnalysisStore;
|
|
243
|
+
//#endregion
|
|
244
|
+
//#region src/trace-analyst/analyst.d.ts
|
|
245
|
+
interface AnalyzeTracesInput {
|
|
246
|
+
/** The user-facing question. Domain framing belongs here, not in the
|
|
247
|
+
* actor description. */
|
|
248
|
+
question: string;
|
|
249
|
+
}
|
|
250
|
+
interface AnalyzeTracesResult {
|
|
251
|
+
/** The actor's submitted prose answer. */
|
|
252
|
+
answer: string;
|
|
253
|
+
/** Bulleted findings from the actor's structured completion. */
|
|
254
|
+
findings: string[];
|
|
255
|
+
/** Per-turn snapshots captured via `actorTurnCallback`. */
|
|
256
|
+
turns: AnalyzeTracesTurnSnapshot[];
|
|
257
|
+
/** Total turns the actor took. */
|
|
258
|
+
turnCount: number;
|
|
259
|
+
/** Token usage by role. */
|
|
260
|
+
usage: TraceAnalystUsage;
|
|
261
|
+
/** Full system + assistant + tool message log by role. */
|
|
262
|
+
chatLog: TraceAnalystChatLog;
|
|
263
|
+
/** Prompt version that produced this run. */
|
|
264
|
+
actorPromptVersion: string;
|
|
265
|
+
}
|
|
266
|
+
interface TraceAnalystUsage {
|
|
267
|
+
actor: TraceAnalystUsageEntry[];
|
|
268
|
+
responder: TraceAnalystUsageEntry[];
|
|
269
|
+
}
|
|
270
|
+
interface TraceAnalystUsageEntry {
|
|
271
|
+
[key: string]: unknown;
|
|
272
|
+
}
|
|
273
|
+
interface TraceAnalystChatLog {
|
|
274
|
+
actor: TraceAnalystChatMessage[];
|
|
275
|
+
responder: TraceAnalystChatMessage[];
|
|
276
|
+
}
|
|
277
|
+
interface TraceAnalystChatMessage {
|
|
278
|
+
[key: string]: unknown;
|
|
279
|
+
}
|
|
280
|
+
interface AnalyzeTracesTurnSnapshot {
|
|
281
|
+
stage: AxAgentActorTurnCallbackArgs['stage'];
|
|
282
|
+
turn: number;
|
|
283
|
+
isError: boolean;
|
|
284
|
+
/** The JS code the actor produced for this turn. */
|
|
285
|
+
code: string;
|
|
286
|
+
/** The formatted action-log entry the actor sees on the next turn. */
|
|
287
|
+
output: string;
|
|
288
|
+
/** Provider thought (when `executorOptions.showThoughts` is true and the
|
|
289
|
+
* provider returns it). */
|
|
290
|
+
thought?: string;
|
|
291
|
+
}
|
|
292
|
+
interface AnalyzeTracesOptions {
|
|
293
|
+
/** Trace data source. Pass either an OTLP-JSONL path or a custom store. */
|
|
294
|
+
source: string | TraceAnalysisStore;
|
|
295
|
+
/** Caller-provided AxAIService. */
|
|
296
|
+
ai: AxAIService;
|
|
297
|
+
/** Model id forwarded to the actor. */
|
|
298
|
+
model?: string;
|
|
299
|
+
/** Maximum model subqueries. 0 disables model fan-out. Default 4. */
|
|
300
|
+
maxSubqueries?: number;
|
|
301
|
+
/** Maximum actor turns. Default 12. */
|
|
302
|
+
maxTurns?: number;
|
|
303
|
+
/** Maximum parallel model subqueries. Default 2. */
|
|
304
|
+
maxParallelSubqueries?: number;
|
|
305
|
+
/** Cancels in-flight model and tool work. */
|
|
306
|
+
signal?: AbortSignal;
|
|
307
|
+
/** Override the actor description. */
|
|
308
|
+
actorDescription?: string;
|
|
309
|
+
/** Per-turn observability hook. */
|
|
310
|
+
onTurn?: (turn: AnalyzeTracesTurnSnapshot) => void | Promise<void>;
|
|
311
|
+
/** Override max runtime characters per turn. Default 6000. */
|
|
312
|
+
maxRuntimeChars?: number;
|
|
313
|
+
/** When set, every turn's snapshot is appended to this JSONL file
|
|
314
|
+
* immediately. If the analyst crashes mid-loop (provider 503,
|
|
315
|
+
* network error, validator reject) the partial reasoning is still
|
|
316
|
+
* on disk for diagnosis and recovery. */
|
|
317
|
+
progressLogPath?: string;
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* Run the trace analyst.
|
|
321
|
+
*
|
|
322
|
+
* Throws:
|
|
323
|
+
* - `TraceFileMissingError` if `source` is a path and doesn't exist.
|
|
324
|
+
* - `AxAgentClarificationError` if the analyst asks for clarification.
|
|
325
|
+
* - Provider errors (auth, rate limits) propagate from the AI service.
|
|
326
|
+
*/
|
|
327
|
+
declare function analyzeTraces(input: AnalyzeTracesInput, options: AnalyzeTracesOptions): Promise<AnalyzeTracesResult>;
|
|
328
|
+
//#endregion
|
|
329
|
+
//#region src/trace-analyst/errors.d.ts
|
|
330
|
+
/** Invalid trace-tool arguments, including malformed filters and regexes. */
|
|
331
|
+
declare class TraceAnalysisValidationError extends ValidationError {
|
|
332
|
+
readonly code: 'validation';
|
|
333
|
+
}
|
|
334
|
+
/** A trace read cannot fit within a documented count or byte limit. */
|
|
335
|
+
declare class TraceAnalysisLimitError extends LimitExceededError {
|
|
336
|
+
readonly code: 'limit_exceeded';
|
|
337
|
+
readonly operation: string;
|
|
338
|
+
readonly actual: number;
|
|
339
|
+
readonly limit: number;
|
|
340
|
+
constructor(operation: string, actual: number, limit: number, message?: string);
|
|
341
|
+
}
|
|
342
|
+
/** A supplied store returned a shape that violates the trace read contract. */
|
|
343
|
+
declare class TraceAnalysisStoreContractError extends AgentEvalError {
|
|
344
|
+
readonly code: 'backend_integrity';
|
|
345
|
+
readonly operation: string;
|
|
346
|
+
constructor(operation: string, message: string, options?: {
|
|
347
|
+
cause?: unknown;
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
declare class TraceFileMissingError extends NotFoundError {
|
|
351
|
+
readonly code: 'not_found';
|
|
352
|
+
readonly path: string;
|
|
353
|
+
constructor(path: string);
|
|
354
|
+
}
|
|
355
|
+
declare class TraceFileTooLargeError extends TraceAnalysisLimitError {
|
|
356
|
+
readonly path: string;
|
|
357
|
+
readonly size_bytes: number;
|
|
358
|
+
readonly max_bytes: number;
|
|
359
|
+
constructor(path: string, size_bytes: number, max_bytes: number);
|
|
360
|
+
}
|
|
361
|
+
declare class TraceFileMalformedError extends CaptureIntegrityError {
|
|
362
|
+
readonly path: string;
|
|
363
|
+
readonly line_number: number;
|
|
364
|
+
readonly byte_offset: number;
|
|
365
|
+
constructor(path: string, line_number: number, byte_offset: number, cause?: unknown);
|
|
366
|
+
}
|
|
367
|
+
declare class TraceNotFoundError extends NotFoundError {
|
|
368
|
+
readonly code: 'not_found';
|
|
369
|
+
readonly trace_id: string;
|
|
370
|
+
constructor(trace_id: string);
|
|
371
|
+
}
|
|
372
|
+
declare class SpanNotFoundError extends NotFoundError {
|
|
373
|
+
readonly code: 'not_found';
|
|
374
|
+
readonly trace_id: string;
|
|
375
|
+
readonly span_id: string;
|
|
376
|
+
constructor(trace_id: string, span_id: string);
|
|
377
|
+
}
|
|
378
|
+
//#endregion
|
|
238
379
|
//#region src/trace-analyst/hook.d.ts
|
|
239
380
|
interface TraceAnalystHookOptions {
|
|
240
381
|
/**
|
|
@@ -538,7 +679,7 @@ declare function otlpRowsToTraceRunRecords(rows: Iterable<object>, opts: OtlpToR
|
|
|
538
679
|
//#endregion
|
|
539
680
|
//#region src/trace-analyst/prompts.d.ts
|
|
540
681
|
/** Ax RLM prompt for bounded trace discovery and evidence-backed analysis. */
|
|
541
|
-
declare const TRACE_ANALYST_ACTOR_DESCRIPTION = "You answer questions about an OTLP-shaped JSONL trace dataset using the trace tools provided in the `traces` namespace.\n\nDISCOVERY → NARROW → DEEP-READ protocol — follow exactly:\n\n1. ALWAYS call `traces.getDatasetOverview({})` FIRST without a regex_pattern. The result tells you total_traces, raw_jsonl_bytes, services, agents, models, and sample_trace_ids (real ids — never fabricate one).\n\n2. Use raw_jsonl_bytes to gauge how expensive raw scans will be. `filters.regex_pattern` is the one scan-heavy filter on getDatasetOverview / queryTraces / countTraces — narrow with indexed fields (has_errors, model_names, service_names, agent_names, time bounds) BEFORE adding a regex on a large dataset.\n\n3. To list more traces than the sample, call `traces.queryTraces({ filters?, limit, offset? })`. Each summary carries raw_jsonl_bytes — use it to choose between viewTrace and searchTrace BEFORE calling either.\n\n4. Per-trace inspection:\n - SMALL trace (raw_jsonl_bytes well under 150_000): call `traces.viewTrace({ trace_id })`. Returns all spans. Per-attribute payloads are head-capped at ~4KB; large `input.value` / `output.value` / `llm.input_messages` will show a `[trace-analyst truncated: N bytes]` marker.\n - LARGE trace (raw_jsonl_bytes near or above 150_000, or you saw an `oversized` response): use `traces.searchTrace({ trace_id, regex_pattern })` to get bounded SpanMatchRecords (span metadata + matched text + surrounding context). Then call `traces.viewSpans({ trace_id, span_ids: [...] })` for surgical reads (~16KB cap, 4× higher than discovery), or `traces.searchSpan({ trace_id, span_id, regex_pattern })` for one large span. Stays bounded regardless of trace size.\n - Useful regex patterns: `STATUS_CODE_ERROR` (failures), tool names like `grep` or `view_trace`, error strings like `MaxTurnsExceeded`, model names, attribute keys.\n\n5. ONLY call viewTrace / viewSpans / searchTrace / searchSpan with trace/span ids you have already seen in sample_trace_ids, a queryTraces page, or a previous search result. Never invent ids.\n\n5a. **Result-shape contract** — searchTrace and searchSpan return `{ trace_id, hits,
|
|
682
|
+
declare const TRACE_ANALYST_ACTOR_DESCRIPTION = "You answer questions about an OTLP-shaped JSONL trace dataset using the trace tools provided in the `traces` namespace.\n\nDISCOVERY → NARROW → DEEP-READ protocol — follow exactly:\n\n1. ALWAYS call `traces.getDatasetOverview({})` FIRST without a regex_pattern. The result tells you total_traces, raw_jsonl_bytes, services, agents, models, and sample_trace_ids (real ids — never fabricate one).\n\n2. Use raw_jsonl_bytes to gauge how expensive raw scans will be. `filters.regex_pattern` is the one scan-heavy filter on getDatasetOverview / queryTraces / countTraces — narrow with indexed fields (has_errors, model_names, service_names, agent_names, time bounds) BEFORE adding a regex on a large dataset.\n\n3. To list more traces than the sample, call `traces.queryTraces({ filters?, limit, offset? })`. Each summary carries raw_jsonl_bytes — use it to choose between viewTrace and searchTrace BEFORE calling either.\n\n4. Per-trace inspection:\n - SMALL trace (raw_jsonl_bytes well under 150_000): call `traces.viewTrace({ trace_id })`. Returns all spans. Per-attribute payloads are head-capped at ~4KB; large `input.value` / `output.value` / `llm.input_messages` will show a `[trace-analyst truncated: N bytes]` marker.\n - LARGE trace (raw_jsonl_bytes near or above 150_000, or you saw an `oversized` response): use `traces.searchTrace({ trace_id, regex_pattern })` to get bounded SpanMatchRecords (span metadata + matched text + surrounding context). Then call `traces.viewSpans({ trace_id, span_ids: [...] })` for surgical reads (~16KB cap, 4× higher than discovery), or `traces.searchSpan({ trace_id, span_id, regex_pattern })` for one large span. Stays bounded regardless of trace size.\n - Useful regex patterns: `STATUS_CODE_ERROR` (failures), tool names like `grep` or `view_trace`, error strings like `MaxTurnsExceeded`, model names, attribute keys.\n\n5. ONLY call viewTrace / viewSpans / searchTrace / searchSpan with trace/span ids you have already seen in sample_trace_ids, a queryTraces page, or a previous search result. Never invent ids.\n\n5a. **Result-shape contract** — searchTrace and searchSpan return `{ trace_id, hits, has_more }`. Iterate `result.hits` (NOT result.matches). Each hit has `{ span_id, span_name, span_kind, attribute_path, matched_text, context_before, context_after, match_offset }`. viewTrace returns `{ trace_id, spans }` (or `oversized`). viewSpans returns `{ trace_id, spans, missing_span_ids, omitted_span_ids, has_more, truncated_attribute_count }`; retry only `omitted_span_ids`. Never assume a field name — log the result shape first if unsure.\n\n6. If viewTrace returns an `oversized` summary instead of `spans`, DO NOT retry the same call. Read the summary's top_span_names, span_count, span_response_bytes_max, error_span_count to plan a follow-up: switch to searchTrace (or searchSpan for one large span), then viewSpans on a smaller, surgical span_ids set.\n\n7. If searchTrace or searchSpan returns has_more=true, REFINE the regex to be more specific rather than blindly raising max_matches.\n\n8. If a tool errors (invalid regex, range error), STOP and reconsider — don't retry with a guessed id or argument. Use the discovery tools above to recover.\n\n9. If a ~4KB-truncated payload from viewTrace / searchTrace matters for your answer, first try viewSpans on that span id (~16KB cap). If a 16KB-truncated payload from viewSpans still matters, narrow further with searchSpan against a more specific regex rather than asking for the full payload again.\n\n10. If the question splits into independent reasoning branches, use bounded `llmQuery(...)` calls over evidence you already loaded. Subqueries cannot inspect the trace store, so pass the exact trace excerpts they need. Example:\n\n const reviews = await llmQuery([\n { query: 'Classify the failure mechanism in this excerpt.', context: traceAbcExcerpt },\n { query: 'Classify the failure mechanism in this excerpt.', context: traceDefExcerpt },\n ]);\n\nOBSERVABILITY rules:\n- Each discovery turn must emit at least one concise `console.log(...)` showing what evidence was learned.\n- Finish gathering evidence before submitting the analysis.\n- Reuse runtime variables across turns; don't recompute.\n\nOUTPUT contract — your final answer must include:\n- A clear prose conclusion answering the user's question.\n- Trace ids and span ids cited as evidence for each claim.\n- Failure modes named in the user's domain language, with frequency and concrete examples.\n- A concise findings array containing only claims supported by inspected evidence.\n\nDo NOT invent trace ids, span ids, error messages, or model names. Every fact must be traceable to a tool result.";
|
|
542
683
|
declare const TRACE_ANALYST_ACTOR_DESCRIPTION_VERSION = "trace-analyst-actor-v6-2026-07-14";
|
|
543
684
|
//#endregion
|
|
544
685
|
//#region src/trace-analyst/store-otlp.d.ts
|
|
@@ -570,43 +711,49 @@ declare abstract class BufferedOtlpTraceStore implements TraceAnalysisStore {
|
|
|
570
711
|
private readonly perAttributeSpanBudget;
|
|
571
712
|
private readonly perCallByteCeiling;
|
|
572
713
|
private readonly perMatchTextBudget;
|
|
573
|
-
private
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
private
|
|
714
|
+
private indexValue?;
|
|
715
|
+
private indexTask?;
|
|
716
|
+
private bufferValue?;
|
|
717
|
+
private bufferTask?;
|
|
577
718
|
constructor(opts: BufferedOtlpTraceStoreOptions);
|
|
578
|
-
|
|
719
|
+
hasTrace(trace_id: string, context?: TraceAnalysisStoreContext): Promise<boolean>;
|
|
720
|
+
hasSpans(opts: {
|
|
721
|
+
trace_id: string;
|
|
722
|
+
span_ids: readonly string[];
|
|
723
|
+
}, context?: TraceAnalysisStoreContext): Promise<string[]>;
|
|
724
|
+
getOverview(filters?: TraceAnalystFilters, context?: TraceAnalysisStoreContext): Promise<DatasetOverview>;
|
|
579
725
|
queryTraces(opts: {
|
|
580
726
|
filters?: TraceAnalystFilters;
|
|
581
727
|
limit: number;
|
|
582
728
|
offset?: number;
|
|
583
|
-
}): Promise<QueryTracesPage>;
|
|
584
|
-
countTraces(filters?: TraceAnalystFilters): Promise<number>;
|
|
729
|
+
}, context?: TraceAnalysisStoreContext): Promise<QueryTracesPage>;
|
|
730
|
+
countTraces(filters?: TraceAnalystFilters, context?: TraceAnalysisStoreContext): Promise<number>;
|
|
585
731
|
viewTrace(opts: {
|
|
586
732
|
trace_id: string;
|
|
587
733
|
per_attribute_byte_cap?: number;
|
|
588
|
-
}): Promise<ViewTraceResult>;
|
|
734
|
+
}, context?: TraceAnalysisStoreContext): Promise<ViewTraceResult>;
|
|
589
735
|
viewSpans(opts: {
|
|
590
736
|
trace_id: string;
|
|
591
737
|
span_ids: readonly string[];
|
|
592
738
|
per_attribute_byte_cap?: number;
|
|
593
|
-
}): Promise<ViewSpansResult>;
|
|
739
|
+
}, context?: TraceAnalysisStoreContext): Promise<ViewSpansResult>;
|
|
594
740
|
searchTrace(opts: {
|
|
595
741
|
trace_id: string;
|
|
596
742
|
regex_pattern: string;
|
|
597
743
|
max_matches?: number;
|
|
598
|
-
}): Promise<SearchTraceResult>;
|
|
744
|
+
}, context?: TraceAnalysisStoreContext): Promise<SearchTraceResult>;
|
|
599
745
|
searchSpan(opts: {
|
|
600
746
|
trace_id: string;
|
|
601
747
|
span_id: string;
|
|
602
748
|
regex_pattern: string;
|
|
603
749
|
max_matches?: number;
|
|
604
|
-
}): Promise<SearchSpanResult>;
|
|
750
|
+
}, context?: TraceAnalysisStoreContext): Promise<SearchSpanResult>;
|
|
605
751
|
/** Force the index to materialise. Useful to amortise startup cost
|
|
606
752
|
* before the first agent call. */
|
|
607
|
-
ensureIndexed(): Promise<void>;
|
|
753
|
+
ensureIndexed(context?: TraceAnalysisStoreContext): Promise<void>;
|
|
608
754
|
private buffer;
|
|
609
|
-
protected abstract readBuffer(): Promise<Buffer>;
|
|
755
|
+
protected abstract readBuffer(signal?: AbortSignal): Promise<Buffer>;
|
|
756
|
+
protected abstract sourcePath(): string;
|
|
610
757
|
private index;
|
|
611
758
|
private buildIndex;
|
|
612
759
|
private matchedTraces;
|
|
@@ -621,47 +768,75 @@ declare class OtlpFileTraceStore extends BufferedOtlpTraceStore {
|
|
|
621
768
|
constructor(opts: OtlpFileTraceStoreOptions);
|
|
622
769
|
/** Stat-then-read so an oversized file fails loud before allocating the
|
|
623
770
|
* source buffer. Missing files remain distinct from malformed traces. */
|
|
624
|
-
protected readBuffer(): Promise<Buffer>;
|
|
771
|
+
protected readBuffer(signal?: AbortSignal): Promise<Buffer>;
|
|
772
|
+
protected sourcePath(): string;
|
|
625
773
|
}
|
|
774
|
+
/** Build the bounded trace store directly from OpenInference JSONL text. */
|
|
775
|
+
declare function otlpTextToTraceAnalysisStore(text: string, opts?: ToolSpansToTraceAnalysisStoreOptions): TraceAnalysisStore;
|
|
776
|
+
//#endregion
|
|
777
|
+
//#region src/trace-analyst/store-tool-spans.d.ts
|
|
626
778
|
/** Missing tool spans cannot distinguish a tool-free run from broken capture. */
|
|
627
779
|
declare class ToolTraceMissingError extends CaptureIntegrityError {
|
|
628
780
|
constructor();
|
|
629
781
|
}
|
|
630
782
|
/**
|
|
631
|
-
* Snapshot canonical tool spans into the
|
|
632
|
-
* One
|
|
633
|
-
* remain queryable through the same OTLP projection as file-backed traces.
|
|
783
|
+
* Snapshot canonical tool spans into the read interface used by trace analysts.
|
|
784
|
+
* One run becomes one trace while arguments, results, errors, and timing remain searchable.
|
|
634
785
|
*/
|
|
635
|
-
declare function toolSpansToTraceAnalysisStore(spans: readonly ToolSpan[] | null | undefined,
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
786
|
+
declare function toolSpansToTraceAnalysisStore(spans: readonly ToolSpan[] | null | undefined, options?: ToolSpansToTraceAnalysisStoreOptions): TraceAnalysisStore;
|
|
787
|
+
//#endregion
|
|
788
|
+
//#region src/eval-tools.d.ts
|
|
789
|
+
/** One agent-callable tool. `parameters` is a JSON Schema (draft-07+) object. */
|
|
790
|
+
interface EvalToolDef {
|
|
791
|
+
name: string;
|
|
792
|
+
description: string;
|
|
793
|
+
parameters: Record<string, unknown>;
|
|
794
|
+
handler: (args: unknown, ctx?: {
|
|
795
|
+
signal?: AbortSignal;
|
|
796
|
+
}) => Promise<unknown>;
|
|
797
|
+
}
|
|
798
|
+
interface MakeEvalToolsConfig {
|
|
799
|
+
/** Judges available to `run_judges`. Omit to exclude the tool. */
|
|
800
|
+
judges?: Array<JudgeConfig<unknown>>;
|
|
801
|
+
/** Host-side correctness checker for `verify_completion` (the third
|
|
802
|
+
* `verifyCompletion` argument — a function, so it cannot cross the wire).
|
|
803
|
+
* Omit to exclude the tool. */
|
|
804
|
+
completion?: {
|
|
805
|
+
checkCorrectness: CorrectnessChecker;
|
|
806
|
+
};
|
|
807
|
+
/** `analyzeRuns` options minus `runs` (runs arrive as tool args, inline or
|
|
808
|
+
* via `path`). Omit to exclude the tool. */
|
|
809
|
+
analyze?: Omit<AnalyzeRunsOptions, 'runs'>;
|
|
810
|
+
}
|
|
811
|
+
/** OpenAI function-tool wire shape for an `EvalToolDef`. */
|
|
812
|
+
declare function toOpenAiTool(def: EvalToolDef): {
|
|
813
|
+
type: 'function';
|
|
814
|
+
function: {
|
|
815
|
+
name: string;
|
|
816
|
+
description: string;
|
|
817
|
+
parameters: Record<string, unknown>;
|
|
818
|
+
};
|
|
819
|
+
};
|
|
820
|
+
/**
|
|
821
|
+
* Build the eval toolset for the supplied config. Only sections present in
|
|
822
|
+
* `cfg` produce tools, so the agent's tool list mirrors what the host
|
|
823
|
+
* actually wired. Handlers fail loud on malformed args — no silent defaults.
|
|
824
|
+
*/
|
|
825
|
+
declare function makeEvalTools(cfg: MakeEvalToolsConfig): EvalToolDef[];
|
|
648
826
|
//#endregion
|
|
649
827
|
//#region src/trace-analyst/tools.d.ts
|
|
650
|
-
|
|
828
|
+
declare const TRACE_ANALYST_TOOL_NAMESPACE: 'traces';
|
|
829
|
+
interface BuildTraceAnalysisToolsOptions extends BoundedTraceAnalysisStoreOptions {
|
|
651
830
|
store: TraceAnalysisStore;
|
|
652
|
-
/** Override the default sample-trace-id slot count (20). Mostly for tests. */
|
|
653
|
-
sampleTraceLimit?: number;
|
|
654
831
|
}
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
*/
|
|
659
|
-
declare function
|
|
660
|
-
/**
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
* agent function modules. */
|
|
664
|
-
declare function traceAnalystFunctionGroup(opts: BuildTraceAnalystToolsOpts): {
|
|
832
|
+
interface TraceAnalysisToolDescriptor extends EvalToolDef {
|
|
833
|
+
namespace: typeof TRACE_ANALYST_TOOL_NAMESPACE;
|
|
834
|
+
}
|
|
835
|
+
/** Bind all seven trace reads without exposing an agent framework type. */
|
|
836
|
+
declare function buildTraceAnalysisToolDescriptors(options: BuildTraceAnalysisToolsOptions): TraceAnalysisToolDescriptor[];
|
|
837
|
+
/** Adapt the canonical descriptors into Ax functions used by the built-in analyst. */
|
|
838
|
+
declare function buildTraceAnalystTools(options: BuildTraceAnalysisToolsOptions): AxFunction[];
|
|
839
|
+
declare function traceAnalystFunctionGroup(options: BuildTraceAnalysisToolsOptions): {
|
|
665
840
|
namespace: string;
|
|
666
841
|
title: string;
|
|
667
842
|
selectionCriteria: string;
|
|
@@ -763,5 +938,5 @@ declare function iterateRawCalls(sink: RawProviderSink, filter?: {
|
|
|
763
938
|
spanId?: string;
|
|
764
939
|
}): AsyncGenerator<ReplayCacheEntry>;
|
|
765
940
|
//#endregion
|
|
766
|
-
export {
|
|
767
|
-
//# sourceMappingURL=replay-
|
|
941
|
+
export { buildTraceInsightContext as $, otlpRowsToTraceRunRecords as A, RedactionReport as At, stringField as B, OtlpSpanRole as Bt, otlpTextToTraceAnalysisStore as C, createBoundedTraceAnalysisStore as Ct, OtlpTraceRunRecord as D, convertTraceStoresToOtlp as Dt, OtlpToRunRecordsOptions as E, TracesToOtlpResult as Et, extractOtlpAttributes as F, otelRunCompleteHook as Ft, TraceInsightFinding as G, isOtlpModelCall as Gt, flattenOtlpExportToNdjson as H, ToolSpanOtlpInput as Ht, firstStringAttr as I, ExportableSpan as It, TraceInsightQualityGate as J, OtlpExport as Jt, TraceInsightPanelRole as K, traceSpanKindToOpenInferenceKind as Kt, inferOtlpKind as L, OtelExportConfig as Lt, otlpToTraceRunRecords as M, redactString as Mt, ProjectedOtlpSpan as N, redactValue as Nt, TraceAggregate as O, DEFAULT_REDACTION_RULES as Ot, asString as P, createOtelTracingStore as Pt, TraceInsightTask as Q, projectOtlpFlatLine as R, OtelExporter as Rt, ToolSpansToTraceAnalysisStoreOptions as S, analyzeTraces as St, TRACE_ANALYST_ACTOR_DESCRIPTION_VERSION as T, TraceStoreToOtlpOptions as Tt, OtlpFlatLine as U, applyToolSpanOtlpAttributes as Ut, FlattenOtlpOptions as V, OtlpSpanRoleInput as Vt, TraceInsightContext as W, classifyOtlpSpanRole as Wt, TraceInsightReadiness as X, OtlpSpan as Xt, TraceInsightQuestion as Y, OtlpResourceSpans as Yt, TraceInsightSuite as Z, exportRunAsOtlp as Zt, toOpenAiTool as _, TraceNotFoundError as _t, ReplayFetchOptions as a, planTraceInsightQuestions as at, OtlpFileTraceStore as b, AnalyzeTracesResult as bt, BuildTraceAnalysisToolsOptions as c, TraceAnalystHookOptions as ct, buildTraceAnalysisToolDescriptors as d, TraceAnalysisLimitError as dt, buildTraceInsightPrompt as et, buildTraceAnalystTools as f, TraceAnalysisStoreContractError as ft, makeEvalTools as g, TraceFileTooLargeError as gt, MakeEvalToolsConfig as h, TraceFileMissingError as ht, ReplayCacheStats as i, inferDomainKeywords as it, otlpToRunRecords as j, RedactionRule as jt, otlpRowsToRunRecords as k, REDACTION_VERSION as kt, TRACE_ANALYST_TOOL_NAMESPACE as l, traceAnalystOnRunComplete as lt, EvalToolDef as m, TraceFileMalformedError as mt, ReplayCacheEntry as n, describeTraceInsightScope as nt, createReplayFetch as o, scoreTraceInsightReadiness as ot, traceAnalystFunctionGroup as p, TraceAnalysisValidationError as pt, TraceInsightPromptInput as q, OTEL_AGENT_EVAL_SCOPE as qt, ReplayCacheMissError as r, domainEvidencePattern as rt, iterateRawCalls as s, tokenizeDomainWords as st, ReplayCache as t, defaultTraceInsightPanel as tt, TraceAnalysisToolDescriptor as u, SpanNotFoundError as ut, ToolTraceMissingError as v, AnalyzeTracesInput as vt, TRACE_ANALYST_ACTOR_DESCRIPTION as w, TraceStoreSource as wt, OtlpFileTraceStoreOptions as x, AnalyzeTracesTurnSnapshot as xt, toolSpansToTraceAnalysisStore as y, AnalyzeTracesOptions as yt, readOtlpStatus as z, createOtelExporter as zt };
|
|
942
|
+
//# sourceMappingURL=replay-K8FaC0CB.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"replay-K8FaC0CB.d.ts","names":[],"sources":["../src/trace/otel.ts","../src/trace/otlp-attributes.ts","../src/trace/otel-export.ts","../src/trace/otel-bridge.ts","../src/trace/redact.ts","../src/trace/store-to-otlp.ts","../src/trace-analyst/store-boundary.ts","../src/trace-analyst/analyst.ts","../src/trace-analyst/errors.ts","../src/trace-analyst/hook.ts","../src/trace-analyst/insights.ts","../src/trace/otlp-flat.ts","../src/trace-analyst/otlp-flatten.ts","../src/trace-analyst/otlp-span.ts","../src/trace-analyst/otlp-to-run-records.ts","../src/trace-analyst/prompts.ts","../src/trace-analyst/store-otlp.ts","../src/trace-analyst/store-tool-spans.ts","../src/eval-tools.ts","../src/trace-analyst/tools.ts","../src/replay.ts"],"mappings":";;;;;;;;;;;;cAoBa;EAA0B;EAAoC;;UAE1D;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA,YAAY;IACV;IACA;MAAS;MAAsB;MAAmB;MAAsB;;;EAE1E,SAAS;IAAQ;IAAsB;IAAc,aAAa;;EAClE;IAAW;IAAc;;;UAGV;EACf;IAAY,YAAY;;EACxB,YAAY;IAAQ,cAAc;IAAuB,OAAO;;;UAGjD;EACf,eAAe;;;iBAIK,gBACpB,OAAO,YACP,eACA,gBAAe,4CACd,QAAQ;;;KC5BC,oBAAoB,KAC9B;KAIU;UAUK;EACf;EACA,YAAY;EACZ;;;;;;;iBAkBc,qBAAqB,OAAO,oBAAoB;iBA2BhD,gBAAgB,OAAO;iBAkBvB,4BACd,YAAY,yB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;EACA;EACA;EACA,WAAW;;;;cCnIA,6BAA6B;WAEtB;WACA;EAFlB,YACkB,aACA,oBAChB;;UAMa;EACf,SAAS;EACT,UAAU;;UAGK;EACf;EACA,YAAY;EACZ,SAAS;;EAET;;;;;;;;;;cAWW;UACH;UACA;UACA;UACA;;;;;SAMK,SACX,MAAM,iBACN;IAAU;IAAgB;MACzB,QAAQ;;SASE,WAAW,QAAQ,qBAAqB,QAAQ;;EA4B7D;EAIA,SAAS;;EAUR,WAAW,iBAAiB;;;;;;EASvB,OAAO,uBAAuB,QAAQ;;UAM7B;;;;;;;EAOf;EACA,uBAAuB;;EAEvB,SAAS;IAAQ;IAAa;IAAkB;;;EAEhD,gBAAgB;IAAQ;IAAa;;;;;;;;;;;;;iBAavB,kBAAkB,OAAO,aAAa,OAAM,4BAAiC;;;;;;iBAsDtE,gBACrB,MAAM,iBACN;EAAU;EAAgB;IACzB,eAAe"}
|
package/dist/reporting.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { N as benjaminiHochberg, Q as pairedBootstrap, gt as wilcoxonSignedRank, v as PairedBootstrapOptions, y as PairedBootstrapResult } from "./statistics-
|
|
2
|
-
import { _ as paretoChart, a as ParetoPoint, c as ResearchReportCandidate, d as ResearchReportOptions, f as ResearchReportRecommendation, g as gainHistogram, h as SummaryTableRow, i as ParetoFigureSpec, l as ResearchReportDecision, m as SummaryTableOptions, n as GainDistributionFigureSpec, o as RESEARCH_REPORT_HARD_PAIR_FLOOR, p as SummaryTable, r as GainDistributionOptions, s as ResearchReport, t as GainDistributionBin, u as ResearchReportMethodology, v as researchReport, y as summaryTable } from "./summary-report-
|
|
3
|
-
import { _ as ReleaseConfidenceStatus, a as JudgeReplayGateArgs, b as assertReleaseConfidence, c as judgeReplayGate, d as ReleaseConfidenceAxis, f as ReleaseConfidenceAxisName, g as ReleaseConfidenceScorecard, h as ReleaseConfidenceMetrics, i as BootstrapResult, m as ReleaseConfidenceIssue, n as renderReleaseReport, o as Verdict, p as ReleaseConfidenceInput, r as BootstrapOptions, s as bootstrapCi, t as RenderReleaseReportOptions, v as ReleaseConfidenceThresholds, x as evaluateReleaseConfidence, y as ReleaseTraceEvidence } from "./release-report-
|
|
1
|
+
import { N as benjaminiHochberg, Q as pairedBootstrap, gt as wilcoxonSignedRank, v as PairedBootstrapOptions, y as PairedBootstrapResult } from "./statistics-_7P642CN.js";
|
|
2
|
+
import { _ as paretoChart, a as ParetoPoint, c as ResearchReportCandidate, d as ResearchReportOptions, f as ResearchReportRecommendation, g as gainHistogram, h as SummaryTableRow, i as ParetoFigureSpec, l as ResearchReportDecision, m as SummaryTableOptions, n as GainDistributionFigureSpec, o as RESEARCH_REPORT_HARD_PAIR_FLOOR, p as SummaryTable, r as GainDistributionOptions, s as ResearchReport, t as GainDistributionBin, u as ResearchReportMethodology, v as researchReport, y as summaryTable } from "./summary-report-DHipz9Kx.js";
|
|
3
|
+
import { _ as ReleaseConfidenceStatus, a as JudgeReplayGateArgs, b as assertReleaseConfidence, c as judgeReplayGate, d as ReleaseConfidenceAxis, f as ReleaseConfidenceAxisName, g as ReleaseConfidenceScorecard, h as ReleaseConfidenceMetrics, i as BootstrapResult, m as ReleaseConfidenceIssue, n as renderReleaseReport, o as Verdict, p as ReleaseConfidenceInput, r as BootstrapOptions, s as bootstrapCi, t as RenderReleaseReportOptions, v as ReleaseConfidenceThresholds, x as evaluateReleaseConfidence, y as ReleaseTraceEvidence } from "./release-report-CofgVNZt.js";
|
|
4
4
|
import { a as PairedEvalueStep, c as pairedEvalueSequence, i as PairedEvalueSequence, n as InterimReleaseConfidenceInput, o as SequentialDecision, r as PairedEvalueOptions, s as evaluateInterimReleaseConfidence, t as InterimReleaseConfidence } from "./sequential-CYwq6Ff_.js";
|
|
5
|
-
import { a as rubricPredictiveValidity, i as RubricRanking, n as RubricPredictiveValidityInput, r as RubricPredictiveValidityReport, t as RubricOutcomePair } from "./rubric-predictive-validity-
|
|
5
|
+
import { a as rubricPredictiveValidity, i as RubricRanking, n as RubricPredictiveValidityInput, r as RubricPredictiveValidityReport, t as RubricOutcomePair } from "./rubric-predictive-validity-C4sztLR3.js";
|
|
6
6
|
export { type BootstrapOptions, type BootstrapResult, type GainDistributionBin, type GainDistributionFigureSpec, type GainDistributionOptions, type InterimReleaseConfidence, type InterimReleaseConfidenceInput, type JudgeReplayGateArgs, type PairedBootstrapOptions, type PairedBootstrapResult, type PairedEvalueOptions, type PairedEvalueSequence, type PairedEvalueStep, type ParetoFigureSpec, type ParetoPoint, RESEARCH_REPORT_HARD_PAIR_FLOOR, type ReleaseConfidenceAxis, type ReleaseConfidenceAxisName, type ReleaseConfidenceInput, type ReleaseConfidenceIssue, type ReleaseConfidenceMetrics, type ReleaseConfidenceScorecard, type ReleaseConfidenceStatus, type ReleaseConfidenceThresholds, type ReleaseTraceEvidence, type RenderReleaseReportOptions, type ResearchReport, type ResearchReportCandidate, type ResearchReportDecision, type ResearchReportMethodology, type ResearchReportOptions, type ResearchReportRecommendation, type RubricOutcomePair, type RubricPredictiveValidityInput, type RubricPredictiveValidityReport, type RubricRanking, type SequentialDecision, type SummaryTable, type SummaryTableOptions, type SummaryTableRow, type Verdict, assertReleaseConfidence, benjaminiHochberg, bootstrapCi, evaluateInterimReleaseConfidence, evaluateReleaseConfidence, gainHistogram, judgeReplayGate, pairedBootstrap, pairedEvalueSequence, paretoChart, renderReleaseReport, researchReport, rubricPredictiveValidity, summaryTable, wilcoxonSignedRank };
|
package/dist/reporting.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { E as pairedBootstrap, W as wilcoxonSignedRank, s as benjaminiHochberg } from "./statistics-
|
|
2
|
-
import { a as evaluateReleaseConfidence, i as assertReleaseConfidence, n as bootstrapCi, r as judgeReplayGate, t as renderReleaseReport } from "./release-report-
|
|
3
|
-
import { a as summaryTable, i as researchReport, n as gainHistogram, r as paretoChart, t as RESEARCH_REPORT_HARD_PAIR_FLOOR } from "./summary-report-
|
|
1
|
+
import { E as pairedBootstrap, W as wilcoxonSignedRank, s as benjaminiHochberg } from "./statistics-ByxzSiOM.js";
|
|
2
|
+
import { a as evaluateReleaseConfidence, i as assertReleaseConfidence, n as bootstrapCi, r as judgeReplayGate, t as renderReleaseReport } from "./release-report-B5XPBvAU.js";
|
|
3
|
+
import { a as summaryTable, i as researchReport, n as gainHistogram, r as paretoChart, t as RESEARCH_REPORT_HARD_PAIR_FLOOR } from "./summary-report-9A5y7EsK.js";
|
|
4
4
|
import { n as pairedEvalueSequence, t as evaluateInterimReleaseConfidence } from "./sequential-Br0mAPHA.js";
|
|
5
|
-
import { t as rubricPredictiveValidity } from "./rubric-predictive-validity-
|
|
5
|
+
import { t as rubricPredictiveValidity } from "./rubric-predictive-validity-BRR632r1.js";
|
|
6
6
|
export { RESEARCH_REPORT_HARD_PAIR_FLOOR, assertReleaseConfidence, benjaminiHochberg, bootstrapCi, evaluateInterimReleaseConfidence, evaluateReleaseConfidence, gainHistogram, judgeReplayGate, pairedBootstrap, pairedEvalueSequence, paretoChart, renderReleaseReport, researchReport, rubricPredictiveValidity, summaryTable, wilcoxonSignedRank };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { i as AgentProfileCellInput, r as AgentProfileCell } from "./agent-profile-cell-
|
|
2
|
-
import { a as RunRecord, c as RunTaskFailure, n as RunCostProvenance, r as RunJudgeMetadata, s as RunSplitTag, t as JudgeScoresRecord, u as RunTokenUsage } from "./run-record-
|
|
3
|
-
import {
|
|
1
|
+
import { i as AgentProfileCellInput, r as AgentProfileCell } from "./agent-profile-cell-Cw0PVwDr.js";
|
|
2
|
+
import { a as RunRecord, c as RunTaskFailure, n as RunCostProvenance, r as RunJudgeMetadata, s as RunSplitTag, t as JudgeScoresRecord, u as RunTokenUsage } from "./run-record-BPCa2rQ8.js";
|
|
3
|
+
import { Z as LlmRouteRequirements, _t as RawProviderSink, q as LlmClientOptions } from "./types-CTvKfr5F.js";
|
|
4
4
|
import { s as TraceStore } from "./store-CT9YIIve.js";
|
|
5
5
|
import { i as TraceEmitter, t as RunCompleteHook } from "./emitter-DGQGoLyj.js";
|
|
6
|
-
import { a as RunIntegrityReport, n as RunIntegrityExpectations } from "./integrity-
|
|
7
|
-
import {
|
|
8
|
-
import { d as ResearchReportOptions, s as ResearchReport, x as GateDecision } from "./summary-report-CPMINBqs.js";
|
|
6
|
+
import { a as RunIntegrityReport, n as RunIntegrityExpectations } from "./integrity-CKxosZ5Z.js";
|
|
7
|
+
import { d as ResearchReportOptions, s as ResearchReport, x as GateDecision } from "./summary-report-DHipz9Kx.js";
|
|
9
8
|
//#region src/eval-campaign.d.ts
|
|
10
9
|
interface CampaignVariant<V> {
|
|
11
10
|
id: string;
|
|
@@ -312,4 +311,4 @@ declare class NoopResearcher implements Researcher {
|
|
|
312
311
|
}
|
|
313
312
|
//#endregion
|
|
314
313
|
export { EvalCampaignResult as _, FailureMode as a, SteeringChange as c, CampaignRunContext as d, CampaignRunOutcome as f, EvalCampaignOptions as g, CampaignVariant as h, ExperimentResult as i, CampaignFactoryParams as l, CampaignScenario as m, CallbackResearcherOptions as n, NoopResearcher as o, CampaignRunner as p, ExperimentPlan as r, Researcher as s, CallbackResearcher as t, CampaignIntegrityPolicy as u, FailedRun as v, runEvalCampaign as y };
|
|
315
|
-
//# sourceMappingURL=researcher-
|
|
314
|
+
//# sourceMappingURL=researcher-Da0Wj-bt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"researcher-Da0Wj-bt.d.ts","names":[],"sources":["../src/eval-campaign.ts","../src/researcher.ts"],"mappings":";;;;;;;;UAyEiB,gBAAgB;EAC/B;EACA,SAAS;;UAGM;EACf;;EAEA,OAAO;;UAGQ,mBAAmB;;EAElC;;EAEA;EACA,SAAS;EACT;EACA;EACA,cAAc;EACd;EACA,UAAU;;;;;;;EAOV,SAAS;EACT,OAAO;EACP,SAAS;;;;;;EAMT,SAAS;;UAGD;;EAER;;EAEA;;EAEA;;EAEA,gBAAgB;EAChB,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B;EACf,iBAAiB;EACjB,eAAe;EACf,aAAa;EACb,gBAAgB;;;;;;cAOL,8BAA8B;mBACZ;EAA7B,YAA6B,WAAW;EAExC,gBAAgB,MAAM,cAAc,QAAQ;EAI5C,cAAc,UAAU,gBAAgB,QAAQ;EAIhD,YAAY,SAAS,kBAAkB,UAAU,iBAAiB,QAAQ;EAI1E,eAAe,MAAM,iBAAiB,QAAQ;;;;;;;;;cAYnC,0BAA0B;mBACpB;EAEjB,YAAY;EAIN,gBAAgB,OAAO,cAAc,QAAQ;EAI7C,cAAc,WAAW,gBAAgB,QAAQ;EAIjD,YACJ,UAAU,kBACV,WAAW,iBACV,QAAQ;EAIL,eAAe,OAAO,iBAAiB,QAAQ"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { s as VerificationReport } from "./multi-layer-verifier-BHY1gWAc.js";
|
|
2
|
-
import { a as RunRecord } from "./run-record-
|
|
2
|
+
import { a as RunRecord } from "./run-record-BPCa2rQ8.js";
|
|
3
3
|
//#region src/rl/verifiable-reward.d.ts
|
|
4
4
|
type VerifiableRewardSource = 'compile' | 'test' | 'schema' | 'sandbox' | 'judge' | 'composite';
|
|
5
5
|
interface VerifiableReward {
|
|
@@ -221,4 +221,4 @@ interface DetectRewardHackingInput {
|
|
|
221
221
|
declare function detectRewardHacking(input: DetectRewardHackingInput): RewardHackingReport;
|
|
222
222
|
//#endregion
|
|
223
223
|
export { detectRewardHacking as a, VerifiableRewardSource as c, filterDeterministicallyRewarded as d, RewardHackingSignal as i, extractVerifiableReward as l, RewardHackingFinding as n, VerifiableReward as o, RewardHackingReport as r, VerifiableRewardExtractionOptions as s, DetectRewardHackingInput as t, extractVerifiableRewardsFromRecords as u };
|
|
224
|
-
//# sourceMappingURL=reward-hacking-
|
|
224
|
+
//# sourceMappingURL=reward-hacking-CQ3hTCO3.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reward-hacking-
|
|
1
|
+
{"version":3,"file":"reward-hacking-CQ3hTCO3.d.ts","names":[],"sources":["../src/rl/verifiable-reward.ts","../src/rl/reward-hacking.ts"],"mappings":";;;KAiCY;UAQK;;EAEf;;EAEA,QAAQ;;;;;;;;EAQR;;;;;;EAMA;;EAEA;;;;;;;EAOA,YAAY;;;;;;;;;;;EAWZ;;;;;;;;;;;;;;;;;;EAkBA;;UAGe;;;;;;;;EAQf;;;;EAIA,aAAa,sBAAsB;;;;;;;EAOnC;;;;;EAKA;;;;;;;;;;;;EAYA;;;;;;;;;;;;;;;iBA6Cc,wBACd,QAAQ,oBACR,OAAM,oCACL;;;;;;;;;;;;;;;;;;;;;;;iBAqGa,oCACd,MAAM,aACN,OAAM,oCACL;EAAQ;EAAe,QAAQ;;;;;;;;;;;iBA4GlB,gCACd,MAAM,aACN,OAAM,oCACL;EAAQ,KAAK;EAAW,QAAQ;;;;KChWvB;UAMK;EACf,QAAQ;;EAER;EACA;;EAEA,QAAQ;;UAGO;EACf,UAAU;;EAEV,kBAAkB;;;;;;EAMlB;;EAEA;;EAEA;;UAGe;;;;;EAKf,MAAM;;;;;EAKN,WAAW,KAAK;;;;;;EAMhB,WAAW,KAAK;;;;;;EAMhB,qBAAqB,KAAK;;;;;EAK1B;;;;;EAKA;IAAe;IAAkB;;;;;EAIjC,0BAA0B;;iBAgBZ,oBAAoB,OAAO,2BAA2B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { L as pearsonR } from "./statistics-CnGCLLqc.js";
|
|
2
1
|
import { n as observedScore, s as trainingScore, t as isRealnessGated } from "./reward-nw2xZGZG.js";
|
|
3
|
-
import {
|
|
2
|
+
import { L as pearsonR } from "./statistics-ByxzSiOM.js";
|
|
3
|
+
import { s as validateRunRecord } from "./run-record-vRgqWmJw.js";
|
|
4
4
|
//#region src/campaign/run-record.ts
|
|
5
5
|
/**
|
|
6
6
|
* Project one campaign cell into the canonical run format.
|
|
@@ -593,4 +593,4 @@ function defaultSecondary(verifiableOpts) {
|
|
|
593
593
|
//#endregion
|
|
594
594
|
export { campaignCellExecutionEvidence as a, campaignCellToRunRecord as c, filterDeterministicallyRewarded as i, projectCampaignCellQuality as l, extractVerifiableReward as n, campaignCellJudgeDimensions as o, extractVerifiableRewardsFromRecords as r, campaignCellTaskScore as s, detectRewardHacking as t };
|
|
595
595
|
|
|
596
|
-
//# sourceMappingURL=reward-hacking-
|
|
596
|
+
//# sourceMappingURL=reward-hacking-GyN0kMd8.js.map
|