@tangle-network/agent-bench 0.1.0 → 0.3.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/CHANGELOG.md +17 -0
- package/HARNESS.md +302 -0
- package/README.md +26 -1
- package/fixtures/aec-bench.json +18 -0
- package/fixtures/agentbench-dbbench.json +22 -0
- package/fixtures/bfcl.json +45 -0
- package/fixtures/commit0.json +72 -0
- package/fixtures/crag.json +10 -0
- package/fixtures/dabstep.json +22 -0
- package/fixtures/enterpriseops-gym.json +103 -0
- package/fixtures/finresearchbench.json +21 -0
- package/fixtures/finsearchcomp.json +66 -0
- package/fixtures/frames.json +26 -0
- package/fixtures/hotpotqa.json +182 -0
- package/fixtures/nomiracl.json +26 -0
- package/fixtures/open-rag-bench.json +16 -0
- package/fixtures/pier-agent/no-model-task/environment/Dockerfile +16 -0
- package/fixtures/pier-agent/no-model-task/environment/seed/src/status.txt +1 -0
- package/fixtures/pier-agent/no-model-task/instruction.md +6 -0
- package/fixtures/pier-agent/no-model-task/pre_artifacts.sh +6 -0
- package/fixtures/pier-agent/no-model-task/task.toml +35 -0
- package/fixtures/pier-agent/no-model-task/tests/Dockerfile +17 -0
- package/fixtures/pier-agent/no-model-task/tests/seed/src/status.txt +1 -0
- package/fixtures/pier-agent/no-model-task/tests/test.sh +19 -0
- package/fixtures/programbench.json +17 -0
- package/fixtures/ragbench.json +21 -0
- package/fixtures/simpleqa.json +121 -0
- package/fixtures/t2-ragbench.json +13 -0
- package/fixtures/tau2-bench.json +16 -0
- package/fixtures/tau3-banking.json +16 -0
- package/fixtures/toollm.json +28 -0
- package/fixtures/webarena-verified.json +20 -0
- package/package.json +39 -15
- package/pier_agents/__init__.py +18 -0
- package/pier_agents/candidate_contract.py +755 -0
- package/pier_agents/process_boundary.py +321 -0
- package/pier_agents/tangle_candidate.py +907 -0
- package/pier_agents/workspace_boundary.py +368 -0
- package/scripts/appworld_driver.py +359 -0
- package/scripts/cadbench_prepare.py +22 -0
- package/scripts/cadgenbench_hard_parts.py +48 -0
- package/scripts/clbench_codebase_judge.py +73 -0
- package/scripts/commit0_judge.py +170 -0
- package/scripts/dabstep_judge.py +42 -0
- package/scripts/enterpriseops_gym_judge.py +281 -0
- package/scripts/programbench_judge.py +120 -0
- package/scripts/render-gate-chart.mjs +176 -0
- package/scripts/run-package-tests.mjs +56 -0
- package/scripts/terminate-pier-trial.mts +66 -0
- package/scripts/trata-hedge/README.md +56 -0
- package/scripts/trata-hedge/run.sh +60 -0
- package/scripts/trata-hedge/solve.py +83 -0
- package/scripts/verify-packed-consumer.mjs +224 -0
- package/scripts/verify-pier-agent.mts +715 -0
- package/scripts/verify-pier-pair.mts +74 -0
- package/scripts/verify-pier-recovery.mts +139 -0
- package/src/adapters.ts +26 -0
- package/src/benchmarks/_harness.test.mts +178 -0
- package/src/benchmarks/_harness.ts +239 -16
- package/src/benchmarks/agentbench.ts +163 -0
- package/src/benchmarks/appworld.test.mts +15 -9
- package/src/benchmarks/bfcl.ts +346 -0
- package/src/benchmarks/crag.ts +137 -0
- package/src/benchmarks/dabstep.test.mts +70 -0
- package/src/benchmarks/dabstep.ts +212 -0
- package/src/benchmarks/external-adapters.test.mts +150 -0
- package/src/benchmarks/finresearchbench.ts +269 -0
- package/src/benchmarks/humaneval.ts +20 -8
- package/src/benchmarks/nomiracl.ts +180 -0
- package/src/benchmarks/open-rag-bench.ts +153 -0
- package/src/benchmarks/rag-benchmarks.test.mts +138 -0
- package/src/benchmarks/rag-shared.ts +327 -0
- package/src/benchmarks/ragbench.ts +171 -0
- package/src/benchmarks/swe-bench.test.mts +61 -0
- package/src/benchmarks/swe-bench.ts +201 -19
- package/src/benchmarks/t2-ragbench.ts +166 -0
- package/src/benchmarks/tau-bench-shared.ts +214 -0
- package/src/benchmarks/tau2-bench.ts +30 -0
- package/src/benchmarks/tau3-banking.ts +29 -0
- package/src/benchmarks/terminal-bench.test.mts +33 -0
- package/src/benchmarks/terminal-bench.ts +23 -8
- package/src/benchmarks/toollm.ts +254 -0
- package/src/benchmarks/types.ts +42 -0
- package/src/benchmarks/webarena-verified.ts +200 -0
- package/src/commit0-prereqs.sh +0 -0
- package/src/coordination-mcp-container-reach.mts +181 -0
- package/src/decoder-live.mts +1 -1
- package/src/examples/README.md +103 -39
- package/src/examples/benchmark-matrix.mts +101 -0
- package/src/examples/lean-proof-gate.README.md +77 -0
- package/src/examples/lean-proof-gate.mts +162 -0
- package/src/examples/lean-verify.ts +95 -0
- package/src/examples/lean.Dockerfile +12 -0
- package/src/examples/math-demo.mts +9 -7
- package/src/examples/strategy-demo.mts +10 -12
- package/src/gate.ts +3 -2
- package/src/hev-eval.mts +69 -0
- package/src/hev-improve.mts +169 -0
- package/src/hev-structural.mts +688 -0
- package/src/index.ts +73 -0
- package/src/mbpp-structural.mts +662 -0
- package/src/pier-agent.test-fixtures.mts +19 -0
- package/src/pier-agent.test.mts +363 -0
- package/src/pier-agent.ts +657 -0
- package/src/pier-result-grader.mjs +30 -0
- package/src/pier-result-grader.test.mts +62 -0
- package/src/pier-result-grader.ts +108 -0
- package/src/pier-task-outcome.test.mts +117 -0
- package/src/pier-task-outcome.ts +240 -0
- package/src/pier-trial-controller.test.mts +412 -0
- package/src/pier-trial-controller.ts +858 -0
- package/src/pier-trial-supervisor.mjs +352 -0
- package/src/resolve-client.ts +25 -2
- package/src/run-benchmarks-cli.mts +72 -0
- package/src/run-benchmarks-report.ts +66 -0
- package/src/run-benchmarks.test.mts +231 -0
- package/src/run-benchmarks.ts +589 -0
- package/src/smoke-structural-rollout.mts +393 -0
- package/src/swe-bench-env.test.ts +207 -0
- package/src/swe-bench-env.ts +554 -0
- package/src/swe-jail.ts +293 -0
- package/src/swe-self-improve.mts +84 -0
- package/src/swe-structural-judge-policy.test.ts +117 -0
- package/src/swe-structural-judge-policy.ts +133 -0
- package/src/swe-structural-policy.test.ts +124 -0
- package/src/swe-structural-policy.ts +132 -0
- package/src/swe-structural-provenance.test.ts +93 -0
- package/src/swe-structural-provenance.ts +138 -0
- package/src/swe-structural.mts +1260 -0
- package/src/swe-temp.ts +14 -0
- package/src/tb-container-executor.mts +234 -0
- package/src/tb-container-executor.test.mts +99 -0
- package/src/tb-supervisor-sidecar.mts +222 -0
- package/src/trata-gepa.mts +1 -1
- package/steerers/eops-itsm-population.json +1 -0
- package/tb_agents/opencode_refine_agent.py +117 -0
- package/tb_agents/opencode_router_agent.py +406 -0
- package/tb_agents/opencode_supervisor_agent.py +239 -0
- package/tb_agents/script_agent.py +66 -0
package/src/index.ts
CHANGED
|
@@ -11,9 +11,82 @@
|
|
|
11
11
|
* absent, so importing the registry is cheap; running a specific benchmark pulls only its deps.
|
|
12
12
|
*/
|
|
13
13
|
export { ADAPTERS, resolveAdapter } from './adapters'
|
|
14
|
+
export { createCragAdapter } from './benchmarks/crag'
|
|
15
|
+
export { createNoMiraclAdapter } from './benchmarks/nomiracl'
|
|
16
|
+
export { createOpenRagBenchAdapter } from './benchmarks/open-rag-bench'
|
|
17
|
+
export { createRagBenchAdapter } from './benchmarks/ragbench'
|
|
18
|
+
export {
|
|
19
|
+
FINAL_ANSWER_SENTINEL,
|
|
20
|
+
answerScoreToBenchScore,
|
|
21
|
+
contextBlock,
|
|
22
|
+
contextsFrom,
|
|
23
|
+
normalizeAnswer,
|
|
24
|
+
parseCitations,
|
|
25
|
+
parseFinalAnswer,
|
|
26
|
+
ragAnswerOutput,
|
|
27
|
+
scoreAnswerArtifact,
|
|
28
|
+
tokenF1,
|
|
29
|
+
type RagAnswerScore,
|
|
30
|
+
type RagContext,
|
|
31
|
+
} from './benchmarks/rag-shared'
|
|
32
|
+
export { createT2RagBenchAdapter } from './benchmarks/t2-ragbench'
|
|
33
|
+
export {
|
|
34
|
+
createSweBenchAdapter,
|
|
35
|
+
scoreSweReport,
|
|
36
|
+
sweEvaluationArgv,
|
|
37
|
+
swePatchOutput,
|
|
38
|
+
type SweBenchAdapterOptions,
|
|
39
|
+
type SweBenchArtifactCaptureContext,
|
|
40
|
+
type SweBenchCacheLevel,
|
|
41
|
+
} from './benchmarks/swe-bench'
|
|
42
|
+
export {
|
|
43
|
+
runStagedJudge,
|
|
44
|
+
StagedJudgeError,
|
|
45
|
+
type StagedRunCaptureSpec,
|
|
46
|
+
type StagedRunSpec,
|
|
47
|
+
} from './benchmarks/_harness'
|
|
14
48
|
export type {
|
|
15
49
|
BenchmarkAdapter,
|
|
16
50
|
BenchScore,
|
|
17
51
|
BenchTask,
|
|
52
|
+
JudgeArtifactFileReceipt,
|
|
53
|
+
JudgeArtifactReceipt,
|
|
18
54
|
LoadOptions,
|
|
19
55
|
} from './benchmarks/types'
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* The unifier: run a subset of the registry over a matrix of agent cells (harness × model ×
|
|
59
|
+
* persona), each scored by the benchmark's own judge, and rank them.
|
|
60
|
+
*
|
|
61
|
+
* import { runBenchmarks, printBenchmarksReport } from '@tangle-network/agent-bench'
|
|
62
|
+
*/
|
|
63
|
+
export {
|
|
64
|
+
runBenchmarks,
|
|
65
|
+
printBenchmarksReport,
|
|
66
|
+
type BenchCell,
|
|
67
|
+
type BenchShot,
|
|
68
|
+
type BenchCellTaskResult,
|
|
69
|
+
type BenchLeaderboardRow,
|
|
70
|
+
type RunBenchmarksOptions,
|
|
71
|
+
type RunBenchmarksReport,
|
|
72
|
+
} from './run-benchmarks'
|
|
73
|
+
export {
|
|
74
|
+
createPierCandidateRecoveryExecutor,
|
|
75
|
+
executePreparedPierCandidate,
|
|
76
|
+
type ExecutePreparedPierCandidateOptions,
|
|
77
|
+
type PierCandidateGraderPort,
|
|
78
|
+
type PierCandidateOfficialResult,
|
|
79
|
+
type PierCandidateTerminationAcknowledgement,
|
|
80
|
+
type PierCandidateTrialController,
|
|
81
|
+
type PierCandidateTrialHandle,
|
|
82
|
+
type PierCandidateTrialIdentity,
|
|
83
|
+
type PierCandidateTrialResult,
|
|
84
|
+
type StagedPierCandidateExecution,
|
|
85
|
+
} from './pier-agent'
|
|
86
|
+
export {
|
|
87
|
+
FilePierCandidateTrialController,
|
|
88
|
+
type FilePierCandidateTrialControllerOptions,
|
|
89
|
+
type PierCandidateProcessSpec,
|
|
90
|
+
type PierDockerConnection,
|
|
91
|
+
} from './pier-trial-controller'
|
|
92
|
+
export { createPierResultGrader } from './pier-result-grader'
|