@tangle-network/agent-runtime 0.107.3 → 0.107.5
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/agent.d.ts +1 -1
- package/dist/agent.js +1 -1
- package/dist/{index-CeawCSEg.d.ts → index-B3wAV1SJ.d.ts} +12 -4
- package/dist/{index-D6MwUzvB.d.ts → index-BbB5mmK0.d.ts} +4 -4
- package/dist/{index-jmFVBIHo.d.ts → index-D2g5qCwg.d.ts} +2 -2
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/knowledge.d.ts +1 -1
- package/dist/{loop-runner-bin-CvdKZkE4.js → loop-runner-bin-BHELvjdO.js} +2 -2
- package/dist/{loop-runner-bin-CvdKZkE4.js.map → loop-runner-bin-BHELvjdO.js.map} +1 -1
- package/dist/{loop-runner-bin-BbYG9CeA.d.ts → loop-runner-bin-Dw9_OZfu.d.ts} +2 -2
- package/dist/loop-runner-bin.d.ts +1 -1
- package/dist/loop-runner-bin.js +1 -1
- package/dist/loops.d.ts +1 -1
- package/dist/loops.js +1 -1
- package/dist/mcp/index.d.ts +1 -1
- package/dist/mcp/index.js +1 -1
- package/dist/primeintellect/index.d.ts +1 -1
- package/dist/{runtime-5zM5XxLr.js → runtime-M_GIzIwe.js} +17 -10
- package/dist/runtime-M_GIzIwe.js.map +1 -0
- package/dist/testing.js +3433 -595
- package/dist/testing.js.map +1 -1
- package/package.json +4 -4
- package/dist/runtime-5zM5XxLr.js.map +0 -1
|
@@ -7,7 +7,7 @@ import { S as routerChatWithUsage, b as routerBrain, i as withDriverExecutor, o
|
|
|
7
7
|
import { C as observe, O as strategyAuthorMethod, b as sample, v as refine, x as sampleThenRefine, y as runAgentic } from "./structural-rollout-IXUEplky.js";
|
|
8
8
|
import { a as notifySandboxEventObserver, i as mapSandboxToolEvent, r as mapSandboxEvent, t as createSandboxToolPartState } from "./sandbox-events-DeI5xX8P.js";
|
|
9
9
|
import { Bt as runAgentRounds, Dt as createExecutorRegistry, Et as createExecutor, Ht as createSandboxLineage, Kt as gateOnDeliverable, Ot as createWorktreeCliExecutor, Ut as probeSandboxCapabilities, bt as rollingDispatch, t as supervise, zt as defaultSelectWinner } from "./supervise-BiRutHS9.js";
|
|
10
|
-
import { CODING_HARNESSES, InMemoryTraceStore, benjaminiHochberg, buildTrajectory, computeFindingId as computeFindingId$1, confidenceInterval, expandProfileAxes, harnessAxisOf, makeFinding as makeFinding$1, pairedBootstrap,
|
|
10
|
+
import { CODING_HARNESSES, InMemoryTraceStore, benjaminiHochberg, buildTrajectory, computeFindingId as computeFindingId$1, confidenceInterval, expandProfileAxes, harnessAxisOf, makeFinding as makeFinding$1, pairedBootstrap, paretoFrontier, scoreKnowledgeReadiness, wilcoxonSignedRank, wilson } from "@tangle-network/agent-eval";
|
|
11
11
|
import { heldoutSignificance, runProfileMatrix } from "@tangle-network/agent-eval/campaign";
|
|
12
12
|
import { canonicalCandidateDigest, validateAgentProfileSecurity } from "@tangle-network/agent-interface";
|
|
13
13
|
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
@@ -724,7 +724,7 @@ function pairwiseSignificance(records, opts = {}) {
|
|
|
724
724
|
seed: 7,
|
|
725
725
|
statistic: "median"
|
|
726
726
|
});
|
|
727
|
-
const
|
|
727
|
+
const test = wilcoxonSignedRank(aScores, bScores, { seed: 7 });
|
|
728
728
|
raw.push({
|
|
729
729
|
a: labelOf(ka),
|
|
730
730
|
b: labelOf(kb),
|
|
@@ -732,12 +732,16 @@ function pairwiseSignificance(records, opts = {}) {
|
|
|
732
732
|
delta: boot.median,
|
|
733
733
|
ciLow: boot.low,
|
|
734
734
|
ciHigh: boot.high,
|
|
735
|
-
|
|
735
|
+
nonZeroPairs: test.nNonZero,
|
|
736
|
+
testMethod: test.method,
|
|
737
|
+
pFloor: test.pFloor,
|
|
738
|
+
p: test.p
|
|
736
739
|
});
|
|
737
740
|
}
|
|
738
|
-
const { significant } = benjaminiHochberg(raw.map((
|
|
741
|
+
const { qValues, significant } = benjaminiHochberg(raw.map((result) => result.p), opts.fdr ?? .05);
|
|
739
742
|
return raw.map((r, i) => ({
|
|
740
743
|
...r,
|
|
744
|
+
q: qValues[i] ?? 1,
|
|
741
745
|
significant: (significant[i] ?? false) && r.pairs >= minPairs
|
|
742
746
|
}));
|
|
743
747
|
}
|
|
@@ -780,15 +784,18 @@ function renderLeaderboardMarkdown(report) {
|
|
|
780
784
|
function renderPairwiseMarkdown(verdicts, title = "Pairwise significance (paired, BH-corrected)") {
|
|
781
785
|
const lines = [`## ${title}`, ""];
|
|
782
786
|
if (verdicts.length === 0) return lines.concat("_no comparable pairs_").join("\n");
|
|
783
|
-
lines.push("| A vs B | Δ(b−a) median | 95% CI | pairs | p | verdict |");
|
|
784
|
-
lines.push("
|
|
787
|
+
lines.push("| A vs B | Δ(b−a) median | 95% CI | pairs | changed | test | p | p floor | q | verdict |");
|
|
788
|
+
lines.push("|---|--:|--:|--:|--:|---|--:|--:|--:|---|");
|
|
785
789
|
for (const v of verdicts) {
|
|
786
|
-
const verdict = v.significant ? `**${v.delta >= 0 ? v.b : v.a} wins**` : "ns";
|
|
787
|
-
lines.push(`| ${v.a} vs ${v.b} | ${v.delta >= 0 ? "+" : ""}${pct(v.delta)} | [${pct(v.ciLow)}, ${pct(v.ciHigh)}] | ${v.pairs} | ${v.p.
|
|
790
|
+
const verdict = v.nonZeroPairs === 0 ? "tie" : v.significant ? `**${v.delta >= 0 ? v.b : v.a} wins**` : "ns";
|
|
791
|
+
lines.push(`| ${v.a} vs ${v.b} | ${v.delta >= 0 ? "+" : ""}${pct(v.delta)} | [${pct(v.ciLow)}, ${pct(v.ciHigh)}] | ${v.pairs} | ${v.nonZeroPairs} | ${v.testMethod} | ${formatProbability(v.p)} | ${formatProbability(v.pFloor)} | ${formatProbability(v.q)} | ${verdict} |`);
|
|
788
792
|
}
|
|
789
|
-
lines.push("", "> `
|
|
793
|
+
lines.push("", "> `changed` excludes exact ties. `p` is the raw two-sided signed-rank probability; `q` is Benjamini-Hochberg adjusted. `ns` means q did not clear the target or the pair count was below the configured minimum.");
|
|
790
794
|
return lines.join("\n");
|
|
791
795
|
}
|
|
796
|
+
function formatProbability(value) {
|
|
797
|
+
return value > 0 && value < .001 ? value.toExponential(2) : value.toFixed(3);
|
|
798
|
+
}
|
|
792
799
|
function esc(s) {
|
|
793
800
|
return s.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
794
801
|
}
|
|
@@ -5405,4 +5412,4 @@ function tail(s) {
|
|
|
5405
5412
|
//#endregion
|
|
5406
5413
|
export { defineLeaderboard as $, trajectoryReport as A, flatWidenGate as B, strategyAuthorContract as C, sanitizeMcpToolSchema as Ct, runBenchmark as D, secretEnvOfMcpServer as Dt, printBenchmarkReport as E, resolveSecretEnv as Et, registerShape as F, verify as G, panel as H, FileCorpus as I, buildSteerContext as J, widen as K, InMemoryCorpus as L, runPersonified as M, builtinShapes as N, promotionGate as O, createShapeRegistry as P, harvestCorpus as Q, renderCorpusToInstructions as R, authorStrategy as S, createMcpEnvironment as St, openSandboxRun as T, mcpSecretEnvMetadataKey as Tt, pipeline as U, loopUntil as V, selectValidWinner as W, registryScopeAnalyst as X, createScopeAnalyst as Y, inProcessSandboxClient as Z, discriminatingMeans as _, auditIntent as _t, localShell as a, loopCampaignDispatch as at, selectChampion as b, connectStdioMcp as bt, createVerifierEnvironment as c, deterministicCompletion as ct, worktreeFanout as d, leaderboard as dt, dumbDriver as et, analyzeTrace as f, pairwiseSignificance as ft, streamAgentTurn as g, renderPairwiseMarkdown as gt, collectAgentTurn as h, renderLeaderboardSvg as ht, jjWorkspace as i, inlineSandboxClient as it, definePersona as j, equalKOnCost as k, failuresAnalyst as l, sentinelCompletion as lt, runCoderChecks as m, renderLeaderboardMarkdown as mt, makeFinding$1 as n, resolveSandboxClient as nt, runInWorkspace as o, loopDispatch as ot, patchDelivered as p, renderLeaderboardHtml as pt, assertTraceDerivedFindings as q, gitWorkspace as r, localSandboxClient as rt, createWaterfallCollector as s, completionAuthorizes as st, computeFindingId$1 as t, naiveDriver as tt, superviseSurface as u, stopSentinel as ut, pickChampion as v, defaultAuditorInstruction as vt, SandboxRunAbortError as w, envKeyProvider as wt, assertStrategyContract as x, materializeLocalMcp as xt, runStrategyEvolution as y, McpSpawnFault as yt, fanout as z };
|
|
5407
5414
|
|
|
5408
|
-
//# sourceMappingURL=runtime-
|
|
5415
|
+
//# sourceMappingURL=runtime-M_GIzIwe.js.map
|