@tangle-network/agent-runtime 0.116.0 → 0.119.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/README.md +9 -1
- package/dist/{activation-DuqQhee6.js → activation-DdIpwQ0k.js} +3 -3
- package/dist/{activation-DuqQhee6.js.map → activation-DdIpwQ0k.js.map} +1 -1
- package/dist/agent.d.ts +3 -64
- package/dist/agent.js +5 -207
- package/dist/agent.js.map +1 -1
- package/dist/{analyst-loop-BoNIG2hA.js → analyst-loop-DvSciOfB.js} +2 -2
- package/dist/{analyst-loop-BoNIG2hA.js.map → analyst-loop-DvSciOfB.js.map} +1 -1
- package/dist/analyst-loop.js +1 -1
- package/dist/candidate-execution/index.d.ts +3 -3
- package/dist/candidate-execution/index.js +5 -5
- package/dist/{candidate-execution-CfpJrd3o.js → candidate-execution-DDkSRPjY.js} +4 -4
- package/dist/{candidate-execution-CfpJrd3o.js.map → candidate-execution-DDkSRPjY.js.map} +1 -1
- package/dist/{environment-provider-CWsRh6Uz.d.ts → environment-provider-Bh4nX2qt.d.ts} +306 -32
- package/dist/{environment-provider-CCaEhA-l.js → environment-provider-Cr75N-rU.js} +141 -32
- package/dist/environment-provider-Cr75N-rU.js.map +1 -0
- package/dist/environment-provider.d.ts +1 -1
- package/dist/environment-provider.js +1 -1
- package/dist/{improvement-cycle-C1cmjvPD.js → improvement-cycle-zjR-MXwK.js} +163 -22
- package/dist/improvement-cycle-zjR-MXwK.js.map +1 -0
- package/dist/{index-C-FYUuFG.d.ts → index-B3bHsVLw.d.ts} +2 -2
- package/dist/{index-CYkDeM5L.d.ts → index-BLsKcxNd.d.ts} +3 -3
- package/dist/{index-COumPQka.d.ts → index-CGADWaa_.d.ts} +864 -437
- package/dist/{index-DcLMNnG5.d.ts → index-I35151Fr.d.ts} +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.js +13 -13
- package/dist/index.js.map +1 -1
- package/dist/intelligence.d.ts +10 -9
- package/dist/intelligence.js +15 -9
- package/dist/intelligence.js.map +1 -1
- package/dist/kernel.d.ts +4 -4
- package/dist/kernel.js +9 -8
- package/dist/{knowledge-DOzbywZT.js → knowledge-I1e9zQGj.js} +7 -7
- package/dist/knowledge-I1e9zQGj.js.map +1 -0
- package/dist/knowledge.d.ts +1 -1
- package/dist/knowledge.js +1 -1
- package/dist/{local-harness-t6cDWDQ2.d.ts → local-harness-BIajef4A.d.ts} +29 -7
- package/dist/{loop-runner-bin-BFrhPLKt.d.ts → loop-runner-bin-BeG9vTdE.d.ts} +3 -3
- package/dist/{loop-runner-bin-BuQjc5DR.js → loop-runner-bin-L996YVPS.js} +4 -4
- package/dist/{loop-runner-bin-BuQjc5DR.js.map → loop-runner-bin-L996YVPS.js.map} +1 -1
- package/dist/loop-runner-bin.d.ts +1 -1
- package/dist/loop-runner-bin.js +1 -1
- package/dist/mcp/bin.js +43 -10
- package/dist/mcp/bin.js.map +1 -1
- package/dist/mcp/index.d.ts +5 -45
- package/dist/mcp/index.js +8 -212
- package/dist/mcp/index.js.map +1 -1
- package/dist/{openai-tools-_Wyp4udO.js → openai-tools-CvFEzw6f.js} +2 -2
- package/dist/{openai-tools-_Wyp4udO.js.map → openai-tools-CvFEzw6f.js.map} +1 -1
- package/dist/{prepare-BHQBb02e.js → prepare-DpV6np9e.js} +47 -34
- package/dist/prepare-DpV6np9e.js.map +1 -0
- package/dist/primeintellect/index.d.ts +1 -1
- package/dist/{protected-model-port-BP6Z4eau.d.ts → protected-model-port-CoJOiINX.d.ts} +11 -3
- package/dist/{protected-model-port-DqAH1Z2M.js → protected-model-port-vQLBRoAQ.js} +2 -2
- package/dist/{protected-model-port-DqAH1Z2M.js.map → protected-model-port-vQLBRoAQ.js.map} +1 -1
- package/dist/{redact-BEtQtvd6.d.ts → redact-PQzmE1Jn.d.ts} +4 -4
- package/dist/run-layout-C2FGmZ3v.js +158 -0
- package/dist/run-layout-C2FGmZ3v.js.map +1 -0
- package/dist/{runtime-Ut1pkd2n.js → runtime-D4e3GP5K.js} +147 -190
- package/dist/runtime-D4e3GP5K.js.map +1 -0
- package/dist/{sandbox-events-DeI5xX8P.js → sandbox-events-Yhd1GYWl.js} +4 -2
- package/dist/sandbox-events-Yhd1GYWl.js.map +1 -0
- package/dist/spawn-journal-IeXpidO2.js +857 -0
- package/dist/spawn-journal-IeXpidO2.js.map +1 -0
- package/dist/{structural-rollout-CVY_0hJp.js → structural-rollout-DQHO3b2Y.js} +4 -4
- package/dist/structural-rollout-DQHO3b2Y.js.map +1 -0
- package/dist/{supervise-BUR9ByF7.js → supervise-Cq50UT5-.js} +2874 -1892
- package/dist/supervise-Cq50UT5-.js.map +1 -0
- package/dist/{supervisor-BBbPBXpe.js → supervisor-CpT9yAxL.js} +2896 -983
- package/dist/supervisor-CpT9yAxL.js.map +1 -0
- package/dist/testing.js +98 -76
- package/dist/testing.js.map +1 -1
- package/dist/top-app-5unxqovu.js +1088 -0
- package/dist/top-app-5unxqovu.js.map +1 -0
- package/dist/tui/bin.d.ts +1 -0
- package/dist/tui/bin.js +19 -0
- package/dist/tui/bin.js.map +1 -0
- package/dist/tui/index.d.ts +209 -0
- package/dist/tui/index.js +2 -0
- package/dist/{util-Cc9g9Y-o.js → util-MVgdwuIS.js} +2 -2
- package/dist/{util-Cc9g9Y-o.js.map → util-MVgdwuIS.js.map} +1 -1
- package/dist/{workspace-archive-DXzJq7WP.js → workspace-archive-B4SkNJjw.js} +2 -2
- package/dist/{workspace-archive-DXzJq7WP.js.map → workspace-archive-B4SkNJjw.js.map} +1 -1
- package/package.json +8 -2
- package/dist/environment-provider-CCaEhA-l.js.map +0 -1
- package/dist/improvement-cycle-C1cmjvPD.js.map +0 -1
- package/dist/knowledge-DOzbywZT.js.map +0 -1
- package/dist/prepare-BHQBb02e.js.map +0 -1
- package/dist/runtime-Ut1pkd2n.js.map +0 -1
- package/dist/sandbox-events-DeI5xX8P.js.map +0 -1
- package/dist/spawn-journal-DCPbicXB.js +0 -457
- package/dist/spawn-journal-DCPbicXB.js.map +0 -1
- package/dist/structural-rollout-CVY_0hJp.js.map +0 -1
- package/dist/supervise-BUR9ByF7.js.map +0 -1
- package/dist/supervisor-BBbPBXpe.js.map +0 -1
package/dist/testing.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { $ as parseExactAgentProfile, K as applyExactAgentProfileDiff, rt as canonicalCandidateDigest$1, st as immutableCandidateValue } from "./prepare-
|
|
2
|
-
import { f as verifyAgentImprovementProposal } from "./improvement-cycle-
|
|
1
|
+
import { $ as parseExactAgentProfile, K as applyExactAgentProfileDiff, rt as canonicalCandidateDigest$1, st as immutableCandidateValue } from "./prepare-DpV6np9e.js";
|
|
2
|
+
import { f as verifyAgentImprovementProposal } from "./improvement-cycle-zjR-MXwK.js";
|
|
3
3
|
import { SANDBOX_SIZE_PRESET_NAMES } from "@tangle-network/agent-interface";
|
|
4
4
|
//#region src/testing/fixtures/agent-improvement-proposal.json
|
|
5
5
|
var agent_improvement_proposal_default = {
|
|
6
6
|
changedSurfaces: ["prompt"],
|
|
7
|
-
digest: "sha256:
|
|
7
|
+
digest: "sha256:431e42dbba76b3e3b6f413526426979b06d0fd429dabe52a641c74b77fb3f3ca",
|
|
8
8
|
evaluation: {
|
|
9
9
|
"decision": {
|
|
10
10
|
"contributingChecks": [
|
|
@@ -4515,7 +4515,7 @@ var agent_improvement_proposal_default = {
|
|
|
4515
4515
|
],
|
|
4516
4516
|
"metadata": {
|
|
4517
4517
|
"fixture": "agent-improvement-proposal",
|
|
4518
|
-
"runtimeVersion": "0.
|
|
4518
|
+
"runtimeVersion": "0.119.0"
|
|
4519
4519
|
},
|
|
4520
4520
|
"objectives": [
|
|
4521
4521
|
{
|
|
@@ -4626,8 +4626,8 @@ var agent_improvement_proposal_default = {
|
|
|
4626
4626
|
"baselineContentHash": "sha256:5c21ee53e513fc604cb09754e21c392b24a424da0ef37dbf8f1ee4a8a0b08f09",
|
|
4627
4627
|
"candidateContentHash": "sha256:60fcbb1c728194bd51d7d19cb732d1c3f1881dce7e0a6266b41c8b98cfd65693",
|
|
4628
4628
|
"kind": "agent-eval-loop",
|
|
4629
|
-
"recordDigest": "sha256:
|
|
4630
|
-
"runId": "agent-runtime-0.
|
|
4629
|
+
"recordDigest": "sha256:7a20047351c63a7fdbf7952328c57f25ac6ba3a4c7b3502da98bd9fb9285ecfe",
|
|
4630
|
+
"runId": "agent-runtime-0.119.0-proposal-fixture",
|
|
4631
4631
|
"schema": "agent-candidate-experiment"
|
|
4632
4632
|
}
|
|
4633
4633
|
},
|
|
@@ -4650,23 +4650,45 @@ var agent_improvement_proposal_default = {
|
|
|
4650
4650
|
}],
|
|
4651
4651
|
kind: "agent-improvement-proposal",
|
|
4652
4652
|
proposedAt: "2026-07-10T01:00:00.000Z",
|
|
4653
|
-
runId: "agent-runtime-0.
|
|
4653
|
+
runId: "agent-runtime-0.119.0-proposal-fixture"
|
|
4654
4654
|
};
|
|
4655
4655
|
//#endregion
|
|
4656
4656
|
//#region src/testing/fixtures/agent-profile-improvement-proposal.json
|
|
4657
4657
|
var agent_profile_improvement_proposal_default = {
|
|
4658
4658
|
changedSurfaces: ["prompt", "skills"],
|
|
4659
|
-
digest: "sha256:
|
|
4659
|
+
digest: "sha256:cb043d43c78daa77fcae07d55c08c764f141b6e984214fc6c4eb8d438fa7b9a5",
|
|
4660
4660
|
evaluation: {
|
|
4661
4661
|
"decision": {
|
|
4662
|
-
"contributingChecks": [
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4662
|
+
"contributingChecks": [
|
|
4663
|
+
{
|
|
4664
|
+
"name": "paired-significance",
|
|
4665
|
+
"passed": true
|
|
4666
|
+
},
|
|
4667
|
+
{
|
|
4668
|
+
"name": "paired-precision",
|
|
4669
|
+
"passed": true
|
|
4670
|
+
},
|
|
4671
|
+
{
|
|
4672
|
+
"name": "all-runs-completed",
|
|
4673
|
+
"passed": true
|
|
4674
|
+
},
|
|
4675
|
+
{
|
|
4676
|
+
"name": "candidate-task-pass",
|
|
4677
|
+
"passed": true
|
|
4678
|
+
},
|
|
4679
|
+
{
|
|
4680
|
+
"name": "critical-dimensions",
|
|
4681
|
+
"passed": true
|
|
4682
|
+
},
|
|
4683
|
+
{
|
|
4684
|
+
"name": "budget",
|
|
4685
|
+
"passed": true
|
|
4686
|
+
}
|
|
4687
|
+
],
|
|
4666
4688
|
"outcome": "ship",
|
|
4667
|
-
"reasons": ["
|
|
4689
|
+
"reasons": ["all measured checks passed"]
|
|
4668
4690
|
},
|
|
4669
|
-
"diff": "prompt:
|
|
4691
|
+
"diff": "[{\"id\":\"add-source-and-uncertainty\",\"kind\":\"agent-profile-diff\",\"set\":{\"prompt\":{\"systemPrompt\":\"Answer directly, cite the source, and state uncertainty.\"},\"resources\":{\"skills\":[{\"content\":\"Cite the evidence you use.\",\"kind\":\"inline\",\"name\":\"sources.SKILL.md\"}]}},\"source\":{\"artifacts\":[\"traces://run/profile-improvement-1\"],\"kind\":\"optimizer\"}}]",
|
|
4670
4692
|
"evaluation": {
|
|
4671
4693
|
"generationsExplored": 1,
|
|
4672
4694
|
"measurement": {
|
|
@@ -4808,7 +4830,7 @@ var agent_profile_improvement_proposal_default = {
|
|
|
4808
4830
|
"identity": "bill-baseline-0",
|
|
4809
4831
|
"kind": "platform-billing"
|
|
4810
4832
|
}],
|
|
4811
|
-
"digest": "sha256:
|
|
4833
|
+
"digest": "sha256:9fb7c227fa5da24956b7ea5b59dfe7cd33e4cd3aa21c81e1506191da9dc23843",
|
|
4812
4834
|
"digestAlgorithm": "rfc8785-sha256",
|
|
4813
4835
|
"executionId": "baseline-0",
|
|
4814
4836
|
"executionRef": {
|
|
@@ -4819,7 +4841,7 @@ var agent_profile_improvement_proposal_default = {
|
|
|
4819
4841
|
"grading": {
|
|
4820
4842
|
"dimensions": [{
|
|
4821
4843
|
"name": "quality",
|
|
4822
|
-
"score":
|
|
4844
|
+
"score": 0
|
|
4823
4845
|
}],
|
|
4824
4846
|
"evidence": {
|
|
4825
4847
|
"digest": "sha256:d4df39e172d3701cceb170a3b4f809aebc61c050acc6f0ded51cd178bd8bad79",
|
|
@@ -4842,7 +4864,7 @@ var agent_profile_improvement_proposal_default = {
|
|
|
4842
4864
|
"version": "1"
|
|
4843
4865
|
},
|
|
4844
4866
|
"passed": true,
|
|
4845
|
-
"score":
|
|
4867
|
+
"score": 0,
|
|
4846
4868
|
"timing": {
|
|
4847
4869
|
"durationMs": 10,
|
|
4848
4870
|
"endedAtMs": 110,
|
|
@@ -4929,7 +4951,7 @@ var agent_profile_improvement_proposal_default = {
|
|
|
4929
4951
|
"identity": "bill-candidate-0",
|
|
4930
4952
|
"kind": "platform-billing"
|
|
4931
4953
|
}],
|
|
4932
|
-
"digest": "sha256:
|
|
4954
|
+
"digest": "sha256:6caab48474a18ccb40129f298bc498434937ffd5274f98c4f82f5b615087a13c",
|
|
4933
4955
|
"digestAlgorithm": "rfc8785-sha256",
|
|
4934
4956
|
"executionId": "candidate-0",
|
|
4935
4957
|
"executionRef": {
|
|
@@ -4940,7 +4962,7 @@ var agent_profile_improvement_proposal_default = {
|
|
|
4940
4962
|
"grading": {
|
|
4941
4963
|
"dimensions": [{
|
|
4942
4964
|
"name": "quality",
|
|
4943
|
-
"score":
|
|
4965
|
+
"score": 1
|
|
4944
4966
|
}],
|
|
4945
4967
|
"evidence": {
|
|
4946
4968
|
"digest": "sha256:d1c4971c7a415aaa1e2a1101611a18aa7c3870411c058cadba35b21fd2faf27a",
|
|
@@ -4963,7 +4985,7 @@ var agent_profile_improvement_proposal_default = {
|
|
|
4963
4985
|
"version": "1"
|
|
4964
4986
|
},
|
|
4965
4987
|
"passed": true,
|
|
4966
|
-
"score":
|
|
4988
|
+
"score": 1,
|
|
4967
4989
|
"timing": {
|
|
4968
4990
|
"durationMs": 10,
|
|
4969
4991
|
"endedAtMs": 110,
|
|
@@ -5052,7 +5074,7 @@ var agent_profile_improvement_proposal_default = {
|
|
|
5052
5074
|
"identity": "bill-baseline-1",
|
|
5053
5075
|
"kind": "platform-billing"
|
|
5054
5076
|
}],
|
|
5055
|
-
"digest": "sha256:
|
|
5077
|
+
"digest": "sha256:9b56aeae4c91105ad4b8b2c9f0ae0255292f3d62d4d30c7f067c22ed30823024",
|
|
5056
5078
|
"digestAlgorithm": "rfc8785-sha256",
|
|
5057
5079
|
"executionId": "baseline-1",
|
|
5058
5080
|
"executionRef": {
|
|
@@ -5063,7 +5085,7 @@ var agent_profile_improvement_proposal_default = {
|
|
|
5063
5085
|
"grading": {
|
|
5064
5086
|
"dimensions": [{
|
|
5065
5087
|
"name": "quality",
|
|
5066
|
-
"score":
|
|
5088
|
+
"score": 0
|
|
5067
5089
|
}],
|
|
5068
5090
|
"evidence": {
|
|
5069
5091
|
"digest": "sha256:26079c88be9d35bb6505546daaaae5263a5a86ce7a2958656e95ce77f42d57db",
|
|
@@ -5086,7 +5108,7 @@ var agent_profile_improvement_proposal_default = {
|
|
|
5086
5108
|
"version": "1"
|
|
5087
5109
|
},
|
|
5088
5110
|
"passed": true,
|
|
5089
|
-
"score":
|
|
5111
|
+
"score": 0,
|
|
5090
5112
|
"timing": {
|
|
5091
5113
|
"durationMs": 10,
|
|
5092
5114
|
"endedAtMs": 1110,
|
|
@@ -5173,7 +5195,7 @@ var agent_profile_improvement_proposal_default = {
|
|
|
5173
5195
|
"identity": "bill-candidate-1",
|
|
5174
5196
|
"kind": "platform-billing"
|
|
5175
5197
|
}],
|
|
5176
|
-
"digest": "sha256:
|
|
5198
|
+
"digest": "sha256:ec0a2eea90dbccc5b45a49a8108f785da8e7113ac582576d96ec76e5a47b4b22",
|
|
5177
5199
|
"digestAlgorithm": "rfc8785-sha256",
|
|
5178
5200
|
"executionId": "candidate-1",
|
|
5179
5201
|
"executionRef": {
|
|
@@ -5184,7 +5206,7 @@ var agent_profile_improvement_proposal_default = {
|
|
|
5184
5206
|
"grading": {
|
|
5185
5207
|
"dimensions": [{
|
|
5186
5208
|
"name": "quality",
|
|
5187
|
-
"score":
|
|
5209
|
+
"score": 1
|
|
5188
5210
|
}],
|
|
5189
5211
|
"evidence": {
|
|
5190
5212
|
"digest": "sha256:7ed258fae411110158ff573735ad08e4c0ca32b1e5edf8705a475b8f91aae055",
|
|
@@ -5207,7 +5229,7 @@ var agent_profile_improvement_proposal_default = {
|
|
|
5207
5229
|
"version": "1"
|
|
5208
5230
|
},
|
|
5209
5231
|
"passed": true,
|
|
5210
|
-
"score":
|
|
5232
|
+
"score": 1,
|
|
5211
5233
|
"timing": {
|
|
5212
5234
|
"durationMs": 10,
|
|
5213
5235
|
"endedAtMs": 1110,
|
|
@@ -5296,7 +5318,7 @@ var agent_profile_improvement_proposal_default = {
|
|
|
5296
5318
|
"identity": "bill-baseline-2",
|
|
5297
5319
|
"kind": "platform-billing"
|
|
5298
5320
|
}],
|
|
5299
|
-
"digest": "sha256:
|
|
5321
|
+
"digest": "sha256:81179ac7f44a5fb2d7235090b42d0f4a3323a559e8e223a3455a8351a85376d5",
|
|
5300
5322
|
"digestAlgorithm": "rfc8785-sha256",
|
|
5301
5323
|
"executionId": "baseline-2",
|
|
5302
5324
|
"executionRef": {
|
|
@@ -5307,7 +5329,7 @@ var agent_profile_improvement_proposal_default = {
|
|
|
5307
5329
|
"grading": {
|
|
5308
5330
|
"dimensions": [{
|
|
5309
5331
|
"name": "quality",
|
|
5310
|
-
"score":
|
|
5332
|
+
"score": 0
|
|
5311
5333
|
}],
|
|
5312
5334
|
"evidence": {
|
|
5313
5335
|
"digest": "sha256:2e6344b8ab46798df75c6c8bd2e9c1c4ba5371cfdb84ef12916226a06ee0bffc",
|
|
@@ -5330,7 +5352,7 @@ var agent_profile_improvement_proposal_default = {
|
|
|
5330
5352
|
"version": "1"
|
|
5331
5353
|
},
|
|
5332
5354
|
"passed": true,
|
|
5333
|
-
"score":
|
|
5355
|
+
"score": 0,
|
|
5334
5356
|
"timing": {
|
|
5335
5357
|
"durationMs": 10,
|
|
5336
5358
|
"endedAtMs": 2110,
|
|
@@ -5417,7 +5439,7 @@ var agent_profile_improvement_proposal_default = {
|
|
|
5417
5439
|
"identity": "bill-candidate-2",
|
|
5418
5440
|
"kind": "platform-billing"
|
|
5419
5441
|
}],
|
|
5420
|
-
"digest": "sha256:
|
|
5442
|
+
"digest": "sha256:e9435761e04ad9b55f189c4193da92db86d95dbd50c4070b6c39d08d6199f1a6",
|
|
5421
5443
|
"digestAlgorithm": "rfc8785-sha256",
|
|
5422
5444
|
"executionId": "candidate-2",
|
|
5423
5445
|
"executionRef": {
|
|
@@ -5428,7 +5450,7 @@ var agent_profile_improvement_proposal_default = {
|
|
|
5428
5450
|
"grading": {
|
|
5429
5451
|
"dimensions": [{
|
|
5430
5452
|
"name": "quality",
|
|
5431
|
-
"score":
|
|
5453
|
+
"score": 1
|
|
5432
5454
|
}],
|
|
5433
5455
|
"evidence": {
|
|
5434
5456
|
"digest": "sha256:9046047f8a5ad8cda1e059047b3bac42abb438a8d9f9a60c0a139af5375dc313",
|
|
@@ -5451,7 +5473,7 @@ var agent_profile_improvement_proposal_default = {
|
|
|
5451
5473
|
"version": "1"
|
|
5452
5474
|
},
|
|
5453
5475
|
"passed": true,
|
|
5454
|
-
"score":
|
|
5476
|
+
"score": 1,
|
|
5455
5477
|
"timing": {
|
|
5456
5478
|
"durationMs": 10,
|
|
5457
5479
|
"endedAtMs": 2110,
|
|
@@ -5540,7 +5562,7 @@ var agent_profile_improvement_proposal_default = {
|
|
|
5540
5562
|
"identity": "bill-baseline-3",
|
|
5541
5563
|
"kind": "platform-billing"
|
|
5542
5564
|
}],
|
|
5543
|
-
"digest": "sha256:
|
|
5565
|
+
"digest": "sha256:9814d56f62fe89eb2117c0d601277942dc3b39d1180ca2c4d99ce5eeb993855c",
|
|
5544
5566
|
"digestAlgorithm": "rfc8785-sha256",
|
|
5545
5567
|
"executionId": "baseline-3",
|
|
5546
5568
|
"executionRef": {
|
|
@@ -5551,7 +5573,7 @@ var agent_profile_improvement_proposal_default = {
|
|
|
5551
5573
|
"grading": {
|
|
5552
5574
|
"dimensions": [{
|
|
5553
5575
|
"name": "quality",
|
|
5554
|
-
"score":
|
|
5576
|
+
"score": 0
|
|
5555
5577
|
}],
|
|
5556
5578
|
"evidence": {
|
|
5557
5579
|
"digest": "sha256:07788322298c858cafa5bb76dd6157c829c62aca6a4704ac79f22c6b4b21336f",
|
|
@@ -5574,7 +5596,7 @@ var agent_profile_improvement_proposal_default = {
|
|
|
5574
5596
|
"version": "1"
|
|
5575
5597
|
},
|
|
5576
5598
|
"passed": true,
|
|
5577
|
-
"score":
|
|
5599
|
+
"score": 0,
|
|
5578
5600
|
"timing": {
|
|
5579
5601
|
"durationMs": 10,
|
|
5580
5602
|
"endedAtMs": 3110,
|
|
@@ -5661,7 +5683,7 @@ var agent_profile_improvement_proposal_default = {
|
|
|
5661
5683
|
"identity": "bill-candidate-3",
|
|
5662
5684
|
"kind": "platform-billing"
|
|
5663
5685
|
}],
|
|
5664
|
-
"digest": "sha256:
|
|
5686
|
+
"digest": "sha256:779310f3803ac4b11af3953f5ef0e4ed78a28b8623f296890d7bedfc2291241f",
|
|
5665
5687
|
"digestAlgorithm": "rfc8785-sha256",
|
|
5666
5688
|
"executionId": "candidate-3",
|
|
5667
5689
|
"executionRef": {
|
|
@@ -5672,7 +5694,7 @@ var agent_profile_improvement_proposal_default = {
|
|
|
5672
5694
|
"grading": {
|
|
5673
5695
|
"dimensions": [{
|
|
5674
5696
|
"name": "quality",
|
|
5675
|
-
"score":
|
|
5697
|
+
"score": 1
|
|
5676
5698
|
}],
|
|
5677
5699
|
"evidence": {
|
|
5678
5700
|
"digest": "sha256:71a58edd2c20b7fea3b0d3a7bdf5c74d07202fafe2e732095bae9278eac5b116",
|
|
@@ -5695,7 +5717,7 @@ var agent_profile_improvement_proposal_default = {
|
|
|
5695
5717
|
"version": "1"
|
|
5696
5718
|
},
|
|
5697
5719
|
"passed": true,
|
|
5698
|
-
"score":
|
|
5720
|
+
"score": 1,
|
|
5699
5721
|
"timing": {
|
|
5700
5722
|
"durationMs": 10,
|
|
5701
5723
|
"endedAtMs": 3110,
|
|
@@ -5784,7 +5806,7 @@ var agent_profile_improvement_proposal_default = {
|
|
|
5784
5806
|
"identity": "bill-baseline-4",
|
|
5785
5807
|
"kind": "platform-billing"
|
|
5786
5808
|
}],
|
|
5787
|
-
"digest": "sha256:
|
|
5809
|
+
"digest": "sha256:cacfbed32553c79cf82eaecb785ca862c08fe3574fb94c8959991deb441e6fef",
|
|
5788
5810
|
"digestAlgorithm": "rfc8785-sha256",
|
|
5789
5811
|
"executionId": "baseline-4",
|
|
5790
5812
|
"executionRef": {
|
|
@@ -5795,7 +5817,7 @@ var agent_profile_improvement_proposal_default = {
|
|
|
5795
5817
|
"grading": {
|
|
5796
5818
|
"dimensions": [{
|
|
5797
5819
|
"name": "quality",
|
|
5798
|
-
"score":
|
|
5820
|
+
"score": 0
|
|
5799
5821
|
}],
|
|
5800
5822
|
"evidence": {
|
|
5801
5823
|
"digest": "sha256:6c58123a53b460008177098be12a383f0b5374f316a7140174ac82be0db3adaa",
|
|
@@ -5818,7 +5840,7 @@ var agent_profile_improvement_proposal_default = {
|
|
|
5818
5840
|
"version": "1"
|
|
5819
5841
|
},
|
|
5820
5842
|
"passed": true,
|
|
5821
|
-
"score":
|
|
5843
|
+
"score": 0,
|
|
5822
5844
|
"timing": {
|
|
5823
5845
|
"durationMs": 10,
|
|
5824
5846
|
"endedAtMs": 4110,
|
|
@@ -5905,7 +5927,7 @@ var agent_profile_improvement_proposal_default = {
|
|
|
5905
5927
|
"identity": "bill-candidate-4",
|
|
5906
5928
|
"kind": "platform-billing"
|
|
5907
5929
|
}],
|
|
5908
|
-
"digest": "sha256:
|
|
5930
|
+
"digest": "sha256:51730613cefb40c07f29ce0fe8c540ed05e7ace01425d0bd2ed5454329265f63",
|
|
5909
5931
|
"digestAlgorithm": "rfc8785-sha256",
|
|
5910
5932
|
"executionId": "candidate-4",
|
|
5911
5933
|
"executionRef": {
|
|
@@ -5916,7 +5938,7 @@ var agent_profile_improvement_proposal_default = {
|
|
|
5916
5938
|
"grading": {
|
|
5917
5939
|
"dimensions": [{
|
|
5918
5940
|
"name": "quality",
|
|
5919
|
-
"score":
|
|
5941
|
+
"score": 1
|
|
5920
5942
|
}],
|
|
5921
5943
|
"evidence": {
|
|
5922
5944
|
"digest": "sha256:6ead9603dd9ea15cfc402a0f950dd9e8205a6465aa7acac314160336d2aba0e4",
|
|
@@ -5939,7 +5961,7 @@ var agent_profile_improvement_proposal_default = {
|
|
|
5939
5961
|
"version": "1"
|
|
5940
5962
|
},
|
|
5941
5963
|
"passed": true,
|
|
5942
|
-
"score":
|
|
5964
|
+
"score": 1,
|
|
5943
5965
|
"timing": {
|
|
5944
5966
|
"durationMs": 10,
|
|
5945
5967
|
"endedAtMs": 4110,
|
|
@@ -6028,7 +6050,7 @@ var agent_profile_improvement_proposal_default = {
|
|
|
6028
6050
|
"identity": "bill-baseline-5",
|
|
6029
6051
|
"kind": "platform-billing"
|
|
6030
6052
|
}],
|
|
6031
|
-
"digest": "sha256:
|
|
6053
|
+
"digest": "sha256:8ccb242c4ea5f495acae43066d834c1e8727e8dd26e87e55a347fc7cfbbce92b",
|
|
6032
6054
|
"digestAlgorithm": "rfc8785-sha256",
|
|
6033
6055
|
"executionId": "baseline-5",
|
|
6034
6056
|
"executionRef": {
|
|
@@ -6039,7 +6061,7 @@ var agent_profile_improvement_proposal_default = {
|
|
|
6039
6061
|
"grading": {
|
|
6040
6062
|
"dimensions": [{
|
|
6041
6063
|
"name": "quality",
|
|
6042
|
-
"score":
|
|
6064
|
+
"score": 0
|
|
6043
6065
|
}],
|
|
6044
6066
|
"evidence": {
|
|
6045
6067
|
"digest": "sha256:32fdacdb9349ddc2ca221951feef7560ca9f3979d303ac67bd8fc3ff04093a03",
|
|
@@ -6062,7 +6084,7 @@ var agent_profile_improvement_proposal_default = {
|
|
|
6062
6084
|
"version": "1"
|
|
6063
6085
|
},
|
|
6064
6086
|
"passed": true,
|
|
6065
|
-
"score":
|
|
6087
|
+
"score": 0,
|
|
6066
6088
|
"timing": {
|
|
6067
6089
|
"durationMs": 10,
|
|
6068
6090
|
"endedAtMs": 5110,
|
|
@@ -6149,7 +6171,7 @@ var agent_profile_improvement_proposal_default = {
|
|
|
6149
6171
|
"identity": "bill-candidate-5",
|
|
6150
6172
|
"kind": "platform-billing"
|
|
6151
6173
|
}],
|
|
6152
|
-
"digest": "sha256:
|
|
6174
|
+
"digest": "sha256:a310c0e890411558f35d66d9b7b6c8adfce8c9c8f9faa6b8b043de53acbb5f6e",
|
|
6153
6175
|
"digestAlgorithm": "rfc8785-sha256",
|
|
6154
6176
|
"executionId": "candidate-5",
|
|
6155
6177
|
"executionRef": {
|
|
@@ -6160,7 +6182,7 @@ var agent_profile_improvement_proposal_default = {
|
|
|
6160
6182
|
"grading": {
|
|
6161
6183
|
"dimensions": [{
|
|
6162
6184
|
"name": "quality",
|
|
6163
|
-
"score":
|
|
6185
|
+
"score": 1
|
|
6164
6186
|
}],
|
|
6165
6187
|
"evidence": {
|
|
6166
6188
|
"digest": "sha256:f4aa4f3e1f909ab5fcca1c12bd80787c184472092abfdac52dc8ec1588c3b144",
|
|
@@ -6183,7 +6205,7 @@ var agent_profile_improvement_proposal_default = {
|
|
|
6183
6205
|
"version": "1"
|
|
6184
6206
|
},
|
|
6185
6207
|
"passed": true,
|
|
6186
|
-
"score":
|
|
6208
|
+
"score": 1,
|
|
6187
6209
|
"timing": {
|
|
6188
6210
|
"durationMs": 10,
|
|
6189
6211
|
"endedAtMs": 5110,
|
|
@@ -6268,46 +6290,46 @@ var agent_profile_improvement_proposal_default = {
|
|
|
6268
6290
|
],
|
|
6269
6291
|
"metadata": {
|
|
6270
6292
|
"fixture": "agent-profile-improvement-proposal",
|
|
6271
|
-
"runtimeVersion": "0.
|
|
6293
|
+
"runtimeVersion": "0.119.0"
|
|
6272
6294
|
},
|
|
6273
6295
|
"objectives": [
|
|
6274
6296
|
{
|
|
6275
6297
|
"availability": "measured",
|
|
6276
|
-
"baseline":
|
|
6277
|
-
"candidate":
|
|
6298
|
+
"baseline": 0,
|
|
6299
|
+
"candidate": 1,
|
|
6278
6300
|
"confidenceInterval": {
|
|
6279
6301
|
"level": .95,
|
|
6280
|
-
"lower":
|
|
6302
|
+
"lower": 1,
|
|
6281
6303
|
"method": "paired-bootstrap",
|
|
6282
6304
|
"resamples": 100,
|
|
6283
6305
|
"statistic": "mean",
|
|
6284
|
-
"upper":
|
|
6306
|
+
"upper": 1
|
|
6285
6307
|
},
|
|
6286
|
-
"delta":
|
|
6308
|
+
"delta": 1,
|
|
6287
6309
|
"direction": "higher-is-better",
|
|
6288
6310
|
"kind": "objective",
|
|
6289
6311
|
"n": 6,
|
|
6290
|
-
"name": "
|
|
6312
|
+
"name": "benchmark-score",
|
|
6291
6313
|
"unit": "score"
|
|
6292
6314
|
},
|
|
6293
6315
|
{
|
|
6294
6316
|
"availability": "measured",
|
|
6295
|
-
"baseline":
|
|
6296
|
-
"candidate":
|
|
6317
|
+
"baseline": 0,
|
|
6318
|
+
"candidate": 1,
|
|
6297
6319
|
"confidenceInterval": {
|
|
6298
6320
|
"level": .95,
|
|
6299
|
-
"lower":
|
|
6321
|
+
"lower": 1,
|
|
6300
6322
|
"method": "paired-bootstrap",
|
|
6301
6323
|
"resamples": 100,
|
|
6302
6324
|
"statistic": "mean",
|
|
6303
|
-
"upper":
|
|
6325
|
+
"upper": 1
|
|
6304
6326
|
},
|
|
6305
|
-
"delta":
|
|
6327
|
+
"delta": 1,
|
|
6306
6328
|
"direction": "higher-is-better",
|
|
6307
6329
|
"kind": "dimension",
|
|
6308
6330
|
"n": 6,
|
|
6309
6331
|
"name": "quality",
|
|
6310
|
-
"objective": "
|
|
6332
|
+
"objective": "benchmark-score",
|
|
6311
6333
|
"unit": "score"
|
|
6312
6334
|
},
|
|
6313
6335
|
{
|
|
@@ -6316,11 +6338,11 @@ var agent_profile_improvement_proposal_default = {
|
|
|
6316
6338
|
"candidate": 11e-8,
|
|
6317
6339
|
"confidenceInterval": {
|
|
6318
6340
|
"level": .95,
|
|
6319
|
-
"lower":
|
|
6341
|
+
"lower": 0,
|
|
6320
6342
|
"method": "paired-bootstrap",
|
|
6321
6343
|
"resamples": 100,
|
|
6322
6344
|
"statistic": "mean",
|
|
6323
|
-
"upper":
|
|
6345
|
+
"upper": 0
|
|
6324
6346
|
},
|
|
6325
6347
|
"delta": 0,
|
|
6326
6348
|
"direction": "lower-is-better",
|
|
@@ -6335,11 +6357,11 @@ var agent_profile_improvement_proposal_default = {
|
|
|
6335
6357
|
"candidate": 110,
|
|
6336
6358
|
"confidenceInterval": {
|
|
6337
6359
|
"level": .95,
|
|
6338
|
-
"lower":
|
|
6360
|
+
"lower": 0,
|
|
6339
6361
|
"method": "paired-bootstrap",
|
|
6340
6362
|
"resamples": 100,
|
|
6341
6363
|
"statistic": "mean",
|
|
6342
|
-
"upper":
|
|
6364
|
+
"upper": 0
|
|
6343
6365
|
},
|
|
6344
6366
|
"delta": 0,
|
|
6345
6367
|
"direction": "lower-is-better",
|
|
@@ -6350,17 +6372,17 @@ var agent_profile_improvement_proposal_default = {
|
|
|
6350
6372
|
}
|
|
6351
6373
|
],
|
|
6352
6374
|
"overall": {
|
|
6353
|
-
"baseline":
|
|
6354
|
-
"candidate":
|
|
6375
|
+
"baseline": 0,
|
|
6376
|
+
"candidate": 1,
|
|
6355
6377
|
"confidenceInterval": {
|
|
6356
6378
|
"level": .95,
|
|
6357
|
-
"lower":
|
|
6379
|
+
"lower": 1,
|
|
6358
6380
|
"method": "paired-bootstrap",
|
|
6359
6381
|
"resamples": 100,
|
|
6360
6382
|
"statistic": "mean",
|
|
6361
|
-
"upper":
|
|
6383
|
+
"upper": 1
|
|
6362
6384
|
},
|
|
6363
|
-
"delta":
|
|
6385
|
+
"delta": 1,
|
|
6364
6386
|
"direction": "higher-is-better",
|
|
6365
6387
|
"n": 6,
|
|
6366
6388
|
"name": "composite",
|
|
@@ -6368,9 +6390,9 @@ var agent_profile_improvement_proposal_default = {
|
|
|
6368
6390
|
},
|
|
6369
6391
|
"power": {
|
|
6370
6392
|
"confidenceLevel": .95,
|
|
6371
|
-
"minimumDetectableDelta":
|
|
6393
|
+
"minimumDetectableDelta": 0,
|
|
6372
6394
|
"n": 6,
|
|
6373
|
-
"reason": "
|
|
6395
|
+
"reason": "observed paired uncertainty gives a minimum detectable delta of 0.000 at 0.95 confidence from 6 runs. The same scorer evaluated both arms, so scorer bias is not measured.",
|
|
6374
6396
|
"scaleAssumed": true,
|
|
6375
6397
|
"sharedScorerChannel": true,
|
|
6376
6398
|
"sufficient": true
|
|
@@ -6379,9 +6401,9 @@ var agent_profile_improvement_proposal_default = {
|
|
|
6379
6401
|
"baselineContentHash": "sha256:21c495a37c418c10bde64fbaa188beddeed31f1f051ea60a6a6582a9ee0db704",
|
|
6380
6402
|
"candidateContentHash": "sha256:103f77bc8481601eef1ad5fe6ba84a40dffabc3a44f421f8c8559121edab84e9",
|
|
6381
6403
|
"kind": "agent-eval-loop",
|
|
6382
|
-
"recordDigest": "sha256:
|
|
6404
|
+
"recordDigest": "sha256:e164e8f32d14370f8ae942471b24cb4d00ae0351e0e216a6616dfb16d378e9c8",
|
|
6383
6405
|
"runId": "profile-improvement-1",
|
|
6384
|
-
"schema": "agent-
|
|
6406
|
+
"schema": "agent-profile-improvement-experiment"
|
|
6385
6407
|
}
|
|
6386
6408
|
},
|
|
6387
6409
|
findings: [],
|
package/dist/testing.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testing.js","names":["canonicalAgentImprovementProposalFixture","canonicalAgentProfileImprovementProposalFixture","canonicalAgentProfileImprovementStateFixture","canonicalCandidateDigest"],"sources":["../src/testing/fixtures/agent-improvement-proposal.json","../src/testing/fixtures/agent-profile-improvement-proposal.json","../src/testing/fixtures/agent-profile-improvement-state.json","../src/testing/index.ts"],"sourcesContent":["","","","import {\n type AgentImprovementProposal,\n type AgentProfile,\n type AgentProfileImprovementMeasuredComparison,\n SANDBOX_SIZE_PRESET_NAMES,\n type SandboxSizePreset,\n} from '@tangle-network/agent-interface'\n\nimport { canonicalCandidateDigest, immutableCandidateValue } from '../candidate-execution/digest'\nimport { applyExactAgentProfileDiff, parseExactAgentProfile } from '../candidate-execution/profile'\nimport { verifyAgentImprovementProposal } from '../intelligence/improvement-cycle'\nimport canonicalAgentImprovementProposalFixture from './fixtures/agent-improvement-proposal.json'\nimport canonicalAgentProfileImprovementProposalFixture from './fixtures/agent-profile-improvement-proposal.json'\nimport canonicalAgentProfileImprovementStateFixture from './fixtures/agent-profile-improvement-state.json'\n\nconst serializedAgentImprovementProposalFixture = JSON.stringify(\n canonicalAgentImprovementProposalFixture,\n)\nconst serializedAgentProfileImprovementProposalFixture = JSON.stringify(\n canonicalAgentProfileImprovementProposalFixture,\n)\nconst serializedAgentProfileImprovementStateFixture = JSON.stringify(\n canonicalAgentProfileImprovementStateFixture,\n)\n\n/** A proposal produced by Runtime's opaque profile-improvement path. */\nexport type AgentProfileImprovementProposalFixture = Omit<\n AgentImprovementProposal,\n 'evaluation'\n> & {\n evaluation: AgentProfileImprovementMeasuredComparison\n}\n\n/** Complete private state for exercising profile activation and restore in consumer tests. */\nexport interface AgentProfileImprovementFixture {\n proposal: AgentProfileImprovementProposalFixture\n baselineProfile: AgentProfile\n candidateProfile: AgentProfile\n recommendedSize: SandboxSizePreset\n}\n\n/** Load an isolated, production-validated Runtime proposal for consumer tests. */\nexport function loadAgentImprovementProposalFixture(): AgentImprovementProposal {\n return verifyAgentImprovementProposal(JSON.parse(serializedAgentImprovementProposalFixture))\n}\n\n/** Load an isolated profile proposal and its private activation state for consumer tests. */\nexport function loadAgentProfileImprovementFixture(): AgentProfileImprovementFixture {\n const proposal = loadAgentProfileImprovementProposal()\n const state = parseAgentProfileImprovementState(\n JSON.parse(serializedAgentProfileImprovementStateFixture),\n )\n const experiment = proposal.evaluation.experiment\n const baselineStateDigest = profileStateDigest(state.baselineProfile, state.recommendedSize)\n const candidateStateDigest = profileStateDigest(state.candidateProfile, state.recommendedSize)\n if (\n baselineStateDigest !== experiment.baseline.stateDigest ||\n candidateStateDigest !== experiment.candidate.stateDigest\n ) {\n throw new Error('profile improvement fixture state does not match its proposal')\n }\n const appliedCandidate = experiment.change.reduce(\n (profile, change, index) =>\n applyExactAgentProfileDiff(profile, change, `profile improvement fixture change ${index}`),\n state.baselineProfile,\n )\n if (\n canonicalCandidateDigest(appliedCandidate) !== canonicalCandidateDigest(state.candidateProfile)\n ) {\n throw new Error('profile improvement fixture candidate does not match its proposal changes')\n }\n return immutableCandidateValue({ proposal, ...state })\n}\n\nfunction loadAgentProfileImprovementProposal(): AgentProfileImprovementProposalFixture {\n const proposal = verifyAgentImprovementProposal(\n JSON.parse(serializedAgentProfileImprovementProposalFixture),\n )\n if (proposal.evaluation.kind !== 'agent-profile-improvement-measured-comparison') {\n throw new Error('profile improvement fixture contains a sealed candidate comparison')\n }\n return { ...proposal, evaluation: proposal.evaluation }\n}\n\nfunction parseAgentProfileImprovementState(\n input: unknown,\n): Omit<AgentProfileImprovementFixture, 'proposal'> {\n if (typeof input !== 'object' || input === null || Array.isArray(input)) {\n throw new Error('profile improvement fixture state must be an object')\n }\n const record = input as Record<string, unknown>\n const fields = Object.keys(record).sort()\n const expectedFields = ['baselineProfile', 'candidateProfile', 'recommendedSize']\n if (\n fields.length !== expectedFields.length ||\n fields.some((field, i) => field !== expectedFields[i])\n ) {\n throw new Error('profile improvement fixture state contains unsupported fields')\n }\n const recommendedSize = SANDBOX_SIZE_PRESET_NAMES.find((size) => size === record.recommendedSize)\n if (!recommendedSize) {\n throw new Error('profile improvement fixture has an invalid recommended size')\n }\n return {\n baselineProfile: parseExactAgentProfile(\n record.baselineProfile,\n 'profile improvement fixture baseline',\n ),\n candidateProfile: parseExactAgentProfile(\n record.candidateProfile,\n 'profile improvement fixture candidate',\n ),\n recommendedSize,\n }\n}\n\nfunction profileStateDigest(\n profile: AgentProfile,\n recommendedSize: SandboxSizePreset,\n): ReturnType<typeof canonicalCandidateDigest> {\n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ACA,IAAI,SAAS,WAAW,SAAS,iDAC/B,MAAM,IAAI,MAAM,oEAAoE;CAEtF,OAAO;EAAE,GAAG;EAAU,YAAY,SAAS;CAAW;AACxD;AAEA,SAAS,kCACP,OACkD;CAClD,IAAI,OAAO,UAAU,YAAY,UAAU,QAAQ,MAAM,QAAQ,KAAK,GACpE,MAAM,IAAI,MAAM,qDAAqD;CAEvE,MAAM,SAAS;CACf,MAAM,SAAS,OAAO,KAAK,MAAM,CAAC,CAAC,KAAK;CACxC,MAAM,iBAAiB;EAAC;EAAmB;EAAoB;CAAiB;CAChF,IACE,OAAO,WAAW,eAAe,UACjC,OAAO,MAAM,OAAO,MAAM,UAAU,eAAe,EAAE,GAErD,MAAM,IAAI,MAAM,+DAA+D;CAEjF,MAAM,kBAAkB,0BAA0B,MAAM,SAAS,SAAS,OAAO,eAAe;CAChG,IAAI,CAAC,iBACH,MAAM,IAAI,MAAM,6DAA6D;CAE/E,OAAO;EACL,iBAAiB,uBACf,OAAO,iBACP,sCACF;EACA,kBAAkB,uBAChB,OAAO,kBACP,uCACF;EACA;CACF;AACF;AAEA,SAAS,mBACP,SACA,iBAC6C;CAC7C,OAAOA,2BAAyB;EAAE,YAAY;EAAS;CAAgB,CAAC;AAC1E"}
|
|
1
|
+
{"version":3,"file":"testing.js","names":["canonicalAgentImprovementProposalFixture","canonicalAgentProfileImprovementProposalFixture","canonicalAgentProfileImprovementStateFixture","canonicalCandidateDigest"],"sources":["../src/testing/fixtures/agent-improvement-proposal.json","../src/testing/fixtures/agent-profile-improvement-proposal.json","../src/testing/fixtures/agent-profile-improvement-state.json","../src/testing/index.ts"],"sourcesContent":["","","","import {\n type AgentImprovementProposal,\n type AgentProfile,\n type AgentProfileImprovementMeasuredComparison,\n SANDBOX_SIZE_PRESET_NAMES,\n type SandboxSizePreset,\n} from '@tangle-network/agent-interface'\n\nimport { canonicalCandidateDigest, immutableCandidateValue } from '../candidate-execution/digest'\nimport { applyExactAgentProfileDiff, parseExactAgentProfile } from '../candidate-execution/profile'\nimport { verifyAgentImprovementProposal } from '../intelligence/improvement-cycle'\nimport canonicalAgentImprovementProposalFixture from './fixtures/agent-improvement-proposal.json'\nimport canonicalAgentProfileImprovementProposalFixture from './fixtures/agent-profile-improvement-proposal.json'\nimport canonicalAgentProfileImprovementStateFixture from './fixtures/agent-profile-improvement-state.json'\n\nconst serializedAgentImprovementProposalFixture = JSON.stringify(\n canonicalAgentImprovementProposalFixture,\n)\nconst serializedAgentProfileImprovementProposalFixture = JSON.stringify(\n canonicalAgentProfileImprovementProposalFixture,\n)\nconst serializedAgentProfileImprovementStateFixture = JSON.stringify(\n canonicalAgentProfileImprovementStateFixture,\n)\n\n/** A proposal produced by Runtime's opaque profile-improvement path. */\nexport type AgentProfileImprovementProposalFixture = Omit<\n AgentImprovementProposal,\n 'evaluation'\n> & {\n evaluation: AgentProfileImprovementMeasuredComparison\n}\n\n/** Complete private state for exercising profile activation and restore in consumer tests. */\nexport interface AgentProfileImprovementFixture {\n proposal: AgentProfileImprovementProposalFixture\n baselineProfile: AgentProfile\n candidateProfile: AgentProfile\n recommendedSize: SandboxSizePreset\n}\n\n/** Load an isolated, production-validated Runtime proposal for consumer tests. */\nexport function loadAgentImprovementProposalFixture(): AgentImprovementProposal {\n return verifyAgentImprovementProposal(JSON.parse(serializedAgentImprovementProposalFixture))\n}\n\n/** Load an isolated profile proposal and its private activation state for consumer tests. */\nexport function loadAgentProfileImprovementFixture(): AgentProfileImprovementFixture {\n const proposal = loadAgentProfileImprovementProposal()\n const state = parseAgentProfileImprovementState(\n JSON.parse(serializedAgentProfileImprovementStateFixture),\n )\n const experiment = proposal.evaluation.experiment\n const baselineStateDigest = profileStateDigest(state.baselineProfile, state.recommendedSize)\n const candidateStateDigest = profileStateDigest(state.candidateProfile, state.recommendedSize)\n if (\n baselineStateDigest !== experiment.baseline.stateDigest ||\n candidateStateDigest !== experiment.candidate.stateDigest\n ) {\n throw new Error('profile improvement fixture state does not match its proposal')\n }\n const appliedCandidate = experiment.change.reduce(\n (profile, change, index) =>\n applyExactAgentProfileDiff(profile, change, `profile improvement fixture change ${index}`),\n state.baselineProfile,\n )\n if (\n canonicalCandidateDigest(appliedCandidate) !== canonicalCandidateDigest(state.candidateProfile)\n ) {\n throw new Error('profile improvement fixture candidate does not match its proposal changes')\n }\n return immutableCandidateValue({ proposal, ...state })\n}\n\nfunction loadAgentProfileImprovementProposal(): AgentProfileImprovementProposalFixture {\n const proposal = verifyAgentImprovementProposal(\n JSON.parse(serializedAgentProfileImprovementProposalFixture),\n )\n if (proposal.evaluation.kind !== 'agent-profile-improvement-measured-comparison') {\n throw new Error('profile improvement fixture contains a sealed candidate comparison')\n }\n return { ...proposal, evaluation: proposal.evaluation }\n}\n\nfunction parseAgentProfileImprovementState(\n input: unknown,\n): Omit<AgentProfileImprovementFixture, 'proposal'> {\n if (typeof input !== 'object' || input === null || Array.isArray(input)) {\n throw new Error('profile improvement fixture state must be an object')\n }\n const record = input as Record<string, unknown>\n const fields = Object.keys(record).sort()\n const expectedFields = ['baselineProfile', 'candidateProfile', 'recommendedSize']\n if (\n fields.length !== expectedFields.length ||\n fields.some((field, i) => field !== expectedFields[i])\n ) {\n throw new Error('profile improvement fixture state contains unsupported fields')\n }\n const recommendedSize = SANDBOX_SIZE_PRESET_NAMES.find((size) => size === record.recommendedSize)\n if (!recommendedSize) {\n throw new Error('profile improvement fixture has an invalid recommended size')\n }\n return {\n baselineProfile: parseExactAgentProfile(\n record.baselineProfile,\n 'profile improvement fixture baseline',\n ),\n candidateProfile: parseExactAgentProfile(\n record.candidateProfile,\n 'profile improvement fixture candidate',\n ),\n recommendedSize,\n }\n}\n\nfunction profileStateDigest(\n profile: AgentProfile,\n recommendedSize: SandboxSizePreset,\n): ReturnType<typeof canonicalCandidateDigest> {\n return canonicalCandidateDigest({ definition: profile, recommendedSize })\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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