@tangle-network/agent-eval 2.0.15 → 2.0.17
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 +14 -0
- package/dist/adapters/http.d.ts +2 -2
- package/dist/{agent-profile-8S2LfCvs.d.ts → agent-profile-_A7aMA4F.d.ts} +4 -4
- package/dist/{agent-profile-8S2LfCvs.d.ts.map → agent-profile-_A7aMA4F.d.ts.map} +1 -1
- package/dist/analyst/index.d.ts +23 -5
- package/dist/analyst/index.d.ts.map +1 -1
- package/dist/analyst/index.js +3 -3
- package/dist/app-grade/index.d.ts +2 -2
- package/dist/{benchmark-command-DgR1i30h.js → benchmark-command-CZbrh9bS.js} +27 -8
- package/dist/benchmark-command-CZbrh9bS.js.map +1 -0
- package/dist/benchmarks/index.d.ts +4 -4
- package/dist/benchmarks/index.js +2 -2
- package/dist/campaign/index.d.ts +7 -7
- package/dist/campaign/index.js +7 -7
- package/dist/{campaign-CaO2k8Jb.js → campaign-CJRlis5N.js} +7 -7
- package/dist/{campaign-CaO2k8Jb.js.map → campaign-CJRlis5N.js.map} +1 -1
- package/dist/{campaign-evidence-DcTgo4ze.d.ts → campaign-evidence-Biq06MQ9.d.ts} +2 -2
- package/dist/{campaign-evidence-DcTgo4ze.d.ts.map → campaign-evidence-Biq06MQ9.d.ts.map} +1 -1
- package/dist/cli.js +11 -7
- package/dist/cli.js.map +1 -1
- package/dist/{client-3sR4_h5q.d.ts → client-B_9qUZi5.d.ts} +2 -2
- package/dist/{client-3sR4_h5q.d.ts.map → client-B_9qUZi5.d.ts.map} +1 -1
- package/dist/contract/index.d.ts +9 -9
- package/dist/contract/index.js +5 -5
- package/dist/{default-registry-CVklg2e-.d.ts → default-registry-BKHpiYiW.d.ts} +2 -2
- package/dist/{default-registry-CVklg2e-.d.ts.map → default-registry-BKHpiYiW.d.ts.map} +1 -1
- package/dist/{define-agent-eval-DZ7wWMHC.d.ts → define-agent-eval-Bh8tJHZI.d.ts} +5 -5
- package/dist/{define-agent-eval-DZ7wWMHC.d.ts.map → define-agent-eval-Bh8tJHZI.d.ts.map} +1 -1
- package/dist/{define-agent-eval-BLHr0_IP.js → define-agent-eval-Dd6hFx0-.js} +3 -3
- package/dist/{define-agent-eval-BLHr0_IP.js.map → define-agent-eval-Dd6hFx0-.js.map} +1 -1
- package/dist/dspy-rlm-engine-DFgGrKzg.js +1613 -0
- package/dist/dspy-rlm-engine-DFgGrKzg.js.map +1 -0
- package/dist/{evaluation-D50Dzyce.d.ts → evaluation-f-UIDwbL.d.ts} +2 -2
- package/dist/{evaluation-D50Dzyce.d.ts.map → evaluation-f-UIDwbL.d.ts.map} +1 -1
- package/dist/evaluation.d.ts +1 -1
- package/dist/experiment/index.d.ts +76 -7
- package/dist/experiment/index.d.ts.map +1 -1
- package/dist/experiment/index.js +196 -13
- package/dist/experiment/index.js.map +1 -1
- package/dist/{findings-store-Drnjid7m.js → findings-store-DcBkRLDk.js} +2 -2
- package/dist/{findings-store-Drnjid7m.js.map → findings-store-DcBkRLDk.js.map} +1 -1
- package/dist/hosted/index.d.ts +2 -2
- package/dist/hosted/index.js +1 -1
- package/dist/{index-D1ghgNRI.d.ts → index-4khf0Q7g.d.ts} +238 -4
- package/dist/index-4khf0Q7g.d.ts.map +1 -0
- package/dist/{index-Bam453Y5.d.ts → index-C1jQ7qqy.d.ts} +8 -8
- package/dist/{index-Bam453Y5.d.ts.map → index-C1jQ7qqy.d.ts.map} +1 -1
- package/dist/{index-CYrvUGQl.d.ts → index-Cq_5SLfF.d.ts} +17 -247
- package/dist/index-Cq_5SLfF.d.ts.map +1 -0
- package/dist/{index-CxciVDt0.d.ts → index-DH_Jxu9p.d.ts} +2 -2
- package/dist/{index-CxciVDt0.d.ts.map → index-DH_Jxu9p.d.ts.map} +1 -1
- package/dist/index.d.ts +14 -14
- package/dist/index.js +9 -1091
- package/dist/index.js.map +1 -1
- package/dist/{llm-judge-ChGnwj4s.js → llm-judge-Bf3p1WNA.js} +2 -2
- package/dist/{llm-judge-ChGnwj4s.js.map → llm-judge-Bf3p1WNA.js.map} +1 -1
- package/dist/{matrix-CAeyP9m-.d.ts → matrix-BtyN7jpb.d.ts} +2 -2
- package/dist/{matrix-CAeyP9m-.d.ts.map → matrix-BtyN7jpb.d.ts.map} +1 -1
- package/dist/multishot/golden/index.d.ts +1 -1
- package/dist/multishot/index.d.ts +6 -6
- package/dist/multishot/index.js +2 -2
- package/dist/openapi.json +1 -1
- package/dist/{optimization-method-D2uCSc2j.js → optimization-method-BO2sb1m4.js} +4 -4
- package/dist/{optimization-method-D2uCSc2j.js.map → optimization-method-BO2sb1m4.js.map} +1 -1
- package/dist/rl.d.ts +1 -1
- package/dist/rollout/index.d.ts +2 -2
- package/dist/{run-improvement-loop-C9z817z_.d.ts → run-improvement-loop-D9IAZviC.d.ts} +7 -7
- package/dist/{run-improvement-loop-C9z817z_.d.ts.map → run-improvement-loop-D9IAZviC.d.ts.map} +1 -1
- package/dist/search/index.d.ts +3 -3
- package/dist/search/index.js +2 -2
- package/dist/{search-kernel-CZmj8gJW.d.ts → search-kernel-C2XOJHvk.d.ts} +3 -3
- package/dist/{search-kernel-CZmj8gJW.d.ts.map → search-kernel-C2XOJHvk.d.ts.map} +1 -1
- package/dist/{search-kernel-B1TEQ9pa.js → search-kernel-D96Eibc_.js} +2 -2
- package/dist/{search-kernel-B1TEQ9pa.js.map → search-kernel-D96Eibc_.js.map} +1 -1
- package/dist/{search-ledger-EjLGVZ4X.js → search-ledger-C7DywY8N.js} +40 -4
- package/dist/search-ledger-C7DywY8N.js.map +1 -0
- package/dist/{search-ledger-types-D4FsvPP9.d.ts → search-ledger-types-DF-f031V.d.ts} +19 -5
- package/dist/search-ledger-types-DF-f031V.d.ts.map +1 -0
- package/dist/{search-shipper-DtSnRfOJ.js → search-shipper-l6wUUWtc.js} +2 -2
- package/dist/{search-shipper-DtSnRfOJ.js.map → search-shipper-l6wUUWtc.js.map} +1 -1
- package/dist/{search-summary-C5fewoUi.js → search-summary-DjgKz7B1.js} +2 -2
- package/dist/{search-summary-C5fewoUi.js.map → search-summary-DjgKz7B1.js.map} +1 -1
- package/dist/{self-improve-CQM7hIL_.js → self-improve-BiTuylQQ.js} +3 -3
- package/dist/{self-improve-CQM7hIL_.js.map → self-improve-BiTuylQQ.js.map} +1 -1
- package/dist/{self-improve-Eo-EAWL8.d.ts → self-improve-DZ8W-QY-.d.ts} +7 -7
- package/dist/{self-improve-Eo-EAWL8.d.ts.map → self-improve-DZ8W-QY-.d.ts.map} +1 -1
- package/dist/{skillopt-optimization-method-DQ4urRij.js → skillopt-optimization-method-CJkejuSP.js} +3 -3
- package/dist/{skillopt-optimization-method-DQ4urRij.js.map → skillopt-optimization-method-CJkejuSP.js.map} +1 -1
- package/dist/{store-tool-spans-BD5Z304_.d.ts → store-tool-spans-wH8y7InB.d.ts} +2 -2
- package/dist/{store-tool-spans-BD5Z304_.d.ts.map → store-tool-spans-wH8y7InB.d.ts.map} +1 -1
- package/dist/{systemone-D7FQ7n00.d.ts → systemone-CpW1U2Uy.d.ts} +3 -3
- package/dist/{systemone-D7FQ7n00.d.ts.map → systemone-CpW1U2Uy.d.ts.map} +1 -1
- package/dist/systemone.d.ts +2 -2
- package/dist/traces.d.ts +1 -1
- package/dist/{tree-CljLPWVm.js → tree-lU9KWuxr.js} +3 -3
- package/dist/{tree-CljLPWVm.js.map → tree-lU9KWuxr.js.map} +1 -1
- package/dist/{types-BtWzceBY.d.ts → types-BpIAnRCe.d.ts} +12 -2
- package/dist/types-BpIAnRCe.d.ts.map +1 -0
- package/dist/{types-XxFZ2IAT.d.ts → types-DSU3qb_o.d.ts} +2 -2
- package/dist/{types-XxFZ2IAT.d.ts.map → types-DSU3qb_o.d.ts.map} +1 -1
- package/docs/experiment.md +31 -1
- package/docs/search-ledger.md +1 -0
- package/docs/trace-contracts.md +23 -0
- package/package.json +1 -1
- package/dist/benchmark-command-DgR1i30h.js.map +0 -1
- package/dist/dspy-rlm-engine-CR5MSL2k.js +0 -463
- package/dist/dspy-rlm-engine-CR5MSL2k.js.map +0 -1
- package/dist/index-CYrvUGQl.d.ts.map +0 -1
- package/dist/index-D1ghgNRI.d.ts.map +0 -1
- package/dist/search-ledger-EjLGVZ4X.js.map +0 -1
- package/dist/search-ledger-types-D4FsvPP9.d.ts.map +0 -1
- package/dist/types-BtWzceBY.d.ts.map +0 -1
|
@@ -4,7 +4,7 @@ import { v as ProposalFinding } from "./types-B1W3v8dT.js";
|
|
|
4
4
|
import { p as LlmCallMetadata } from "./chat-client-BlTooBDA.js";
|
|
5
5
|
import { gt as SeriesDistribution } from "./index-Bk1XEkP7.js";
|
|
6
6
|
import { n as VerdictCertification } from "./verdict-D_qiBQ6_.js";
|
|
7
|
-
import { A as SearchLedgerHash, F as SearchNodeRegisteredEvent, 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,
|
|
7
|
+
import { A as SearchLedgerHash, D as SearchFailureReason, F as SearchNodeRegisteredEvent, 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, nt as SearchTraceRef, o as SearchAudit, p as SearchCellStage, t as NodeEstimate, tt as SearchTokenUnknownCause, w as SearchEdgeRecordedEvent, z as SearchOperationRecordedEvent } from "./search-ledger-types-DF-f031V.js";
|
|
8
8
|
import { y as LedgerProjector } from "./index-qy6buL6y.js";
|
|
9
9
|
import { s as TraceStore } from "./store-CMs5wGXP.js";
|
|
10
10
|
import { a as MintedRolloutLine, m as RolloutEvidenceAttempt, t as ChatMessage, w as ToolDef, y as RolloutRole } from "./schema-BfSoJjD-.js";
|
|
@@ -84,6 +84,8 @@ interface SearchCell {
|
|
|
84
84
|
attempts: number;
|
|
85
85
|
lastRunId: string | null;
|
|
86
86
|
outcome: SearchTaskOutcome['status'] | null;
|
|
87
|
+
/** The latest attempt's failure or error, null for a pass or an unsettled cell. */
|
|
88
|
+
outcomeReason: SearchFailureReason | null;
|
|
87
89
|
/** Score of the scored attempt; null when no attempt was scored. */
|
|
88
90
|
score: number | null;
|
|
89
91
|
/** No further attempt is legal: a scored or non-retryable outcome. */
|
|
@@ -104,6 +106,14 @@ interface SearchCell {
|
|
|
104
106
|
};
|
|
105
107
|
/** Every attempt reported its tokens; false once one did not, and the sum above is then a floor. */
|
|
106
108
|
tokensKnown: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Why the tokens are not known, from the latest attempt that did not report them; null while
|
|
111
|
+
* every attempt did. A cause is null when the ledger predates causes.
|
|
112
|
+
*/
|
|
113
|
+
tokensUnknown: {
|
|
114
|
+
cause: SearchTokenUnknownCause | null;
|
|
115
|
+
reason: string;
|
|
116
|
+
} | null;
|
|
107
117
|
/** Wall time summed over the attempts that reported it, in milliseconds. */
|
|
108
118
|
wallMs: number;
|
|
109
119
|
/** Every attempt reported its wall time; false once one did not, and the sum above is then a floor. */
|
|
@@ -1121,4 +1131,4 @@ interface CampaignResult<TArtifact = unknown, TScenario extends Scenario = Scena
|
|
|
1121
1131
|
scenarios: Array<CampaignScenarioIdentity & Pick<TScenario, 'id' | 'kind'>>;
|
|
1122
1132
|
}
|
|
1123
1133
|
export { MintRolloutResult as $, LabeledScenarioWrite as A, ScoredSurfaceOutcome as B, JudgeDimension as C, LabeledScenarioSampleArgs as D, LabeledScenarioRecord as E, ProposeContext as F, SearchProposerView as G, SurfaceProposer as H, ProposedCandidate as I, searchProposerView as J, SearchSummaryOptions as K, RedactionStatus as L, OptimizerConfig as M, ParetoParent as N, LabeledScenarioSource as O, ProposalTrackContext as P, MintRolloutOptions as Q, Scenario as R, JudgeConfig as S, LabelTrust as T, TraceSpan as U, SessionScript as V, isProposedCandidate as W, SearchStateView as X, SearchState as Y, searchUnitScores as Z, GateDecision as _, CampaignResult as a, SearchCompletion as at, GenerationRecord as b, CampaignTraceWriter as c, SearchOperation as ct, DispatchContext as d, SearchUnitScore as dt, RolloutScrubber as et, DispatchFn as f, searchCellId as ft, GateContribution as g, GateContext as h, CampaignCostMeter as i, SearchCell as it, MutableSurface as j, LabeledScenarioStore as k, CodeSurface as l, SearchScoredCell as lt, GateCheckStatus as m, searchTaskSetDigest as mt, CampaignArtifactWriter as n, mintRolloutRows as nt, CampaignScenarioIdentity as o, SearchDecisionRecord as ot, Gate as p, searchNodeId as pt, renderSearchSummary as q, CampaignCellResult as r, unmintableReasons as rt, CampaignTokenUsage as s, SearchNode as st, CampaignAggregates as t, RolloutSearchLineage as tt, ComponentSurface as u, SearchSpend as ut, GateResult as v, JudgeScore as w, JudgeAggregate as x, GenerationCandidate as y, ScenarioAggregate as z };
|
|
1124
|
-
//# sourceMappingURL=types-
|
|
1134
|
+
//# sourceMappingURL=types-BpIAnRCe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-BpIAnRCe.d.ts","names":[],"sources":["../src/campaign/search-state-identity.ts","../src/campaign/search-state-types.ts","../src/campaign/search-state-indexes.ts","../src/rollout/mint.ts","../src/campaign/search-state-view.ts","../src/campaign/search-state-projection.ts","../src/campaign/search-summary.ts","../src/campaign/types.ts"],"mappings":";;;;;;;;;;;iBAOgB,aAAa,kBAAkB;;iBAK/B,aACd,kBACA,gBACA,gBACA,OAAO,aACP;;iBAMc,oBAAoB,gBAAgB,eAAe;UCDlD;EACf;EACA,UAAU;EACV,OAAO;EACP;EACA;;UAGe;EACf;EACA;EACA;EACA;;;;UAKe;EACf;EACA;EACA;EACA;;;UAIe;EACf;EACA;;EAEA;EACA;;UAGe;EACf;;EAEA;EACA,gBAAgB;EAChB,UAAU;EACV,mBAAmB;;;EAGnB;;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jB,WAAW,MAAM,2BAA2B,KAAK"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as RunSplitTag } from "./run-record-kuOr3BCF.js";
|
|
2
2
|
import { a as CheckerIdentity, n as VerdictCertification, x as VerificationStrategySource } from "./verdict-D_qiBQ6_.js";
|
|
3
|
-
import { R as Scenario, d as DispatchContext } from "./types-
|
|
3
|
+
import { R as Scenario, d as DispatchContext } from "./types-BpIAnRCe.js";
|
|
4
4
|
/** A planned measurement contract. It is not evidence that its checker executed. */
|
|
5
5
|
interface BenchmarkDefinition {
|
|
6
6
|
schemaVersion: 1;
|
|
@@ -211,4 +211,4 @@ declare const BENCHMARK_SPLIT_SEED = "agent-eval-v1";
|
|
|
211
211
|
*/
|
|
212
212
|
declare function deterministicSplit(itemId: string, seed?: string, cuts?: readonly [number, number]): RunSplitTag;
|
|
213
213
|
export { defineBenchmarkResult as _, BenchmarkFamily as a, defineBenchmark as b, BenchmarkRuntimeHooks as c, BenchmarkTaskKind as d, deterministicSplit as f, benchmarkResultEvidenceDigest as g, benchmarkResult as h, BenchmarkEvaluation as i, BenchmarkScenario as l, BenchmarkResult as m, BenchmarkAdapter as n, BenchmarkLoadOptions as o, selectBenchmarkItems as p, BenchmarkDatasetItem as r, BenchmarkResponder as s, BENCHMARK_SPLIT_SEED as t, BenchmarkSource as u, BenchmarkDefinition as v, benchmarkDefinitionDigest as y };
|
|
214
|
-
//# sourceMappingURL=types-
|
|
214
|
+
//# sourceMappingURL=types-DSU3qb_o.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types-
|
|
1
|
+
{"version":3,"file":"types-DSU3qb_o.d.ts","names":[],"sources":["../src/benchmarks/definition.ts","../src/benchmarks/result.ts","../src/benchmarks/types.ts"],"mappings":";;;;UAQiB;EACf;EACA;EACA,QAAQ;IAAoB;;;EAE5B;EACA;IACE;IACA;IACA;;IAEA;;IAEA;;IAEA;;EAEF;IACE,UAAU;IACV,SAAS;IACT;;;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AAU;EACV,MAAM,qBAAqB;;KAGjB,mBAAmB,oBAAoB,uBAAuB;EACxE,UAAU,kBAAkB;EAC5B,MAAM,qBAAqB;EAC3B,SAAS;MACL,QAAQ,aAAa;;;cAoBd;;;;;;;;;;iBAWG,mBACd,gBACA,eACA,mCACC"}
|
package/docs/experiment.md
CHANGED
|
@@ -56,7 +56,7 @@ An arbitrary verifier that returns success does not establish independent eviden
|
|
|
56
56
|
Keep every assigned unit in its original arm, including failed executions.
|
|
57
57
|
Use outcome `0` only when the registered checker established failure.
|
|
58
58
|
Use `null` when a checked outcome is unavailable; missing evidence refuses inference.
|
|
59
|
-
A missing trace is valid only with an independent no-execution source, zero turns, zero billed cost, and checked failure.
|
|
59
|
+
A missing trace is valid only with an independent no-execution source, zero turns, zero billed cost (or a subscription seat), and checked failure.
|
|
60
60
|
The library refuses changed served profile, code revision, or checker revision.
|
|
61
61
|
It also refuses fewer than 40 clusters, fewer than 20 clusters per arm, a dominant cluster, or zero variance.
|
|
62
62
|
|
|
@@ -114,6 +114,16 @@ const decision = decideRandomizedCanary(
|
|
|
114
114
|
if (decision.refusal !== null) throw new Error(decision.refusal)
|
|
115
115
|
```
|
|
116
116
|
|
|
117
|
+
The assignment unit is a customer, a session or a task.
|
|
118
|
+
A customer is clustered by customer, a session by session or customer, and a task by task or repository.
|
|
119
|
+
A repository cluster, like a customer cluster, holds assignments of both arms, so their covariance stays in one contribution.
|
|
120
|
+
|
|
121
|
+
An assignment run on a subscription seat has a known cost basis and no dollar figure.
|
|
122
|
+
Mark it `billingBasis: 'subscription'` with `billedCostUsd: null` and the seat record as `billingSourceId`.
|
|
123
|
+
It counts as billed coverage, so it never refuses as missing billing, and `coverage.<arm>.subscriptionAssignments` counts it.
|
|
124
|
+
An arm's dollar total stays `null` when any of its assignments is billed to a subscription.
|
|
125
|
+
In `joinProspectiveCanaryReceipts`, the billing row's `settlement: 'subscription'` produces that observation.
|
|
126
|
+
|
|
117
127
|
`cohortReceipt` binds the post-cutoff complete roster and the fixed observation snapshot to the prospective protocol.
|
|
118
128
|
`joinProspectiveCanaryReceipts` joins separate assignment, checker, execution, and billing rows before this decision.
|
|
119
129
|
The join is disabled unless the host explicitly enables it.
|
|
@@ -186,6 +196,26 @@ Use the opened handle when the result must follow a particular registration.
|
|
|
186
196
|
Direct helpers such as `computeInterval()` and `executeDecisionRule()` also accept unsealed rules for development.
|
|
187
197
|
They do not establish a link to a registered experiment.
|
|
188
198
|
|
|
199
|
+
### Power for the served canary
|
|
200
|
+
|
|
201
|
+
`clusteredPower` simulates paired contrasts, so it does not describe the canary's unpaired design.
|
|
202
|
+
`randomizedCanaryPower` simulates the canary itself.
|
|
203
|
+
It draws each cluster's success propensity from a Beta distribution with the given control rate and intracluster correlation, randomizes every assignment to an arm, adds the lift to candidate assignments, and runs the decision's own analysis on the result.
|
|
204
|
+
Power is the share of trials where `successCriterionMet` holds, so the cluster floor, the dominant-cluster refusal and the family adjustment all count against it.
|
|
205
|
+
`detectableLift` is the smallest evaluated lift that reaches `targetPower`.
|
|
206
|
+
|
|
207
|
+
```ts
|
|
208
|
+
import { randomizedCanaryPower } from '@tangle-network/agent-eval/experiment'
|
|
209
|
+
|
|
210
|
+
const power = randomizedCanaryPower({
|
|
211
|
+
clusterSizes: Array.from({ length: 60 }, () => 3),
|
|
212
|
+
controlRate: 0.5,
|
|
213
|
+
intraclusterCorrelation: 0.1,
|
|
214
|
+
lifts: [0, 0.1, 0.2, 0.3],
|
|
215
|
+
seed: 7,
|
|
216
|
+
})
|
|
217
|
+
```
|
|
218
|
+
|
|
189
219
|
### Cluster-aware power refusal
|
|
190
220
|
|
|
191
221
|
`clusteredPower()` combines a cluster-count policy with a simulated power curve:
|
package/docs/search-ledger.md
CHANGED
|
@@ -59,6 +59,7 @@ The same code runs in the producer's journal, the kernel, and the Intelligence v
|
|
|
59
59
|
- **Parents:** a node decided `invalid` (by admission or by the divergence rule) never appears as a parent on a later edge.
|
|
60
60
|
- **Attempts:** attempts count from 1 without gaps. A `passed` or `failed` outcome is final; only a retryable `errored` outcome admits another attempt.
|
|
61
61
|
- **Budget:** at every `cell-allocated` and `operation-started` that holds a reservation, committed spend plus open reservations plus the unspent claim reserve plus the new reservation stays within `maxUsd`. A claim cell draws on the unspent claim reserve first, and a cell the reserve covers is admitted even when overspend elsewhere took committed spend past the cap. An event without a reservation is always admitted: the rule admits holds, and refusing to record work would leave a search that can never close. Spend above a reservation is recorded as overspend, never refused. An unknown cost counts as its proven floor. A cost of source `subscription` is known and carries no dollar figure: a seat bills nothing per call, so it counts as known with usd 0 in the spend books, while the procedure registry reports its cell's dollars as null with `costBasis: 'subscription'`, apart from a `free` measured zero and from an unknown cost.
|
|
62
|
+
- **Unknown tokens:** an attempt whose tokens are unknown says why in `cause`, and each cause is a different fact from zero. `not-recorded`: the attempt ran and the record that should hold its count holds none. `partial`: part of the attempt reported, and `lowerBound` carries that part; only a partial count has one. `not-measurable`: the harness or route reports no token counts. A ledger written before causes has none, and its cells read as unclassified. A cell adds a partial count to its sum, which is then a floor; the procedure registry reports `tokens` null, the floor as `tokensFloor`, and the cause and words as `tokensUnknown`.
|
|
62
63
|
- **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
64
|
- **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.
|
|
64
65
|
|
package/docs/trace-contracts.md
CHANGED
|
@@ -110,6 +110,29 @@ A call without captured arguments fails when its tool is called more than once,
|
|
|
110
110
|
Grouping matches arguments exactly: a retry that re-encodes a value (`42.5` vs `"42.50"`) is not recognized as the same call.
|
|
111
111
|
Independent of grouping, a declared write whose call itself errored (including a timeout) and carries no idempotency key always fails — its outcome at the target is unknown, so nothing proves a retry, however it was encoded, would be safe.
|
|
112
112
|
|
|
113
|
+
## Check recorded harness sessions
|
|
114
|
+
|
|
115
|
+
`contractSpansFromHarnessSession` turns a recorded Claude Code or Codex session into the spans a contract reads.
|
|
116
|
+
Each tool call is a `TOOL` span with its arguments as `args` and its input and result text as `input.value` and `output.value`.
|
|
117
|
+
Each assistant message with text is an `LLM` span with that text as `output.value`.
|
|
118
|
+
Calls and messages a fork copied from its parent are left out.
|
|
119
|
+
|
|
120
|
+
The skill-usage readers check each session while they read it: pass `contracts` to `claudeCodeSkillSessions` or `codexSkillSessions`, and each record's `contractChecks` holds, per contract, its status and the violations per rule.
|
|
121
|
+
A rule that matches a command or an answer's text states a procedure, for example that a check's output is never piped into `tail`:
|
|
122
|
+
|
|
123
|
+
```json
|
|
124
|
+
{
|
|
125
|
+
"name": "procedure",
|
|
126
|
+
"rules": [
|
|
127
|
+
{
|
|
128
|
+
"kind": "never",
|
|
129
|
+
"label": "check-output-piped",
|
|
130
|
+
"p": { "kind": "TOOL", "attr": { "input.value": { "$regex": "run-checks[^|\\n]*\\|\\s*tail", "flags": "" } } }
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
}
|
|
134
|
+
```
|
|
135
|
+
|
|
113
136
|
## Rule semantics
|
|
114
137
|
|
|
115
138
|
Every rule reports `pass`, `fail` or `error` in `ContractVerdict.ruleExecutions`.
|
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.17",
|
|
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": {
|