@tangle-network/agent-eval 0.173.3 → 0.174.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 +31 -0
- package/dist/{proposal-findings-bko3GGy-.js → abort-signal-CtzAM_sJ.js} +11 -11
- package/dist/abort-signal-CtzAM_sJ.js.map +1 -0
- package/dist/adapters/http.d.ts +2 -2
- package/dist/agent-profile-_xPxqVJt.d.ts +488 -0
- package/dist/agent-profile-_xPxqVJt.d.ts.map +1 -0
- package/dist/analyst/index.d.ts +7 -9
- package/dist/analyst/index.d.ts.map +1 -1
- package/dist/analyst/index.js +8 -8
- package/dist/{benchmark-C4wk_Sjr.js → benchmark-DQKzykkO.js} +2 -2
- package/dist/{benchmark-C4wk_Sjr.js.map → benchmark-DQKzykkO.js.map} +1 -1
- package/dist/{benchmark-command-BY9oscke.js → benchmark-command-mZIlR-ra.js} +13 -13
- package/dist/{benchmark-command-BY9oscke.js.map → benchmark-command-mZIlR-ra.js.map} +1 -1
- package/dist/benchmarks/index.d.ts +3 -4
- package/dist/benchmarks/index.d.ts.map +1 -1
- package/dist/benchmarks/index.js +3 -3
- package/dist/campaign/index.d.ts +5 -9
- package/dist/campaign/index.js +7 -7
- package/dist/{campaign-B3kPMU8S.js → campaign-BzMSCejE.js} +8 -8
- package/dist/{campaign-B3kPMU8S.js.map → campaign-BzMSCejE.js.map} +1 -1
- package/dist/cli.js +1 -1
- package/dist/{client-DlqdbM7n.d.ts → client-vyYQg3bm.d.ts} +2 -2
- package/dist/{client-DlqdbM7n.d.ts.map → client-vyYQg3bm.d.ts.map} +1 -1
- package/dist/contract/index.d.ts +9 -10
- package/dist/contract/index.js +8 -8
- package/dist/{default-registry-B0bKikCb.js → default-registry-CrAp0pYq.js} +4 -4
- package/dist/{default-registry-B0bKikCb.js.map → default-registry-CrAp0pYq.js.map} +1 -1
- package/dist/{default-registry-BKwc8bN5.d.ts → default-registry-FfNzaUHV.d.ts} +3 -3
- package/dist/{default-registry-BKwc8bN5.d.ts.map → default-registry-FfNzaUHV.d.ts.map} +1 -1
- package/dist/{define-agent-eval-CY6qdlGV.d.ts → define-agent-eval-V1jQyCDR.d.ts} +102 -11
- package/dist/define-agent-eval-V1jQyCDR.d.ts.map +1 -0
- package/dist/{define-agent-eval-8h3lXXee.js → define-agent-eval-ox5McL6e.js} +331 -144
- package/dist/define-agent-eval-ox5McL6e.js.map +1 -0
- package/dist/{dspy-rlm-engine-CF0t2ITD.js → dspy-rlm-engine-Caz2pl4L.js} +3 -3
- package/dist/{dspy-rlm-engine-CF0t2ITD.js.map → dspy-rlm-engine-Caz2pl4L.js.map} +1 -1
- package/dist/{engine-DhFir3Ys.d.ts → engine-CvW_I72-.d.ts} +2 -2
- package/dist/{engine-DhFir3Ys.d.ts.map → engine-CvW_I72-.d.ts.map} +1 -1
- package/dist/experiment/index.d.ts +1 -4
- package/dist/experiment/index.d.ts.map +1 -1
- package/dist/{external-optimizer-process-BwITA9Jp.js → external-optimizer-process-CxnFL1hd.js} +2 -2
- package/dist/{external-optimizer-process-BwITA9Jp.js.map → external-optimizer-process-CxnFL1hd.js.map} +1 -1
- package/dist/{external-optimizer-subprocess-wBWeoG6A.js → external-optimizer-subprocess-CQi27uEI.js} +2 -2
- package/dist/{external-optimizer-subprocess-wBWeoG6A.js.map → external-optimizer-subprocess-CQi27uEI.js.map} +1 -1
- package/dist/fuzz.js +1 -1
- package/dist/fuzz.js.map +1 -1
- package/dist/hosted/index.d.ts +1 -1
- package/dist/{index-BQqOjerE.d.ts → index-BTrx5s8m.d.ts} +8 -9
- package/dist/index-BTrx5s8m.d.ts.map +1 -0
- package/dist/{index-D0Db5X-4.d.ts → index-Bn-nlnSV.d.ts} +4 -4
- package/dist/{index-D0Db5X-4.d.ts.map → index-Bn-nlnSV.d.ts.map} +1 -1
- package/dist/index-DKXuBPXf.d.ts +3840 -0
- package/dist/index-DKXuBPXf.d.ts.map +1 -0
- package/dist/index.d.ts +11 -13
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -10
- package/dist/{kind-factory-gP6lDySe.js → kind-factory-BLvL-E44.js} +2 -2
- package/dist/{kind-factory-gP6lDySe.js.map → kind-factory-BLvL-E44.js.map} +1 -1
- package/dist/{llm-judge-BfqMFo4h.js → llm-judge-DmNaBrXB.js} +2541 -2435
- package/dist/llm-judge-DmNaBrXB.js.map +1 -0
- package/dist/{matrix-DGu8KhSs.d.ts → matrix-CJtXz1ky.d.ts} +2 -2
- package/dist/{matrix-DGu8KhSs.d.ts.map → matrix-CJtXz1ky.d.ts.map} +1 -1
- package/dist/multishot/golden/index.d.ts +1 -1
- package/dist/multishot/index.d.ts +2 -2
- package/dist/openapi.json +1 -1
- package/dist/{produced-state-D91uDvQw.js → produced-state-B8mw6zj9.js} +2 -2
- package/dist/{produced-state-D91uDvQw.js.map → produced-state-B8mw6zj9.js.map} +1 -1
- package/dist/rl.d.ts +1 -1
- package/dist/rl.d.ts.map +1 -1
- package/dist/rl.js.map +1 -1
- package/dist/{semantic-concept-judge-Dok7_35a.js → semantic-concept-judge-E3s_fEjB.js} +3 -3
- package/dist/{semantic-concept-judge-Dok7_35a.js.map → semantic-concept-judge-E3s_fEjB.js.map} +1 -1
- package/dist/{skillopt-optimization-method-DDw3v3gA.js → skillopt-optimization-method-f7399oGb.js} +5 -5
- package/dist/{skillopt-optimization-method-DDw3v3gA.js.map → skillopt-optimization-method-f7399oGb.js.map} +1 -1
- package/dist/statistical-heldout-Cqb73yE9.d.ts +1127 -0
- package/dist/statistical-heldout-Cqb73yE9.d.ts.map +1 -0
- package/dist/{store-otlp-Dow0pk_5.js → store-otlp-DV_H2HDu.js} +2 -2
- package/dist/{store-otlp-Dow0pk_5.js.map → store-otlp-DV_H2HDu.js.map} +1 -1
- package/dist/{store-tool-spans-CCZNsihA.d.ts → store-tool-spans-4o55ABER.d.ts} +3 -3
- package/dist/{store-tool-spans-CCZNsihA.d.ts.map → store-tool-spans-4o55ABER.d.ts.map} +1 -1
- package/dist/{store-tool-spans-CeNj_m2L.js → store-tool-spans-B9tjys_h.js} +3 -3
- package/dist/{store-tool-spans-CeNj_m2L.js.map → store-tool-spans-B9tjys_h.js.map} +1 -1
- package/dist/{task-failure-attributes-CZjZeBsY.js → task-failure-attributes-CUy9mkIY.js} +2 -2
- package/dist/{task-failure-attributes-CZjZeBsY.js.map → task-failure-attributes-CUy9mkIY.js.map} +1 -1
- package/dist/{tool-groups-Cp4Xdzrp.d.ts → tool-groups-DAe1t6zb.d.ts} +2 -2
- package/dist/tool-groups-DAe1t6zb.d.ts.map +1 -0
- package/dist/trace-repair/index.d.ts +1 -1
- package/dist/traces.d.ts +2 -2
- package/dist/traces.js +4 -4
- package/dist/{types-Ba5UQyVD.d.ts → types-BJz2CPTM.d.ts} +2 -2
- package/dist/{types-Ba5UQyVD.d.ts.map → types-BJz2CPTM.d.ts.map} +1 -1
- package/dist/{types-CiWITkGo.js → types-DQ0e2E7y.js} +2 -2
- package/dist/types-DQ0e2E7y.js.map +1 -0
- package/dist/{types-BDV4PiMR.d.ts → types-Dd1ejaeI.d.ts} +2 -2
- package/dist/{types-BDV4PiMR.d.ts.map → types-Dd1ejaeI.d.ts.map} +1 -1
- package/docs/campaign-proposers.md +42 -0
- package/package.json +1 -1
- package/dist/agent-profile-B9_GGsG8.d.ts +0 -84
- package/dist/agent-profile-B9_GGsG8.d.ts.map +0 -1
- package/dist/backend-integrity-CeuTgqsd.d.ts +0 -280
- package/dist/backend-integrity-CeuTgqsd.d.ts.map +0 -1
- package/dist/benchmark-BjLGkfnN.d.ts +0 -236
- package/dist/benchmark-BjLGkfnN.d.ts.map +0 -1
- package/dist/define-agent-eval-8h3lXXee.js.map +0 -1
- package/dist/define-agent-eval-CY6qdlGV.d.ts.map +0 -1
- package/dist/external-optimizer-contracts-CQCpyrIL.d.ts +0 -172
- package/dist/external-optimizer-contracts-CQCpyrIL.d.ts.map +0 -1
- package/dist/heldout-gate-Df5hsqmm.d.ts +0 -453
- package/dist/heldout-gate-Df5hsqmm.d.ts.map +0 -1
- package/dist/index-BQqOjerE.d.ts.map +0 -1
- package/dist/index-CFDffsKz.d.ts +0 -1135
- package/dist/index-CFDffsKz.d.ts.map +0 -1
- package/dist/llm-judge-BfqMFo4h.js.map +0 -1
- package/dist/power-preflight-Ptse_Kq7.d.ts +0 -117
- package/dist/power-preflight-Ptse_Kq7.d.ts.map +0 -1
- package/dist/pre-registration-BoI4ucR3.d.ts +0 -592
- package/dist/pre-registration-BoI4ucR3.d.ts.map +0 -1
- package/dist/promotion-policy-CvMda3kU.d.ts +0 -134
- package/dist/promotion-policy-CvMda3kU.d.ts.map +0 -1
- package/dist/proposal-findings-bko3GGy-.js.map +0 -1
- package/dist/provenance-CRY67X50.d.ts +0 -1995
- package/dist/provenance-CRY67X50.d.ts.map +0 -1
- package/dist/statistical-heldout-DTyB_6-1.d.ts +0 -295
- package/dist/statistical-heldout-DTyB_6-1.d.ts.map +0 -1
- package/dist/tool-groups-Cp4Xdzrp.d.ts.map +0 -1
- package/dist/types-CiWITkGo.js.map +0 -1
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
//#region src/pareto.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* Pareto frontier — multi-objective optimization over candidate runs.
|
|
4
|
-
*
|
|
5
|
-
* Lifted from ADC pareto.ts and blueprint-agent frontier.ts. When you're
|
|
6
|
-
* trading off (cost, latency, quality) or (passRate, tokenBudget,
|
|
7
|
-
* ttfb), you rarely have a single "winner" — you have a set of
|
|
8
|
-
* non-dominated candidates. This module exposes:
|
|
9
|
-
*
|
|
10
|
-
* - `paretoFrontier`: filter a set of candidates to the non-dominated ones
|
|
11
|
-
* - `dominates`: does A dominate B across all objectives?
|
|
12
|
-
*
|
|
13
|
-
* Each objective is declared with a direction: 'maximize' (higher=better)
|
|
14
|
-
* or 'minimize' (lower=better). Candidates are any object; pass an
|
|
15
|
-
* `objective(candidate)` accessor.
|
|
16
|
-
*/
|
|
17
|
-
type Direction = 'maximize' | 'minimize';
|
|
18
|
-
interface Objective<T> {
|
|
19
|
-
/** Stable label used in reports. */
|
|
20
|
-
name: string;
|
|
21
|
-
direction: Direction;
|
|
22
|
-
value: (candidate: T) => number;
|
|
23
|
-
}
|
|
24
|
-
interface ParetoResult<T> {
|
|
25
|
-
frontier: T[];
|
|
26
|
-
dominated: T[];
|
|
27
|
-
/** Index map: frontier[i] dominates each of dominatedBy[i]. */
|
|
28
|
-
dominanceMap: Array<{
|
|
29
|
-
dominator: T;
|
|
30
|
-
dominated: T[];
|
|
31
|
-
}>;
|
|
32
|
-
}
|
|
33
|
-
/** Does candidate A weakly dominate B — strictly better on at least one objective and no worse on any? */
|
|
34
|
-
declare function dominates<T>(a: T, b: T, objectives: Objective<T>[]): boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Compute the non-dominated frontier. Candidates with NaN/Infinity on any
|
|
37
|
-
* objective are excluded (can't rank them). A candidate enters the frontier
|
|
38
|
-
* iff no other candidate dominates it.
|
|
39
|
-
*/
|
|
40
|
-
declare function paretoFrontier<T>(candidates: T[], objectives: Objective<T>[]): ParetoResult<T>;
|
|
41
|
-
//#endregion
|
|
42
|
-
//#region src/campaign/gates/power-preflight.d.ts
|
|
43
|
-
/**
|
|
44
|
-
* Power preflight — "can this budget detect the effect you are hunting?"
|
|
45
|
-
*
|
|
46
|
-
* The failure it prevents (measured, twice): a live prompt-improvement campaign ran
|
|
47
|
-
* 333 sandbox cells over 5.6 hours and produced a +0.08 holdout lift the ship gate
|
|
48
|
-
* (paired bootstrap, CI.low > 0.05) could not distinguish from zero — because at
|
|
49
|
-
* that holdout size and worker variance the MINIMUM DETECTABLE lift was larger than
|
|
50
|
-
* any effect a prompt change plausibly produces. The budget was spent learning what
|
|
51
|
-
* a 30-second calculation on the baseline cells already knew. No eval framework we
|
|
52
|
-
* know of surfaces this; every underpowered improvement run everywhere ends in an
|
|
53
|
-
* uninformative "hold".
|
|
54
|
-
*
|
|
55
|
-
* Model: the ship rule is `CI.low(paired Δ) > deltaThreshold`. Approximating the
|
|
56
|
-
* bootstrap CI as normal, `CI.low ≈ effect − z·sd_Δ/√n`, so the smallest shippable
|
|
57
|
-
* true effect is `MDE = deltaThreshold + z·sd_Δ/√n`. The paired-delta SD is unknown
|
|
58
|
-
* before the candidate exists; we bound it by the zero-correlation case
|
|
59
|
-
* `sd_Δ ≤ √2·sd_baseline` — a CONSERVATIVE (upper) MDE, which is the correct
|
|
60
|
-
* direction for a warning. Pairing is per cell (`scenario:rep`), so reps multiply n.
|
|
61
|
-
*
|
|
62
|
-
* Standalone by design: feed it any baseline composites (a `gate:'none'` run, a
|
|
63
|
-
* live-proof table) BEFORE budgeting the real search; `selfImprove` also attaches
|
|
64
|
-
* it to every result and warns when the run was structurally unable to ship.
|
|
65
|
-
*/
|
|
66
|
-
interface PowerPreflightOptions {
|
|
67
|
-
/** Per-cell baseline composites on the HOLDOUT scenarios (one per scenario:rep cell). */
|
|
68
|
-
baselineComposites: number[];
|
|
69
|
-
/** Paired observations the budgeted comparison will produce
|
|
70
|
-
* (holdout scenarios × reps). Defaults to `baselineComposites.length`. */
|
|
71
|
-
pairedN?: number;
|
|
72
|
-
/** The ship gate's effect-size threshold. Default 0.05 (defaultProductionGate). */
|
|
73
|
-
deltaThreshold?: number;
|
|
74
|
-
/** CI confidence the gate uses. Default 0.95. */
|
|
75
|
-
confidence?: number;
|
|
76
|
-
/** True when the holdout is scored by the SAME judge/scorer family as the gate
|
|
77
|
-
* (selfImprove's default composition — one judge scores everything). Under a
|
|
78
|
-
* shared channel, raising paired n reduces only the IDIOSYNCRATIC noise share;
|
|
79
|
-
* systematic judge bias is untouched, so the MDE here is a lower bound and the
|
|
80
|
-
* only full debiaser is an independent second scoring channel
|
|
81
|
-
* (recursive-self-improvement S1c, closed form in EXP-023 P0). Default false. */
|
|
82
|
-
sharedScorerChannel?: boolean;
|
|
83
|
-
}
|
|
84
|
-
interface PowerPreflight {
|
|
85
|
-
/** Paired observations the comparison will have. */
|
|
86
|
-
n: number;
|
|
87
|
-
/** Baseline per-cell composite standard deviation (the variance the effect must beat). */
|
|
88
|
-
sd: number;
|
|
89
|
-
/** Minimum detectable lift: the smallest TRUE effect the gate could ship at this budget. */
|
|
90
|
-
mde: number;
|
|
91
|
-
/** Baseline holdout composite mean. */
|
|
92
|
-
baselineMean: number;
|
|
93
|
-
/** Headroom to a perfect 1.0 composite (the largest achievable lift on a [0,1] judge). */
|
|
94
|
-
headroom: number;
|
|
95
|
-
/** True when even the largest achievable effect (headroom) is below the MDE —
|
|
96
|
-
* the run is structurally unable to ship regardless of proposal quality.
|
|
97
|
-
* Only asserted for [0,1]-scaled judges (see `scaleAssumed`). */
|
|
98
|
-
underpowered: boolean;
|
|
99
|
-
/** True when composites look [0,1]-scaled; headroom/underpowered are only
|
|
100
|
-
* meaningful under that convention (0-100 judges get mde/sd/n but no verdict). */
|
|
101
|
-
scaleAssumed: boolean;
|
|
102
|
-
deltaThreshold: number;
|
|
103
|
-
confidence: number;
|
|
104
|
-
/** Set when the holdout shares the gate's scoring channel: more cells cannot
|
|
105
|
-
* buy back systematic judge bias — treat the MDE as a lower bound. */
|
|
106
|
-
sharedChannelCaveat?: string;
|
|
107
|
-
/** One actionable sentence for humans and logs. */
|
|
108
|
-
recommendation: string;
|
|
109
|
-
}
|
|
110
|
-
/** Estimate the minimum detectable lift a paired-holdout improvement run can
|
|
111
|
-
* ship at a given budget, from the baseline holdout composites — call it BEFORE
|
|
112
|
-
* spending a search to learn whether the effect you are hunting is even
|
|
113
|
-
* observable at this holdout size and worker variance. */
|
|
114
|
-
declare function powerPreflight(opts: PowerPreflightOptions): PowerPreflight;
|
|
115
|
-
//#endregion
|
|
116
|
-
export { Objective as a, paretoFrontier as c, Direction as i, PowerPreflightOptions as n, ParetoResult as o, powerPreflight as r, dominates as s, PowerPreflight as t };
|
|
117
|
-
//# sourceMappingURL=power-preflight-Ptse_Kq7.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"power-preflight-Ptse_Kq7.d.ts","names":[],"sources":["../src/pareto.ts","../src/campaign/gates/power-preflight.ts"],"mappings":";;;;;;;;;;;;;;;;KAgBY;UAEK,UAAU;;EAEzB;EACA,WAAW;EACX,QAAQ,WAAW;;UAGJ,aAAa;EAC5B,UAAU;EACV,WAAW;;EAEX,cAAc;IAAQ,WAAW;IAAG,WAAW;;;;iBAIjC,UAAU,GAAG,GAAG,GAAG,GAAG,GAAG,YAAY,UAAU;;;;;;iBAmB/C,eAAe,GAAG,YAAY,KAAK,YAAY,UAAU,OAAO,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;UC5B5E;;EAEf;;;EAGA;;EAEA;;EAEA;;;;;;;EAOA;;UAGe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;;;EAIA;;;EAGA;EACA;EACA;;;EAGA;;EAEA;;;;;;iBAec,eAAe,MAAM,wBAAwB"}
|