@tangle-network/agent-eval 0.82.0 → 0.84.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/dist/openapi.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "openapi": "3.1.0",
3
3
  "info": {
4
4
  "title": "@tangle-network/agent-eval — wire protocol",
5
- "version": "0.82.0",
5
+ "version": "0.84.0",
6
6
  "description": "HTTP and stdio RPC interface to agent-eval. The TypeScript runtime is the source of truth; this spec is the contract that cross-language clients (Python, Rust, Go) generate from.\n\nWire-protocol version: 1.0.0. Bumps on breaking changes to request/response schemas.",
7
7
  "contact": {
8
8
  "name": "Tangle Network",
@@ -0,0 +1,49 @@
1
+ import { a as RunSplitTag } from './run-record-De9VarXR.js';
2
+
3
+ interface RuntimeTrajectoryHookEvent {
4
+ id: string;
5
+ runId: string;
6
+ scenarioId?: string;
7
+ target: string;
8
+ phase: string;
9
+ timestamp: number;
10
+ stepIndex?: number;
11
+ parentId?: string;
12
+ payload?: unknown;
13
+ metadata?: Record<string, unknown>;
14
+ }
15
+ interface RuntimeTrajectoryRecord {
16
+ id?: string;
17
+ scenarioId?: string;
18
+ splitTag?: RunSplitTag;
19
+ runtimeEvents?: unknown;
20
+ [key: string]: unknown;
21
+ }
22
+ interface RuntimeTrajectoryRunRecord {
23
+ runId: string;
24
+ scenarioId?: string;
25
+ splitTag: RunSplitTag;
26
+ }
27
+ interface RuntimeTrajectoryEvidenceSummary {
28
+ recordCount: number;
29
+ recordWithRuntimeEventsCount: number;
30
+ runtimeRunCount: number;
31
+ lifecycleEventCount: number;
32
+ defaultedSplitCount: number;
33
+ }
34
+ interface RuntimeTrajectoryEvidenceProjection {
35
+ runs: RuntimeTrajectoryRunRecord[];
36
+ events: RuntimeTrajectoryHookEvent[];
37
+ summary: RuntimeTrajectoryEvidenceSummary;
38
+ diagnostics: string[];
39
+ }
40
+ interface ProjectRuntimeTrajectoryEvidenceOptions<TRecord extends RuntimeTrajectoryRecord = RuntimeTrajectoryRecord> {
41
+ records: TRecord[];
42
+ defaultSplitTag?: RunSplitTag;
43
+ recordIdOf?: (record: TRecord, index: number) => string | undefined;
44
+ scenarioIdOf?: (record: TRecord, index: number) => string | undefined;
45
+ }
46
+ declare function projectRuntimeTrajectoryEvidence<TRecord extends RuntimeTrajectoryRecord>(options: ProjectRuntimeTrajectoryEvidenceOptions<TRecord>): RuntimeTrajectoryEvidenceProjection;
47
+ declare function parseRuntimeTrajectoryHookEvent(input: unknown): RuntimeTrajectoryHookEvent | null;
48
+
49
+ export { type ProjectRuntimeTrajectoryEvidenceOptions as P, type RuntimeTrajectoryRecord as R, type RuntimeTrajectoryEvidenceProjection as a, type RuntimeTrajectoryEvidenceSummary as b, type RuntimeTrajectoryHookEvent as c, type RuntimeTrajectoryRunRecord as d, projectRuntimeTrajectoryEvidence as e, parseRuntimeTrajectoryHookEvent as p };
@@ -238,6 +238,8 @@ Follow-up local smoke on 2026-06-05 over 50 recent Codex JSONL sessions under 20
238
238
 
239
239
  Runtime hook bridge on 2026-06-05: `src/belief-state/runtime-hooks.ts` now converts `agent-runtime` decision hooks into outcome-blind shadow-probe inputs, attaches matching lifecycle hook events as probe evidence, and only converts them into full `BeliefDecisionPoint` rows when the observed action is supplied. This keeps `agent-eval` trace/analysis-only while letting the runtime emit producer-backed decision boundaries and context for the next experiment.
240
240
 
241
+ Phase 0 measurement helper on 2026-06-06: `src/belief-state/phase0-measurement.ts` now joins runtime producer decisions, lifecycle evidence, observed action/outcome labels, and `RunRecord` split metadata into completed `BeliefDecisionPoint` rows plus a `BeliefDecisionResearchEvidencePacket`. This closes the local join/packet path; it does not clear the empirical gate until the corpus has >= 200 labeled producer-backed decisions with integrity checks and a recorded baseline.
242
+
241
243
  Taxonomy tightening on 2026-06-05: `src/belief-state/types.ts` now exports stable decision kinds, evidence sources, evidence quality labels, evaluation criteria, and reason codes. The intent is to make future dashboards and paper artifacts aggregate by stable IDs (`calibration`, `ope-support`, `memory-health`, `surface-attribution`, `promotion`, etc.) instead of parsing prose diagnostics.
242
244
 
243
245
  ### Q4 2026 - Phase 1: Selective Prediction and Abstention
@@ -567,6 +569,7 @@ Promotion:
567
569
  | `src/belief-state/report.test.ts` | full report status: `ship`, `hold`, `need_more_data`; recommendation cannot ship on OPE alone. |
568
570
  | `src/belief-state/code-agent-corpus.test.ts` | extracts code-agent decision corpora across Codex, Claude Code, OpenCode, Kimi Code, and Pi/PiGraph-shaped traces; inventories targets; picks failure recovery first; holds when OPE propensities are absent. |
569
571
  | `src/belief-state/runtime-hooks.test.ts` | converts runtime decision hooks to outcome-blind shadow probes; attaches matching lifecycle hook events as evidence; requires observed action for full belief rows; collector stays structurally compatible with runtime hooks. |
572
+ | `tests/belief-state/phase0-measurement.test.ts` | joins runtime producer decisions, lifecycle events, observed labels, and run split metadata into completed rows and a research evidence packet without fabricating missing joins or propensities. |
570
573
  | `src/belief-state/types.test.ts` | guards the stable decision kinds, evidence sources/qualities, evaluation criteria, and reason-code taxonomy. |
571
574
  | `src/meta-eval/calibration.test.ts` | existing `calibrationCurve()` still works after extracting pure helper. |
572
575
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-eval",
3
- "version": "0.82.0",
3
+ "version": "0.84.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": {