@tangle-network/agent-eval 0.172.0 → 0.173.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/CHANGELOG.md +49 -0
- package/README.md +17 -2
- package/dist/adapters/http.d.ts +2 -2
- package/dist/analyst/index.d.ts +13 -13
- package/dist/analyst/index.js +7 -6
- package/dist/analyst/index.js.map +1 -1
- package/dist/{attestation-CJBGmMVh.d.ts → attestation-c1QvaBdX.d.ts} +2 -2
- package/dist/{attestation-CJBGmMVh.d.ts.map → attestation-c1QvaBdX.d.ts.map} +1 -1
- package/dist/{backend-integrity-e79K3UPD.d.ts → backend-integrity-CeuTgqsd.d.ts} +3 -4
- package/dist/backend-integrity-CeuTgqsd.d.ts.map +1 -0
- package/dist/{benchmark-h-h4bfqj.d.ts → benchmark-BjLGkfnN.d.ts} +3 -3
- package/dist/{benchmark-h-h4bfqj.d.ts.map → benchmark-BjLGkfnN.d.ts.map} +1 -1
- package/dist/{benchmark-command-DoFcisuM.js → benchmark-command-9S20PRel.js} +9 -9
- package/dist/{benchmark-command-DoFcisuM.js.map → benchmark-command-9S20PRel.js.map} +1 -1
- package/dist/benchmarks/index.d.ts +5 -5
- package/dist/benchmarks/index.js +3 -3
- package/dist/{bounded-process-CVOC_D3H.js → bounded-process-BBZob7vl.js} +64 -10
- package/dist/bounded-process-BBZob7vl.js.map +1 -0
- package/dist/builder-eval/index.d.ts +3 -3
- package/dist/builder-eval/index.js +2 -2
- package/dist/campaign/index.d.ts +9 -9
- package/dist/campaign/index.js +6 -6
- package/dist/{campaign-Dp35pBbS.js → campaign-pxS0wmo4.js} +8 -8
- package/dist/{campaign-Dp35pBbS.js.map → campaign-pxS0wmo4.js.map} +1 -1
- package/dist/chat-client-Db4bqYfA.js +115 -0
- package/dist/chat-client-Db4bqYfA.js.map +1 -0
- package/dist/{chat-json-call-5Jxna-aV.js → chat-json-call-C26igCih.js} +16 -6
- package/dist/chat-json-call-C26igCih.js.map +1 -0
- package/dist/cli.js +31 -17
- package/dist/cli.js.map +1 -1
- package/dist/{client-BvwNkIRN.js → client-BlLY6o2w.js} +2 -2
- package/dist/{client-BvwNkIRN.js.map → client-BlLY6o2w.js.map} +1 -1
- package/dist/{client-Df7wdslk.d.ts → client-DlqdbM7n.d.ts} +4 -4
- package/dist/{client-Df7wdslk.d.ts.map → client-DlqdbM7n.d.ts.map} +1 -1
- package/dist/contract/index.d.ts +13 -13
- package/dist/contract/index.js +202 -10
- package/dist/contract/index.js.map +1 -1
- package/dist/{counterfactual-Bee5_BIn.d.ts → counterfactual-CLgrwhkY.d.ts} +4 -4
- package/dist/{counterfactual-Bee5_BIn.d.ts.map → counterfactual-CLgrwhkY.d.ts.map} +1 -1
- package/dist/{chat-client-DI79OPye.js → default-registry-B0bKikCb.js} +3 -39
- package/dist/default-registry-B0bKikCb.js.map +1 -0
- package/dist/{default-registry-XxedTLwu.d.ts → default-registry-BKwc8bN5.d.ts} +6 -6
- package/dist/{default-registry-XxedTLwu.d.ts.map → default-registry-BKwc8bN5.d.ts.map} +1 -1
- package/dist/{define-agent-eval-0wW7gFhr.d.ts → define-agent-eval-CY6qdlGV.d.ts} +6 -6
- package/dist/{define-agent-eval-0wW7gFhr.d.ts.map → define-agent-eval-CY6qdlGV.d.ts.map} +1 -1
- package/dist/{define-agent-eval-jS8xj_Q_.js → define-agent-eval-D_i_s69h.js} +7 -7
- package/dist/{define-agent-eval-jS8xj_Q_.js.map → define-agent-eval-D_i_s69h.js.map} +1 -1
- package/dist/{dspy-rlm-engine-CS3qcCEk.js → dspy-rlm-engine-D5byiHn9.js} +5 -6
- package/dist/dspy-rlm-engine-D5byiHn9.js.map +1 -0
- package/dist/{emitter-Bvnu0VzL.d.ts → emitter-Cs0egaFd.d.ts} +3 -3
- package/dist/{emitter-Bvnu0VzL.d.ts.map → emitter-Cs0egaFd.d.ts.map} +1 -1
- package/dist/{engine-BfRay1qD.d.ts → engine-DhFir3Ys.d.ts} +23 -8
- package/dist/{engine-BfRay1qD.d.ts.map → engine-DhFir3Ys.d.ts.map} +1 -1
- package/dist/{eval-campaign-JDTeE6Pl.js → eval-campaign-BeAjdhzC.js} +2 -2
- package/dist/{eval-campaign-JDTeE6Pl.js.map → eval-campaign-BeAjdhzC.js.map} +1 -1
- package/dist/{exact-types-BEecmnWm.d.ts → exact-types-BKOEILRP.d.ts} +2 -2
- package/dist/{exact-types-BEecmnWm.d.ts.map → exact-types-BKOEILRP.d.ts.map} +1 -1
- package/dist/experiment/index.d.ts +4 -4
- package/dist/{external-optimizer-contracts-szBJ_1vh.d.ts → external-optimizer-contracts-CQCpyrIL.d.ts} +2 -2
- package/dist/{external-optimizer-contracts-szBJ_1vh.d.ts.map → external-optimizer-contracts-CQCpyrIL.d.ts.map} +1 -1
- package/dist/{external-optimizer-process-CQxylYeG.js → external-optimizer-process-Cq_Pg15r.js} +2 -2
- package/dist/{external-optimizer-process-CQxylYeG.js.map → external-optimizer-process-Cq_Pg15r.js.map} +1 -1
- package/dist/{external-optimizer-subprocess-Cex8Da2i.js → external-optimizer-subprocess-DgNebftP.js} +2 -2
- package/dist/{external-optimizer-subprocess-Cex8Da2i.js.map → external-optimizer-subprocess-DgNebftP.js.map} +1 -1
- package/dist/failure-cluster-OldNRoAt.d.ts +154 -0
- package/dist/failure-cluster-OldNRoAt.d.ts.map +1 -0
- package/dist/{feedback-trajectory-DIqpCyF0.d.ts → feedback-trajectory-CMnv_uYs.d.ts} +6 -6
- package/dist/{feedback-trajectory-DIqpCyF0.d.ts.map → feedback-trajectory-CMnv_uYs.d.ts.map} +1 -1
- package/dist/{heldout-gate-JgNRDZwZ.d.ts → heldout-gate-Df5hsqmm.d.ts} +7 -7
- package/dist/{heldout-gate-JgNRDZwZ.d.ts.map → heldout-gate-Df5hsqmm.d.ts.map} +1 -1
- package/dist/hosted/index.d.ts +2 -2
- package/dist/hosted/index.js +1 -1
- package/dist/{index-DnglhM0A.d.ts → index-BQqOjerE.d.ts} +94 -13
- package/dist/index-BQqOjerE.d.ts.map +1 -0
- package/dist/{index-_vPrVMRX.d.ts → index-CFDffsKz.d.ts} +11 -11
- package/dist/{index-_vPrVMRX.d.ts.map → index-CFDffsKz.d.ts.map} +1 -1
- package/dist/{index-DDAPhUJJ.d.ts → index-D0Db5X-4.d.ts} +45 -9
- package/dist/index-D0Db5X-4.d.ts.map +1 -0
- package/dist/{index-DMoxLG8P.d.ts → index-e7LXeRVa.d.ts} +3 -3
- package/dist/{index-DMoxLG8P.d.ts.map → index-e7LXeRVa.d.ts.map} +1 -1
- package/dist/index.d.ts +172 -46
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +64 -41
- package/dist/index.js.map +1 -1
- package/dist/{insight-report-08F022xN.d.ts → insight-report-DETqPc_A.d.ts} +4 -4
- package/dist/{insight-report-08F022xN.d.ts.map → insight-report-DETqPc_A.d.ts.map} +1 -1
- package/dist/{integrity-B_EDELom.d.ts → integrity-BKTcA-HP.d.ts} +3 -3
- package/dist/{integrity-B_EDELom.d.ts.map → integrity-BKTcA-HP.d.ts.map} +1 -1
- package/dist/{kind-factory-DMeEoMQZ.js → kind-factory-gP6lDySe.js} +164 -149
- package/dist/kind-factory-gP6lDySe.js.map +1 -0
- package/dist/{llm-client-BFMRpmqb.js → llm-client-CxQtdtd6.js} +12 -5
- package/dist/llm-client-CxQtdtd6.js.map +1 -0
- package/dist/{llm-judge-aQHIk5_-.js → llm-judge-B2YxbAJb.js} +81 -7
- package/dist/{llm-judge-aQHIk5_-.js.map → llm-judge-B2YxbAJb.js.map} +1 -1
- package/dist/{matrix-Ch8JO1pG.d.ts → matrix-DGu8KhSs.d.ts} +2 -2
- package/dist/{matrix-Ch8JO1pG.d.ts.map → matrix-DGu8KhSs.d.ts.map} +1 -1
- package/dist/meta-eval/index.d.ts +100 -5
- package/dist/meta-eval/index.d.ts.map +1 -1
- package/dist/meta-eval/index.js +200 -2
- package/dist/meta-eval/index.js.map +1 -1
- package/dist/{mint-DjfDUMHr.js → mint-vWOdD8Ae.js} +2 -2
- package/dist/{mint-DjfDUMHr.js.map → mint-vWOdD8Ae.js.map} +1 -1
- package/dist/multishot/golden/index.d.ts +1 -1
- package/dist/multishot/index.d.ts +2 -2
- package/dist/openapi.json +1 -1
- package/dist/pipelines/index.d.ts +5 -5
- package/dist/pipelines/index.js +3 -3
- package/dist/{pre-registration-DHz6P_6f.d.ts → pre-registration-BoI4ucR3.d.ts} +2 -2
- package/dist/{pre-registration-DHz6P_6f.d.ts.map → pre-registration-BoI4ucR3.d.ts.map} +1 -1
- package/dist/{produced-state-CxmbFxFd.js → produced-state-7VYDwtkk.js} +3 -3
- package/dist/{produced-state-CxmbFxFd.js.map → produced-state-7VYDwtkk.js.map} +1 -1
- package/dist/{promotion-policy-BBBcz5_3.d.ts → promotion-policy-CvMda3kU.d.ts} +2 -2
- package/dist/{promotion-policy-BBBcz5_3.d.ts.map → promotion-policy-CvMda3kU.d.ts.map} +1 -1
- package/dist/{provenance-Dp-vvyrU.d.ts → provenance-CRY67X50.d.ts} +39 -165
- package/dist/provenance-CRY67X50.d.ts.map +1 -0
- package/dist/{query-BPGMVlbM.js → query-D1nLIKt7.js} +2 -2
- package/dist/{query-BPGMVlbM.js.map → query-D1nLIKt7.js.map} +1 -1
- package/dist/{query-Na5gEIGd.d.ts → query-D6W6MaGx.d.ts} +3 -3
- package/dist/{query-Na5gEIGd.d.ts.map → query-D6W6MaGx.d.ts.map} +1 -1
- package/dist/{registry-xEb_xfns.d.ts → registry-7pOUBrtX.d.ts} +4 -4
- package/dist/{registry-xEb_xfns.d.ts.map → registry-7pOUBrtX.d.ts.map} +1 -1
- package/dist/{release-confidence-D6lQw_o7.d.ts → release-confidence-BAcNYOf1.d.ts} +4 -4
- package/dist/{release-confidence-D6lQw_o7.d.ts.map → release-confidence-BAcNYOf1.d.ts.map} +1 -1
- package/dist/{release-confidence-CzUHc4z4.js → release-confidence-BsGEg_xg.js} +3 -3
- package/dist/{release-confidence-CzUHc4z4.js.map → release-confidence-BsGEg_xg.js.map} +1 -1
- package/dist/reporting.d.ts +3 -3
- package/dist/reporting.js +1 -1
- package/dist/{researcher-CMUTQXD7.d.ts → researcher-jsW1X94L.d.ts} +7 -8
- package/dist/researcher-jsW1X94L.d.ts.map +1 -0
- package/dist/{reward-hacking-SkxYgT0x.js → reward-hacking-CKW4teig.js} +2 -2
- package/dist/{reward-hacking-SkxYgT0x.js.map → reward-hacking-CKW4teig.js.map} +1 -1
- package/dist/{reward-hacking-CgPRUesA.d.ts → reward-hacking-ZXEi9VCq.d.ts} +2 -2
- package/dist/{reward-hacking-CgPRUesA.d.ts.map → reward-hacking-ZXEi9VCq.d.ts.map} +1 -1
- package/dist/rl.d.ts +7 -7
- package/dist/rl.js +4 -4
- package/dist/rollout/index.d.ts +1 -1
- package/dist/rollout/index.js +2 -2
- package/dist/{rollout-Crypdx8s.js → rollout-C-znbbYg.js} +2 -2
- package/dist/{rollout-Crypdx8s.js.map → rollout-C-znbbYg.js.map} +1 -1
- package/dist/{rubric-predictive-validity-DluJLCKQ.d.ts → rubric-predictive-validity-Dl1dvKCv.d.ts} +2 -2
- package/dist/{rubric-predictive-validity-DluJLCKQ.d.ts.map → rubric-predictive-validity-Dl1dvKCv.d.ts.map} +1 -1
- package/dist/{run-record-DQjRcYwA.d.ts → run-record-DTv1MdjK.d.ts} +2 -2
- package/dist/{run-record-DQjRcYwA.d.ts.map → run-record-DTv1MdjK.d.ts.map} +1 -1
- package/dist/{run-record-DLORoL7t.js → run-record-ZIsR9Fif.js} +2 -2
- package/dist/{run-record-DLORoL7t.js.map → run-record-ZIsR9Fif.js.map} +1 -1
- package/dist/{schema-DID1Cqct.d.ts → schema-CR5cpjQ3.d.ts} +57 -2
- package/dist/{schema-DID1Cqct.d.ts.map → schema-CR5cpjQ3.d.ts.map} +1 -1
- package/dist/{schema-CdIX2aHu.js → schema-CSf6qWgZ.js} +35 -1
- package/dist/{schema-CdIX2aHu.js.map → schema-CSf6qWgZ.js.map} +1 -1
- package/dist/semantic-concept-judge-Ct3QU7t5.js +780 -0
- package/dist/semantic-concept-judge-Ct3QU7t5.js.map +1 -0
- package/dist/{series-convergence-D9WgpXGi.d.ts → series-convergence-DeG33RpC.d.ts} +2 -2
- package/dist/{series-convergence-D9WgpXGi.d.ts.map → series-convergence-DeG33RpC.d.ts.map} +1 -1
- package/dist/{server-CCEnywOR.js → server-BR6onwZB.js} +2 -2
- package/dist/{server-CCEnywOR.js.map → server-BR6onwZB.js.map} +1 -1
- package/dist/{skillopt-optimization-method-LHi02MzH.js → skillopt-optimization-method-BzdphODy.js} +6 -6
- package/dist/{skillopt-optimization-method-LHi02MzH.js.map → skillopt-optimization-method-BzdphODy.js.map} +1 -1
- package/dist/{statistical-heldout-Yldkntvy.d.ts → statistical-heldout-DTyB_6-1.d.ts} +3 -3
- package/dist/{statistical-heldout-Yldkntvy.d.ts.map → statistical-heldout-DTyB_6-1.d.ts.map} +1 -1
- package/dist/{store-Cq9oOrI1.d.ts → store-BErPvYBr.d.ts} +2 -2
- package/dist/{store-Cq9oOrI1.d.ts.map → store-BErPvYBr.d.ts.map} +1 -1
- package/dist/{store-otlp-CHjBvWQY.js → store-otlp-Dow0pk_5.js} +2 -2
- package/dist/{store-otlp-CHjBvWQY.js.map → store-otlp-Dow0pk_5.js.map} +1 -1
- package/dist/{store-tool-spans-BvdUbeOB.d.ts → store-tool-spans-CCZNsihA.d.ts} +8 -8
- package/dist/{store-tool-spans-BvdUbeOB.d.ts.map → store-tool-spans-CCZNsihA.d.ts.map} +1 -1
- package/dist/{store-tool-spans-B9o6tU8f.js → store-tool-spans-CeNj_m2L.js} +3 -3
- package/dist/{store-tool-spans-B9o6tU8f.js.map → store-tool-spans-CeNj_m2L.js.map} +1 -1
- package/dist/storyboard/index.d.ts +1 -1
- package/dist/{summary-report-DRstQNBX.d.ts → summary-report-gMrbYawB.d.ts} +3 -3
- package/dist/{summary-report-DRstQNBX.d.ts.map → summary-report-gMrbYawB.d.ts.map} +1 -1
- package/dist/{task-failure-attributes-CBGtLS_H.js → task-failure-attributes-CZjZeBsY.js} +3 -3
- package/dist/{task-failure-attributes-CBGtLS_H.js.map → task-failure-attributes-CZjZeBsY.js.map} +1 -1
- package/dist/{tool-groups-DjwlMBvW.d.ts → tool-groups-Cp4Xdzrp.d.ts} +3 -3
- package/dist/tool-groups-Cp4Xdzrp.d.ts.map +1 -0
- package/dist/{tool-waste-CwGHzBzX.js → tool-waste-B9tdWV6g.js} +253 -6
- package/dist/tool-waste-B9tdWV6g.js.map +1 -0
- package/dist/{tool-waste-BrmLKxMw.d.ts → tool-waste-D23I0zWm.d.ts} +4 -4
- package/dist/{tool-waste-BrmLKxMw.d.ts.map → tool-waste-D23I0zWm.d.ts.map} +1 -1
- package/dist/trace-repair/index.d.ts +2 -2
- package/dist/traces.d.ts +10 -10
- package/dist/traces.js +7 -7
- package/dist/{trajectory-r1bQqvBQ.d.ts → trajectory-D7qrNvaN.d.ts} +3 -3
- package/dist/{trajectory-r1bQqvBQ.d.ts.map → trajectory-D7qrNvaN.d.ts.map} +1 -1
- package/dist/trajectory-replay/index.d.ts +3 -3
- package/dist/{types-CCZ34qmV.d.ts → types-BDV4PiMR.d.ts} +3 -3
- package/dist/{types-CCZ34qmV.d.ts.map → types-BDV4PiMR.d.ts.map} +1 -1
- package/dist/{types-nokrtr7M.d.ts → types-Ba5UQyVD.d.ts} +4 -4
- package/dist/{types-nokrtr7M.d.ts.map → types-Ba5UQyVD.d.ts.map} +1 -1
- package/dist/{types-DMoNFDWi.d.ts → types-DN2WdT5S.d.ts} +3 -3
- package/dist/{types-DMoNFDWi.d.ts.map → types-DN2WdT5S.d.ts.map} +1 -1
- package/dist/types-gvRsyJLh.d.ts +831 -0
- package/dist/types-gvRsyJLh.d.ts.map +1 -0
- package/dist/wire/index.d.ts +3 -3
- package/dist/wire/index.js +1 -1
- package/docs/plants.md +69 -1
- package/docs/public-api.md +6 -4
- package/docs/trace-analysis.md +55 -8
- package/package.json +1 -1
- package/dist/backend-integrity-e79K3UPD.d.ts.map +0 -1
- package/dist/bounded-process-CVOC_D3H.js.map +0 -1
- package/dist/chat-client-DI79OPye.js.map +0 -1
- package/dist/chat-json-call-5Jxna-aV.js.map +0 -1
- package/dist/dspy-rlm-engine-CS3qcCEk.js.map +0 -1
- package/dist/failure-cluster-6YSvsKlp.d.ts +0 -58
- package/dist/failure-cluster-6YSvsKlp.d.ts.map +0 -1
- package/dist/index-DDAPhUJJ.d.ts.map +0 -1
- package/dist/index-DnglhM0A.d.ts.map +0 -1
- package/dist/kind-factory-DMeEoMQZ.js.map +0 -1
- package/dist/llm-client-BFMRpmqb.js.map +0 -1
- package/dist/provenance-Dp-vvyrU.d.ts.map +0 -1
- package/dist/raw-provider-sink-BU29Sh8h.d.ts +0 -134
- package/dist/raw-provider-sink-BU29Sh8h.d.ts.map +0 -1
- package/dist/researcher-CMUTQXD7.d.ts.map +0 -1
- package/dist/semantic-concept-judge-I36eejJx.js +0 -382
- package/dist/semantic-concept-judge-I36eejJx.js.map +0 -1
- package/dist/tool-groups-DjwlMBvW.d.ts.map +0 -1
- package/dist/tool-waste-CwGHzBzX.js.map +0 -1
- package/dist/types-Bfk0uxRj.d.ts +0 -443
- package/dist/types-Bfk0uxRj.d.ts.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { s as RunSplitTag } from "../run-record-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import "../index-
|
|
5
|
-
import { a as BenchmarkFamily, c as BenchmarkSource, i as BenchmarkEvaluation, l as BenchmarkTaskKind, n as BenchmarkAdapter, o as BenchmarkResponder, r as BenchmarkDatasetItem, s as BenchmarkScenario, t as BENCHMARK_SPLIT_SEED, u as deterministicSplit } from "../types-
|
|
1
|
+
import { s as RunSplitTag } from "../run-record-DTv1MdjK.js";
|
|
2
|
+
import { a as CampaignResult } from "../types-Ba5UQyVD.js";
|
|
3
|
+
import { Kn as CampaignStorage } from "../provenance-CRY67X50.js";
|
|
4
|
+
import "../index-CFDffsKz.js";
|
|
5
|
+
import { a as BenchmarkFamily, c as BenchmarkSource, i as BenchmarkEvaluation, l as BenchmarkTaskKind, n as BenchmarkAdapter, o as BenchmarkResponder, r as BenchmarkDatasetItem, s as BenchmarkScenario, t as BENCHMARK_SPLIT_SEED, u as deterministicSplit } from "../types-BDV4PiMR.js";
|
|
6
6
|
//#region src/benchmarks/calibration.d.ts
|
|
7
7
|
interface BenchmarkMetricCalibrationOptions<TPayload = unknown, TArtifact = string> {
|
|
8
8
|
adapter: BenchmarkAdapter<BenchmarkDatasetItem<TPayload>, TPayload, TArtifact>;
|
package/dist/benchmarks/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-8H4AJuhK.js";
|
|
2
|
-
import {
|
|
3
|
-
import { S as fsCampaignStorage } from "../external-optimizer-subprocess-
|
|
4
|
-
import "../campaign-
|
|
2
|
+
import { at as runCampaign } from "../llm-judge-B2YxbAJb.js";
|
|
3
|
+
import { S as fsCampaignStorage } from "../external-optimizer-subprocess-DgNebftP.js";
|
|
4
|
+
import "../campaign-pxS0wmo4.js";
|
|
5
5
|
import { join } from "node:path";
|
|
6
6
|
//#region src/benchmarks/calibration.ts
|
|
7
7
|
async function calibrateBenchmarkMetric(options) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { spawn } from "node:child_process";
|
|
2
|
+
import { StringDecoder } from "node:string_decoder";
|
|
2
3
|
//#region src/bounded-process.ts
|
|
3
4
|
/**
|
|
4
5
|
* `runBoundedProcess` — run one command under a wall-clock bound and return
|
|
@@ -27,7 +28,7 @@ import { spawn } from "node:child_process";
|
|
|
27
28
|
* bytes are discarded and `outputTruncated` is set.
|
|
28
29
|
*/
|
|
29
30
|
/** Wall-clock bound applied when the caller names none. */
|
|
30
|
-
const
|
|
31
|
+
const DEFAULT_BOUNDED_PROCESS_TIMEOUT_MS = 10 * 6e4;
|
|
31
32
|
/** Cap on captured stdout+stderr applied when the caller names none. */
|
|
32
33
|
const DEFAULT_MAX_OUTPUT_BYTES = 16 * 1024 * 1024;
|
|
33
34
|
/**
|
|
@@ -47,13 +48,15 @@ const UNKNOWN_EXIT_CODE = 1;
|
|
|
47
48
|
async function runBoundedProcess(input) {
|
|
48
49
|
const start = Date.now();
|
|
49
50
|
const maxOutputBytes = input.maxOutputBytes ?? DEFAULT_MAX_OUTPUT_BYTES;
|
|
50
|
-
const timeoutMs = input.timeoutMs ??
|
|
51
|
+
const timeoutMs = input.timeoutMs ?? 6e5;
|
|
51
52
|
const envMode = input.envMode ?? "merge";
|
|
52
53
|
const env = input.env === void 0 && envMode === "merge" ? void 0 : envMode === "replace" ? { ...input.env } : {
|
|
53
54
|
...process.env,
|
|
54
55
|
...input.env
|
|
55
56
|
};
|
|
56
57
|
if (input.signal?.aborted) return {
|
|
58
|
+
spawned: false,
|
|
59
|
+
stdinDelivered: true,
|
|
57
60
|
exitCode: ABORT_EXIT_CODE,
|
|
58
61
|
stdout: "",
|
|
59
62
|
stderr: "",
|
|
@@ -63,13 +66,57 @@ async function runBoundedProcess(input) {
|
|
|
63
66
|
outputTruncated: false,
|
|
64
67
|
runnerError: "aborted before spawn: the AbortSignal was already aborted"
|
|
65
68
|
};
|
|
69
|
+
if (input.args !== void 0 && input.shell) return {
|
|
70
|
+
spawned: false,
|
|
71
|
+
stdinDelivered: true,
|
|
72
|
+
exitCode: SPAWN_FAILURE_EXIT_CODE,
|
|
73
|
+
stdout: "",
|
|
74
|
+
stderr: "",
|
|
75
|
+
wallMs: Date.now() - start,
|
|
76
|
+
killedByTimeout: false,
|
|
77
|
+
killedBySignal: false,
|
|
78
|
+
outputTruncated: false,
|
|
79
|
+
runnerError: "not spawned: `args` passes an argument vector directly to the program, so a shell cannot interpret it — pass `args` or a truthy `shell`, never both"
|
|
80
|
+
};
|
|
66
81
|
return await new Promise((resolve) => {
|
|
67
|
-
const
|
|
68
|
-
shell: input.shell ?? true,
|
|
82
|
+
const spawnOptions = {
|
|
69
83
|
cwd: input.cwd,
|
|
70
84
|
env,
|
|
71
85
|
detached: process.platform !== "win32"
|
|
72
|
-
}
|
|
86
|
+
};
|
|
87
|
+
let child;
|
|
88
|
+
try {
|
|
89
|
+
child = input.args === void 0 ? spawn(input.command, {
|
|
90
|
+
...spawnOptions,
|
|
91
|
+
shell: input.shell ?? true
|
|
92
|
+
}) : spawn(input.command, input.args, {
|
|
93
|
+
...spawnOptions,
|
|
94
|
+
shell: false
|
|
95
|
+
});
|
|
96
|
+
} catch (err) {
|
|
97
|
+
resolve({
|
|
98
|
+
spawned: false,
|
|
99
|
+
stdinDelivered: true,
|
|
100
|
+
exitCode: SPAWN_FAILURE_EXIT_CODE,
|
|
101
|
+
stdout: "",
|
|
102
|
+
stderr: "",
|
|
103
|
+
wallMs: Date.now() - start,
|
|
104
|
+
killedByTimeout: false,
|
|
105
|
+
killedBySignal: false,
|
|
106
|
+
outputTruncated: false,
|
|
107
|
+
runnerError: String(err)
|
|
108
|
+
});
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
let stdinError;
|
|
112
|
+
const childStdin = child.stdin;
|
|
113
|
+
if (childStdin) {
|
|
114
|
+
childStdin.on("error", (err) => {
|
|
115
|
+
if (input.stdin !== void 0) stdinError ??= `stdin not delivered: ${String(err)}`;
|
|
116
|
+
});
|
|
117
|
+
if (input.stdin === void 0) childStdin.end();
|
|
118
|
+
else childStdin.end(input.stdin, "utf8");
|
|
119
|
+
} else if (input.stdin !== void 0) stdinError = "stdin not delivered: the child was spawned with no stdin pipe";
|
|
73
120
|
let stdout = "";
|
|
74
121
|
let stderr = "";
|
|
75
122
|
let outputBytes = 0;
|
|
@@ -91,12 +138,15 @@ async function runBoundedProcess(input) {
|
|
|
91
138
|
outputBytes += s.length;
|
|
92
139
|
return s;
|
|
93
140
|
}
|
|
141
|
+
const stdoutDecoder = new StringDecoder("utf8");
|
|
142
|
+
const stderrDecoder = new StringDecoder("utf8");
|
|
143
|
+
const decode = (decoder, d) => Buffer.isBuffer(d) ? decoder.write(d) : String(d);
|
|
94
144
|
const onStdout = (d) => {
|
|
95
|
-
const chunk = capture(
|
|
145
|
+
const chunk = capture(decode(stdoutDecoder, d));
|
|
96
146
|
if (chunk) stdout += chunk;
|
|
97
147
|
};
|
|
98
148
|
const onStderr = (d) => {
|
|
99
|
-
const chunk = capture(
|
|
149
|
+
const chunk = capture(decode(stderrDecoder, d));
|
|
100
150
|
if (chunk) stderr += chunk;
|
|
101
151
|
};
|
|
102
152
|
child.stdout?.on("data", onStdout);
|
|
@@ -115,7 +165,10 @@ async function runBoundedProcess(input) {
|
|
|
115
165
|
if (settled) return;
|
|
116
166
|
settled = true;
|
|
117
167
|
cleanup();
|
|
168
|
+
const spawned = outcome.spawned ?? true;
|
|
118
169
|
resolve({
|
|
170
|
+
spawned,
|
|
171
|
+
stdinDelivered: spawned ? stdinError === void 0 : true,
|
|
119
172
|
exitCode: exitCodeFor(outcome.code, killedByTimeout, killedBySignal),
|
|
120
173
|
stdout,
|
|
121
174
|
stderr,
|
|
@@ -123,7 +176,7 @@ async function runBoundedProcess(input) {
|
|
|
123
176
|
killedByTimeout,
|
|
124
177
|
killedBySignal,
|
|
125
178
|
outputTruncated,
|
|
126
|
-
runnerError: outcome.runnerError
|
|
179
|
+
runnerError: outcome.runnerError ?? stdinError
|
|
127
180
|
});
|
|
128
181
|
};
|
|
129
182
|
const killTree = () => {
|
|
@@ -159,6 +212,7 @@ async function runBoundedProcess(input) {
|
|
|
159
212
|
if (forceResolve) clearTimeout(forceResolve);
|
|
160
213
|
finish({
|
|
161
214
|
code: SPAWN_FAILURE_EXIT_CODE,
|
|
215
|
+
spawned: false,
|
|
162
216
|
runnerError: String(err)
|
|
163
217
|
});
|
|
164
218
|
});
|
|
@@ -176,6 +230,6 @@ function exitCodeFor(code, killedByTimeout, killedBySignal) {
|
|
|
176
230
|
return code ?? UNKNOWN_EXIT_CODE;
|
|
177
231
|
}
|
|
178
232
|
//#endregion
|
|
179
|
-
export { runBoundedProcess as t };
|
|
233
|
+
export { runBoundedProcess as n, DEFAULT_BOUNDED_PROCESS_TIMEOUT_MS as t };
|
|
180
234
|
|
|
181
|
-
//# sourceMappingURL=bounded-process-
|
|
235
|
+
//# sourceMappingURL=bounded-process-BBZob7vl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bounded-process-BBZob7vl.js","names":[],"sources":["../src/bounded-process.ts"],"sourcesContent":["/**\n * `runBoundedProcess` — run one command under a wall-clock bound and return\n * what it produced, leaving no descendant behind.\n *\n * The child leads its own process group (`detached` on every non-win32\n * platform), so a deadline or an abort kills the group with\n * `process.kill(-pid, 'SIGKILL')` rather than only the shell that was\n * spawned. That distinction is the whole point of this module: `sh -c\n * 'solver & wait'` puts the real work in a grandchild, and a kill aimed at\n * the shell alone leaves that grandchild running, holding the stdout and\n * stderr pipes open. `close` then never fires, so the deadline produces no\n * result the caller can observe and the descendant outlives the run.\n *\n * Two further guarantees the caller depends on:\n *\n * - A killed run never reports success. A SIGKILLed child can still close\n * with exit code 0, so a run killed by the deadline or by an abort has\n * its exit code forced non-zero.\n * - A run always resolves. If a grandchild escaped the group and still\n * holds the pipes, the result is delivered {@link KILL_DRAIN_MS} after\n * the kill instead of waiting on a `close` that will not come.\n *\n * The captured output is bounded. Once the cap is reached the streams are\n * still drained — the child needs its pipes read to reach `close` — but the\n * bytes are discarded and `outputTruncated` is set.\n */\n\nimport { spawn } from 'node:child_process'\nimport { StringDecoder } from 'node:string_decoder'\n\n/** Wall-clock bound applied when the caller names none. */\nexport const DEFAULT_BOUNDED_PROCESS_TIMEOUT_MS = 10 * 60_000\n\n/** Cap on captured stdout+stderr applied when the caller names none. */\nconst DEFAULT_MAX_OUTPUT_BYTES = 16 * 1024 * 1024\n\n/**\n * Window `close` is given after the process group is killed. A grandchild\n * that escaped the group can hold the pipes open indefinitely; the caller\n * receives its result at the end of this window rather than hanging.\n */\nconst KILL_DRAIN_MS = 2000\n\n/** Exit code reported for a run the wall-clock bound killed (GNU `timeout`). */\nconst TIMEOUT_EXIT_CODE = 124\n\n/** Exit code reported for a run an `AbortSignal` killed (128 + SIGKILL). */\nconst ABORT_EXIT_CODE = 137\n\n/** Exit code reported when the process could not be spawned at all. */\nconst SPAWN_FAILURE_EXIT_CODE = 127\n\n/** Exit code reported when a process closed with no code and was not killed. */\nconst UNKNOWN_EXIT_CODE = 1\n\nexport interface BoundedProcessInput {\n /**\n * The command line, interpreted by a shell unless `shell` is `false`. When\n * {@link BoundedProcessInput.args} is present this is a program path\n * instead, and no shell reads it.\n */\n command: string\n /**\n * Argument vector for `command`, delivered to the program as separate\n * argv entries with no shell between them.\n *\n * This is the form to use whenever an argument carries text the caller did\n * not author — a script body, a path, a pattern. Without it, `interpreter\n * -flag <script>` can only be expressed by quoting the script into a\n * shell string, and a quoting bug there is a command injection rather than\n * a wrong answer. Each entry arrives verbatim, so there is nothing to\n * quote: `{ command: 'bash', args: ['-n', '-c', body] }` parses `body`\n * whatever shell metacharacters it holds.\n *\n * Two limits are the platform's, not this module's. A NUL byte in an entry\n * cannot be passed to a process at all, and is reported as a `runnerError`\n * rather than thrown. A lone surrogate is encoded to UTF-8 as U+FFFD, and a\n * non-string entry from an untypechecked caller is coerced with `String()`,\n * so an entry is verbatim exactly when it is a string a UTF-8 argv can hold.\n *\n * A shell cannot interpret an argument vector, so `args` and a truthy\n * `shell` are contradictory. Passing both spawns nothing and reports\n * `runnerError`.\n */\n args?: string[]\n /**\n * Text written to the child's standard input. The stream is closed after\n * the write, so a command that reads until end-of-file sees exactly this\n * payload and then EOF.\n *\n * The child's stdin is closed whether or not this field is present. A pipe\n * nobody closes is a hang: a command that reads stdin waits for bytes that\n * never arrive until the deadline kills it, which reads downstream as a\n * slow command rather than as a caller that forgot to send input.\n *\n * The payload is written as UTF-8 and is otherwise verbatim: a NUL byte,\n * a newline, a quote and a backslash all arrive as themselves, because\n * nothing parses this text. The one platform limit is the one `args`\n * already states — a lone surrogate is encoded as U+FFFD, since no UTF-8\n * stream can carry it.\n *\n * A child that exits before reading breaks the pipe. That is the child's\n * behaviour, not a runner failure, so the run still settles on the child's\n * own exit code, and the undelivered payload is reported in `runnerError`\n * with the `stdin not delivered:` prefix. Whether a SMALL payload to a\n * command that ignores stdin reports this is a race — the write may land in\n * the pipe buffer before the child exits — so the flag is a statement about\n * delivery, never about the command. It is not a race for the case that\n * matters: a payload larger than the pipe buffer that the child never\n * drains cannot be delivered, and reports every time.\n */\n stdin?: string\n /**\n * Shell that interprets `command`. `true` (the default) uses the platform\n * default — `/bin/sh` on POSIX, `cmd.exe` on Windows. A string names the\n * shell binary, e.g. `'bash'`, which is required for a bash-only construct\n * such as `[[ ]]` or `$BASH_VERSION`. `false` executes `command` directly\n * as a program path with no arguments. Ignored — and refused when truthy —\n * once {@link BoundedProcessInput.args} is present.\n */\n shell?: boolean | string\n /** Working directory. The parent's cwd is inherited when omitted. */\n cwd?: string\n /**\n * Environment for the child. How it combines with the parent environment\n * is decided by {@link BoundedProcessInput.envMode}.\n */\n env?: NodeJS.ProcessEnv\n /**\n * `'merge'` (the default) layers `env` on top of `process.env`, so the\n * child sees every variable this process has plus the named ones.\n * `'replace'` passes exactly `env` and nothing else, which is what a\n * grader needs when the claim under test is about the variables the\n * command could read. `PATH` is not re-added under `'replace'`, and a\n * command that must find a binary on `PATH` names `PATH` itself.\n *\n * With no `PATH` in the child environment the two forms do NOT search the\n * same directories, so a caller under `'replace'` that names no `PATH` gets\n * a resolution that depends on which form it picked. The shell form execs\n * the shell, which applies its own compiled-in default; the argv form\n * reaches `execvp`, which falls back to `confstr(_CS_PATH)`. Measured on\n * Linux/glibc: `/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin`\n * against `/bin:/usr/bin`, so a binary in `/usr/local/bin` resolves on the\n * shell form and reports ENOENT on the argv form. Name `PATH` and both\n * forms search exactly what was named.\n */\n envMode?: 'merge' | 'replace'\n /** Wall-clock bound in ms. Defaults to 10 minutes. */\n timeoutMs?: number\n /**\n * Cap on captured stdout+stderr. Reaching it truncates the captured text\n * and sets `outputTruncated`; it never kills the process. Defaults to\n * 16 MiB.\n */\n maxOutputBytes?: number\n /**\n * Kills the process group when it aborts, the same way the deadline does.\n * A signal that is already aborted when `runBoundedProcess` is called\n * prevents the spawn entirely — nothing runs.\n */\n signal?: AbortSignal\n}\n\nexport interface BoundedProcessResult {\n /**\n * The process actually started. False when nothing ran at all: an\n * already-aborted signal, `args` with a truthy `shell`, an argument the\n * platform refuses, or a program that does not exist.\n *\n * This is the field to branch on, never the text of `runnerError`. A caller\n * deciding whether a run produced an outcome at all is asking exactly this,\n * and asking it here is type-checked rather than held by a wording\n * convention.\n */\n spawned: boolean\n /**\n * The `stdin` payload reached the child in full. True whenever the caller\n * supplied none, because nothing could fail to arrive.\n *\n * False means the command ran on partial input, which is a fact about the\n * answer it produced: a checksum over a truncated payload is a wrong answer,\n * not a failed run. `spawned` stays true and `exitCode` stays the child's.\n */\n stdinDelivered: boolean\n /**\n * Exit code. Forced non-zero whenever `killedByTimeout` or\n * `killedBySignal` is set, because a SIGKILLed child can close with 0 and\n * a killed run must never read as a pass.\n */\n exitCode: number\n /** Captured stdout, truncated at `maxOutputBytes`. */\n stdout: string\n /**\n * Captured stderr, truncated at `maxOutputBytes`. A runner-side failure is\n * reported in `runnerError`, not appended here; the caller decides whether\n * the command's own stderr and the runner's diagnosis belong together.\n */\n stderr: string\n /** Wall-clock duration in ms, measured across the whole call. */\n wallMs: number\n /** The wall-clock bound was reached and the process group was killed. */\n killedByTimeout: boolean\n /** `signal` aborted and the process group was killed. */\n killedBySignal: boolean\n /** `maxOutputBytes` was reached and later output was discarded. */\n outputTruncated: boolean\n /**\n * Human-readable diagnosis of a runner-side failure, in one of three shapes:\n *\n * - `not spawned:` — the caller's own bug, such as `args` with a truthy\n * `shell`, or an already-aborted signal. No retry helps.\n * - `stdin not delivered:` — the command ran and exited on its own, and\n * the stdin payload did not reach it in full because the child closed\n * the pipe first.\n * - anything else — the process could not be spawned (a missing binary, a\n * NUL byte in an argument).\n *\n * Absent when the command ran and read everything it was sent, however it\n * exited. The prefixes are for a person reading a log; code reads `spawned`\n * and `stdinDelivered`, which say the same things and are type-checked.\n */\n runnerError?: string\n}\n\nexport async function runBoundedProcess(input: BoundedProcessInput): Promise<BoundedProcessResult> {\n const start = Date.now()\n const maxOutputBytes = input.maxOutputBytes ?? DEFAULT_MAX_OUTPUT_BYTES\n const timeoutMs = input.timeoutMs ?? DEFAULT_BOUNDED_PROCESS_TIMEOUT_MS\n const envMode = input.envMode ?? 'merge'\n const env =\n input.env === undefined && envMode === 'merge'\n ? undefined\n : envMode === 'replace'\n ? { ...input.env }\n : { ...process.env, ...input.env }\n\n if (input.signal?.aborted) {\n return {\n spawned: false,\n stdinDelivered: true,\n exitCode: ABORT_EXIT_CODE,\n stdout: '',\n stderr: '',\n wallMs: Date.now() - start,\n killedByTimeout: false,\n killedBySignal: true,\n outputTruncated: false,\n runnerError: 'aborted before spawn: the AbortSignal was already aborted',\n }\n }\n\n // Reported rather than thrown, because this module's contract is that a\n // call always resolves. A caller bug still reads as a failure and never as\n // a pass: the exit code is non-zero and `runnerError` names the cause.\n if (input.args !== undefined && input.shell) {\n return {\n spawned: false,\n stdinDelivered: true,\n exitCode: SPAWN_FAILURE_EXIT_CODE,\n stdout: '',\n stderr: '',\n wallMs: Date.now() - start,\n killedByTimeout: false,\n killedBySignal: false,\n outputTruncated: false,\n // Shares `SPAWN_FAILURE_EXIT_CODE` with a program that does not exist,\n // because both mean nothing ran. The `not spawned:` prefix is the stable\n // discriminator: it marks the caller's own bug, which no retry fixes.\n runnerError:\n 'not spawned: `args` passes an argument vector directly to the program, so a shell ' +\n 'cannot interpret it — pass `args` or a truthy `shell`, never both',\n }\n }\n\n return await new Promise<BoundedProcessResult>((resolve) => {\n const spawnOptions = {\n cwd: input.cwd,\n env,\n // Own process group so a kill reaches the whole tree, not just the\n // shell — otherwise a runaway grandchild keeps the pipes open and\n // `close` never fires.\n detached: process.platform !== 'win32',\n }\n // The argv form takes the same bounds, the same group and the same kill\n // path. Two things differ, and both are stated where they are decided:\n // no shell reads the command, and executable lookup falls back to a\n // different default `PATH` when the caller names none (see `envMode`).\n //\n // `spawn` validates its arguments and THROWS synchronously — a NUL byte in\n // `command` or in an `args` entry, or an `args` that is not an array from\n // an untypechecked caller. A throw inside this executor would reject, and\n // this module's contract is that a call always resolves. A caller that\n // grades untrusted text must be able to score that text as failed rather\n // than die on it.\n let child: ReturnType<typeof spawn>\n try {\n child =\n input.args === undefined\n ? spawn(input.command, { ...spawnOptions, shell: input.shell ?? true })\n : spawn(input.command, input.args, { ...spawnOptions, shell: false })\n } catch (err) {\n resolve({\n spawned: false,\n stdinDelivered: true,\n exitCode: SPAWN_FAILURE_EXIT_CODE,\n stdout: '',\n stderr: '',\n wallMs: Date.now() - start,\n killedByTimeout: false,\n killedBySignal: false,\n outputTruncated: false,\n runnerError: String(err),\n })\n return\n }\n // A pipe nobody closes is a hang, so stdin is always ended — after the\n // payload when there is one, immediately when there is not. A write that\n // fails is recorded and never thrown: the child already ran, and this\n // module's contract is that a call always resolves.\n let stdinError: string | undefined\n const childStdin = child.stdin\n if (childStdin) {\n childStdin.on('error', (err) => {\n // Closing an unused pipe races a command that exits at once, and that\n // broken pipe says nothing about a caller who sent nothing. Only a\n // payload the caller supplied can fail to be delivered.\n if (input.stdin !== undefined) stdinError ??= `stdin not delivered: ${String(err)}`\n })\n if (input.stdin === undefined) childStdin.end()\n else childStdin.end(input.stdin, 'utf8')\n } else if (input.stdin !== undefined) {\n stdinError = 'stdin not delivered: the child was spawned with no stdin pipe'\n }\n\n let stdout = ''\n let stderr = ''\n let outputBytes = 0\n let outputTruncated = false\n let killedByTimeout = false\n let killedBySignal = false\n let settled = false\n\n // Bound the in-memory buffer so a runaway process can't OOM the caller.\n // Once the cap is hit the streams are still drained (the child needs them\n // read to reach `close`) but the bytes are discarded.\n function capture(s: string): string {\n if (outputBytes >= maxOutputBytes) {\n outputTruncated = true\n return ''\n }\n const room = maxOutputBytes - outputBytes\n if (s.length > room) {\n outputBytes = maxOutputBytes\n outputTruncated = true\n return s.slice(0, room)\n }\n outputBytes += s.length\n return s\n }\n\n // Decoded across chunk boundaries. A stream arrives as Buffers split at\n // arbitrary byte offsets, so decoding each chunk on its own replaces any\n // multi-byte character that straddles a boundary with U+FFFD — the output\n // is then corrupted at every 64 KiB of non-ASCII text. The decoder holds\n // the partial sequence until its remaining bytes arrive.\n const stdoutDecoder = new StringDecoder('utf8')\n const stderrDecoder = new StringDecoder('utf8')\n const decode = (decoder: StringDecoder, d: unknown): string =>\n Buffer.isBuffer(d) ? decoder.write(d) : String(d)\n\n const onStdout = (d: unknown) => {\n const chunk = capture(decode(stdoutDecoder, d))\n if (chunk) stdout += chunk\n }\n const onStderr = (d: unknown) => {\n const chunk = capture(decode(stderrDecoder, d))\n if (chunk) stderr += chunk\n }\n\n child.stdout?.on('data', onStdout)\n child.stderr?.on('data', onStderr)\n\n let forceResolve: ReturnType<typeof setTimeout> | undefined\n\n const cleanup = () => {\n clearTimeout(timeout)\n if (forceResolve) clearTimeout(forceResolve)\n input.signal?.removeEventListener('abort', onAbort)\n child.stdout?.off('data', onStdout)\n child.stderr?.off('data', onStderr)\n // The stdin `error` listener stays attached on purpose: a stream that\n // emits `error` with no listener throws, and a late EPIPE after the run\n // has settled must not take the process down.\n child.removeAllListeners('close')\n child.removeAllListeners('error')\n }\n\n // Resolve exactly once. `code` comes from `close`; on a kill path the\n // exit code is forced non-zero so a SIGKILLed child that reports 0 can\n // never read as a clean pass downstream.\n const finish = (outcome: { code: number | null; spawned?: boolean; runnerError?: string }) => {\n if (settled) return\n settled = true\n cleanup()\n const spawned = outcome.spawned ?? true\n resolve({\n spawned,\n // A program that never started was sent nothing, whatever the write to\n // its doomed pipe reported.\n stdinDelivered: spawned ? stdinError === undefined : true,\n exitCode: exitCodeFor(outcome.code, killedByTimeout, killedBySignal),\n stdout,\n stderr,\n wallMs: Date.now() - start,\n killedByTimeout,\n killedBySignal,\n outputTruncated,\n runnerError: outcome.runnerError ?? stdinError,\n })\n }\n\n // SIGKILL the whole process group (we spawned detached). On a clean close\n // this never runs.\n const killTree = () => {\n try {\n if (process.platform !== 'win32' && typeof child.pid === 'number') {\n process.kill(-child.pid, 'SIGKILL')\n } else {\n child.kill('SIGKILL')\n }\n } catch (err) {\n // ESRCH means the group exited between the decision to kill and the\n // signal, which `close` reports on its own. Anything else means the\n // group may still be running, which the caller must hear about.\n if ((err as NodeJS.ErrnoException)?.code !== 'ESRCH') {\n console.warn('[bounded-process] SIGKILL of the process group failed:', err)\n }\n }\n }\n\n // Give `close` a brief window to fire (flushing any final output) after\n // the group dies; if an orphaned grandchild keeps the pipes open, resolve\n // anyway so the caller can't hang on a runaway. The deadline and an abort\n // can both fire, so the kill happens at most once and the drain window is\n // not restarted by the second one.\n let killed = false\n const killAndDrain = () => {\n if (killed) return\n killed = true\n killTree()\n forceResolve = setTimeout(() => finish({ code: null }), KILL_DRAIN_MS)\n }\n\n function onAbort() {\n if (settled) return\n killedBySignal = true\n killAndDrain()\n }\n\n const timeout = setTimeout(() => {\n killedByTimeout = true\n killAndDrain()\n }, timeoutMs)\n\n input.signal?.addEventListener('abort', onAbort, { once: true })\n\n child.on('close', (code) => {\n if (forceResolve) clearTimeout(forceResolve)\n finish({ code })\n })\n child.on('error', (err) => {\n if (forceResolve) clearTimeout(forceResolve)\n // `error` on a child means the program never started — a missing binary,\n // a refused argument. Nothing ran, whatever the stdin write did.\n finish({ code: SPAWN_FAILURE_EXIT_CODE, spawned: false, runnerError: String(err) })\n })\n })\n}\n\n/**\n * A killed run reports the code the child closed with only when that code is\n * already non-zero; otherwise it reports the conventional code for the kind\n * of kill. A run that closed on its own with no code at all reports 1.\n */\nfunction exitCodeFor(\n code: number | null,\n killedByTimeout: boolean,\n killedBySignal: boolean,\n): number {\n if (code !== null && code !== 0) return code\n if (killedByTimeout) return TIMEOUT_EXIT_CODE\n if (killedBySignal) return ABORT_EXIT_CODE\n return code ?? UNKNOWN_EXIT_CODE\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BA,MAAa,qCAAqC,KAAK;;AAGvD,MAAM,2BAA2B,KAAK,OAAO;;;;;;AAO7C,MAAM,gBAAgB;;AAGtB,MAAM,oBAAoB;;AAG1B,MAAM,kBAAkB;;AAGxB,MAAM,0BAA0B;;AAGhC,MAAM,oBAAoB;AA2K1B,eAAsB,kBAAkB,OAA2D;CACjG,MAAM,QAAQ,KAAK,IAAI;CACvB,MAAM,iBAAiB,MAAM,kBAAkB;CAC/C,MAAM,YAAY,MAAM,aAAA;CACxB,MAAM,UAAU,MAAM,WAAW;CACjC,MAAM,MACJ,MAAM,QAAQ,KAAA,KAAa,YAAY,UACnC,KAAA,IACA,YAAY,YACV,EAAE,GAAG,MAAM,IAAI,IACf;EAAE,GAAG,QAAQ;EAAK,GAAG,MAAM;CAAI;CAEvC,IAAI,MAAM,QAAQ,SAChB,OAAO;EACL,SAAS;EACT,gBAAgB;EAChB,UAAU;EACV,QAAQ;EACR,QAAQ;EACR,QAAQ,KAAK,IAAI,IAAI;EACrB,iBAAiB;EACjB,gBAAgB;EAChB,iBAAiB;EACjB,aAAa;CACf;CAMF,IAAI,MAAM,SAAS,KAAA,KAAa,MAAM,OACpC,OAAO;EACL,SAAS;EACT,gBAAgB;EAChB,UAAU;EACV,QAAQ;EACR,QAAQ;EACR,QAAQ,KAAK,IAAI,IAAI;EACrB,iBAAiB;EACjB,gBAAgB;EAChB,iBAAiB;EAIjB,aACE;CAEJ;CAGF,OAAO,MAAM,IAAI,SAA+B,YAAY;EAC1D,MAAM,eAAe;GACnB,KAAK,MAAM;GACX;GAIA,UAAU,QAAQ,aAAa;EACjC;EAYA,IAAI;EACJ,IAAI;GACF,QACE,MAAM,SAAS,KAAA,IACX,MAAM,MAAM,SAAS;IAAE,GAAG;IAAc,OAAO,MAAM,SAAS;GAAK,CAAC,IACpE,MAAM,MAAM,SAAS,MAAM,MAAM;IAAE,GAAG;IAAc,OAAO;GAAM,CAAC;EAC1E,SAAS,KAAK;GACZ,QAAQ;IACN,SAAS;IACT,gBAAgB;IAChB,UAAU;IACV,QAAQ;IACR,QAAQ;IACR,QAAQ,KAAK,IAAI,IAAI;IACrB,iBAAiB;IACjB,gBAAgB;IAChB,iBAAiB;IACjB,aAAa,OAAO,GAAG;GACzB,CAAC;GACD;EACF;EAKA,IAAI;EACJ,MAAM,aAAa,MAAM;EACzB,IAAI,YAAY;GACd,WAAW,GAAG,UAAU,QAAQ;IAI9B,IAAI,MAAM,UAAU,KAAA,GAAW,eAAe,wBAAwB,OAAO,GAAG;GAClF,CAAC;GACD,IAAI,MAAM,UAAU,KAAA,GAAW,WAAW,IAAI;QACzC,WAAW,IAAI,MAAM,OAAO,MAAM;EACzC,OAAO,IAAI,MAAM,UAAU,KAAA,GACzB,aAAa;EAGf,IAAI,SAAS;EACb,IAAI,SAAS;EACb,IAAI,cAAc;EAClB,IAAI,kBAAkB;EACtB,IAAI,kBAAkB;EACtB,IAAI,iBAAiB;EACrB,IAAI,UAAU;EAKd,SAAS,QAAQ,GAAmB;GAClC,IAAI,eAAe,gBAAgB;IACjC,kBAAkB;IAClB,OAAO;GACT;GACA,MAAM,OAAO,iBAAiB;GAC9B,IAAI,EAAE,SAAS,MAAM;IACnB,cAAc;IACd,kBAAkB;IAClB,OAAO,EAAE,MAAM,GAAG,IAAI;GACxB;GACA,eAAe,EAAE;GACjB,OAAO;EACT;EAOA,MAAM,gBAAgB,IAAI,cAAc,MAAM;EAC9C,MAAM,gBAAgB,IAAI,cAAc,MAAM;EAC9C,MAAM,UAAU,SAAwB,MACtC,OAAO,SAAS,CAAC,IAAI,QAAQ,MAAM,CAAC,IAAI,OAAO,CAAC;EAElD,MAAM,YAAY,MAAe;GAC/B,MAAM,QAAQ,QAAQ,OAAO,eAAe,CAAC,CAAC;GAC9C,IAAI,OAAO,UAAU;EACvB;EACA,MAAM,YAAY,MAAe;GAC/B,MAAM,QAAQ,QAAQ,OAAO,eAAe,CAAC,CAAC;GAC9C,IAAI,OAAO,UAAU;EACvB;EAEA,MAAM,QAAQ,GAAG,QAAQ,QAAQ;EACjC,MAAM,QAAQ,GAAG,QAAQ,QAAQ;EAEjC,IAAI;EAEJ,MAAM,gBAAgB;GACpB,aAAa,OAAO;GACpB,IAAI,cAAc,aAAa,YAAY;GAC3C,MAAM,QAAQ,oBAAoB,SAAS,OAAO;GAClD,MAAM,QAAQ,IAAI,QAAQ,QAAQ;GAClC,MAAM,QAAQ,IAAI,QAAQ,QAAQ;GAIlC,MAAM,mBAAmB,OAAO;GAChC,MAAM,mBAAmB,OAAO;EAClC;EAKA,MAAM,UAAU,YAA8E;GAC5F,IAAI,SAAS;GACb,UAAU;GACV,QAAQ;GACR,MAAM,UAAU,QAAQ,WAAW;GACnC,QAAQ;IACN;IAGA,gBAAgB,UAAU,eAAe,KAAA,IAAY;IACrD,UAAU,YAAY,QAAQ,MAAM,iBAAiB,cAAc;IACnE;IACA;IACA,QAAQ,KAAK,IAAI,IAAI;IACrB;IACA;IACA;IACA,aAAa,QAAQ,eAAe;GACtC,CAAC;EACH;EAIA,MAAM,iBAAiB;GACrB,IAAI;IACF,IAAI,QAAQ,aAAa,WAAW,OAAO,MAAM,QAAQ,UACvD,QAAQ,KAAK,CAAC,MAAM,KAAK,SAAS;SAElC,MAAM,KAAK,SAAS;GAExB,SAAS,KAAK;IAIZ,IAAK,KAA+B,SAAS,SAC3C,QAAQ,KAAK,0DAA0D,GAAG;GAE9E;EACF;EAOA,IAAI,SAAS;EACb,MAAM,qBAAqB;GACzB,IAAI,QAAQ;GACZ,SAAS;GACT,SAAS;GACT,eAAe,iBAAiB,OAAO,EAAE,MAAM,KAAK,CAAC,GAAG,aAAa;EACvE;EAEA,SAAS,UAAU;GACjB,IAAI,SAAS;GACb,iBAAiB;GACjB,aAAa;EACf;EAEA,MAAM,UAAU,iBAAiB;GAC/B,kBAAkB;GAClB,aAAa;EACf,GAAG,SAAS;EAEZ,MAAM,QAAQ,iBAAiB,SAAS,SAAS,EAAE,MAAM,KAAK,CAAC;EAE/D,MAAM,GAAG,UAAU,SAAS;GAC1B,IAAI,cAAc,aAAa,YAAY;GAC3C,OAAO,EAAE,KAAK,CAAC;EACjB,CAAC;EACD,MAAM,GAAG,UAAU,QAAQ;GACzB,IAAI,cAAc,aAAa,YAAY;GAG3C,OAAO;IAAE,MAAM;IAAyB,SAAS;IAAO,aAAa,OAAO,GAAG;GAAE,CAAC;EACpF,CAAC;CACH,CAAC;AACH;;;;;;AAOA,SAAS,YACP,MACA,iBACA,gBACQ;CACR,IAAI,SAAS,QAAQ,SAAS,GAAG,OAAO;CACxC,IAAI,iBAAiB,OAAO;CAC5B,IAAI,gBAAgB,OAAO;CAC3B,OAAO,QAAQ;AACjB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { f as Run, o as FailureClass } from "../schema-
|
|
2
|
-
import { s as TraceStore } from "../store-
|
|
3
|
-
import { i as TraceEmitter } from "../emitter-
|
|
1
|
+
import { f as Run, o as FailureClass } from "../schema-CR5cpjQ3.js";
|
|
2
|
+
import { s as TraceStore } from "../store-BErPvYBr.js";
|
|
3
|
+
import { i as TraceEmitter } from "../emitter-Cs0egaFd.js";
|
|
4
4
|
import { n as SandboxDriver, r as SandboxHarnessResult, t as HarnessConfig } from "../sandbox-harness-BlSOu4LX.js";
|
|
5
5
|
//#region src/test-graded-scenario.d.ts
|
|
6
6
|
interface TestGradedScenario {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as spearmanR, r as pearsonR } from "../descriptive-1V17A-qa.js";
|
|
2
|
-
import { s as judgeSpans } from "../query-
|
|
2
|
+
import { s as judgeSpans } from "../query-D1nLIKt7.js";
|
|
3
3
|
import { t as newRecordId } from "../record-id-DUgsK5qp.js";
|
|
4
4
|
import { t as TraceEmitter } from "../emitter-DeQHiDMm.js";
|
|
5
|
-
import {
|
|
5
|
+
import { n as runBoundedProcess } from "../bounded-process-BBZob7vl.js";
|
|
6
6
|
//#region src/sandbox-harness.ts
|
|
7
7
|
/**
|
|
8
8
|
* SandboxHarness — executes a scenario in an isolated environment and
|
package/dist/campaign/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { c as CostLedgerHandle, w as PendingCostCallView } from "../cost-ledger-DbQdN3nO.js";
|
|
2
|
-
import { _ as ProposalFinding, v as ProposalFindingOrigin, x as makeProposalFinding } from "../types-
|
|
3
|
-
import { $ as readExternalOptimizerObservationArtifact, $t as SearchLedgerAppendResult, An as runEval, At as SearchHistoryPolicy, B as OptimizationMethodResult, Bn as CacheRead, Bt as SearchAccountingAudit, Cn as ParentSelectionContext, Ct as GepaCandidatePopulationSummary, Dn as OpenAutoPrResult, Dt as SearchHistoryAuditSummary, En as OpenAutoPrOptions, Et as CreateSearchHistoryReceiptInput, F as OptimizationMethod, Fn as CampaignRunPlan, Ft as createSearchHistoryReceipt, G as combineComparisonCosts, Gn as CampaignStorage, Gt as SearchCandidateRegisteredEvent, H as OptimizationMethodScore, Hn as CellScheduleSlot, Ht as SearchAttemptAccounting, I as OptimizationMethodComparison, In as CampaignRunPlanCell, It as searchHistoryCoverageRow, J as optimizationTokenUsageFromSummary, Jn as inMemoryCampaignStorage, Jt as SearchCandidateSurface, K as compareOptimizationMethods, Kn as createRunCostLedger, Kt as SearchCandidateSlot, L as OptimizationMethodInput, Ln as PlanCampaignRunOptions, Lt as verifySearchHistoryReceipt, Mn as CampaignCellRetryPolicy, Mt as SearchHistoryRequiredError, N as CompareOptimizationMethodsOptions, Nn as RunCampaignOptions, Nt as assertCompleteSearchHistory, On as openAutoPr, Ot as SearchHistoryCoverage, P as ComparisonCost, Pn as runCampaign, Pt as assertSearchHistoryMatchesReplay, Q as ExternalOptimizerSubmittedCandidate, Qt as SearchLedger, R as OptimizationMethodPairwise, Rn as planCampaignRun, Rt as FileSearchLedger, Sn as CrowdedFrontierParentOptions, St as GepaCandidatePopulationCandidate, Tn as crowdedFrontierParent, Tt as readGepaCandidatePopulationArtifact, U as OptimizationPackageSource, Un as buildCellSchedule, Ut as SearchCandidateDecidedEvent, V as OptimizationMethodRunOptions, Vn as readCachedCell, Vt as SearchArtifactRef, W as OptimizationTokenUsage, Wn as cellCachePath, Wt as SearchCandidateLineage, X as ExternalOptimizerObservationArtifact, Xt as SearchCostAccounting, Y as ExternalOptimizerExecutionSummary, Yt as SearchCompletedEvent, Z as ExternalOptimizerObservationSummary, Zt as SearchFailureReason, _ as provenanceSpansPath, _n as SearchTaskAttemptedEvent, _t as SearchRecorder, a as LoopProvenanceBackend, an as SearchModelIdentity, at as transientDispatchFailure, bn as openSearchLedger, bt as recordCandidatePopulationSearch, c as LoopProvenanceOptimizationMethod, cn as SearchPlan, ct as runImprovementLoop, d as campaignMeasurementDigest, dn as SearchPlannedOperation, dt as RunOptimizationResult, en as SearchLedgerEntry, et as LlmJudgeDimension, f as canonicalDigest, fn as SearchPlannedTask, ft as runOptimization, g as provenanceRecordPath, gn as SearchSurfaceKind, gt as SearchLedgerBinding, h as loopProvenanceSpans, hn as SearchSurfaceEvidence, ht as SearchExecutionIdentity, i as LoopProvenanceArgsFromResult, in as SearchLedgerTrustedHeadMode, it as isTransientTransportFailure, jn as CampaignCellFailureReceipt, jt as SearchHistoryReceipt, kn as RunEvalOptions, kt as SearchHistoryCoverageRow, l as LoopProvenanceRecord, ln as SearchPlanExtendedEvent, lt as PremeasuredOptimizationBaseline, m as loopProvenanceArgsFromResult, mn as SearchSurfaceEffect, mt as ProposedSearchCandidate, n as EmitLoopProvenanceArgs, nn as SearchLedgerHash, nt as llmJudge, o as LoopProvenanceCandidate, on as SearchOperationKind, ot as RunImprovementLoopOptions, p as emitLoopProvenance, pn as SearchSourceRef, pt as MeasuredSearchCandidate, q as costFromLedgerSummary, qn as fsCampaignStorage, qt as SearchCandidateSlotClosedEvent, r as EmitLoopProvenanceResult, rn as SearchLedgerReplay, rt as TransientFailureOptions, s as LoopProvenanceEvidence, sn as SearchOperationRecordedEvent, st as RunImprovementLoopResult, t as BuildLoopProvenanceArgs, tn as SearchLedgerEvent, tt as LlmJudgeOptions, u as buildLoopProvenanceRecord, un as SearchPlannedEvent, ut as RunOptimizationOptions, v as verifyLoopProvenanceRecord, vn as SearchTaskOutcome, vt as SearchRecorderOptions, wn as ParentSelector, wt as GepaCandidateSelectionScore, xn as validateSearchLedgerEvent, xt as GepaCandidatePopulationArtifact, yn as SearchTokenAccounting, yt as SearchRunIdentity, z as OptimizationMethodProvenance, zn as CacheIssueReason, zt as OpenSearchLedgerOptions } from "../provenance-Dp-vvyrU.js";
|
|
2
|
+
import { _ as ProposalFinding, v as ProposalFindingOrigin, x as makeProposalFinding } from "../types-DN2WdT5S.js";
|
|
4
3
|
import { t as SeriesDistribution } from "../descriptive-B2iPaT9J.js";
|
|
5
|
-
import { A as LabeledScenarioWrite, B as ScoredSurfaceOutcome, C as JudgeDimension, D as LabeledScenarioSampleArgs, E as LabeledScenarioRecord, F as ProposeContext, G as labelTrustRank, H as SurfaceProposer, I as ProposedCandidate, L as RedactionStatus, M as OptimizerConfig, N as ParetoParent, O as LabeledScenarioSource, P as ProposalTrackContext, R as Scenario, S as JudgeConfig, T as LabelTrust, U as TraceSpan, V as SessionScript, W as isProposedCandidate, _ as GateDecision, a as CampaignResult, b as GenerationRecord, c as CampaignTraceWriter, d as DispatchContext, f as DispatchFn, g as GateContribution, h as GateContext, i as CampaignCostMeter, j as MutableSurface, k as LabeledScenarioStore, l as CodeSurface, m as GateCheckStatus, n as CampaignArtifactWriter, o as CampaignScenarioIdentity, p as Gate, r as CampaignCellResult, s as CampaignTokenUsage, t as CampaignAggregates, u as ComponentSurface, v as GateResult, w as JudgeScore, x as JudgeAggregate, y as GenerationCandidate, z as ScenarioAggregate } from "../types-
|
|
6
|
-
import { B as campaignSplitDigestFromIdentities, C as ExternalTextOptimizerContext, D as decodeExternalTextCandidate, E as ExternalTextEvaluationResponse, I as assertCampaignDesign, L as assertCampaignSplitIdentity, N as ReferenceEquivalenceScenario, P as createReferenceEquivalenceJudge, R as campaignScenarioIdentity, S as ExternalTextOptimizationMethodConfig, T as ExternalOptimizationExample, _ as GepaRunnerCommand, a as DefaultProductionRewardHackingOptions, b as OptimizerModelBudget, c as SkillOptOptimizationMethodConfig, d as skillOptOptimizationMethod, f as GepaAdaptiveEngineRun, g as GepaOptimizationRecipe, h as GepaOptimizationMethodConfig, i as DefaultProductionGateOptions, j as ReferenceEquivalenceJudgeOptions, l as SkillOptRunnerCommand, m as GepaEngineRun, n as heldOutGate, o as defaultProductionGate, p as GepaEngineOptions, r as DefaultProductionGateCheck, s as composeGate, t as HeldOutGateOptions, u as SkillOptTrainerConfig, v as gepaOptimizationMethod, w as ExternalTextOptimizerResult, x as externalTextOptimizationMethod, y as OpenAICompatibleOptimizerModel, z as campaignSplitDigest } from "../heldout-gate-
|
|
7
|
-
import { $ as
|
|
8
|
-
import { _ as
|
|
4
|
+
import { A as LabeledScenarioWrite, B as ScoredSurfaceOutcome, C as JudgeDimension, D as LabeledScenarioSampleArgs, E as LabeledScenarioRecord, F as ProposeContext, G as labelTrustRank, H as SurfaceProposer, I as ProposedCandidate, L as RedactionStatus, M as OptimizerConfig, N as ParetoParent, O as LabeledScenarioSource, P as ProposalTrackContext, R as Scenario, S as JudgeConfig, T as LabelTrust, U as TraceSpan, V as SessionScript, W as isProposedCandidate, _ as GateDecision, a as CampaignResult, b as GenerationRecord, c as CampaignTraceWriter, d as DispatchContext, f as DispatchFn, g as GateContribution, h as GateContext, i as CampaignCostMeter, j as MutableSurface, k as LabeledScenarioStore, l as CodeSurface, m as GateCheckStatus, n as CampaignArtifactWriter, o as CampaignScenarioIdentity, p as Gate, r as CampaignCellResult, s as CampaignTokenUsage, t as CampaignAggregates, u as ComponentSurface, v as GateResult, w as JudgeScore, x as JudgeAggregate, y as GenerationCandidate, z as ScenarioAggregate } from "../types-Ba5UQyVD.js";
|
|
5
|
+
import { B as campaignSplitDigestFromIdentities, C as ExternalTextOptimizerContext, D as decodeExternalTextCandidate, E as ExternalTextEvaluationResponse, I as assertCampaignDesign, L as assertCampaignSplitIdentity, N as ReferenceEquivalenceScenario, P as createReferenceEquivalenceJudge, R as campaignScenarioIdentity, S as ExternalTextOptimizationMethodConfig, T as ExternalOptimizationExample, _ as GepaRunnerCommand, a as DefaultProductionRewardHackingOptions, b as OptimizerModelBudget, c as SkillOptOptimizationMethodConfig, d as skillOptOptimizationMethod, f as GepaAdaptiveEngineRun, g as GepaOptimizationRecipe, h as GepaOptimizationMethodConfig, i as DefaultProductionGateOptions, j as ReferenceEquivalenceJudgeOptions, l as SkillOptRunnerCommand, m as GepaEngineRun, n as heldOutGate, o as defaultProductionGate, p as GepaEngineOptions, r as DefaultProductionGateCheck, s as composeGate, t as HeldOutGateOptions, u as SkillOptTrainerConfig, v as gepaOptimizationMethod, w as ExternalTextOptimizerResult, x as externalTextOptimizationMethod, y as OpenAICompatibleOptimizerModel, z as campaignSplitDigest } from "../heldout-gate-Df5hsqmm.js";
|
|
6
|
+
import { $ as readExternalOptimizerObservationArtifact, $t as SearchLedger, An as RunEvalOptions, At as SearchHistoryCoverageRow, B as OptimizationMethodResult, Bn as CacheIssueReason, Bt as OpenSearchLedgerOptions, Cn as CrowdedFrontierParentOptions, Ct as GepaCandidatePopulationCandidate, Dn as OpenAutoPrOptions, Dt as CreateSearchHistoryReceiptInput, En as crowdedFrontierParent, Et as readGepaCandidatePopulationArtifact, F as OptimizationMethod, Fn as runCampaign, Ft as assertSearchHistoryMatchesReplay, G as combineComparisonCosts, Gn as cellCachePath, Gt as SearchCandidateLineage, H as OptimizationMethodScore, Hn as readCachedCell, Ht as SearchArtifactRef, I as OptimizationMethodComparison, In as CampaignRunPlan, It as createSearchHistoryReceipt, J as optimizationTokenUsageFromSummary, Jn as fsCampaignStorage, Jt as SearchCandidateSlotClosedEvent, K as compareOptimizationMethods, Kn as CampaignStorage, Kt as SearchCandidateRegisteredEvent, L as OptimizationMethodInput, Ln as CampaignRunPlanCell, Lt as searchHistoryCoverageRow, Mn as CampaignCellFailureReceipt, Mt as SearchHistoryReceipt, N as CompareOptimizationMethodsOptions, Nn as CampaignCellRetryPolicy, Nt as SearchHistoryRequiredError, On as OpenAutoPrResult, Ot as SearchHistoryAuditSummary, P as ComparisonCost, Pn as RunCampaignOptions, Pt as assertCompleteSearchHistory, Q as ExternalOptimizerSubmittedCandidate, Qt as SearchFailureReason, R as OptimizationMethodPairwise, Rn as PlanCampaignRunOptions, Rt as verifySearchHistoryReceipt, Sn as validateSearchLedgerEvent, St as GepaCandidatePopulationArtifact, Tn as ParentSelector, Tt as GepaCandidateSelectionScore, U as OptimizationPackageSource, Un as CellScheduleSlot, Ut as SearchAttemptAccounting, V as OptimizationMethodRunOptions, Vn as CacheRead, Vt as SearchAccountingAudit, W as OptimizationTokenUsage, Wn as buildCellSchedule, Wt as SearchCandidateDecidedEvent, X as ExternalOptimizerObservationArtifact, Xt as SearchCompletedEvent, Y as ExternalOptimizerExecutionSummary, Yn as inMemoryCampaignStorage, Yt as SearchCandidateSurface, Z as ExternalOptimizerObservationSummary, Zt as SearchCostAccounting, _ as provenanceSpansPath, _n as SearchSurfaceKind, _t as SearchLedgerBinding, a as LoopProvenanceBackend, an as SearchLedgerTrustedHeadMode, at as quotaExhaustedUntil, bn as SearchTokenAccounting, bt as SearchRunIdentity, c as LoopProvenanceOptimizationMethod, cn as SearchOperationRecordedEvent, ct as RunImprovementLoopResult, d as campaignMeasurementDigest, dn as SearchPlannedEvent, dt as RunOptimizationOptions, en as SearchLedgerAppendResult, et as LlmJudgeDimension, f as canonicalDigest, fn as SearchPlannedOperation, ft as RunOptimizationResult, g as provenanceRecordPath, gn as SearchSurfaceEvidence, gt as SearchExecutionIdentity, h as loopProvenanceSpans, hn as SearchSurfaceEffect, ht as ProposedSearchCandidate, i as LoopProvenanceArgsFromResult, in as SearchLedgerReplay, it as isTransientTransportFailure, jn as runEval, jt as SearchHistoryPolicy, kn as openAutoPr, kt as SearchHistoryCoverage, l as LoopProvenanceRecord, ln as SearchPlan, lt as runImprovementLoop, m as loopProvenanceArgsFromResult, mn as SearchSourceRef, mt as MeasuredSearchCandidate, n as EmitLoopProvenanceArgs, nn as SearchLedgerEvent, nt as llmJudge, o as LoopProvenanceCandidate, on as SearchModelIdentity, ot as transientDispatchFailure, p as emitLoopProvenance, pn as SearchPlannedTask, pt as runOptimization, q as costFromLedgerSummary, qn as createRunCostLedger, qt as SearchCandidateSlot, r as EmitLoopProvenanceResult, rn as SearchLedgerHash, rt as TransientFailureOptions, s as LoopProvenanceEvidence, sn as SearchOperationKind, st as RunImprovementLoopOptions, t as BuildLoopProvenanceArgs, tn as SearchLedgerEntry, tt as LlmJudgeOptions, u as buildLoopProvenanceRecord, un as SearchPlanExtendedEvent, ut as PremeasuredOptimizationBaseline, v as verifyLoopProvenanceRecord, vn as SearchTaskAttemptedEvent, vt as SearchRecorder, wn as ParentSelectionContext, wt as GepaCandidatePopulationSummary, xn as openSearchLedger, xt as recordCandidatePopulationSearch, yn as SearchTaskOutcome, yt as SearchRecorderOptions, z as OptimizationMethodProvenance, zn as planCampaignRun, zt as FileSearchLedger } from "../provenance-CRY67X50.js";
|
|
7
|
+
import { $ as makePlaybackDispatch, $t as CrossSurfaceEvidenceBreakdown, A as scoreDiscrimination, At as LoadEvalFixtureScenariosOptions, B as ProfileMatrixSegmentResult, Bt as CrossSurfaceAttemptCompleteness, C as acquireSingleRunLock, Cn as SearchLedgerIntegrityError, Ct as neutralizationGate, D as compareRankKeys, Dt as EvalFixtureRunPlan, E as campaignMeanComposite, Et as EvalFixtureLoadOptions, F as FinalizeProfileMatrixOptions, Ft as planEvalFixtureRun, G as PlaybackContext, Gt as CrossSurfaceCandidateEvidence, H as createProfileMatrixPlan, Ht as CrossSurfaceBootstrapPolicy, I as FinalizedProfileMatrixResult, It as analyzeCrossSurfaceInteractions, J as ScoreboardRenderOptions, Jt as CrossSurfaceComponent, K as PlaybackDriver, Kt as CrossSurfaceCandidateOutcome, L as ProfileMatrixCoverage, Lt as AnalyzeCrossSurfaceInteractionsInput, M as resolveRunDir, Mt as discoverEvalFixtures, N as tangleTracesRoot, Nt as loadEvalFixture, O as DiscriminationScore, Ot as EvalFixtureScenario, P as CreateProfileMatrixPlanOptions, Pt as loadEvalFixtureScenarios, Q as UserStoryVerdict, Qt as CrossSurfaceEligibility, R as ProfileMatrixPlan, Rt as CrossSurfaceAdditionDecision, S as SingleRunLockOptions, Sn as SearchLedgerError, St as NeutralizationGateOptions, T as campaignBreakdown, Tt as EvalFixtureFile, U as finalizeProfileMatrix, Ut as CrossSurfaceCandidate, V as RunProfileMatrixSegmentOptions, Vt as CrossSurfaceBestSingleSelection, W as runProfileMatrixSegment, Wt as CrossSurfaceCandidateComparison, X as ScoreboardSummary, Xt as CrossSurfaceCompositionStep, Y as ScoreboardRow, Yt as CrossSurfaceComponentEvidence, Z as UserStory, Zt as CrossSurfaceDistribution, _ as componentSurfaceIdentityMaterial, _n as TraceAnalystArtifact, _t as RolloutCall, a as WorktreeAdapterError, an as CrossSurfaceInteractionTask, at as ProfileMatrixError, b as surfaceHash, bn as traceAnalystQualityJudge, bt as classifyUngroundedLiterals, c as verifyCodeSurface, cn as CrossSurfacePairEvidence, ct as RunProfileMatrixResult, d as PhoenixEvaluationResultLike, dn as CrossSurfaceRankedSingle, dt as neutralizeText, en as CrossSurfaceIneligibilityReason, et as renderScoreboardMarkdown, f as PhoenixEvaluatorLike, fn as CrossSurfaceRelativeCost, ft as FsLabeledScenarioStore, g as codeSurfaceIdentityMaterial, gn as BuildTraceAnalystSurfaceDispatchOptions, gt as RolloutArgumentDiffOptions, h as assertCodeSurfaceIdentity, hn as CrossSurfaceTaskRow, ht as RolloutArgumentDiff, i as WorktreeAdapter, in as CrossSurfaceInteractionReport, it as ProfileDispatchFn, j as selectDiscriminative, jt as PlanEvalFixtureRunOptions, k as ScenarioSignal, kt as EvalFixtureValidationMode, l as AutoevalsScoreLike, ln as CrossSurfacePairIncompatibilityReason, lt as ScenarioRollup, m as phoenixEvaluatorJudge, mn as CrossSurfaceSelections, mt as LabeledScenarioStoreError, n as GitWorktreeAdapterOptions, nn as CrossSurfaceInteractionEffect, nt as scoreboardSummary, o as gitWorktreeAdapter, on as CrossSurfaceNaiveStackSelection, ot as ProfileSummary, p as autoevalsScorerJudge, pn as CrossSurfaceSelectionPolicy, pt as FsLabeledScenarioStoreOptions, q as PlaybackStep, qt as CrossSurfaceCandidateSummary, r as Worktree, rn as CrossSurfaceInteractionPath, rt as userStoryScoreboard, s as resolveWorktreePath, sn as CrossSurfacePairCompatibility, st as RunProfileMatrixOptions, t as CodeSurfaceVerification, tn as CrossSurfaceInteractionAwareSelection, tt as scoreUserStory, u as AutoevalsScorerLike, un as CrossSurfacePairwiseEntry, ut as runProfileMatrix, v as renderSurfaceDiff, vn as TraceAnalystScenario, vt as ScoredRollout, w as CampaignBreakdown, wt as EvalFixture, x as SingleRunLock, xn as SearchLedgerConflictError, xt as rolloutArgumentDiff, y as surfaceContentHash, yn as buildTraceAnalystSurfaceDispatch, yt as UngroundedLiteralReport, z as ProfileMatrixRow, zt as CrossSurfaceAdditionRejectionReason } from "../index-CFDffsKz.js";
|
|
8
|
+
import { _ as ExternalTextCandidate, a as ExternalOptimizerEndpointFormat, b as resolveExternalOptimizerProcessLimits, c as ExternalOptimizerModelBudget, d as ExternalOptimizerModelCallResult, f as ExternalOptimizerModelExecutionObservation, h as ExternalOptimizerRunnerCommand, i as ExternalOptimizerChatRequest, l as ExternalOptimizerModelCall, n as DEFAULT_EXTERNAL_OPTIMIZER_PROCESS_LIMITS, o as ExternalOptimizerEvaluationObservation, p as ExternalOptimizerProcessLimits, r as ExternalOptimizerCallbackLimits, s as ExternalOptimizerEvaluationRefusalReason, t as DEFAULT_EXTERNAL_OPTIMIZER_CALLBACK_LIMITS, u as ExternalOptimizerModelCallRequest, y as resolveExternalOptimizerCallbackLimits } from "../external-optimizer-contracts-CQCpyrIL.js";
|
|
9
9
|
import { n as PowerPreflightOptions, r as powerPreflight, t as PowerPreflight } from "../power-preflight-Ptse_Kq7.js";
|
|
10
|
-
import { a as ObjectiveSource, c as PromotionPolicy, d as paretoSignificanceGate, i as EvidenceVector, l as buildEvidenceVector, n as AxisVerdict, o as ParetoSignificanceGateOptions, r as BuildEvidenceVectorOptions, s as PromotionObjective, t as AxisEvidence, u as paretoPolicy } from "../promotion-policy-
|
|
11
|
-
import { _ as sequentialPairedGate, a as detectScale, c as pairHoldout, d as SequentialDecision, f as SequentialObservation, g as sequentialDecide, h as SequentialStreamState, i as PairedHoldout, l as SequentialDecideFn, m as SequentialPairedGateOptions, n as HeldoutSignificance, o as dimensionRegressions, p as SequentialPairedGate, r as HeldoutSignificanceOptions, s as heldoutSignificance, t as DimensionRegression, u as SequentialDecideOptions } from "../statistical-heldout-
|
|
12
|
-
export { type AnalyzeCrossSurfaceInteractionsInput, type AutoevalsScoreLike, type AutoevalsScorerLike, type AxisEvidence, type AxisVerdict, type BuildEvidenceVectorOptions, type BuildLoopProvenanceArgs, type BuildTraceAnalystSurfaceDispatchOptions, type CacheIssueReason, type CacheRead, type CampaignAggregates, type CampaignArtifactWriter, type CampaignBreakdown, type CampaignCellFailureReceipt, type CampaignCellResult, type CampaignCellRetryPolicy, type CampaignCostMeter, type CampaignResult, type CampaignRunPlan, type CampaignRunPlanCell, type CampaignScenarioIdentity, type CampaignStorage, type CampaignTokenUsage, type CampaignTraceWriter, type CellScheduleSlot, type CodeSurface, type CodeSurfaceVerification, type CompareOptimizationMethodsOptions, type ComparisonCost, type ComponentSurface, type CostLedgerHandle, type CreateProfileMatrixPlanOptions, type CreateSearchHistoryReceiptInput, type CrossSurfaceAdditionDecision, type CrossSurfaceAdditionRejectionReason, type CrossSurfaceAttemptCompleteness, type CrossSurfaceBestSingleSelection, type CrossSurfaceBootstrapPolicy, type CrossSurfaceCandidate, type CrossSurfaceCandidateComparison, type CrossSurfaceCandidateEvidence, type CrossSurfaceCandidateOutcome, type CrossSurfaceCandidateSummary, type CrossSurfaceComponent, type CrossSurfaceComponentEvidence, type CrossSurfaceCompositionStep, type CrossSurfaceDistribution, type CrossSurfaceEligibility, type CrossSurfaceEvidenceBreakdown, type CrossSurfaceIneligibilityReason, type CrossSurfaceInteractionAwareSelection, type CrossSurfaceInteractionEffect, type CrossSurfaceInteractionPath, type CrossSurfaceInteractionReport, type CrossSurfaceInteractionTask, type CrossSurfaceNaiveStackSelection, type CrossSurfacePairCompatibility, type CrossSurfacePairEvidence, type CrossSurfacePairIncompatibilityReason, type CrossSurfacePairwiseEntry, type CrossSurfaceRankedSingle, type CrossSurfaceRelativeCost, type CrossSurfaceSelectionPolicy, type CrossSurfaceSelections, type CrossSurfaceTaskRow, type CrowdedFrontierParentOptions, DEFAULT_EXTERNAL_OPTIMIZER_CALLBACK_LIMITS, DEFAULT_EXTERNAL_OPTIMIZER_PROCESS_LIMITS, type DefaultProductionGateCheck, type DefaultProductionGateOptions, type DefaultProductionRewardHackingOptions, type DimensionRegression, type DiscriminationScore, type DispatchContext, type DispatchFn, type EmitLoopProvenanceArgs, type EmitLoopProvenanceResult, type EvalFixture, type EvalFixtureFile, type EvalFixtureLoadOptions, type EvalFixtureRunPlan, type EvalFixtureScenario, type EvalFixtureValidationMode, type EvidenceVector, type ExternalOptimizationExample, type ExternalOptimizerCallbackLimits, type ExternalOptimizerChatRequest, type ExternalOptimizerEndpointFormat, type ExternalOptimizerEvaluationObservation, type ExternalOptimizerEvaluationRefusalReason, type ExternalOptimizerExecutionSummary, type ExternalOptimizerModelBudget, type ExternalOptimizerModelCall, type ExternalOptimizerModelCallRequest, type ExternalOptimizerModelCallResult, type ExternalOptimizerModelExecutionObservation, type ExternalOptimizerObservationArtifact, type ExternalOptimizerObservationSummary, type ExternalOptimizerProcessLimits, type ExternalOptimizerRunnerCommand, type ExternalOptimizerSubmittedCandidate, type ExternalTextCandidate, type ExternalTextEvaluationResponse, type ExternalTextOptimizationMethodConfig, type ExternalTextOptimizerContext, type ExternalTextOptimizerResult, FileSearchLedger, type FinalizeProfileMatrixOptions, type FinalizedProfileMatrixResult, FsLabeledScenarioStore, type FsLabeledScenarioStoreOptions, type Gate, type GateCheckStatus, type GateContext, type GateContribution, type GateDecision, type GateResult, type GenerationCandidate, type GenerationRecord, type GepaAdaptiveEngineRun, type GepaCandidatePopulationArtifact, type GepaCandidatePopulationCandidate, type GepaCandidatePopulationSummary, type GepaCandidateSelectionScore, type GepaEngineOptions, type GepaEngineRun, type GepaOptimizationMethodConfig, type GepaOptimizationRecipe, type GepaRunnerCommand, type GitWorktreeAdapterOptions, type HeldOutGateOptions, type HeldoutSignificance, type HeldoutSignificanceOptions, type JudgeAggregate, type JudgeConfig, type JudgeDimension, type JudgeScore, type LabelTrust, type LabeledScenarioRecord, type LabeledScenarioSampleArgs, type LabeledScenarioSource, type LabeledScenarioStore, LabeledScenarioStoreError, type LabeledScenarioWrite, type LlmJudgeDimension, type LlmJudgeOptions, type LoadEvalFixtureScenariosOptions, type LoopProvenanceArgsFromResult, type LoopProvenanceBackend, type LoopProvenanceCandidate, type LoopProvenanceEvidence, type LoopProvenanceOptimizationMethod, type LoopProvenanceRecord, type MeasuredSearchCandidate, type MutableSurface, type NeutralizationGateOptions, type ObjectiveSource, type OpenAICompatibleOptimizerModel, type OpenAutoPrOptions, type OpenAutoPrResult, type OpenSearchLedgerOptions, type OptimizationMethod, type OptimizationMethodComparison, type OptimizationMethodInput, type OptimizationMethodPairwise, type OptimizationMethodProvenance, type OptimizationMethodResult, type OptimizationMethodRunOptions, type OptimizationMethodScore, type OptimizationPackageSource, type OptimizationTokenUsage, type OptimizerConfig, type OptimizerModelBudget, type PairedHoldout, type ParentSelectionContext, type ParentSelector, type ParetoParent, type ParetoSignificanceGateOptions, type PendingCostCallView, type PhoenixEvaluationResultLike, type PhoenixEvaluatorLike, type PlanCampaignRunOptions, type PlanEvalFixtureRunOptions, type PlaybackContext, type PlaybackDriver, type PlaybackStep, type PowerPreflight, type PowerPreflightOptions, type PremeasuredOptimizationBaseline, type ProfileDispatchFn, type ProfileMatrixCoverage, ProfileMatrixError, type ProfileMatrixPlan, type ProfileMatrixRow, type ProfileMatrixSegmentResult, type ProfileSummary, type PromotionObjective, type PromotionPolicy, type ProposalFinding, type ProposalFindingOrigin, type ProposalTrackContext, type ProposeContext, type ProposedCandidate, type ProposedSearchCandidate, type RedactionStatus, type ReferenceEquivalenceJudgeOptions, type ReferenceEquivalenceScenario, type RolloutArgumentDiff, type RolloutArgumentDiffOptions, type RolloutCall, type RunCampaignOptions, type RunEvalOptions, type RunImprovementLoopOptions, type RunImprovementLoopResult, type RunOptimizationOptions, type RunOptimizationResult, type RunProfileMatrixOptions, type RunProfileMatrixResult, type RunProfileMatrixSegmentOptions, type Scenario, type ScenarioAggregate, type ScenarioRollup, type ScenarioSignal, type ScoreboardRenderOptions, type ScoreboardRow, type ScoreboardSummary, type ScoredRollout, type ScoredSurfaceOutcome, type SearchAccountingAudit, type SearchArtifactRef, type SearchAttemptAccounting, type SearchCandidateDecidedEvent, type SearchCandidateLineage, type SearchCandidateRegisteredEvent, type SearchCandidateSlot, type SearchCandidateSlotClosedEvent, type SearchCandidateSurface, type SearchCompletedEvent, type SearchCostAccounting, type SearchExecutionIdentity, type SearchFailureReason, type SearchHistoryAuditSummary, type SearchHistoryCoverage, type SearchHistoryCoverageRow, type SearchHistoryPolicy, type SearchHistoryReceipt, SearchHistoryRequiredError, type SearchLedger, type SearchLedgerAppendResult, type SearchLedgerBinding, SearchLedgerConflictError, type SearchLedgerEntry, SearchLedgerError, type SearchLedgerEvent, type SearchLedgerHash, SearchLedgerIntegrityError, type SearchLedgerReplay, type SearchLedgerTrustedHeadMode, type SearchModelIdentity, type SearchOperationKind, type SearchOperationRecordedEvent, type SearchPlan, type SearchPlanExtendedEvent, type SearchPlannedEvent, type SearchPlannedOperation, type SearchPlannedTask, SearchRecorder, type SearchRecorderOptions, type SearchRunIdentity, type SearchSourceRef, type SearchSurfaceEffect, type SearchSurfaceEvidence, type SearchSurfaceKind, type SearchTaskAttemptedEvent, type SearchTaskOutcome, type SearchTokenAccounting, type SequentialDecideFn, type SequentialDecideOptions, type SequentialDecision, type SequentialObservation, type SequentialPairedGate, type SequentialPairedGateOptions, type SequentialStreamState, type SeriesDistribution, type SessionScript, type SingleRunLock, type SingleRunLockOptions, type SkillOptOptimizationMethodConfig, type SkillOptRunnerCommand, type SkillOptTrainerConfig, type SurfaceProposer, type TraceAnalystArtifact, type TraceAnalystScenario, type TraceSpan, type TransientFailureOptions, type UngroundedLiteralReport, type UserStory, type UserStoryVerdict, type Worktree, type WorktreeAdapter, WorktreeAdapterError, acquireSingleRunLock, analyzeCrossSurfaceInteractions, assertCampaignDesign, assertCampaignSplitIdentity, assertCodeSurfaceIdentity, assertCompleteSearchHistory, assertSearchHistoryMatchesReplay, autoevalsScorerJudge, buildCellSchedule, buildEvidenceVector, buildLoopProvenanceRecord, buildTraceAnalystSurfaceDispatch, campaignBreakdown, campaignMeanComposite, campaignMeasurementDigest, campaignScenarioIdentity, campaignSplitDigest, campaignSplitDigestFromIdentities, canonicalDigest, cellCachePath, classifyUngroundedLiterals, codeSurfaceIdentityMaterial, combineComparisonCosts, compareOptimizationMethods, compareRankKeys, componentSurfaceIdentityMaterial, composeGate, costFromLedgerSummary, createProfileMatrixPlan, createReferenceEquivalenceJudge, createRunCostLedger, createSearchHistoryReceipt, crowdedFrontierParent, decodeExternalTextCandidate, defaultProductionGate, detectScale, dimensionRegressions, discoverEvalFixtures, emitLoopProvenance, externalTextOptimizationMethod, finalizeProfileMatrix, fsCampaignStorage, gepaOptimizationMethod, gitWorktreeAdapter, heldOutGate, heldoutSignificance, inMemoryCampaignStorage, isProposedCandidate, isTransientTransportFailure, labelTrustRank, llmJudge, loadEvalFixture, loadEvalFixtureScenarios, loopProvenanceArgsFromResult, loopProvenanceSpans, makePlaybackDispatch, makeProposalFinding, neutralizationGate, neutralizeText, openAutoPr, openSearchLedger, optimizationTokenUsageFromSummary, pairHoldout, paretoPolicy, paretoSignificanceGate, phoenixEvaluatorJudge, planCampaignRun, planEvalFixtureRun, powerPreflight, provenanceRecordPath, provenanceSpansPath, readCachedCell, readExternalOptimizerObservationArtifact, readGepaCandidatePopulationArtifact, recordCandidatePopulationSearch, renderScoreboardMarkdown, renderSurfaceDiff, resolveExternalOptimizerCallbackLimits, resolveExternalOptimizerProcessLimits, resolveRunDir, resolveWorktreePath, rolloutArgumentDiff, runCampaign, runEval, runImprovementLoop, runOptimization, runProfileMatrix, runProfileMatrixSegment, scoreDiscrimination, scoreUserStory, scoreboardSummary, searchHistoryCoverageRow, selectDiscriminative, sequentialDecide, sequentialPairedGate, skillOptOptimizationMethod, surfaceContentHash, surfaceHash, tangleTracesRoot, traceAnalystQualityJudge, transientDispatchFailure, userStoryScoreboard, validateSearchLedgerEvent, verifyCodeSurface, verifyLoopProvenanceRecord, verifySearchHistoryReceipt };
|
|
10
|
+
import { a as ObjectiveSource, c as PromotionPolicy, d as paretoSignificanceGate, i as EvidenceVector, l as buildEvidenceVector, n as AxisVerdict, o as ParetoSignificanceGateOptions, r as BuildEvidenceVectorOptions, s as PromotionObjective, t as AxisEvidence, u as paretoPolicy } from "../promotion-policy-CvMda3kU.js";
|
|
11
|
+
import { _ as sequentialPairedGate, a as detectScale, c as pairHoldout, d as SequentialDecision, f as SequentialObservation, g as sequentialDecide, h as SequentialStreamState, i as PairedHoldout, l as SequentialDecideFn, m as SequentialPairedGateOptions, n as HeldoutSignificance, o as dimensionRegressions, p as SequentialPairedGate, r as HeldoutSignificanceOptions, s as heldoutSignificance, t as DimensionRegression, u as SequentialDecideOptions } from "../statistical-heldout-DTyB_6-1.js";
|
|
12
|
+
export { type AnalyzeCrossSurfaceInteractionsInput, type AutoevalsScoreLike, type AutoevalsScorerLike, type AxisEvidence, type AxisVerdict, type BuildEvidenceVectorOptions, type BuildLoopProvenanceArgs, type BuildTraceAnalystSurfaceDispatchOptions, type CacheIssueReason, type CacheRead, type CampaignAggregates, type CampaignArtifactWriter, type CampaignBreakdown, type CampaignCellFailureReceipt, type CampaignCellResult, type CampaignCellRetryPolicy, type CampaignCostMeter, type CampaignResult, type CampaignRunPlan, type CampaignRunPlanCell, type CampaignScenarioIdentity, type CampaignStorage, type CampaignTokenUsage, type CampaignTraceWriter, type CellScheduleSlot, type CodeSurface, type CodeSurfaceVerification, type CompareOptimizationMethodsOptions, type ComparisonCost, type ComponentSurface, type CostLedgerHandle, type CreateProfileMatrixPlanOptions, type CreateSearchHistoryReceiptInput, type CrossSurfaceAdditionDecision, type CrossSurfaceAdditionRejectionReason, type CrossSurfaceAttemptCompleteness, type CrossSurfaceBestSingleSelection, type CrossSurfaceBootstrapPolicy, type CrossSurfaceCandidate, type CrossSurfaceCandidateComparison, type CrossSurfaceCandidateEvidence, type CrossSurfaceCandidateOutcome, type CrossSurfaceCandidateSummary, type CrossSurfaceComponent, type CrossSurfaceComponentEvidence, type CrossSurfaceCompositionStep, type CrossSurfaceDistribution, type CrossSurfaceEligibility, type CrossSurfaceEvidenceBreakdown, type CrossSurfaceIneligibilityReason, type CrossSurfaceInteractionAwareSelection, type CrossSurfaceInteractionEffect, type CrossSurfaceInteractionPath, type CrossSurfaceInteractionReport, type CrossSurfaceInteractionTask, type CrossSurfaceNaiveStackSelection, type CrossSurfacePairCompatibility, type CrossSurfacePairEvidence, type CrossSurfacePairIncompatibilityReason, type CrossSurfacePairwiseEntry, type CrossSurfaceRankedSingle, type CrossSurfaceRelativeCost, type CrossSurfaceSelectionPolicy, type CrossSurfaceSelections, type CrossSurfaceTaskRow, type CrowdedFrontierParentOptions, DEFAULT_EXTERNAL_OPTIMIZER_CALLBACK_LIMITS, DEFAULT_EXTERNAL_OPTIMIZER_PROCESS_LIMITS, type DefaultProductionGateCheck, type DefaultProductionGateOptions, type DefaultProductionRewardHackingOptions, type DimensionRegression, type DiscriminationScore, type DispatchContext, type DispatchFn, type EmitLoopProvenanceArgs, type EmitLoopProvenanceResult, type EvalFixture, type EvalFixtureFile, type EvalFixtureLoadOptions, type EvalFixtureRunPlan, type EvalFixtureScenario, type EvalFixtureValidationMode, type EvidenceVector, type ExternalOptimizationExample, type ExternalOptimizerCallbackLimits, type ExternalOptimizerChatRequest, type ExternalOptimizerEndpointFormat, type ExternalOptimizerEvaluationObservation, type ExternalOptimizerEvaluationRefusalReason, type ExternalOptimizerExecutionSummary, type ExternalOptimizerModelBudget, type ExternalOptimizerModelCall, type ExternalOptimizerModelCallRequest, type ExternalOptimizerModelCallResult, type ExternalOptimizerModelExecutionObservation, type ExternalOptimizerObservationArtifact, type ExternalOptimizerObservationSummary, type ExternalOptimizerProcessLimits, type ExternalOptimizerRunnerCommand, type ExternalOptimizerSubmittedCandidate, type ExternalTextCandidate, type ExternalTextEvaluationResponse, type ExternalTextOptimizationMethodConfig, type ExternalTextOptimizerContext, type ExternalTextOptimizerResult, FileSearchLedger, type FinalizeProfileMatrixOptions, type FinalizedProfileMatrixResult, FsLabeledScenarioStore, type FsLabeledScenarioStoreOptions, type Gate, type GateCheckStatus, type GateContext, type GateContribution, type GateDecision, type GateResult, type GenerationCandidate, type GenerationRecord, type GepaAdaptiveEngineRun, type GepaCandidatePopulationArtifact, type GepaCandidatePopulationCandidate, type GepaCandidatePopulationSummary, type GepaCandidateSelectionScore, type GepaEngineOptions, type GepaEngineRun, type GepaOptimizationMethodConfig, type GepaOptimizationRecipe, type GepaRunnerCommand, type GitWorktreeAdapterOptions, type HeldOutGateOptions, type HeldoutSignificance, type HeldoutSignificanceOptions, type JudgeAggregate, type JudgeConfig, type JudgeDimension, type JudgeScore, type LabelTrust, type LabeledScenarioRecord, type LabeledScenarioSampleArgs, type LabeledScenarioSource, type LabeledScenarioStore, LabeledScenarioStoreError, type LabeledScenarioWrite, type LlmJudgeDimension, type LlmJudgeOptions, type LoadEvalFixtureScenariosOptions, type LoopProvenanceArgsFromResult, type LoopProvenanceBackend, type LoopProvenanceCandidate, type LoopProvenanceEvidence, type LoopProvenanceOptimizationMethod, type LoopProvenanceRecord, type MeasuredSearchCandidate, type MutableSurface, type NeutralizationGateOptions, type ObjectiveSource, type OpenAICompatibleOptimizerModel, type OpenAutoPrOptions, type OpenAutoPrResult, type OpenSearchLedgerOptions, type OptimizationMethod, type OptimizationMethodComparison, type OptimizationMethodInput, type OptimizationMethodPairwise, type OptimizationMethodProvenance, type OptimizationMethodResult, type OptimizationMethodRunOptions, type OptimizationMethodScore, type OptimizationPackageSource, type OptimizationTokenUsage, type OptimizerConfig, type OptimizerModelBudget, type PairedHoldout, type ParentSelectionContext, type ParentSelector, type ParetoParent, type ParetoSignificanceGateOptions, type PendingCostCallView, type PhoenixEvaluationResultLike, type PhoenixEvaluatorLike, type PlanCampaignRunOptions, type PlanEvalFixtureRunOptions, type PlaybackContext, type PlaybackDriver, type PlaybackStep, type PowerPreflight, type PowerPreflightOptions, type PremeasuredOptimizationBaseline, type ProfileDispatchFn, type ProfileMatrixCoverage, ProfileMatrixError, type ProfileMatrixPlan, type ProfileMatrixRow, type ProfileMatrixSegmentResult, type ProfileSummary, type PromotionObjective, type PromotionPolicy, type ProposalFinding, type ProposalFindingOrigin, type ProposalTrackContext, type ProposeContext, type ProposedCandidate, type ProposedSearchCandidate, type RedactionStatus, type ReferenceEquivalenceJudgeOptions, type ReferenceEquivalenceScenario, type RolloutArgumentDiff, type RolloutArgumentDiffOptions, type RolloutCall, type RunCampaignOptions, type RunEvalOptions, type RunImprovementLoopOptions, type RunImprovementLoopResult, type RunOptimizationOptions, type RunOptimizationResult, type RunProfileMatrixOptions, type RunProfileMatrixResult, type RunProfileMatrixSegmentOptions, type Scenario, type ScenarioAggregate, type ScenarioRollup, type ScenarioSignal, type ScoreboardRenderOptions, type ScoreboardRow, type ScoreboardSummary, type ScoredRollout, type ScoredSurfaceOutcome, type SearchAccountingAudit, type SearchArtifactRef, type SearchAttemptAccounting, type SearchCandidateDecidedEvent, type SearchCandidateLineage, type SearchCandidateRegisteredEvent, type SearchCandidateSlot, type SearchCandidateSlotClosedEvent, type SearchCandidateSurface, type SearchCompletedEvent, type SearchCostAccounting, type SearchExecutionIdentity, type SearchFailureReason, type SearchHistoryAuditSummary, type SearchHistoryCoverage, type SearchHistoryCoverageRow, type SearchHistoryPolicy, type SearchHistoryReceipt, SearchHistoryRequiredError, type SearchLedger, type SearchLedgerAppendResult, type SearchLedgerBinding, SearchLedgerConflictError, type SearchLedgerEntry, SearchLedgerError, type SearchLedgerEvent, type SearchLedgerHash, SearchLedgerIntegrityError, type SearchLedgerReplay, type SearchLedgerTrustedHeadMode, type SearchModelIdentity, type SearchOperationKind, type SearchOperationRecordedEvent, type SearchPlan, type SearchPlanExtendedEvent, type SearchPlannedEvent, type SearchPlannedOperation, type SearchPlannedTask, SearchRecorder, type SearchRecorderOptions, type SearchRunIdentity, type SearchSourceRef, type SearchSurfaceEffect, type SearchSurfaceEvidence, type SearchSurfaceKind, type SearchTaskAttemptedEvent, type SearchTaskOutcome, type SearchTokenAccounting, type SequentialDecideFn, type SequentialDecideOptions, type SequentialDecision, type SequentialObservation, type SequentialPairedGate, type SequentialPairedGateOptions, type SequentialStreamState, type SeriesDistribution, type SessionScript, type SingleRunLock, type SingleRunLockOptions, type SkillOptOptimizationMethodConfig, type SkillOptRunnerCommand, type SkillOptTrainerConfig, type SurfaceProposer, type TraceAnalystArtifact, type TraceAnalystScenario, type TraceSpan, type TransientFailureOptions, type UngroundedLiteralReport, type UserStory, type UserStoryVerdict, type Worktree, type WorktreeAdapter, WorktreeAdapterError, acquireSingleRunLock, analyzeCrossSurfaceInteractions, assertCampaignDesign, assertCampaignSplitIdentity, assertCodeSurfaceIdentity, assertCompleteSearchHistory, assertSearchHistoryMatchesReplay, autoevalsScorerJudge, buildCellSchedule, buildEvidenceVector, buildLoopProvenanceRecord, buildTraceAnalystSurfaceDispatch, campaignBreakdown, campaignMeanComposite, campaignMeasurementDigest, campaignScenarioIdentity, campaignSplitDigest, campaignSplitDigestFromIdentities, canonicalDigest, cellCachePath, classifyUngroundedLiterals, codeSurfaceIdentityMaterial, combineComparisonCosts, compareOptimizationMethods, compareRankKeys, componentSurfaceIdentityMaterial, composeGate, costFromLedgerSummary, createProfileMatrixPlan, createReferenceEquivalenceJudge, createRunCostLedger, createSearchHistoryReceipt, crowdedFrontierParent, decodeExternalTextCandidate, defaultProductionGate, detectScale, dimensionRegressions, discoverEvalFixtures, emitLoopProvenance, externalTextOptimizationMethod, finalizeProfileMatrix, fsCampaignStorage, gepaOptimizationMethod, gitWorktreeAdapter, heldOutGate, heldoutSignificance, inMemoryCampaignStorage, isProposedCandidate, isTransientTransportFailure, labelTrustRank, llmJudge, loadEvalFixture, loadEvalFixtureScenarios, loopProvenanceArgsFromResult, loopProvenanceSpans, makePlaybackDispatch, makeProposalFinding, neutralizationGate, neutralizeText, openAutoPr, openSearchLedger, optimizationTokenUsageFromSummary, pairHoldout, paretoPolicy, paretoSignificanceGate, phoenixEvaluatorJudge, planCampaignRun, planEvalFixtureRun, powerPreflight, provenanceRecordPath, provenanceSpansPath, quotaExhaustedUntil, readCachedCell, readExternalOptimizerObservationArtifact, readGepaCandidatePopulationArtifact, recordCandidatePopulationSearch, renderScoreboardMarkdown, renderSurfaceDiff, resolveExternalOptimizerCallbackLimits, resolveExternalOptimizerProcessLimits, resolveRunDir, resolveWorktreePath, rolloutArgumentDiff, runCampaign, runEval, runImprovementLoop, runOptimization, runProfileMatrix, runProfileMatrixSegment, scoreDiscrimination, scoreUserStory, scoreboardSummary, searchHistoryCoverageRow, selectDiscriminative, sequentialDecide, sequentialPairedGate, skillOptOptimizationMethod, surfaceContentHash, surfaceHash, tangleTracesRoot, traceAnalystQualityJudge, transientDispatchFailure, userStoryScoreboard, validateSearchLedgerEvent, verifyCodeSurface, verifyLoopProvenanceRecord, verifySearchHistoryReceipt };
|
package/dist/campaign/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import { C as inMemoryCampaignStorage, D as SearchLedgerIntegrityError, E as SearchLedgerError, S as fsCampaignStorage, T as SearchLedgerConflictError, l as DEFAULT_EXTERNAL_OPTIMIZER_CALLBACK_LIMITS, u as DEFAULT_EXTERNAL_OPTIMIZER_PROCESS_LIMITS, v as resolveExternalOptimizerCallbackLimits, x as createRunCostLedger, y as resolveExternalOptimizerProcessLimits } from "../external-optimizer-subprocess-
|
|
1
|
+
import { A as costFromLedgerSummary, B as assertSearchHistoryMatchesReplay, E as openAutoPr, F as renderSurfaceDiff, G as campaignMeanComposite, H as searchHistoryCoverageRow, I as surfaceContentHash, K as compareRankKeys, L as surfaceHash, M as assertCodeSurfaceIdentity, N as codeSurfaceIdentityMaterial, O as combineComparisonCosts, P as componentSurfaceIdentityMaterial, Q as defaultProductionGate, R as SearchHistoryRequiredError, S as recordCandidatePopulationSearch, U as verifySearchHistoryReceipt, V as createSearchHistoryReceipt, W as campaignBreakdown, Z as readGepaCandidatePopulationArtifact, _ as runImprovementLoop, _t as readCachedCell, a as transientDispatchFailure, at as runCampaign, b as labelTrustRank, c as buildLoopProvenanceRecord, ct as tangleTracesRoot, d as emitLoopProvenance, f as loopProvenanceArgsFromResult, ft as assertCampaignDesign, g as verifyLoopProvenanceRecord, gt as campaignSplitDigestFromIdentities, h as provenanceSpansPath, ht as campaignSplitDigest, i as quotaExhaustedUntil, it as runEval, j as optimizationTokenUsageFromSummary, k as compareOptimizationMethods, l as campaignMeasurementDigest, m as provenanceRecordPath, mt as campaignScenarioIdentity, ot as planCampaignRun, p as loopProvenanceSpans, pt as assertCampaignSplitIdentity, r as isTransientTransportFailure, st as resolveRunDir, t as llmJudge, u as canonicalDigest, v as runOptimization, vt as buildCellSchedule, x as SearchRecorder, y as isProposedCandidate, yt as cellCachePath, z as assertCompleteSearchHistory } from "../llm-judge-B2YxbAJb.js";
|
|
2
|
+
import { C as inMemoryCampaignStorage, D as SearchLedgerIntegrityError, E as SearchLedgerError, S as fsCampaignStorage, T as SearchLedgerConflictError, l as DEFAULT_EXTERNAL_OPTIMIZER_CALLBACK_LIMITS, u as DEFAULT_EXTERNAL_OPTIMIZER_PROCESS_LIMITS, v as resolveExternalOptimizerCallbackLimits, x as createRunCostLedger, y as resolveExternalOptimizerProcessLimits } from "../external-optimizer-subprocess-DgNebftP.js";
|
|
3
3
|
import { a as heldoutSignificance, i as dimensionRegressions, o as pairHoldout, r as detectScale, t as powerPreflight } from "../power-preflight-CFXm0Vjo.js";
|
|
4
4
|
import { i as makeProposalFinding } from "../types-CiWITkGo.js";
|
|
5
|
-
import { n as acquireSingleRunLock } from "../external-optimizer-process-
|
|
6
|
-
import { a as validateSearchLedgerEvent, c as externalTextOptimizationMethod, i as openSearchLedger, l as decodeExternalTextCandidate, n as gepaOptimizationMethod, o as heldOutGate, p as createReferenceEquivalenceJudge, r as FileSearchLedger, s as composeGate, t as skillOptOptimizationMethod, u as readExternalOptimizerObservationArtifact } from "../skillopt-optimization-method-
|
|
7
|
-
import { A as analyzeCrossSurfaceInteractions, C as classifyUngroundedLiterals, D as loadEvalFixture, E as discoverEvalFixtures, M as traceAnalystQualityJudge, O as loadEvalFixtureScenarios, S as LabeledScenarioStoreError, T as neutralizationGate, _ as scoreboardSummary, a as autoevalsScorerJudge, b as neutralizeText, c as selectDiscriminative, d as runProfileMatrixSegment, f as ProfileMatrixError, g as scoreUserStory, h as renderScoreboardMarkdown, i as verifyCodeSurface, j as buildTraceAnalystSurfaceDispatch, k as planEvalFixtureRun, l as createProfileMatrixPlan, m as makePlaybackDispatch, n as gitWorktreeAdapter, o as phoenixEvaluatorJudge, p as runProfileMatrix, r as resolveWorktreePath, s as scoreDiscrimination, t as WorktreeAdapterError, u as finalizeProfileMatrix, v as userStoryScoreboard, w as rolloutArgumentDiff, x as FsLabeledScenarioStore, y as crowdedFrontierParent } from "../campaign-
|
|
5
|
+
import { n as acquireSingleRunLock } from "../external-optimizer-process-Cq_Pg15r.js";
|
|
6
|
+
import { a as validateSearchLedgerEvent, c as externalTextOptimizationMethod, i as openSearchLedger, l as decodeExternalTextCandidate, n as gepaOptimizationMethod, o as heldOutGate, p as createReferenceEquivalenceJudge, r as FileSearchLedger, s as composeGate, t as skillOptOptimizationMethod, u as readExternalOptimizerObservationArtifact } from "../skillopt-optimization-method-BzdphODy.js";
|
|
7
|
+
import { A as analyzeCrossSurfaceInteractions, C as classifyUngroundedLiterals, D as loadEvalFixture, E as discoverEvalFixtures, M as traceAnalystQualityJudge, O as loadEvalFixtureScenarios, S as LabeledScenarioStoreError, T as neutralizationGate, _ as scoreboardSummary, a as autoevalsScorerJudge, b as neutralizeText, c as selectDiscriminative, d as runProfileMatrixSegment, f as ProfileMatrixError, g as scoreUserStory, h as renderScoreboardMarkdown, i as verifyCodeSurface, j as buildTraceAnalystSurfaceDispatch, k as planEvalFixtureRun, l as createProfileMatrixPlan, m as makePlaybackDispatch, n as gitWorktreeAdapter, o as phoenixEvaluatorJudge, p as runProfileMatrix, r as resolveWorktreePath, s as scoreDiscrimination, t as WorktreeAdapterError, u as finalizeProfileMatrix, v as userStoryScoreboard, w as rolloutArgumentDiff, x as FsLabeledScenarioStore, y as crowdedFrontierParent } from "../campaign-pxS0wmo4.js";
|
|
8
8
|
import { n as paretoPolicy, r as paretoSignificanceGate, t as buildEvidenceVector } from "../promotion-policy-LY9mVQ7W.js";
|
|
9
9
|
import { n as sequentialPairedGate, t as sequentialDecide } from "../sequential-B51qAYE4.js";
|
|
10
|
-
export { DEFAULT_EXTERNAL_OPTIMIZER_CALLBACK_LIMITS, DEFAULT_EXTERNAL_OPTIMIZER_PROCESS_LIMITS, FileSearchLedger, FsLabeledScenarioStore, LabeledScenarioStoreError, ProfileMatrixError, SearchHistoryRequiredError, SearchLedgerConflictError, SearchLedgerError, SearchLedgerIntegrityError, SearchRecorder, WorktreeAdapterError, acquireSingleRunLock, analyzeCrossSurfaceInteractions, assertCampaignDesign, assertCampaignSplitIdentity, assertCodeSurfaceIdentity, assertCompleteSearchHistory, assertSearchHistoryMatchesReplay, autoevalsScorerJudge, buildCellSchedule, buildEvidenceVector, buildLoopProvenanceRecord, buildTraceAnalystSurfaceDispatch, campaignBreakdown, campaignMeanComposite, campaignMeasurementDigest, campaignScenarioIdentity, campaignSplitDigest, campaignSplitDigestFromIdentities, canonicalDigest, cellCachePath, classifyUngroundedLiterals, codeSurfaceIdentityMaterial, combineComparisonCosts, compareOptimizationMethods, compareRankKeys, componentSurfaceIdentityMaterial, composeGate, costFromLedgerSummary, createProfileMatrixPlan, createReferenceEquivalenceJudge, createRunCostLedger, createSearchHistoryReceipt, crowdedFrontierParent, decodeExternalTextCandidate, defaultProductionGate, detectScale, dimensionRegressions, discoverEvalFixtures, emitLoopProvenance, externalTextOptimizationMethod, finalizeProfileMatrix, fsCampaignStorage, gepaOptimizationMethod, gitWorktreeAdapter, heldOutGate, heldoutSignificance, inMemoryCampaignStorage, isProposedCandidate, isTransientTransportFailure, labelTrustRank, llmJudge, loadEvalFixture, loadEvalFixtureScenarios, loopProvenanceArgsFromResult, loopProvenanceSpans, makePlaybackDispatch, makeProposalFinding, neutralizationGate, neutralizeText, openAutoPr, openSearchLedger, optimizationTokenUsageFromSummary, pairHoldout, paretoPolicy, paretoSignificanceGate, phoenixEvaluatorJudge, planCampaignRun, planEvalFixtureRun, powerPreflight, provenanceRecordPath, provenanceSpansPath, readCachedCell, readExternalOptimizerObservationArtifact, readGepaCandidatePopulationArtifact, recordCandidatePopulationSearch, renderScoreboardMarkdown, renderSurfaceDiff, resolveExternalOptimizerCallbackLimits, resolveExternalOptimizerProcessLimits, resolveRunDir, resolveWorktreePath, rolloutArgumentDiff, runCampaign, runEval, runImprovementLoop, runOptimization, runProfileMatrix, runProfileMatrixSegment, scoreDiscrimination, scoreUserStory, scoreboardSummary, searchHistoryCoverageRow, selectDiscriminative, sequentialDecide, sequentialPairedGate, skillOptOptimizationMethod, surfaceContentHash, surfaceHash, tangleTracesRoot, traceAnalystQualityJudge, transientDispatchFailure, userStoryScoreboard, validateSearchLedgerEvent, verifyCodeSurface, verifyLoopProvenanceRecord, verifySearchHistoryReceipt };
|
|
10
|
+
export { DEFAULT_EXTERNAL_OPTIMIZER_CALLBACK_LIMITS, DEFAULT_EXTERNAL_OPTIMIZER_PROCESS_LIMITS, FileSearchLedger, FsLabeledScenarioStore, LabeledScenarioStoreError, ProfileMatrixError, SearchHistoryRequiredError, SearchLedgerConflictError, SearchLedgerError, SearchLedgerIntegrityError, SearchRecorder, WorktreeAdapterError, acquireSingleRunLock, analyzeCrossSurfaceInteractions, assertCampaignDesign, assertCampaignSplitIdentity, assertCodeSurfaceIdentity, assertCompleteSearchHistory, assertSearchHistoryMatchesReplay, autoevalsScorerJudge, buildCellSchedule, buildEvidenceVector, buildLoopProvenanceRecord, buildTraceAnalystSurfaceDispatch, campaignBreakdown, campaignMeanComposite, campaignMeasurementDigest, campaignScenarioIdentity, campaignSplitDigest, campaignSplitDigestFromIdentities, canonicalDigest, cellCachePath, classifyUngroundedLiterals, codeSurfaceIdentityMaterial, combineComparisonCosts, compareOptimizationMethods, compareRankKeys, componentSurfaceIdentityMaterial, composeGate, costFromLedgerSummary, createProfileMatrixPlan, createReferenceEquivalenceJudge, createRunCostLedger, createSearchHistoryReceipt, crowdedFrontierParent, decodeExternalTextCandidate, defaultProductionGate, detectScale, dimensionRegressions, discoverEvalFixtures, emitLoopProvenance, externalTextOptimizationMethod, finalizeProfileMatrix, fsCampaignStorage, gepaOptimizationMethod, gitWorktreeAdapter, heldOutGate, heldoutSignificance, inMemoryCampaignStorage, isProposedCandidate, isTransientTransportFailure, labelTrustRank, llmJudge, loadEvalFixture, loadEvalFixtureScenarios, loopProvenanceArgsFromResult, loopProvenanceSpans, makePlaybackDispatch, makeProposalFinding, neutralizationGate, neutralizeText, openAutoPr, openSearchLedger, optimizationTokenUsageFromSummary, pairHoldout, paretoPolicy, paretoSignificanceGate, phoenixEvaluatorJudge, planCampaignRun, planEvalFixtureRun, powerPreflight, provenanceRecordPath, provenanceSpansPath, quotaExhaustedUntil, readCachedCell, readExternalOptimizerObservationArtifact, readGepaCandidatePopulationArtifact, recordCandidatePopulationSearch, renderScoreboardMarkdown, renderSurfaceDiff, resolveExternalOptimizerCallbackLimits, resolveExternalOptimizerProcessLimits, resolveRunDir, resolveWorktreePath, rolloutArgumentDiff, runCampaign, runEval, runImprovementLoop, runOptimization, runProfileMatrix, runProfileMatrixSegment, scoreDiscrimination, scoreUserStory, scoreboardSummary, searchHistoryCoverageRow, selectDiscriminative, sequentialDecide, sequentialPairedGate, skillOptOptimizationMethod, surfaceContentHash, surfaceHash, tangleTracesRoot, traceAnalystQualityJudge, transientDispatchFailure, userStoryScoreboard, validateSearchLedgerEvent, verifyCodeSurface, verifyLoopProvenanceRecord, verifySearchHistoryReceipt };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { s as ValidationError, t as AgentEvalError } from "./errors-Dngq5h35.js";
|
|
2
2
|
import { i as compareCodeUnits } from "./canonical-DPyQ_rpt.js";
|
|
3
|
-
import { c as agentProfileId, d as harnessAxisOf, i as verifyCompletion, l as agentProfileModelId, s as agentProfileHash, t as extractProducedState } from "./produced-state-
|
|
3
|
+
import { c as agentProfileId, d as harnessAxisOf, i as verifyCompletion, l as agentProfileModelId, s as agentProfileHash, t as extractProducedState } from "./produced-state-7VYDwtkk.js";
|
|
4
4
|
import { buildAgentProfileCell } from "./profile-cell.js";
|
|
5
5
|
import { t as mulberry32 } from "./random-Dn5fPWkt.js";
|
|
6
6
|
import { t as comparePairedArms } from "./paired-arms-D4aeIHUy.js";
|
|
7
7
|
import { r as pairedBootstrap } from "./paired-tests-C8iCsioC.js";
|
|
8
|
-
import { c as validateRunRecord, i as modelHasSnapshot, n as UNKNOWN_MODEL, s as runTaskScore } from "./run-record-
|
|
8
|
+
import { c as validateRunRecord, i as modelHasSnapshot, n as UNKNOWN_MODEL, s as runTaskScore } from "./run-record-ZIsR9Fif.js";
|
|
9
9
|
import { n as contentHash, t as canonicalJson } from "./verdict-cache-B3eCVQtY.js";
|
|
10
|
-
import {
|
|
11
|
-
import { a as campaignCellCostProvenance, l as campaignCellToRunRecord, u as projectCampaignCellQuality } from "./reward-hacking-
|
|
10
|
+
import { I as surfaceContentHash, M as assertCodeSurfaceIdentity, T as paretoFrontierWithCrowding, at as runCampaign, b as labelTrustRank, bt as computeManifestHash, dt as summarizeBackendIntegrity, ft as assertCampaignDesign, mt as campaignScenarioIdentity, ot as planCampaignRun, st as resolveRunDir, ut as assertRealBackend, yt as cellCachePath } from "./llm-judge-B2YxbAJb.js";
|
|
11
|
+
import { a as campaignCellCostProvenance, l as campaignCellToRunRecord, u as projectCampaignCellQuality } from "./reward-hacking-CKW4teig.js";
|
|
12
12
|
import { t as CostAccountingIncompleteError } from "./cost-ledger-B1qx30B4.js";
|
|
13
13
|
import { u as mapConcurrent } from "./ledger-core-PIfjCbKn.js";
|
|
14
|
-
import { S as fsCampaignStorage } from "./external-optimizer-subprocess-
|
|
14
|
+
import { S as fsCampaignStorage } from "./external-optimizer-subprocess-DgNebftP.js";
|
|
15
15
|
import { o as pairHoldout } from "./power-preflight-CFXm0Vjo.js";
|
|
16
16
|
import { a as scoreAnalystFindings } from "./benchmark-C4wk_Sjr.js";
|
|
17
|
-
import "./external-optimizer-process-
|
|
18
|
-
import "./skillopt-optimization-method-
|
|
17
|
+
import "./external-optimizer-process-Cq_Pg15r.js";
|
|
18
|
+
import "./skillopt-optimization-method-BzdphODy.js";
|
|
19
19
|
import "./sequential-B51qAYE4.js";
|
|
20
20
|
import { createHash } from "node:crypto";
|
|
21
21
|
import { closeSync, constants, existsSync, fstatSync, lstatSync, mkdirSync, mkdtempSync, openSync, readFileSync, readSync, readdirSync, readlinkSync, realpathSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
@@ -3050,4 +3050,4 @@ function resolveWorktreePath(surface, worktreeDir) {
|
|
|
3050
3050
|
//#endregion
|
|
3051
3051
|
export { analyzeCrossSurfaceInteractions as A, classifyUngroundedLiterals as C, loadEvalFixture as D, discoverEvalFixtures as E, traceAnalystQualityJudge as M, loadEvalFixtureScenarios as O, LabeledScenarioStoreError as S, neutralizationGate as T, scoreboardSummary as _, autoevalsScorerJudge as a, neutralizeText as b, selectDiscriminative as c, runProfileMatrixSegment as d, ProfileMatrixError as f, scoreUserStory as g, renderScoreboardMarkdown as h, verifyCodeSurface as i, buildTraceAnalystSurfaceDispatch as j, planEvalFixtureRun as k, createProfileMatrixPlan as l, makePlaybackDispatch as m, gitWorktreeAdapter as n, phoenixEvaluatorJudge as o, runProfileMatrix as p, resolveWorktreePath as r, scoreDiscrimination as s, WorktreeAdapterError as t, finalizeProfileMatrix as u, userStoryScoreboard as v, rolloutArgumentDiff as w, FsLabeledScenarioStore as x, crowdedFrontierParent as y };
|
|
3052
3052
|
|
|
3053
|
-
//# sourceMappingURL=campaign-
|
|
3053
|
+
//# sourceMappingURL=campaign-pxS0wmo4.js.map
|