@tangle-network/agent-eval 1.0.31 → 1.0.32

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/cli.js CHANGED
@@ -7,10 +7,10 @@ import { l as SEARCH_LEDGER_BATCH_MAX_BYTES, m as SearchRunKindSchema, r as ship
7
7
  import { n as createChatClient } from "./chat-client-PJEzoot9.js";
8
8
  import { a as privacyHit, f as appendRolloutLines, n as runRolloutReleaseCli, r as PRIVACY_RULE_NAMES, u as gateReceiptRolloutLines } from "./hf-dataset-Cc81I0vQ.js";
9
9
  import { i as harnessSessionRolloutLines, n as harnessSessionRefs } from "./harness-session-lines-hAxOvmtP.js";
10
- import { t as runAnalystBenchmarkCommand } from "./benchmark-command-wpWa71ul.js";
10
+ import { t as runAnalystBenchmarkCommand } from "./benchmark-command-CTmr-oo4.js";
11
11
  import { i as buildOpenApi, l as handleVersion, o as runRpcBatch, r as startServerAsync, s as runRpcOnce } from "./server-BQbd__Hr.js";
12
12
  import { b as editCreditText, f as landscape, g as surfaceTextEdits, l as metaSearch, m as formatLandscape, n as taskMatrix, o as skillManifold, r as formatSkillManifold, s as renderMetaSearchText, t as tree, v as front, y as editCredit } from "./tree-DA_WI1aV.js";
13
- import { a as analyzeSupervisorRun, i as renderSupervisorRunMarkdown, r as renderSupervisorRunHeadline, t as runtimeRunRolloutLines } from "./runtime-rollouts-eO9qpGE9.js";
13
+ import { a as analyzeSupervisorRun, i as renderSupervisorRunMarkdown, r as renderSupervisorRunHeadline, t as runtimeRunRolloutLines } from "./runtime-rollouts-C_hBaYXe.js";
14
14
  import { createHash } from "node:crypto";
15
15
  import { existsSync, readFileSync, writeFileSync } from "node:fs";
16
16
  import { dirname, join, resolve } from "node:path";
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": "1.0.31",
5
+ "version": "1.0.32",
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.1.0. Bumps on breaking changes to request/response schemas.",
7
7
  "contact": {
8
8
  "name": "Tangle Network",
@@ -1724,7 +1724,8 @@ async function journalFacts(runDir) {
1724
1724
  }
1725
1725
  if (!fact.executions.some((item) => item.captures.some((capture) => capture.ref === event.outRef))) execution.captures.push({
1726
1726
  ref: event.outRef,
1727
- attemptId: fact.attemptId
1727
+ attemptId: fact.attemptId,
1728
+ rowAttemptId: text(event.attemptId)
1728
1729
  });
1729
1730
  }
1730
1731
  }
@@ -1761,6 +1762,13 @@ function extendsSession(previous, next) {
1761
1762
  const { calls, snapshots } = bindings;
1762
1763
  return after.length >= before.length && hashCanonical(jsonDocument(before)) === hashCanonical(jsonDocument(after.slice(0, before.length))) && previous.messages.every((message, index) => next.messages[index]?.id === message.id && next.messages[index]?.modelCallId === message.modelCallId) && previous.modelCalls.every((call) => calls.has(call.id) && calls.get(call.id).toolDefinitionSnapshotId === call.toolDefinitionSnapshotId && calls.get(call.id).provider === call.provider && calls.get(call.id).servedModel === call.servedModel && calls.get(call.id).requestedModel === call.requestedModel) && (previous.toolDefinitionSnapshots ?? []).every((snapshot) => snapshots.has(snapshot.id) && hashCanonical(jsonDocument(snapshots.get(snapshot.id))) === hashCanonical(jsonDocument(snapshot))) && previous.children.every((child) => next.children.some((item) => item.nativeSessionId === child.nativeSessionId && item.toolCallId === child.toolCallId));
1763
1764
  }
1765
+ /** The evidence row names the attempt; older Runtime records carry it in the record's `node`. */
1766
+ function evidenceAttempt(row, recorded) {
1767
+ if (row !== void 0 && recorded !== void 0 && row !== recorded) return { gap: `native evidence attempt differs: execution-evidence row ${row}, record ${recorded}` };
1768
+ const attemptId = row ?? recorded;
1769
+ if (attemptId === void 0) return { gap: "native evidence attempt missing from the execution-evidence row and the record" };
1770
+ return { attemptId };
1771
+ }
1764
1772
  /** Verify every attempt, retaining partial executions as audit evidence. */
1765
1773
  async function nodeSessions(runDir, harness, id, fact, options) {
1766
1774
  const executions = fact.executions.length > 0 ? fact.executions : [{
@@ -1785,7 +1793,8 @@ async function nodeSessions(runDir, harness, id, fact, options) {
1785
1793
  foundCapture = true;
1786
1794
  const binding = recordOrNull(wrapper?.node);
1787
1795
  const rootId = text(binding?.rootId);
1788
- const attemptId = text(binding?.attemptId);
1796
+ const attempt = evidenceAttempt(capture.rowAttemptId, text(binding?.attemptId));
1797
+ const attemptId = attempt.attemptId;
1789
1798
  const receipt = recordOrNull(wrapper?.harnessTranscript);
1790
1799
  const taskRef = text(wrapper?.taskRef);
1791
1800
  const resultRef = text(wrapper?.outRef);
@@ -1793,6 +1802,7 @@ async function nodeSessions(runDir, harness, id, fact, options) {
1793
1802
  let read = [];
1794
1803
  if (value === void 0) reason = "execution evidence blob unavailable, malformed or failed content verification";
1795
1804
  else if (wrapper?.schemaVersion !== 1) reason = "native evidence wrapper failed content verification";
1805
+ else if (attempt.gap !== void 0) reason = attempt.gap;
1796
1806
  else if (!rootId || !attemptId || binding?.nodeId !== id || capture.attemptId !== attemptId || !fact.roots.has(rootId)) reason = "native evidence has no matching execution-bound attempt or spawn root";
1797
1807
  else if (execution.taskRef !== void 0 && taskRef !== execution.taskRef) reason = "native evidence task does not match execution input";
1798
1808
  else if (execution.outRef !== void 0 && resultRef !== execution.outRef) reason = "native evidence result does not match execution output";
@@ -2031,4 +2041,4 @@ async function runtimeRunRolloutLines(runDir, options = {}) {
2031
2041
  }
2032
2042
  export { analyzeSupervisorRun as a, readRuntimeSupervisorRun as c, renderSupervisorRunMarkdown as i, analyzeSupervisorRunSources as l, renderSupervisorRollupMarkdown as n, findSupervisorRunDirs as o, renderSupervisorRunHeadline as r, isRuntimeSupervisorRunDir as s, runtimeRunRolloutLines as t, parsePatch as u };
2033
2043
 
2034
- //# sourceMappingURL=runtime-rollouts-eO9qpGE9.js.map
2044
+ //# sourceMappingURL=runtime-rollouts-C_hBaYXe.js.map