@tangle-network/agent-eval 0.192.0 → 0.193.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.
Files changed (101) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/adapters/http.d.ts +2 -2
  3. package/dist/analyst/index.d.ts +5 -5
  4. package/dist/analyst/index.js +1 -1
  5. package/dist/{analyze-runs-SCSWYpy0.js → analyze-runs-B6gv7vAT.js} +2 -2
  6. package/dist/{analyze-runs-SCSWYpy0.js.map → analyze-runs-B6gv7vAT.js.map} +1 -1
  7. package/dist/{benchmark-command-C458yEFK.js → benchmark-command-DVhUPU7H.js} +2 -2
  8. package/dist/{benchmark-command-C458yEFK.js.map → benchmark-command-DVhUPU7H.js.map} +1 -1
  9. package/dist/benchmarks/index.d.ts +3 -3
  10. package/dist/benchmarks/index.js +2 -2
  11. package/dist/campaign/index.d.ts +5 -5
  12. package/dist/campaign/index.js +10 -9
  13. package/dist/{campaign-BVQVBEfH.js → campaign-DdE6S80e.js} +9 -8
  14. package/dist/{campaign-BVQVBEfH.js.map → campaign-DdE6S80e.js.map} +1 -1
  15. package/dist/{campaign-evidence-DcQiYhJI.js → campaign-evidence-DJc60F9C.js} +2 -2
  16. package/dist/{campaign-evidence-DcQiYhJI.js.map → campaign-evidence-DJc60F9C.js.map} +1 -1
  17. package/dist/cli.js +47 -10
  18. package/dist/cli.js.map +1 -1
  19. package/dist/{client-wFyDisxi.d.ts → client-dMMKoQNS.d.ts} +2 -2
  20. package/dist/{client-wFyDisxi.d.ts.map → client-dMMKoQNS.d.ts.map} +1 -1
  21. package/dist/contract/index.d.ts +7 -7
  22. package/dist/contract/index.js +8 -8
  23. package/dist/{default-registry-DdqA_-_o.d.ts → default-registry-C3HTE08O.d.ts} +3 -3
  24. package/dist/{default-registry-DdqA_-_o.d.ts.map → default-registry-C3HTE08O.d.ts.map} +1 -1
  25. package/dist/{define-agent-eval-DcludNJS.d.ts → define-agent-eval-DQJvVa1P.d.ts} +6 -6
  26. package/dist/{define-agent-eval-DcludNJS.d.ts.map → define-agent-eval-DQJvVa1P.d.ts.map} +1 -1
  27. package/dist/{define-agent-eval-DQuos3Aw.js → define-agent-eval-DkPbnJEY.js} +5 -5
  28. package/dist/{define-agent-eval-DQuos3Aw.js.map → define-agent-eval-DkPbnJEY.js.map} +1 -1
  29. package/dist/diagnosis/index.js +1 -1
  30. package/dist/{engine-C1DIAEpn.d.ts → engine-DjRV55F9.d.ts} +2 -2
  31. package/dist/{engine-C1DIAEpn.d.ts.map → engine-DjRV55F9.d.ts.map} +1 -1
  32. package/dist/evaluation.d.ts +1 -1
  33. package/dist/experiment/index.d.ts +2 -2
  34. package/dist/experiment/index.js +4 -4
  35. package/dist/hosted/index.d.ts +2 -2
  36. package/dist/hosted/index.js +1 -1
  37. package/dist/{index-DBoXFaz0.d.ts → index-0jEtpSM7.d.ts} +3 -3
  38. package/dist/{index-DBoXFaz0.d.ts.map → index-0jEtpSM7.d.ts.map} +1 -1
  39. package/dist/{index-DwQxdWve.d.ts → index-DMPLG226.d.ts} +89 -272
  40. package/dist/index-DMPLG226.d.ts.map +1 -0
  41. package/dist/{index-DNVzu9Vv.d.ts → index-DWQNDqPd.d.ts} +7 -7
  42. package/dist/{index-DNVzu9Vv.d.ts.map → index-DWQNDqPd.d.ts.map} +1 -1
  43. package/dist/index.d.ts +9 -9
  44. package/dist/index.js +7 -290
  45. package/dist/index.js.map +1 -1
  46. package/dist/jev.d.ts +1 -1
  47. package/dist/ledger-core/index.d.ts +1 -1
  48. package/dist/{llm-judge-Z6MkTkd0.js → llm-judge-ChbWfeWl.js} +1021 -234
  49. package/dist/llm-judge-ChbWfeWl.js.map +1 -0
  50. package/dist/{matrix-CQMMrEQ5.d.ts → matrix-CNu13gg8.d.ts} +2 -2
  51. package/dist/{matrix-CQMMrEQ5.d.ts.map → matrix-CNu13gg8.d.ts.map} +1 -1
  52. package/dist/multishot/golden/index.d.ts +1 -1
  53. package/dist/multishot/index.d.ts +2 -2
  54. package/dist/openapi.json +1 -1
  55. package/dist/paired-delta-test-BF-FEP8V.js +78 -0
  56. package/dist/paired-delta-test-BF-FEP8V.js.map +1 -0
  57. package/dist/{paired-promotion-decision-6cn3bLc3.js → paired-promotion-decision-DTKl6-G8.js} +4 -77
  58. package/dist/paired-promotion-decision-DTKl6-G8.js.map +1 -0
  59. package/dist/{produced-state-CVmCPQDJ.js → produced-state-BqeIaIp2.js} +3 -3
  60. package/dist/{produced-state-CVmCPQDJ.js.map → produced-state-BqeIaIp2.js.map} +1 -1
  61. package/dist/{promotion-policy-CfMNUro2.js → promotion-policy-Cy5OV8BV.js} +3 -3
  62. package/dist/{promotion-policy-CfMNUro2.js.map → promotion-policy-Cy5OV8BV.js.map} +1 -1
  63. package/dist/rl.d.ts +1 -1
  64. package/dist/rl.js +1 -1
  65. package/dist/{search-ledger-Ck7tok0h.js → search-ledger-CJiAEU3j.js} +89 -27
  66. package/dist/search-ledger-CJiAEU3j.js.map +1 -0
  67. package/dist/{search-ledger-types-C9anU2DX.d.ts → search-ledger-types-B3El5xgS.d.ts} +95 -11
  68. package/dist/search-ledger-types-B3El5xgS.d.ts.map +1 -0
  69. package/dist/{search-shipper-BG182p-U.js → search-shipper-DUlwlCsK.js} +2 -2
  70. package/dist/{search-shipper-BG182p-U.js.map → search-shipper-DUlwlCsK.js.map} +1 -1
  71. package/dist/search-summary-BhY8p0Av.js +378 -0
  72. package/dist/search-summary-BhY8p0Av.js.map +1 -0
  73. package/dist/{sequential-lwJOTRON.js → sequential-C21_PP7F.js} +2 -2
  74. package/dist/{sequential-lwJOTRON.js.map → sequential-C21_PP7F.js.map} +1 -1
  75. package/dist/{skillopt-optimization-method-DoayuM6D.js → skillopt-optimization-method-DXQdaBjx.js} +5 -5
  76. package/dist/{skillopt-optimization-method-DoayuM6D.js.map → skillopt-optimization-method-DXQdaBjx.js.map} +1 -1
  77. package/dist/{statistical-heldout-C1Ej5Ce8.d.ts → statistical-heldout-D-xBpbrd.d.ts} +2 -2
  78. package/dist/{statistical-heldout-C1Ej5Ce8.d.ts.map → statistical-heldout-D-xBpbrd.d.ts.map} +1 -1
  79. package/dist/{statistical-heldout-GcLIPxk4.js → statistical-heldout-DANVmyug.js} +2 -2
  80. package/dist/{statistical-heldout-GcLIPxk4.js.map → statistical-heldout-DANVmyug.js.map} +1 -1
  81. package/dist/{store-tool-spans-ByLdU26j.d.ts → store-tool-spans-BxrfuU2t.d.ts} +4 -4
  82. package/dist/{store-tool-spans-ByLdU26j.d.ts.map → store-tool-spans-BxrfuU2t.d.ts.map} +1 -1
  83. package/dist/{tool-groups-DiBi16ns.d.ts → tool-groups-BC9O7Epn.d.ts} +2 -2
  84. package/dist/tool-groups-BC9O7Epn.d.ts.map +1 -0
  85. package/dist/trace-repair/index.d.ts +1 -1
  86. package/dist/traces.d.ts +2 -2
  87. package/dist/{types-C1CAD70_.d.ts → types-BWwRXofp.d.ts} +328 -4
  88. package/dist/types-BWwRXofp.d.ts.map +1 -0
  89. package/dist/{types-ByZslIlr.d.ts → types-qoxUfKQg.d.ts} +2 -2
  90. package/dist/{types-ByZslIlr.d.ts.map → types-qoxUfKQg.d.ts.map} +1 -1
  91. package/docs/search-ledger.md +71 -6
  92. package/package.json +1 -1
  93. package/dist/claim-BGOUqoMq.d.ts +0 -38
  94. package/dist/claim-BGOUqoMq.d.ts.map +0 -1
  95. package/dist/index-DwQxdWve.d.ts.map +0 -1
  96. package/dist/llm-judge-Z6MkTkd0.js.map +0 -1
  97. package/dist/paired-promotion-decision-6cn3bLc3.js.map +0 -1
  98. package/dist/search-ledger-Ck7tok0h.js.map +0 -1
  99. package/dist/search-ledger-types-C9anU2DX.d.ts.map +0 -1
  100. package/dist/tool-groups-DiBi16ns.d.ts.map +0 -1
  101. package/dist/types-C1CAD70_.d.ts.map +0 -1
@@ -1,8 +1,317 @@
1
1
  import { S as PaidCallResult, T as RunPaidCallInput, a as CostChannel, c as CostLedgerHandle, f as CostLedgerSummary, p as CostProvenance } from "./cost-ledger-DbQdN3nO.js";
2
- import { d as RunTokenUsage } from "./run-record-DF-fuu31.js";
2
+ import { d as RunTokenUsage, s as RunSearchCoordinates } from "./run-record-DF-fuu31.js";
3
3
  import { _ as ProposalFinding } from "./types-CeDfCRXp.js";
4
4
  import { M as LlmCallMetadata } from "./types-C0bWoSKC.js";
5
5
  import { t as SeriesDistribution } from "./descriptive-B2iPaT9J.js";
6
+ import { A as SearchLedgerHash, G as SearchSplit, I as SearchNodeStatus, L as SearchOpenedEvent, N as SearchNodeDecision, O as SearchLedgerEntry, P as SearchNodeRef, Q as SearchTaskOutcome, R as SearchOperationKind, U as SearchReservation, Z as SearchTask, b as SearchClosedEvent, d as SearchCellCancelledEvent, i as SearchArtifactRef, l as SearchCandidateSurface, o as SearchAudit, p as SearchCellStage, t as NodeEstimate, w as SearchEdgeRecordedEvent, z as SearchOperationRecordedEvent } from "./search-ledger-types-B3El5xgS.js";
7
+ import { p as LedgerProjector } from "./index-Bj96W0jZ.js";
8
+ import { i as RolloutSearchLineage } from "./mint-C9Lojt1V.js";
9
+ //#region src/campaign/search-state.d.ts
10
+ /** Deterministic node id: identical content in one search is one node. */
11
+ declare function searchNodeId(searchId: string, artifactDigest: string): string;
12
+ /** Deterministic cell id: one node on one task in one split at one repeat. */
13
+ declare function searchCellId(searchId: string, nodeId: string, taskId: string, split: SearchSplit, rep: number): string;
14
+ /** Digest a split's task list in taskId order. */
15
+ declare function searchTaskSetDigest(tasks: readonly SearchTask[]): SearchLedgerHash;
16
+ interface SearchDecisionRecord {
17
+ sequence: number;
18
+ decision: SearchNodeDecision;
19
+ basis: NodeEstimate | null;
20
+ rule: string;
21
+ reason: string;
22
+ }
23
+ interface SearchSpend {
24
+ knownUsd: number;
25
+ floorUsd: number;
26
+ unknownCostCells: number;
27
+ boxMinutes: number;
28
+ }
29
+ /** Scores of one node on one unit of one split: the sum and count of its
30
+ * scored cells. Repeats and sibling tasks of the unit average inside it. */
31
+ interface SearchUnitScore {
32
+ unitId: string;
33
+ sum: number;
34
+ count: number;
35
+ mean: number;
36
+ }
37
+ /** A cell's scored attempt: the inputs of every per-unit statistic. */
38
+ interface SearchScoredCell {
39
+ cellId: string;
40
+ unitId: string;
41
+ /** The attempt that produced the score, which is the cell's last. */
42
+ attempt: number;
43
+ score: number;
44
+ }
45
+ /**
46
+ * Per-unit means of scored cells, in unitId order. Each unit sums its cells in
47
+ * cellId order, so the result depends on the set of cells alone, never on the
48
+ * order they settled in: a verifier that reads the same cells from a database
49
+ * gets the same bits.
50
+ */
51
+ declare function searchUnitScores(cells: readonly SearchScoredCell[]): SearchUnitScore[];
52
+ interface SearchNode {
53
+ nodeId: string;
54
+ /** Registration order; the root is 0. */
55
+ ordinal: number;
56
+ artifactDigest: SearchLedgerHash;
57
+ artifact: SearchArtifactRef;
58
+ surfaces: readonly SearchCandidateSurface[];
59
+ /** First in-search parent of the node's first edge; null for the root, a
60
+ * derived root, or a node whose parents are unknown. */
61
+ primaryParentId: string | null;
62
+ /** Edges from the root along primary parents; null while unknown. */
63
+ depth: number | null;
64
+ /** Every parent named by any edge into the node, in edge order. */
65
+ parents: readonly SearchNodeRef[];
66
+ children: readonly string[];
67
+ edgeIds: readonly string[];
68
+ status: SearchNodeStatus | null;
69
+ rung: number | null;
70
+ /** The node was decided `finalist` at some point, so its test cells are legal. */
71
+ finalist: boolean;
72
+ decisions: readonly SearchDecisionRecord[];
73
+ cellCount: number;
74
+ spend: SearchSpend;
75
+ registeredSequence: number;
76
+ updatedSequence: number;
77
+ }
78
+ interface SearchCell {
79
+ cellId: string;
80
+ nodeId: string;
81
+ taskId: string;
82
+ unitId: string;
83
+ split: SearchSplit;
84
+ rep: number;
85
+ stage: SearchCellStage;
86
+ lane: string | null;
87
+ reservation: SearchReservation | null;
88
+ attempts: number;
89
+ lastRunId: string | null;
90
+ outcome: SearchTaskOutcome['status'] | null;
91
+ /** Score of the scored attempt; null when no attempt was scored. */
92
+ score: number | null;
93
+ /** No further attempt is legal: a scored or non-retryable outcome. */
94
+ final: boolean;
95
+ cancelled: SearchCellCancelledEvent['reason'] | null;
96
+ /** Known cost plus proven floors across attempts. */
97
+ spentUsd: number;
98
+ /** Every attempt's cost is known. */
99
+ costKnown: boolean;
100
+ traceId: string | null;
101
+ allocatedSequence: number;
102
+ updatedSequence: number;
103
+ }
104
+ interface SearchOperation {
105
+ operationId: string;
106
+ operationKind: SearchOperationKind;
107
+ reservation: SearchReservation | null;
108
+ recorded: boolean;
109
+ /** The recorded outcome; null until the operation is recorded. */
110
+ outcome: SearchOperationRecordedEvent['outcome']['status'] | null;
111
+ /** Artifacts the started event bound, then those the recorded event bound,
112
+ * for example a claim's plan or a proposal's output. */
113
+ artifacts: readonly SearchArtifactRef[];
114
+ spentUsd: number;
115
+ }
116
+ interface SearchCompletion {
117
+ complete: boolean;
118
+ reasons: string[];
119
+ }
120
+ /**
121
+ * The pure, incremental projection of one search ledger. `apply` refuses any
122
+ * entry that breaks an invariant; the journal then discards this instance and
123
+ * replays into a new one, so a refused entry leaves no partial state behind.
124
+ */
125
+ declare class SearchState implements LedgerProjector<SearchLedgerEntry, SearchStateView> {
126
+ readonly searchId: string;
127
+ private version;
128
+ private header;
129
+ private closed;
130
+ private head;
131
+ private lastOccurredAt;
132
+ private lastOccurredAtText;
133
+ private readonly tasks;
134
+ private readonly nodes;
135
+ private readonly nodeOrder;
136
+ private readonly nodeByDigest;
137
+ private readonly edges;
138
+ private readonly edgeOrder;
139
+ private readonly cells;
140
+ private readonly operations;
141
+ private selectedNodeId;
142
+ private claimUsedUsd;
143
+ /** Nodes ever decided `finalist`. */
144
+ private readonly finalists;
145
+ /** Claim cells allocated. Once one exists, the finalists are fixed. */
146
+ private claimCells;
147
+ private readonly audit;
148
+ constructor(searchId: string);
149
+ apply(entry: SearchLedgerEntry, index: number): void;
150
+ snapshot(): SearchStateView;
151
+ /** @internal Views check this before every read of the live indexes. */
152
+ isAt(version: number): boolean;
153
+ private applyEvent;
154
+ private open;
155
+ private startOperation;
156
+ private recordOperation;
157
+ private registerNode;
158
+ private recordEdge;
159
+ private allocateCell;
160
+ private settleCell;
161
+ private cancelCell;
162
+ private decideNode;
163
+ private close;
164
+ private checkClaim;
165
+ /** Once the first finalist is decided, the search only runs its claim:
166
+ * nothing new is proposed, registered or allocated outside the test. */
167
+ private assertSearching;
168
+ /** @internal */
169
+ incompleteReasons(): string[];
170
+ /** Book an attempt's or operation's accounting into the running totals. An
171
+ * unknown cost counts as its proven floor. */
172
+ private book;
173
+ /** A cell's share of the open reservations, its overspend, and what it draws
174
+ * from the claim reserve: the larger of its hold and its spend. */
175
+ private reservationParts;
176
+ /** The admission rule: committed spend, open holds, the unspent claim
177
+ * reserve and the new hold stay within the cap. A claim cell draws on the
178
+ * claim reserve instead of adding to it. */
179
+ private admit;
180
+ /** @internal The largest hold a new non-claim cell or operation may take,
181
+ * and the claim reserve still unspent. */
182
+ readBudget(): {
183
+ headroomUsd: number | null;
184
+ claimReserveUsd: number;
185
+ };
186
+ /** @internal */
187
+ readHeader(): SearchOpenedEvent | null;
188
+ /** @internal */
189
+ readClosed(): SearchClosedEvent | null;
190
+ /** @internal */
191
+ readHead(): {
192
+ sequence: number;
193
+ entryHash: SearchLedgerHash;
194
+ } | null;
195
+ /** @internal */
196
+ readLastOccurredAt(): string | null;
197
+ /** @internal */
198
+ readAudit(): SearchAudit;
199
+ /** @internal */
200
+ readNode(nodeId: string): SearchNode | undefined;
201
+ /** @internal */
202
+ readNodeIds(): readonly string[];
203
+ /** @internal */
204
+ readHasNode(nodeId: string): boolean;
205
+ /** @internal */
206
+ readNodeIdForDigest(artifactDigest: string): string | undefined;
207
+ /** @internal */
208
+ readEdge(edgeId: string): SearchEdgeRecordedEvent | undefined;
209
+ /** @internal */
210
+ readEdgeIds(): readonly string[];
211
+ /** @internal */
212
+ readCell(cellId: string): SearchCell | undefined;
213
+ /** @internal */
214
+ readCellIds(nodeId?: string): readonly string[];
215
+ /** @internal */
216
+ readOperation(operationId: string): SearchOperation | undefined;
217
+ /** @internal */
218
+ readScoredCells(nodeId: string, split: SearchSplit): SearchScoredCell[];
219
+ }
220
+ /**
221
+ * A read of `SearchState` at one ledger position. Header, head, audit and
222
+ * claim are values. Node, edge, cell and score reads go to the live indexes and
223
+ * throw once the state has applied a later entry.
224
+ */
225
+ declare class SearchStateView {
226
+ readonly searchId: string;
227
+ readonly header: SearchOpenedEvent | null;
228
+ readonly closed: SearchClosedEvent | null;
229
+ readonly head: {
230
+ sequence: number;
231
+ entryHash: SearchLedgerHash;
232
+ } | null;
233
+ /** `occurredAt` of the head entry; a writer stamps later events at or after it. */
234
+ readonly lastOccurredAt: string | null;
235
+ readonly audit: SearchAudit;
236
+ readonly completion: SearchCompletion;
237
+ /**
238
+ * The admission rule's room: `headroomUsd` is the largest reservation a new
239
+ * non-claim cell or operation may hold (committed spend, open holds and the
240
+ * unspent claim reserve all count against the cap), or null when the search
241
+ * declares no cap. `claimReserveUsd` is what claim cells may still draw.
242
+ */
243
+ readonly budget: {
244
+ headroomUsd: number | null;
245
+ claimReserveUsd: number;
246
+ };
247
+ private readonly state;
248
+ private readonly version;
249
+ constructor(state: SearchState, version: number);
250
+ /** The node the search started from: the first registered. */
251
+ get rootNodeId(): string | null;
252
+ node(nodeId: string): SearchNode | undefined;
253
+ hasNode(nodeId: string): boolean;
254
+ /** Node ids in registration order. */
255
+ nodeIds(): string[];
256
+ /** Nodes in registration order. */
257
+ nodes(): SearchNode[];
258
+ nodeIdForDigest(artifactDigest: string): string | undefined;
259
+ edge(edgeId: string): SearchEdgeRecordedEvent | undefined;
260
+ /** Edges in ledger order. */
261
+ edges(): SearchEdgeRecordedEvent[];
262
+ cell(cellId: string): SearchCell | undefined;
263
+ /** Cells in allocation order, optionally of one node. */
264
+ cells(filter?: {
265
+ nodeId?: string;
266
+ }): SearchCell[];
267
+ operation(operationId: string): SearchOperation | undefined;
268
+ /** A node's scored cells on one split, in allocation order. Unscored cells
269
+ * (errored, cancelled or in flight) are absent, never zero. */
270
+ scoredCells(nodeId: string, split: SearchSplit): SearchScoredCell[];
271
+ /** Per-unit score means of a node on one split, in unitId order. */
272
+ unitScores(nodeId: string, split: SearchSplit): SearchUnitScore[];
273
+ /** The lineage a RunRecord mint needs for one cell attempt. */
274
+ lineage(coordinates: RunSearchCoordinates): RolloutSearchLineage;
275
+ private live;
276
+ }
277
+ //#endregion
278
+ //#region src/campaign/search-summary.d.ts
279
+ /** The proposer's own read of a search: its node's cells on the train split,
280
+ * the only split a proposer may ever see. */
281
+ interface SearchProposerView {
282
+ readonly searchId: string;
283
+ readonly direction: 'maximize' | 'minimize';
284
+ /** `nodeId`'s scored train cells. Unscored cells (errored, cancelled or in
285
+ * flight) are absent, never zero. */
286
+ scoredCells(nodeId: string): readonly SearchScoredCell[];
287
+ /** Per-unit train-split means of `nodeId`, in unitId order. */
288
+ unitScores(nodeId: string): readonly SearchUnitScore[];
289
+ }
290
+ /** The train-only view `ProposeContext.train` carries. */
291
+ declare function searchProposerView(state: SearchStateView): SearchProposerView;
292
+ interface SearchSummaryOptions {
293
+ /**
294
+ * The split every estimate in the summary is computed on. A proposer's
295
+ * context must always pass `'train'`: the selection and test splits stay
296
+ * unread by anything a proposer's text can reach. The CLI passes the
297
+ * search's own ranking split, `'selection'` when the search declares one
298
+ * else `'train'`, matching `searchPolicyView`.
299
+ */
300
+ split: SearchSplit;
301
+ /** Nodes shown under "Leading" and under "Recently discarded". Default 5. */
302
+ limit?: number;
303
+ }
304
+ /**
305
+ * `SearchState` as compact text: a header line with the search's shape and
306
+ * spend, the leading nodes against the root with their estimates, the most
307
+ * recently discarded nodes with the measurement that discarded them, and a
308
+ * log of recent proposals (operator and label — the ledger's inline,
309
+ * redacted summary of each rationale; the full rationale is a blob this
310
+ * function never reads, so it stays a pure, I/O-free projection of the
311
+ * state already in hand).
312
+ */
313
+ declare function renderSearchSummary(state: SearchStateView, options: SearchSummaryOptions): string;
314
+ //#endregion
6
315
  //#region src/campaign/types.d.ts
7
316
  /** Stable identifier + kind tag for any scenario. Consumers
8
317
  * extend with their per-domain payload (persona, task, requirement, ...). */
@@ -267,12 +576,27 @@ interface ScoredSurfaceOutcome {
267
576
  * Final evaluation data is not represented in this contract. */
268
577
  interface ProposeContext<TFindings = ProposalFinding> {
269
578
  /** The parent surface this proposal mutates: the node the search policy
270
- * chose (the incumbent by default). */
579
+ * chose (the incumbent by default). Equal to `parents[0].artifact` when
580
+ * `parents` is present. */
271
581
  readonly currentSurface: MutableSurface;
272
582
  /** How the child should derive from the parent: `improve` for a hill-climb
273
583
  * step; other policies ask for `draft`, `debug` or `merge`. Absent outside
274
584
  * a search. */
275
585
  readonly operator?: 'draft' | 'improve' | 'debug' | 'merge';
586
+ /** Every parent the policy chose, primary first, with its artifact. A
587
+ * `merge` proposal needs every parent; other operators name exactly one.
588
+ * Absent outside a search. */
589
+ readonly parents?: ReadonlyArray<{
590
+ nodeId: string;
591
+ artifact: MutableSurface;
592
+ }>;
593
+ /** The proposer's own read of the search: its nodes' cells on the train
594
+ * split only. Absent outside a search. See {@link SearchProposerView}. */
595
+ readonly train?: SearchProposerView;
596
+ /** `renderSearchSummary` of the search so far, computed on the train
597
+ * split: the leading nodes, recently discarded ideas and recent proposals,
598
+ * as compact text. Absent outside a search. */
599
+ readonly summary?: string;
276
600
  /** One record per earlier proposal: its candidates' measurements and the
277
601
  * candidate that took the lead, if any. */
278
602
  readonly history: ReadonlyArray<GenerationRecord>;
@@ -668,5 +992,5 @@ interface CampaignResult<TArtifact = unknown, TScenario extends Scenario = Scena
668
992
  scenarios: Array<CampaignScenarioIdentity & Pick<TScenario, 'id' | 'kind'>>;
669
993
  }
670
994
  //#endregion
671
- export { LabeledScenarioWrite as A, ScoredSurfaceOutcome as B, JudgeDimension as C, LabeledScenarioSampleArgs as D, LabeledScenarioRecord as E, ProposeContext as F, labelTrustRank as G, SurfaceProposer as H, ProposedCandidate as I, RedactionStatus as L, OptimizerConfig as M, ParetoParent as N, LabeledScenarioSource as O, ProposalTrackContext as P, Scenario as R, JudgeConfig as S, LabelTrust as T, TraceSpan as U, SessionScript as V, isProposedCandidate as W, GateDecision as _, CampaignResult as a, GenerationRecord as b, CampaignTraceWriter as c, DispatchContext as d, DispatchFn as f, GateContribution as g, GateContext as h, CampaignCostMeter as i, MutableSurface as j, LabeledScenarioStore as k, CodeSurface as l, GateCheckStatus as m, CampaignArtifactWriter as n, CampaignScenarioIdentity as o, Gate as p, CampaignCellResult as r, CampaignTokenUsage as s, CampaignAggregates as t, ComponentSurface as u, GateResult as v, JudgeScore as w, JudgeAggregate as x, GenerationCandidate as y, ScenarioAggregate as z };
672
- //# sourceMappingURL=types-C1CAD70_.d.ts.map
995
+ export { SearchNode as $, LabeledScenarioWrite as A, ScoredSurfaceOutcome as B, JudgeDimension as C, LabeledScenarioSampleArgs as D, LabeledScenarioRecord as E, ProposeContext as F, labelTrustRank as G, SurfaceProposer as H, ProposedCandidate as I, renderSearchSummary as J, SearchProposerView as K, RedactionStatus as L, OptimizerConfig as M, ParetoParent as N, LabeledScenarioSource as O, ProposalTrackContext as P, SearchDecisionRecord as Q, Scenario as R, JudgeConfig as S, LabelTrust as T, TraceSpan as U, SessionScript as V, isProposedCandidate as W, SearchCell as X, searchProposerView as Y, SearchCompletion as Z, GateDecision as _, CampaignResult as a, SearchUnitScore as at, GenerationRecord as b, CampaignTraceWriter as c, searchTaskSetDigest as ct, DispatchContext as d, SearchOperation as et, DispatchFn as f, GateContribution as g, GateContext as h, CampaignCostMeter as i, SearchStateView as it, MutableSurface as j, LabeledScenarioStore as k, CodeSurface as l, searchUnitScores as lt, GateCheckStatus as m, CampaignArtifactWriter as n, SearchSpend as nt, CampaignScenarioIdentity as o, searchCellId as ot, Gate as p, SearchSummaryOptions as q, CampaignCellResult as r, SearchState as rt, CampaignTokenUsage as s, searchNodeId as st, CampaignAggregates as t, SearchScoredCell as tt, ComponentSurface as u, GateResult as v, JudgeScore as w, JudgeAggregate as x, GenerationCandidate as y, ScenarioAggregate as z };
996
+ //# sourceMappingURL=types-BWwRXofp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-BWwRXofp.d.ts","names":[],"sources":["../src/campaign/search-state.ts","../src/campaign/search-summary.ts","../src/campaign/types.ts"],"mappings":";;;;;;;;;;iBAwDgB,aAAa,kBAAkB;;iBAK/B,aACd,kBACA,gBACA,gBACA,OAAO,aACP;;iBAMc,oBAAoB,gBAAgB,eAAe;UAkBlD;EACf;EACA,UAAU;EACV,OAAO;EACP;EACA;;UAGe;EACf;EACA;EACA;EACA;;;;UAKe;EACf;EACA;EACA;EACA;;;UAIe;EACf;EACA;;EAEA;EACA;;;;;;;;iBASc,iBAAiB,gBAAgB,qBAAqB;UAoBrD;EACf;;EAEA;EACA,gBAAgB;EAChB,UAAU;EACV,mBAAmB;;;EAGnB;;EAEA;;EAEA,kBAAkB;EAClB;EACA;EACA,QAAQ;EACR;;EAEA;EACA,oBAAoB;EACpB;EACA,OAAO;EACP;EACA;;UAGe;EACf;EACA;EACA;EACA;EACA,OAAO;EACP;EACA,OAAO;EACP;EACA,aAAa;EACb;EACA;EACA,SAAS;;EAET;;EAEA;EACA,WAAW;;EAEX;;EAEA;EACA;EACA;EACA;;UAGe;EACf;EACA,eAAe;EACf,aAAa;EACb;;EAEA,SAAS;;;EAGT,oBAAoB;EACpB;;UAGe;EACf;EACA;;;;;;;cA6BW,uBAAuB,gBAAgB,mBAAmB;WAC5D;UACD;UACA;UACA;UACA;UACA;UACA;mBACS;mBACA;mBACA;mBACA;mBACA;mBACA;mBACA;mBACA;UACT;UACA;;mBAES;;UAET;mBACS;EAEjB,YAAY;EAgCZ,MAAM,OAAO,mBAAmB;EA6BhC,YAAY;;EAKZ,KAAK;UAIG;UAgCA;UA6CA;UAoBA;UA4BA;UA8CA;UA6GA;UAmEA;UA4EA;UAoBA;UAmDA;UAaA;;;UA2EA;;EASR;;;UAmBQ;;;UAkBA;;;;UAaA;;;EAqBR;IAAgB;IAA4B;;;EAa5C,cAAc;;EAKd,cAAc;;EAKd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4B,QAAQ;EACjD,QAAQ;IACN;IACA;IACA,UAAU;;;IAGV,SAAS,OAAO;;;UAMH,mBAAmB;;;EAGlC;EACA;EACA;EACA;EACA;EACA,UAAU;EACV,aAAa,eAAe;;;EAG5B;;EAEA,gBAAgB;;EAEhB;;;EAGA,YAAY;;;EAGZ;;;EAGA;EACA;EACA;EACA;;;;EAIA;;EAEA;;EAEA;EACA;;UAGe;EACf;EACA;EACA;EACA;;;;;;EAMA,cAAc;;UAGC;EACf;EACA;EACA;;;EAGA,cAAc;;UAGC;EACf;EACA,YAAY;EACZ;;;;;;UAOe;EACf;;;;EAIA;;;;EAIA;;;;EAIA;IACE;IACA;IACA,iBAAiB;MAAQ;MAAgB;;;;;EAI3C,YAAY;;;;;;;;;;EAUZ,WAAW;IAAQ;IAAoB;IAAmB;IAAgB;;;;EAG1E;;;;EAIA;;;;EAIA,cAAc,SAAS;;UAGR;EACf,SAAS,eAAe;EACxB,YAAY,eAAe;;EAE3B,MAAM;;EAEN;EACA;EACA;;EAEA;;EAEA;;EAEA;;EAEA;;UAGe,eAAe,qBAAqB,kBAAkB,WAAW;;EAEhF;;EAEA;EACA;;EAEA;EACA;EACA;EACA;EACA,OAAO,MAAM,mBAAmB;EAChC,YAAY;EACZ;IACE,aAAa;IACb;;EAEF,OAAO;EACP;EACA;EACA,iBAAiB;;;EAGjB,WAAW,MAAM,2BAA2B,KAAK"}
@@ -1,5 +1,5 @@
1
1
  import { c as RunSplitTag } from "./run-record-DF-fuu31.js";
2
- import { R as Scenario, d as DispatchContext } from "./types-C1CAD70_.js";
2
+ import { R as Scenario, d as DispatchContext } from "./types-BWwRXofp.js";
3
3
  //#region src/benchmarks/types.d.ts
4
4
  type BenchmarkTaskKind = 'retrieval' | 'rag-answer' | 'hallucination' | 'kb-improvement' | 'routing' | 'custom';
5
5
  type BenchmarkFamily = 'beir' | 'mteb-retrieval' | 'msmarco' | 'trec-dl' | 'miracl' | 'lotte' | 'bright' | 'crag' | 'hotpotqa' | 'kilt' | 'ragtruth' | 'faithbench' | 'first-party' | 'custom';
@@ -99,4 +99,4 @@ declare const BENCHMARK_SPLIT_SEED = "agent-eval-v1";
99
99
  declare function deterministicSplit(itemId: string, seed?: string): RunSplitTag;
100
100
  //#endregion
101
101
  export { BenchmarkFamily as a, BenchmarkSource as c, BenchmarkEvaluation as i, BenchmarkTaskKind as l, BenchmarkAdapter as n, BenchmarkResponder as o, BenchmarkDatasetItem as r, BenchmarkScenario as s, BENCHMARK_SPLIT_SEED as t, deterministicSplit as u };
102
- //# sourceMappingURL=types-ByZslIlr.d.ts.map
102
+ //# sourceMappingURL=types-qoxUfKQg.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types-ByZslIlr.d.ts","names":[],"sources":["../src/benchmarks/types.ts"],"mappings":";;;KASY;KAQA;UAgBK,qBAAqB;;;EAGpC;;EAEA,SAAS;;EAET,QAAQ;;EAER,SAAS;;EAET,WAAW;;EAEX;;EAEA,SAAS;EACT,WAAW;;UAGI;;;;EAIf;;EAEA;;EAEA,aAAa;;;EAGb,KAAK;EACL;;UAGe;EACf;EACA;EACA;;EAEA;EACA;EACA;;EAEA;;;;;EAKA;;;UAQe,iBAAiB,kBAAkB,oBAAoB;;EAEtE;EACA,SAAS;EACT,WAAW;EACX;EACA,SAAS;EACT;;;;;EAKA,YAAY,OAAO,cAAc,QAAQ,qBAAqB;;EAE9D,SAAS,MAAM,qBAAqB,WAAW,UAAU,YAAY,QAAQ;;;;EAI7E,YAAY,iBAAiB;;UAGd,kBAAkB,4BAA4B;EAC7D;EACA;EACA,QAAQ;EACR,UAAU;EACV,UAAU;EACV,MAAM,qBAAqB;;KAGjB,mBAAmB,oBAAoB,uBAAuB;EACxE,UAAU,kBAAkB;EAC5B,MAAM,qBAAqB;EAC3B,SAAS;MACL,QAAQ,aAAa;;;cAoBd;;;;;;;;;iBAUG,mBACd,gBACA,gBACC"}
1
+ {"version":3,"file":"types-qoxUfKQg.d.ts","names":[],"sources":["../src/benchmarks/types.ts"],"mappings":";;;KASY;KAQA;UAgBK,qBAAqB;;;EAGpC;;EAEA,SAAS;;EAET,QAAQ;;EAER,SAAS;;EAET,WAAW;;EAEX;;EAEA,SAAS;EACT,WAAW;;UAGI;;;;EAIf;;EAEA;;EAEA,aAAa;;;EAGb,KAAK;EACL;;UAGe;EACf;EACA;EACA;;EAEA;EACA;EACA;;EAEA;;;;;EAKA;;;UAQe,iBAAiB,kBAAkB,oBAAoB;;EAEtE;EACA,SAAS;EACT,WAAW;EACX;EACA,SAAS;EACT;;;;;EAKA,YAAY,OAAO,cAAc,QAAQ,qBAAqB;;EAE9D,SAAS,MAAM,qBAAqB,WAAW,UAAU,YAAY,QAAQ;;;;EAI7E,YAAY,iBAAiB;;UAGd,kBAAkB,4BAA4B;EAC7D;EACA;EACA,QAAQ;EACR,UAAU;EACV,UAAU;EACV,MAAM,qBAAqB;;KAGjB,mBAAmB,oBAAoB,uBAAuB;EACxE,UAAU,kBAAkB;EAC5B,MAAM,qBAAqB;EAC3B,SAAS;MACL,QAAQ,aAAa;;;cAoBd;;;;;;;;;iBAUG,mBACd,gBACA,gBACC"}
@@ -54,10 +54,13 @@ The same code runs in the producer's journal, the kernel, and the Intelligence v
54
54
  - **Graph:** a node exists before an edge or cell names it, and a cell's node already has an edge. A parent registered before its child and already in the tree, so the graph is acyclic. A parent in another search appears only on a `derive` edge that matches `derivedFrom`.
55
55
  - **Re-proposal:** identical content is a second edge into the existing node, counted as a re-proposal.
56
56
  - **Splits:** a task belongs to one split and one unit. With `heldOutUnits`, no test unit appears in train or selection. Stages match splits: `claim` cells run on test, `screen` and `rung` on selection.
57
- - **Seal:** only the root (the first registered node) and nodes decided `finalist` run test cells.
57
+ - **Seal:** only the root (the first registered node) and nodes decided `finalist` run test cells. The root is never a finalist, at most 3 nodes are, and none is added once a claim cell exists.
58
+ - **Claim start:** once a node is decided `finalist`, the search only claims: no operation, node, edge or non-claim cell follows.
59
+ - **Parents:** a node decided `invalid` (by admission or by the divergence rule) never appears as a parent on a later edge.
58
60
  - **Attempts:** attempts count from 1 without gaps. A `passed` or `failed` outcome is final; only a retryable `errored` outcome admits another attempt.
59
61
  - **Budget:** at every `cell-allocated` and `operation-started`, committed spend plus open reservations plus the unspent claim reserve plus the new reservation stays within `maxUsd`. Spend above a reservation is recorded as overspend, never refused. An unknown cost counts as its proven floor.
60
- - **Completion:** `search-closed` needs every allocated cell settled or cancelled, every started operation recorded, and every node with an edge and a terminal decision. A `ship` claim needs a promoted finalist and held-out test units; any other claim keeps the root.
62
+ - **Completion:** `search-closed` needs every allocated cell settled or cancelled, every started operation recorded, and every node with an edge and a terminal decision.
63
+ - **Claim:** the claim names every node decided `finalist`, estimates each against the root on test, and tests each at `1 - (1 - confidence) / k` for its k finalists. A `ship` claim needs a promoted finalist, held-out test units, a pinned judge, and every test unit scored by the root and the shipped finalist; any other claim keeps the root.
61
64
 
62
65
  A ledger written under another schema tag, such as the retired `tangle.search-ledger.v1` candidate-slot format, is refused with the tag named.
63
66
  It is never translated.
@@ -114,6 +117,28 @@ Its variance is the search's pooled between-unit variance of those improvements
114
117
  The root sits at exactly 0, and the pooled variance stays null until some node shares 2 units with the root.
115
118
  Posterior numbers steer spend and claim nothing; a claim comes from the sealed test split.
116
119
 
120
+ ## The agent's view
121
+
122
+ `renderSearchSummary(state, { split, limit? })` turns a `SearchStateView` into compact text: the leading nodes against the root with their estimates, the most recently discarded nodes with the measurement that discarded them, and a log of recent proposals — as AIDE's journal summary does.
123
+ `agent-eval search show <ledger>` verifies a ledger and prints this for a terminal, on the search's own ranking split (`selection` when the search declares one, else `train`); there is no local HTML renderer.
124
+
125
+ ```ts
126
+ import { renderSearchSummary, searchProposerView } from '@tangle-network/agent-eval/campaign'
127
+
128
+ renderSearchSummary(state, { split: 'train' })
129
+ // search s1 — vb/coder — maximize composite
130
+ // 12 nodes · 34 settled cells (2 open) · $1.42 known
131
+ // status: open
132
+ //
133
+ // Leading nodes (vs root, train split):
134
+ // node_… (advanced rung 2): Δ=+0.0821 [0.0340, 0.1290] dashed, sign p=0.0156 (8 units)
135
+ // ...
136
+ ```
137
+
138
+ `ProposeContext.train` (a `SearchProposerView`) and `ProposeContext.summary` (this text, always rendered on `split: 'train'`) are how `runOptimization`'s proposal step hands a proposer the search so far.
139
+ `searchProposerView(state)` has no parameter that can select another split: its `scoredCells`/`unitScores` always read `'train'`, so a proposer built on it cannot reach the sealed selection or test split even by mistake.
140
+ `ProposeContext.parents` carries every parent the policy chose, primary first, with its artifact — `currentSurface` is `parents[0].artifact`; a `merge` proposal needs every parent, and the built-in `incumbent`/`crowdedFrontierParent` policies always choose one.
141
+
117
142
  ## Record a search
118
143
 
119
144
  `SearchRecorder` writes each fact the moment it exists.
@@ -158,7 +183,7 @@ const recorder = await SearchRecorder.open({ ledger }, {
158
183
  ...opening,
159
184
  policy: { expansion: policy.name, allocation: allocation.name, seed },
160
185
  })
161
- const { state, leader, reason } = await runSearch({
186
+ const { state, leader, reason, claim } = await runSearch({
162
187
  recorder, root, codec, policy, allocation, proposer, executor, maxExpansions: 10,
163
188
  })
164
189
  ```
@@ -184,7 +209,14 @@ A hard lane holds its maximum; an estimate lane holds 1.5 times the p99 of its s
184
209
  Spend above a hold is recorded as overspend, never refused.
185
210
  Expansion stops at `maxNodes`, `maxExpansions`, the deadline, after `patience` expansions without a new leader, when the cap cannot admit one more expansion, or when the proposer stops.
186
211
  Allocated cells still run; at the deadline the ones not yet started are cancelled.
187
- At close the leader is decided `selected` when it has a scored cell, every other undecided node `rejected` with its estimate against the leader, and the search closes with no claim.
212
+ A search without a test split closes with no claim: the leader is decided `selected` when it has a scored cell, and every other undecided node `rejected` with its estimate against the leader.
213
+ A search with a test split closes with its claim (below).
214
+
215
+ **Divergence.**
216
+ When a node's cells finish, the kernel compares it with its primary parent.
217
+ If its train mean rose on the train units they share while its selection interval against the parent (6 or more units, not indeterminate) lies wholly on the worse side, the node is decided `invalid` with rule `divergence` and the interval as its basis.
218
+ Train is what the proposer reads, so a gain there that selection contradicts is the signature of fitting the feedback instead of the task.
219
+ An invalid node is never a parent and never a finalist.
188
220
 
189
221
  **Resume.**
190
222
  The ledger is the only checkpoint.
@@ -196,7 +228,38 @@ Aborting the `signal` pauses the search: in-flight cells are aborted, a scored r
196
228
  One kernel runs a ledger file at a time on a host: a second one is refused by a pid lock beside the ledger, and a killed holder's lock is reclaimed.
197
229
  A closed ledger returns its result; more work on a closed search is a new search.
198
230
 
199
- `scripts/search-sim.ts` runs the real kernel, ledger and policies over a seeded synthetic objective, proposer and executor, and `kill-resume` SIGKILLs it at random ledger positions and compares the resumed search with an uninterrupted one.
231
+ `scripts/search-sim.ts` runs the real kernel, ledger, policies and claim over a seeded synthetic objective, proposer and executor.
232
+ `kill-resume` SIGKILLs it at random ledger positions and compares the resumed search with an uninterrupted one.
233
+ `claims --searches 200 --null` runs 200 searches in which no node differs from the root and reports how often the claim ships, with Wilson and Clopper-Pearson intervals; `--plant-gain X` plants a real gain to measure how often the claim finds it.
234
+
235
+ ## The claim
236
+
237
+ A search that declares a test split ends in its claim, made once, on test data no node was selected on.
238
+ `runSearch` refuses to start such a search without a selection split, a claim `minimumEffect`, and a pinned judge.
239
+ Under a cap it also refuses a `reservedClaimUsd` below `searchClaimReserveUsd({ testTasks, reps, cellUsd })`, the hold for the root and 3 finalists on every test task, or a cap that cannot also cover the root and one screening round.
240
+ Size the reserve at the hold the lane will take: an estimate lane holds 1.5 times the p99 of its settled cells once 20 settled.
241
+
242
+ When expansion stops, the kernel:
243
+
244
+ 1. **Fixes the design.** `planSearchClaim` ranks the finalists: at most 3 non-root nodes, not invalid, that scored every selection unit and beat the root's mean on them, best selection mean first.
245
+ It fixes the estimator (binary when every unit is one task at one repeat and every pre-test score is 0 or one value, else continuous).
246
+ It checks power: `pairedPromotionPower` simulates the claim's own `decidePairedPromotion` call at a true improvement of `minimumEffect`, with the search's pooled between-unit selection variance, on the test units, at the Bonferroni confidence.
247
+ It keeps the largest k whose power reaches 0.8 and whose test cells the unspent claim reserve and headroom cover.
248
+ The plan is stored as the `claim-plan` blob on the `claim` operation before any test cell exists.
249
+ 2. **Seals the family.** Each planned finalist is decided `finalist` with its selection estimate against the root.
250
+ From here the search only claims.
251
+ 3. **Runs the test together.** The root's and the finalists' test cells are allocated task by task and dispatched before anything else, so drift over a long search cannot bias the pairs. They run past the deadline, on the reserve held since the start.
252
+ 4. **Decides.** `decideSearchClaim` tests each finalist against the root with `decidePairedPromotion` on per-unit test means at confidence `1 - 0.05 / k`, requiring every test unit.
253
+ The promoted finalist with the largest improvement is `selected` and the claim is `ship`; otherwise the claim is `hold` and the root is kept.
254
+ Every other open node is `rejected` with its selection estimate against the root.
255
+
256
+ When the power check fails (a continuous claim needs at least 20 test units to be decided at all) or the reserve cannot cover one finalist, the claim closes as `test-cannot-resolve` and spends nothing on test cells.
257
+ The claim records its rule (`SEARCH_CLAIM_RULE`, whose revision digests every parameter), the family-wise confidence, the power check, each finalist's test estimate and deciding interval, and its reason.
258
+ A verifier recomputes it with `decideSearchClaim(state, plan)` from the stored plan and the test cells.
259
+ A judge change is a changed `search-opened` header, which `SearchRecorder.open` refuses; it starts a derived search instead of mixing verdicts.
260
+
261
+ `compareOptimizationMethods` keeps its own held-out comparison for black-box methods such as GEPA, which return one winner and never see the test split.
262
+ A method's search ledger closes before the comparison starts, so the comparison cannot add claim cells to it.
200
263
 
201
264
  ## Ship a search
202
265
 
@@ -242,8 +305,10 @@ Those claims need the sealed test split, the claim's power check, and held-out e
242
305
  - `src/campaign/search-ledger.ts`: schemas, canonical ordering, the codec, and `FileSearchLedger`.
243
306
  - `src/campaign/search-state.ts`: `SearchState`, the invariants and read model, and the id functions.
244
307
  - `src/campaign/estimate-node.ts`: `estimateNode`, `estimateNodeFromCells` and `searchPosterior`.
308
+ - `src/campaign/search-summary.ts`: `renderSearchSummary` and `searchProposerView`.
245
309
  - `src/campaign/search-ledger-recording.ts`: `SearchRecorder` and the surface helpers.
246
- - `src/campaign/search-kernel.ts`: `runSearch`, the executor, proposer and codec ports, and `searchPolicyView`.
310
+ - `src/campaign/search-kernel.ts`: `runSearch`, the executor, proposer and codec ports, `searchPolicyView` and `searchDivergence`.
311
+ - `src/campaign/search-claim.ts`: `planSearchClaim`, `decideSearchClaim` and `searchClaimReserveUsd`.
247
312
  - `src/campaign/search-policy.ts`: `SearchPolicy`, `incumbent` and `crowdedFrontierParent`.
248
313
  - `src/campaign/allocation.ts`: `SearchAllocator` and `uniform`.
249
314
  - `src/campaign/presets/run-optimization.ts`: `runOptimization` as a search on the kernel.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-eval",
3
- "version": "0.192.0",
3
+ "version": "0.193.0",
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": {
@@ -1,38 +0,0 @@
1
- import { z } from "zod";
2
- //#region src/experiment/claim.d.ts
3
- /** The claim's schema, shared by every record that binds a claim. */
4
- declare const evaluationClaimSchema: z.ZodObject<{
5
- use: z.ZodEnum<{
6
- certification: "certification";
7
- comparison: "comparison";
8
- development: "development";
9
- }>;
10
- population: z.ZodObject<{
11
- id: z.ZodString;
12
- description: z.ZodString;
13
- }, z.core.$strict>;
14
- samplingFrame: z.ZodString;
15
- independentUnit: z.ZodString;
16
- generalization: z.ZodEnum<{
17
- "fixed-roster": "fixed-roster";
18
- "new-units": "new-units";
19
- }>;
20
- minimumEffect: z.ZodOptional<z.ZodNumber>;
21
- }, z.core.$strict>;
22
- /** The population and independent observations a measured result can describe. */
23
- type EvaluationClaim = z.infer<typeof evaluationClaimSchema>;
24
- /** Validate a claim before binding it to a sealed experiment or final evidence. */
25
- declare function defineEvaluationClaim(input: EvaluationClaim): EvaluationClaim;
26
- interface EvaluationUnitSummary {
27
- observations: number;
28
- independentUnits: number;
29
- units: Array<{
30
- id: string;
31
- observations: number;
32
- }>;
33
- }
34
- /** Repetitions retain their denominator without becoming additional independent units. */
35
- declare function summarizeEvaluationUnits(claim: EvaluationClaim, rows: readonly object[]): EvaluationUnitSummary;
36
- //#endregion
37
- export { summarizeEvaluationUnits as i, EvaluationUnitSummary as n, defineEvaluationClaim as r, EvaluationClaim as t };
38
- //# sourceMappingURL=claim-BGOUqoMq.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"claim-BGOUqoMq.d.ts","names":[],"sources":["../src/experiment/claim.ts"],"mappings":";;;cAWa,uBAAqB,EAAA;;;;;;;;;;;;;;;;;GASvB,EAAA,KAAA;;KAGC,kBAAkB,EAAE,aAAa;;iBAG7B,sBAAsB,OAAO,kBAAkB;UAO9C;EACf;EACA;EACA,OAAO;IAAQ;IAAY;;;;iBAIb,yBACd,OAAO,iBACP,0BACC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-DwQxdWve.d.ts","names":[],"sources":["../src/campaign/coverage.ts","../src/campaign/final-evidence.ts","../src/campaign/storage.ts","../src/campaign/cell-schedule.ts","../src/campaign/cell-cache.ts","../src/campaign/plan-campaign-run.ts","../src/campaign/run-campaign.ts","../src/campaign/presets/run-eval.ts","../src/campaign/auto-pr.ts","../src/campaign/search-ledger-errors.ts","../src/campaign/search-state.ts","../src/campaign/search-ledger.ts","../src/campaign/search-history-receipt.ts","../src/campaign/search-ledger-recording.ts","../src/campaign/search-policy.ts","../src/campaign/presets/run-optimization.ts","../src/campaign/presets/run-improvement-loop.ts","../src/campaign/transient-failure.ts","../src/llm-judge.ts","../src/reference-equivalence-judge.ts","../src/campaign/external-optimizer-observations.ts","../src/campaign/gepa-candidate-population.ts","../src/campaign/optimization-cost.ts","../src/campaign/presets/compare-optimization-methods.ts","../src/campaign/external-text-evaluation.ts","../src/campaign/external-text-optimization-contract.ts","../src/campaign/external-text-optimization.ts","../src/campaign/optimizer-model.ts","../src/campaign/gepa-optimization-method.ts","../src/campaign/skillopt-optimization-method.ts","../src/campaign/gates/compose.ts","../src/canary.ts","../src/red-team.ts","../src/campaign/gates/default-production-gate.ts","../src/campaign/gates/heldout-gate.ts","../src/campaign/score-utils.ts","../src/campaign/provenance.ts","../src/campaign/allocation.ts","../src/campaign/analyst-surface.ts","../src/campaign/cross-surface-types.ts","../src/campaign/cross-surface-interaction.ts","../src/campaign/estimate-node.ts","../src/campaign/fixtures.ts","../src/campaign/gates/neutralization-gate.ts","../src/campaign/gepa-search-import.ts","../src/campaign/grounded-reflection.ts","../src/campaign/labeled-store/fs-adapter.ts","../src/campaign/neutralize.ts","../src/campaign/optimization-method-composition.ts","../src/artifact-validator.ts","../src/completion-verifier.ts","../src/produced-state.ts","../src/integrity/backend-integrity.ts","../src/campaign/presets/run-profile-matrix.ts","../src/campaign/presets/playback.ts","../src/campaign/presets/segmented-profile-matrix.ts","../src/campaign/run-dir.ts","../src/campaign/scenario-selection.ts","../src/campaign/search-kernel.ts","../src/campaign/single-run-lock.ts","../src/campaign/surface-identity.ts","../src/campaign/upstream-evaluators.ts","../src/campaign/worktree/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;iBAgBgB,qBAAqB,kBAAkB,UACrD,oBAAoB,aACpB;;iBA2Bc,yBAAyB,kBAAkB,UACzD,UAAU,YACT,2BAA2B,KAAK;;iBAUnB,kCACd,oBAAoB,4BACpB;;iBAgBc,oBAAoB,kBAAkB,UACpD,oBAAoB,aACpB;;iBAOc,4BACd,oBAAoB,4BACpB,cACA;;;;UClEe;EACf,QAAQ;EACR;EACA,iBAAiB;;UAGF;EACf,OAAO;EACP,QAAQ;;;;;;;;;;;;;;;;;;;UCTO;;;;WAIN;;EAET,UAAU;;EAEV,OAAO;;EAEP,KAAK;;EAEL,MAAM,cAAc,kBAAkB;;;EAGtC,OAAO,cAAc,iBAAiB;;;;;;;;;iBAUxB,qBAAqB;;;;iBA2CrB,2BAA2B;;iBAoC3B,oBAAoB;EAClC,SAAS;EACT;EACA;;EAEA;IACE;;;iBCxHY,kBAAkB,kBAAkB,UAClD,WAAW,aACX,cACA,e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