@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,8 +1,7 @@
|
|
|
1
1
|
import { o as FailureClass } from "./schema-BtVldJ3T.js";
|
|
2
|
-
import { l as RunTerminalOutcome } from "./run-record-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { i as ParetoFigureSpec, t as GainDistributionBin } from "./summary-report-CPMINBqs.js";
|
|
2
|
+
import { l as RunTerminalOutcome } from "./run-record-BPCa2rQ8.js";
|
|
3
|
+
import { bt as ContinuousAgreement } from "./statistics-_7P642CN.js";
|
|
4
|
+
import { i as ParetoFigureSpec, t as GainDistributionBin } from "./summary-report-DHipz9Kx.js";
|
|
6
5
|
//#region src/contract/insight-report.d.ts
|
|
7
6
|
interface InsightReport {
|
|
8
7
|
/** Number of runs analyzed. */
|
|
@@ -403,202 +402,5 @@ interface Recommendation {
|
|
|
403
402
|
evidencePath?: string;
|
|
404
403
|
}
|
|
405
404
|
//#endregion
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
type HostedWireVersion = typeof HOSTED_WIRE_VERSION;
|
|
409
|
-
/** Every ingest request carries these. */
|
|
410
|
-
interface HostedIngestHeaders {
|
|
411
|
-
/** Bearer token. The orchestrator validates against the tenant key. */
|
|
412
|
-
authorization: `Bearer ${string}`;
|
|
413
|
-
/** Stable tenant id (the orchestrator-side primary key for the tenant). */
|
|
414
|
-
'x-tangle-tenant-id': string;
|
|
415
|
-
/** Wire-version pin so the server can reject incompatible payloads. */
|
|
416
|
-
'x-tangle-wire-version': HostedWireVersion;
|
|
417
|
-
/** Stable request key generated once and reused across retries. */
|
|
418
|
-
'idempotency-key': string;
|
|
419
|
-
}
|
|
420
|
-
/** Lifecycle stages of an eval-run as the substrate reports them. */
|
|
421
|
-
type EvalRunStatus = 'started' | 'baseline-complete' | 'generation-complete' | 'gate-decided' | 'finished' | 'errored';
|
|
422
|
-
interface EvalRunCellScore {
|
|
423
|
-
/** Stable scenario id from the consumer's scenario set. */
|
|
424
|
-
scenarioId: string;
|
|
425
|
-
/** Repetition index when reps > 1; 0 for the default. */
|
|
426
|
-
rep: number;
|
|
427
|
-
/** Composite score across successful judges, or null when unscored. */
|
|
428
|
-
compositeMean: number | null;
|
|
429
|
-
/** Per-judge and per-dimension scores; failed or missing judges are absent. */
|
|
430
|
-
dimensions: Record<string, Record<string, number>>;
|
|
431
|
-
/** Root execution result, kept separate from task quality. */
|
|
432
|
-
terminalOutcome: RunTerminalOutcome;
|
|
433
|
-
/** Canonical execution-error count, or null when the producer did not measure it. */
|
|
434
|
-
executionErrorCount: number | null;
|
|
435
|
-
/** Per-cell dispatch or judge error. Missing on success. */
|
|
436
|
-
errorMessage?: string;
|
|
437
|
-
}
|
|
438
|
-
interface EvalRunGenerationSnapshot {
|
|
439
|
-
/** Generation index. 0 is baseline. */
|
|
440
|
-
index: number;
|
|
441
|
-
/** Candidate surface fingerprint (stable hash) — pivot key into the
|
|
442
|
-
* trace stream to fetch the underlying execution. */
|
|
443
|
-
surfaceHash: string;
|
|
444
|
-
/** The candidate surface itself. May be omitted to avoid PII when the
|
|
445
|
-
* consumer prefers not to ship verbatim prompts. */
|
|
446
|
-
surface?: MutableSurface;
|
|
447
|
-
/** Per-cell scores for this generation. */
|
|
448
|
-
cells: EvalRunCellScore[];
|
|
449
|
-
/** Mean across scored cells, or null when no cell has a task-quality label. */
|
|
450
|
-
compositeMean: number | null;
|
|
451
|
-
/** Total $ spent across this generation. */
|
|
452
|
-
costUsd: number;
|
|
453
|
-
/** Wall-clock duration of this generation. */
|
|
454
|
-
durationMs: number;
|
|
455
|
-
}
|
|
456
|
-
/**
|
|
457
|
-
* The top-level eval-run event. One ingest call per logical eval-run;
|
|
458
|
-
* generations stream in incrementally via repeated calls with the same
|
|
459
|
-
* `runId`. The orchestrator deduplicates by `(runId, generation.index)`.
|
|
460
|
-
*/
|
|
461
|
-
interface EvalRunEvent {
|
|
462
|
-
/** Stable run id (the substrate's `runId`). UUID or substrate-generated. */
|
|
463
|
-
runId: string;
|
|
464
|
-
/** Where this run was happening — derived from `RunCampaignOptions.runDir`. */
|
|
465
|
-
runDir: string;
|
|
466
|
-
/** ISO-8601 timestamp the substrate recorded the event. */
|
|
467
|
-
timestamp: string;
|
|
468
|
-
/** Lifecycle stage this event represents. */
|
|
469
|
-
status: EvalRunStatus;
|
|
470
|
-
/** Free-form consumer tags (env, branch, model id, etc.). Searchable. */
|
|
471
|
-
labels: Record<string, string>;
|
|
472
|
-
/** Baseline campaign snapshot. Present when status >= baseline-complete. */
|
|
473
|
-
baseline?: EvalRunGenerationSnapshot;
|
|
474
|
-
/** Per-generation snapshots. Streams in; orchestrator appends. */
|
|
475
|
-
generations: EvalRunGenerationSnapshot[];
|
|
476
|
-
/** Final gate decision. Present when status >= gate-decided. */
|
|
477
|
-
gateDecision?: GateDecision;
|
|
478
|
-
/** Held-out lift = winner-on-holdout - baseline-on-holdout. */
|
|
479
|
-
holdoutLift?: number;
|
|
480
|
-
/** Total $ spent across baseline + every generation. */
|
|
481
|
-
totalCostUsd: number;
|
|
482
|
-
/** Total wall-clock duration. */
|
|
483
|
-
totalDurationMs: number;
|
|
484
|
-
/** Error message if status === 'errored'. */
|
|
485
|
-
errorMessage?: string;
|
|
486
|
-
/** Rigor packet emitted alongside the run — distributional summary,
|
|
487
|
-
* paired-bootstrap lift CI, judge stats, inter-rater agreement,
|
|
488
|
-
* contamination check, failure clusters (when an analyst is wired),
|
|
489
|
-
* outcome correlation (when downstream signal is supplied), and the
|
|
490
|
-
* recommendations the dashboard surfaces verbatim. */
|
|
491
|
-
insightReport?: InsightReport;
|
|
492
|
-
}
|
|
493
|
-
/**
|
|
494
|
-
* Canonical unsigned 64-bit integer encoded as a base-10 string.
|
|
495
|
-
* JSON numbers cannot represent OTLP nanosecond timestamps exactly.
|
|
496
|
-
*/
|
|
497
|
-
type UnixNanoTimestamp = string;
|
|
498
|
-
/**
|
|
499
|
-
* OTel-shape span with a few additional attributes for eval-run pivoting.
|
|
500
|
-
* Compatible with any OTLP collector — `name`, `traceId`, `spanId`,
|
|
501
|
-
* `startTimeUnixNano`, `endTimeUnixNano`, `attributes` are stock OTel.
|
|
502
|
-
*/
|
|
503
|
-
interface TraceSpanEvent {
|
|
504
|
-
traceId: string;
|
|
505
|
-
spanId: string;
|
|
506
|
-
parentSpanId?: string;
|
|
507
|
-
name: string;
|
|
508
|
-
startTimeUnixNano: UnixNanoTimestamp;
|
|
509
|
-
endTimeUnixNano: UnixNanoTimestamp;
|
|
510
|
-
attributes: Record<string, string | number | boolean>;
|
|
511
|
-
events?: Array<{
|
|
512
|
-
timeUnixNano: UnixNanoTimestamp;
|
|
513
|
-
name: string;
|
|
514
|
-
attributes?: Record<string, string | number | boolean>;
|
|
515
|
-
}>;
|
|
516
|
-
status?: {
|
|
517
|
-
code: 'OK' | 'ERROR' | 'UNSET';
|
|
518
|
-
message?: string;
|
|
519
|
-
};
|
|
520
|
-
/** Pivot back into the eval-run stream. */
|
|
521
|
-
'tangle.runId'?: string;
|
|
522
|
-
/** Pivot to the specific generation. */
|
|
523
|
-
'tangle.generation'?: number;
|
|
524
|
-
/** Pivot to the specific cell. */
|
|
525
|
-
'tangle.cellId'?: string;
|
|
526
|
-
/** Pivot to the specific scenario. */
|
|
527
|
-
'tangle.scenarioId'?: string;
|
|
528
|
-
}
|
|
529
|
-
interface IngestEvalRunsRequest {
|
|
530
|
-
wireVersion: HostedWireVersion;
|
|
531
|
-
events: EvalRunEvent[];
|
|
532
|
-
}
|
|
533
|
-
interface IngestTracesRequest {
|
|
534
|
-
wireVersion: HostedWireVersion;
|
|
535
|
-
spans: TraceSpanEvent[];
|
|
536
|
-
}
|
|
537
|
-
interface IngestResponse {
|
|
538
|
-
/** Accepted events / spans count. */
|
|
539
|
-
accepted: number;
|
|
540
|
-
/** Rejected events with reasons (validation failures, dup idempotency key, etc.). */
|
|
541
|
-
rejected: Array<{
|
|
542
|
-
index: number;
|
|
543
|
-
reason: string;
|
|
544
|
-
}>;
|
|
545
|
-
}
|
|
546
|
-
//#endregion
|
|
547
|
-
//#region src/hosted/client.d.ts
|
|
548
|
-
interface HostedTenant {
|
|
549
|
-
/** Orchestrator endpoint base URL (no trailing slash). Required. */
|
|
550
|
-
endpoint: string;
|
|
551
|
-
/** Bearer token issued by the orchestrator. Required. */
|
|
552
|
-
apiKey: string;
|
|
553
|
-
/** Tenant id — the orchestrator's primary key for this consumer. Required. */
|
|
554
|
-
tenantId: string;
|
|
555
|
-
/** Optional `fetch` override (auth wrappers, custom agent, test mocks). */
|
|
556
|
-
fetchImpl?: typeof fetch;
|
|
557
|
-
/** Per-call timeout in ms. Default 30s. */
|
|
558
|
-
timeoutMs?: number;
|
|
559
|
-
/** Retries on 5xx / network errors. Default 2. */
|
|
560
|
-
retries?: number;
|
|
561
|
-
}
|
|
562
|
-
interface HostedClient {
|
|
563
|
-
ingestEvalRun(event: EvalRunEvent, idempotencyKey?: string): Promise<IngestResponse>;
|
|
564
|
-
ingestEvalRuns(events: EvalRunEvent[], idempotencyKey?: string): Promise<IngestResponse>;
|
|
565
|
-
ingestTraces(spans: TraceSpanEvent[], idempotencyKey?: string): Promise<IngestResponse>;
|
|
566
|
-
readonly tenant: HostedTenant;
|
|
567
|
-
readonly wireVersion: HostedWireVersion;
|
|
568
|
-
}
|
|
569
|
-
declare function createHostedClient(tenant: HostedTenant): HostedClient;
|
|
570
|
-
/**
|
|
571
|
-
* Build a `HostedClient` from environment, or `undefined` when ingest is not
|
|
572
|
-
* configured — the canonical, fail-soft wiring every product uses so eval-run +
|
|
573
|
-
* trace provenance lands in the Intelligence dashboard with ONE call:
|
|
574
|
-
*
|
|
575
|
-
* const hosted = hostedClientFromEnv()
|
|
576
|
-
* // ...run the loop...
|
|
577
|
-
* await emitLoopProvenance({ ..., hostedClient: hosted }) // no-op if undefined
|
|
578
|
-
*
|
|
579
|
-
* Returns `undefined` (NOT an error) when any of endpoint / apiKey / tenantId is
|
|
580
|
-
* missing — so a product wires the ship call unconditionally and it stays a
|
|
581
|
-
* no-op until the env is set. Env precedence:
|
|
582
|
-
* - endpoint: `TANGLE_INGEST_URL` → `TANGLE_ORCHESTRATOR_URL`
|
|
583
|
-
* - apiKey: `TANGLE_INGEST_API_KEY` → `TANGLE_API_KEY`
|
|
584
|
-
* - tenantId: `TANGLE_TENANT_ID`
|
|
585
|
-
* A trailing slash on the endpoint is stripped. Pass `overrides` to supply any
|
|
586
|
-
* field directly (e.g. a fixed `tenantId` per product) — overrides win over env.
|
|
587
|
-
*/
|
|
588
|
-
/**
|
|
589
|
-
* Build a {@link HostedTenant} config from env — the input `selfImprove`'s
|
|
590
|
-
* `hostedTenant` and `emitLoopProvenance` take. Same env precedence + overrides
|
|
591
|
-
* as {@link hostedClientFromEnv}; returns `undefined` (not an error) when any of
|
|
592
|
-
* endpoint / apiKey / tenantId is missing, so a product wires
|
|
593
|
-
* `hostedTenant: hostedTenantFromEnv({ tenantId: 'my-agent' })` unconditionally
|
|
594
|
-
* and it stays off until the env is set.
|
|
595
|
-
*/
|
|
596
|
-
declare function hostedTenantFromEnv(overrides?: Partial<HostedTenant> & {
|
|
597
|
-
env?: Record<string, string | undefined>;
|
|
598
|
-
}): HostedTenant | undefined;
|
|
599
|
-
declare function hostedClientFromEnv(overrides?: Partial<HostedTenant> & {
|
|
600
|
-
env?: Record<string, string | undefined>;
|
|
601
|
-
}): HostedClient | undefined;
|
|
602
|
-
//#endregion
|
|
603
|
-
export { ScalarDistribution as A, InsightReport as C, OutcomeCorrelationInsight as D, LiftInsight as E, Recommendation as O, FailureClusterInsight as S, JudgeInsight as T, UnixNanoTimestamp as _, hostedTenantFromEnv as a, ExecutionInsight as b, EvalRunGenerationSnapshot as c, HostedIngestHeaders as d, HostedWireVersion as f, TraceSpanEvent as g, IngestTracesRequest as h, hostedClientFromEnv as i, TokenUsageInsight as j, ReleaseSummary as k, EvalRunStatus as l, IngestResponse as m, HostedTenant as n, EvalRunCellScore as o, IngestEvalRunsRequest as p, createHostedClient as r, EvalRunEvent as s, HostedClient as t, HOSTED_WIRE_VERSION as u, CostProvenanceSummary as v, InterRaterInsight as w, FailureClassTally as x, ExecutionErrorOutcomeCell as y };
|
|
604
|
-
//# sourceMappingURL=client-DcvgkaZi.d.ts.map
|
|
405
|
+
export { FailureClusterInsight as a, JudgeInsight as c, Recommendation as d, ReleaseSummary as f, FailureClassTally as i, LiftInsight as l, TokenUsageInsight as m, ExecutionErrorOutcomeCell as n, InsightReport as o, ScalarDistribution as p, ExecutionInsight as r, InterRaterInsight as s, CostProvenanceSummary as t, OutcomeCorrelationInsight as u };
|
|
406
|
+
//# sourceMappingURL=insight-report-B9ooYH_g.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insight-report-B9ooYH_g.d.ts","names":[],"sources":["../src/contract/insight-report.ts"],"mappings":";;;;;UAqCiB;;EAEf;;;;EAKA,WAAW;;EAGX,WAAW;;;EAIX,cAAc,eAAe;;EAG7B;IACE,MAAM;IACN,QAAQ;;;;IAIR,aAAa;;;;;IAKb;MAAa;MAAe;;;;;;EAM9B,QAAQ,eAAe;;;;EAKvB,aAAa;;;;EAKb,OAAO;;;EAIP,kBAAkB;;;EAIlB,gBAAgB;;;;;EAMhB,qBAAqB;;;;;EAMrB,SAAS;;;;;;EAOT,wBAAwB;;;;EAKxB,iBAAiB;;;EAIjB,iBAAiB;;UAGF;EACf;IAAY;IAAW;;EACvB;IAAa;IAAW;;EACxB;IAAc;;EACd;;UAGe;;EAEf,YAAY;;EAEZ,SAAS;;;EAGT,YAAY;;;EAGZ;IACE;IACA,YAAY;IACZ,SAAS;IACT;;;EAGF,QAAQ;IAAQ;IAAe;;;;;EAI/B;IACE;IACA;IACA;;;;;EAKF;IACE;;;IAGA;;IAEA;;IAEA;;IAEA;;IAEA;;;;;IAKA,mBAAmB,OAAO,oBAAoB;;;;EAIhD;IACE;IACA;IACA;IACA;IACA;;;UAIa;;EAEf;;EAEA;;EAEA;;UAGe;EACf,OAAO;EACP,QAAQ;EACR,WAAW;EACX,QAAQ;EACR,YAAY;EACZ;IACE;IACA;IACA;IACA;IACA;;;;UAOa;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA,WAAW;;;;;EAKX,WAAW;IAAQ;IAAe;;;UAGnB;;EAEf;;EAEA;;;EAGA,cAAc;;;EAGd;;;EAGA;;;EAGA;;UAGe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA,SAAS;;EAET,mBAAmB;IACjB;IACA,SAAS;MAAQ;MAAe;;IAChC;;;UAIa;EACf;EACA;;EAEA;;EAEA;;;EAGA;;EAEA;;EAEA;;;;;;;;;;;EAWA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;UAGe;;EAEf,UAAU;IACR;IACA;;IAEA;;IAEA;;IAEA;;EAEF;;;;;UAMe;;EAEf,cAAc;;EAEd;;EAEA;;UAGe;;EAEf;;;EAGA;EACA,UAAU;IAAQ;IAAe;IAAgB;;;UAGlC;;;EAGf;;EAEA;;EAEA;;EAEA;;EAEA;IACE;IACA;IACA;;;UAIa;;;EAGf;EACA,MAAM;IACJ;IACA;IACA;;;;EAIF;;UAGQ;;EAER;;EAEA;;;;EAIA;;EAEA;EACA;;KAGU,eACP;EACC;;EAEA;;EAEA;;EAEA;;EAEA;MAED;EACC;;EAEA;EACA;EACA;EACA;;UAGW;;EAEf;EACA;;EAEA;;;;EAIA,SAAS,eAAe;;;EAGxB;;EAEA;;EAEA;;UAGe;EACf;EACA;EACA;EACA;;EAEA"}
|