@tangle-network/agent-eval 2.0.22 → 2.0.24
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 +54 -0
- package/dist/adapters/http.d.ts +1 -1
- package/dist/analyst/index.js +3 -3
- package/dist/app-grade/index.d.ts +1 -1
- package/dist/{benchmark-command-pmeFawvb.js → benchmark-command-Cad4mBro.js} +5 -5
- package/dist/{benchmark-command-pmeFawvb.js.map → benchmark-command-Cad4mBro.js.map} +1 -1
- package/dist/benchmarks/index.d.ts +1 -1
- package/dist/benchmarks/index.js +2 -2
- package/dist/campaign/index.d.ts +2 -2
- package/dist/campaign/index.js +6 -6
- package/dist/{campaign-DPB35MjP.js → campaign-VRqINMNu.js} +313 -8
- package/dist/campaign-VRqINMNu.js.map +1 -0
- package/dist/{campaign-evidence-71uzJMVY.js → campaign-evidence-tY94JzUe.js} +45 -2
- package/dist/campaign-evidence-tY94JzUe.js.map +1 -0
- package/dist/cli.js +2 -2
- package/dist/contract/index.d.ts +4 -4
- package/dist/contract/index.js +6 -6
- package/dist/{define-agent-eval-Bh8tJHZI.d.ts → define-agent-eval-BPg0IRdI.d.ts} +3 -3
- package/dist/{define-agent-eval-Bh8tJHZI.d.ts.map → define-agent-eval-BPg0IRdI.d.ts.map} +1 -1
- package/dist/{define-agent-eval-CBhYD7Gq.js → define-agent-eval-Dto1p8Pd.js} +3 -3
- package/dist/{define-agent-eval-CBhYD7Gq.js.map → define-agent-eval-Dto1p8Pd.js.map} +1 -1
- package/dist/{dspy-rlm-engine-DFgGrKzg.js → dspy-rlm-engine-DA4uW64o.js} +2 -2
- package/dist/{dspy-rlm-engine-DFgGrKzg.js.map → dspy-rlm-engine-DA4uW64o.js.map} +1 -1
- package/dist/experiment/index.js +1 -1
- package/dist/{external-optimizer-process-DkOMkeHW.js → external-optimizer-process-BfRVOfBK.js} +2 -2
- package/dist/{external-optimizer-process-DkOMkeHW.js.map → external-optimizer-process-BfRVOfBK.js.map} +1 -1
- package/dist/{external-optimizer-subprocess-CFIiwHSE.js → external-optimizer-subprocess-D2_gmU9_.js} +8 -3
- package/dist/external-optimizer-subprocess-D2_gmU9_.js.map +1 -0
- package/dist/{findings-store-DcBkRLDk.js → findings-store-Daqo7ksI.js} +2 -2
- package/dist/{findings-store-DcBkRLDk.js.map → findings-store-Daqo7ksI.js.map} +1 -1
- package/dist/{index-Cq_5SLfF.d.ts → index-0GNQgbji.d.ts} +4 -4
- package/dist/{index-Cq_5SLfF.d.ts.map → index-0GNQgbji.d.ts.map} +1 -1
- package/dist/{index-C1jQ7qqy.d.ts → index-AUyYKA-x.d.ts} +4 -4
- package/dist/{index-C1jQ7qqy.d.ts.map → index-AUyYKA-x.d.ts.map} +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +7 -7
- package/dist/{llm-judge-DRHTRT66.js → llm-judge-DyHMJrDb.js} +2 -2
- package/dist/{llm-judge-DRHTRT66.js.map → llm-judge-DyHMJrDb.js.map} +1 -1
- package/dist/multishot/index.d.ts +2 -2
- package/dist/multishot/index.js +3 -3
- package/dist/openapi.json +1 -1
- package/dist/{optimization-method-B-NFaHom.js → optimization-method-4F1Npdy5.js} +2 -2
- package/dist/{optimization-method-B-NFaHom.js.map → optimization-method-4F1Npdy5.js.map} +1 -1
- package/dist/{run-improvement-loop-D9IAZviC.d.ts → run-improvement-loop-B9m24xsg.d.ts} +58 -5
- package/dist/run-improvement-loop-B9m24xsg.d.ts.map +1 -0
- package/dist/search/index.d.ts +21 -6
- package/dist/search/index.d.ts.map +1 -1
- package/dist/search/index.js +73 -31
- package/dist/search/index.js.map +1 -1
- package/dist/{self-improve-DZ8W-QY-.d.ts → self-improve-CcL0tRSr.d.ts} +2 -2
- package/dist/{self-improve-DZ8W-QY-.d.ts.map → self-improve-CcL0tRSr.d.ts.map} +1 -1
- package/dist/{self-improve-Dm9PvLF2.js → self-improve-e5hx2cCo.js} +3 -3
- package/dist/{self-improve-Dm9PvLF2.js.map → self-improve-e5hx2cCo.js.map} +1 -1
- package/dist/{skillopt-optimization-method-QZoNbg57.js → skillopt-optimization-method-Qx0HYCHY.js} +984 -907
- package/dist/skillopt-optimization-method-Qx0HYCHY.js.map +1 -0
- package/dist/{tree-DBvepwFt.js → tree-CK9h-xZF.js} +5 -4
- package/dist/tree-CK9h-xZF.js.map +1 -0
- package/dist/wire/index.d.ts +2 -2
- package/docs/campaign-proposers.md +31 -0
- package/docs/public-api.md +5 -4
- package/docs/search-ledger.md +4 -3
- package/package.json +1 -1
- package/dist/campaign-DPB35MjP.js.map +0 -1
- package/dist/campaign-evidence-71uzJMVY.js.map +0 -1
- package/dist/external-optimizer-subprocess-CFIiwHSE.js.map +0 -1
- package/dist/run-improvement-loop-D9IAZviC.d.ts.map +0 -1
- package/dist/skillopt-optimization-method-QZoNbg57.js.map +0 -1
- package/dist/tree-DBvepwFt.js.map +0 -1
package/dist/wire/index.d.ts
CHANGED
|
@@ -213,9 +213,9 @@ export declare const FeedbackTrajectorySchema: z.ZodObject<{
|
|
|
213
213
|
value: z.ZodUnknown;
|
|
214
214
|
reason: z.ZodOptional<z.ZodString>;
|
|
215
215
|
severity: z.ZodOptional<z.ZodEnum<{
|
|
216
|
+
error: "error";
|
|
216
217
|
critical: "critical";
|
|
217
218
|
info: "info";
|
|
218
|
-
error: "error";
|
|
219
219
|
warning: "warning";
|
|
220
220
|
}>>;
|
|
221
221
|
createdAt: z.ZodString;
|
|
@@ -249,9 +249,9 @@ export declare const FeedbackTrajectorySchema: z.ZodObject<{
|
|
|
249
249
|
value: z.ZodUnknown;
|
|
250
250
|
reason: z.ZodOptional<z.ZodString>;
|
|
251
251
|
severity: z.ZodOptional<z.ZodEnum<{
|
|
252
|
+
error: "error";
|
|
252
253
|
critical: "critical";
|
|
253
254
|
info: "info";
|
|
254
|
-
error: "error";
|
|
255
255
|
warning: "warning";
|
|
256
256
|
}>>;
|
|
257
257
|
createdAt: z.ZodString;
|
|
@@ -216,6 +216,12 @@ Agent Eval derives the run ID from the complete compatible input instead of requ
|
|
|
216
216
|
The callback writes checkpoints under `stateDir`, restores them only when `restoreRequested` is true, and reports whether restoration occurred.
|
|
217
217
|
Agent Eval adds the run ID, evaluation count, artifact directory, source identity, and optimizer token usage to the method result.
|
|
218
218
|
|
|
219
|
+
### SkyDiscover solution search
|
|
220
|
+
|
|
221
|
+
`skyDiscoverSolutionOptimizationMethod()` adapts SkyDiscover's pinned solution controller to the same evaluator and cost meter. It accepts one Python source string and an `OpenAICompatibleOptimizerModel` from the caller. The generated solution reaches only the caller's dispatch path, which owns code placement and isolation. The worker averages numeric scores for train and selection cases as its search objective. `selfImprove()` and `compareOptimizationMethods()` score the selected program on final cases the worker never receives. Method provenance identifies the model route and retains the evaluation and model execution receipts.
|
|
222
|
+
|
|
223
|
+
The Python bridge disables search-strategy evolution, generated variation operators, and agentic mode. This makes it a fixed-strategy SkyDiscover method. Full EvoX needs a caller-owned isolation and communication boundary for the generated search Python. The package does not install SkyDiscover by default. Prepare the pinned source environment as described in the [isolated proof](../tests/campaign/fixtures/evox-proof.md), then install this repository's Python client into that environment with `uv pip install --python "$sky/.venv/bin/python" -e clients/python`. Set `runner.command` to that environment's Python. Use `iterations`, `maxEvaluations`, and `maxOptimizerCostUsd` with the owner's bounded model configuration.
|
|
224
|
+
|
|
219
225
|
## Compare Complete Methods
|
|
220
226
|
|
|
221
227
|
`compareOptimizationMethods()` gives every method the same:
|
|
@@ -329,6 +335,23 @@ See [evaluation integrity](./evaluation-integrity.md) for reusable claims and th
|
|
|
329
335
|
|
|
330
336
|
The runnable version is in [`examples/compare-optimization-methods`](../examples/compare-optimization-methods/).
|
|
331
337
|
|
|
338
|
+
## Run Airbnb PRISM
|
|
339
|
+
|
|
340
|
+
`prismOptimizationMethod()` runs the official prompt-only PRISM search behind Eval's complete optimizer contract.
|
|
341
|
+
Install the pinned [Airbnb agent-harness-optimizer source](https://github.com/airbnb/agent-harness-optimizer) in a separate Python environment alongside `agent-eval-rpc` using `uv sync --project clients/python --frozen --group prism-source`.
|
|
342
|
+
The [dependency group](../clients/python/pyproject.toml) owns the interpreter requirement and source pin.
|
|
343
|
+
Supply that interpreter as `python`, the caller-owned model executor as `optimizer`, and the independent evaluator's passing cutoff as `passScore`.
|
|
344
|
+
|
|
345
|
+
Give the method a prompt string and non-empty training and selection partitions.
|
|
346
|
+
PRISM proposes `candidatesPerGeneration` alternatives and Eval bounds their measurements with `maxConcurrentEvaluations` and `maxEvaluations`.
|
|
347
|
+
The planner and proposer use a loopback model endpoint with the caller's model and cost limits.
|
|
348
|
+
Only scored training cases return trace and judge evidence to the optimizer.
|
|
349
|
+
When every measured training case passes, the bridge retains the incumbent and a stop receipt without invoking a proposer. An incomplete train cohort with no graded failures stops with an error.
|
|
350
|
+
Selection case scores guide PRISM's frontier. The final cases stay in Eval for independent comparison.
|
|
351
|
+
Supply `searchLedger.identity` to retain a verified [search ledger](./search-ledger.md) with the candidate prompts, measured campaign cells, and optimizer spend.
|
|
352
|
+
The result also identifies the model and transport that answered each optimizer call.
|
|
353
|
+
The adapter admits prompt changes. PRISM's executable middleware and source checkpoint resume require separate execution contracts.
|
|
354
|
+
|
|
332
355
|
## Install Official GEPA
|
|
333
356
|
|
|
334
357
|
From the repository root, install the bridge and locked standard-engine dependencies:
|
|
@@ -487,6 +510,14 @@ The evidence is the case's lowest-scoring cell: a string artifact is sent as is
|
|
|
487
510
|
`compareOptimizationMethods({ describeArtifact })` gives every method the same hook the same way.
|
|
488
511
|
A method configured with its own `describeArtifact` refuses a different hook from its caller, so one evaluation never has two descriptions.
|
|
489
512
|
|
|
513
|
+
Set `contrastiveEvidence` in the GEPA method to show a matched success and failure from separate replicates of the same training case.
|
|
514
|
+
Name a configured judge and its independently checked outcome dimension, then set `failureAtMost` and `successAtLeast` on that dimension's original scale.
|
|
515
|
+
Set at least two optimization replicates.
|
|
516
|
+
The callback pairs complete grades with observed artifacts and withholds execution artifacts and judge notes on selection cases.
|
|
517
|
+
Train cases without an observed contrast still return their numeric score.
|
|
518
|
+
The original attempts, costs, and scoring records remain available in the campaign.
|
|
519
|
+
The thresholds label proposal evidence and do not change the objective or the release gate.
|
|
520
|
+
|
|
490
521
|
`maxEvidenceChars` bounds the JSON of each evaluation response the optimizer reads.
|
|
491
522
|
A response over the bound is excerpted, not refused: the judge notes, the error message and a text artifact keep their head and tail around an omitted-character count and share the room the other fields leave.
|
|
492
523
|
A described artifact stays whole when excerpting those texts makes room; otherwise it is sent as its excerpted JSON text, as the native reflective path shows it, which drops any inline image.
|
package/docs/public-api.md
CHANGED
|
@@ -7,10 +7,10 @@ Generated by `pnpm api:census` on demand — this is a dated reading, not a gate
|
|
|
7
7
|
| measure | count |
|
|
8
8
|
| --- | --- |
|
|
9
9
|
| export subpaths | 38 |
|
|
10
|
-
| published value exports (subpath x symbol) |
|
|
11
|
-
| distinct symbols |
|
|
10
|
+
| published value exports (subpath x symbol) | 1499 |
|
|
11
|
+
| distinct symbols | 1248 |
|
|
12
12
|
| production | 1076 |
|
|
13
|
-
| planned |
|
|
13
|
+
| planned | 345 |
|
|
14
14
|
| none | 78 |
|
|
15
15
|
|
|
16
16
|
Type-only exports are not listed: a type binds no runtime surface, and removing one cannot break a caller at run time.
|
|
@@ -705,7 +705,7 @@ The `none` set was reviewed symbol by symbol on 2026-08-21. Four rules decided m
|
|
|
705
705
|
|
|
706
706
|
### `./campaign`
|
|
707
707
|
|
|
708
|
-
|
|
708
|
+
142 value exports — 107 production, 31 planned, 4 none.
|
|
709
709
|
|
|
710
710
|
| symbol | consumer | evidence |
|
|
711
711
|
| --- | --- | --- |
|
|
@@ -836,6 +836,7 @@ The `none` set was reviewed symbol by symbol on 2026-08-21. Four rules decided m
|
|
|
836
836
|
| `sequentialOptimizationMethod` | production | supervisor-lab:src/learn/system-revise.ts |
|
|
837
837
|
| `sequentialPairedGate` | planned | consumer tests: legal-agent:tests/eval/self-improve.ts |
|
|
838
838
|
| `skillOptOptimizationMethod` | production | agent-app:src/eval-campaign/index.ts |
|
|
839
|
+
| `skyDiscoverSolutionOptimizationMethod` | planned | doc: docs/campaign-proposers.md |
|
|
839
840
|
| `surfaceContentHash` | production | agent-runtime:scripts/verify-official-optimizers-consumer.mjs |
|
|
840
841
|
| `surfaceDiff` | production | agent-runtime:src/runtime/strategy-evolution.ts |
|
|
841
842
|
| `surfaceDispatchRef` | production | this package: src/campaign/presets/optimization-surface-nodes.ts:40 |
|
package/docs/search-ledger.md
CHANGED
|
@@ -536,9 +536,10 @@ The signal `metaSearch.bestPolicyConfiguration` names the configuration with the
|
|
|
536
536
|
`runNestedSearch` runs an outer search whose cells are inner searches, on the same kernel.
|
|
537
537
|
An outer node is a configuration (`runtime-config`), an outer task is a problem, and each outer cell runs one inner search of its node's configuration on its task's problem.
|
|
538
538
|
The inner search records the outer cell attempt as its `containment`, and its id is a digest of that attempt, so a rerun resumes the inner ledger instead of starting again.
|
|
539
|
-
The outer cell scores
|
|
540
|
-
|
|
541
|
-
|
|
539
|
+
The outer cell scores the closed inner search, costs what the inner search spent, and binds the inner head hash.
|
|
540
|
+
By default it uses `metaSearchScore` and requires `META_SEARCH_SCORE_SOURCE` in the outer ledger. Without a known lift per dollar, the cell settles `errored` and cannot lead.
|
|
541
|
+
To compare subscription or free campaigns, pass the same `resourceBudget` to all inner configurations and declare `nestedSearchResourceJudge(resourceBudget)` as the outer judge. The inner runner receives the allowance before dispatch. The outer scorer checks all recorded cell attempts and operations, including retries and assessment, and compares verified held-out lift. An optional token ceiling requires complete reported token usage. An overrun or missing required usage leaves the cell unscored.
|
|
542
|
+
With a test split the outer search claims once, on held-out problems, whether a configuration beats the root configuration.
|
|
542
543
|
`scripts/search-meta-sim.ts` runs one over simulator configurations with no model spend.
|
|
543
544
|
|
|
544
545
|
## Ship a search
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/agent-eval",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.24",
|
|
4
4
|
"description": "Evaluate and improve AI agents from runs, traces, judges, and feedback. Compare candidates, cluster failures, measure lift, and gate releases.",
|
|
5
5
|
"homepage": "https://github.com/tangle-network/agent-eval#readme",
|
|
6
6
|
"repository": {
|