@agent-vm/agent-portal-sdk 0.0.113 → 0.0.115

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.
Files changed (220) hide show
  1. package/contract-fixtures/portable-contracts/artifacts/artifact-read-result-authority-field-rejected.fixture.json +21 -0
  2. package/contract-fixtures/portable-contracts/artifacts/artifact-read-result-default-truncated.fixture.json +35 -0
  3. package/contract-fixtures/portable-contracts/artifacts/artifact-reference-path-rejected.fixture.json +17 -0
  4. package/contract-fixtures/portable-contracts/artifacts/artifact-reference-valid.fixture.json +24 -0
  5. package/contract-fixtures/portable-contracts/bounds/artifact-read-maximum-bytes.fixture.json +29 -0
  6. package/contract-fixtures/portable-contracts/bounds/artifact-read-over-maximum-bytes.fixture.json +19 -0
  7. package/contract-fixtures/portable-contracts/bounds/json-object-over-maximum-entries.fixture.json +1013 -0
  8. package/contract-fixtures/portable-contracts/bounds/list-request-maximum-limit.fixture.json +30 -0
  9. package/contract-fixtures/portable-contracts/bounds/list-request-over-maximum-limit.fixture.json +22 -0
  10. package/contract-fixtures/portable-contracts/bounds/progress-maximum-percent.fixture.json +22 -0
  11. package/contract-fixtures/portable-contracts/bounds/progress-minimum-percent.fixture.json +22 -0
  12. package/contract-fixtures/portable-contracts/bounds/progress-over-maximum-percent.fixture.json +16 -0
  13. package/contract-fixtures/portable-contracts/bounds/unsafe-integer.fixture.json +11 -0
  14. package/contract-fixtures/portable-contracts/canonical-json/nested-key-order-and-negative-zero.fixture.json +24 -0
  15. package/contract-fixtures/portable-contracts/coverage/gateway-trusted-invocation-context.fixture.json +53 -0
  16. package/contract-fixtures/portable-contracts/coverage/sandbox-environment-close-request.fixture.json +29 -0
  17. package/contract-fixtures/portable-contracts/coverage/sandbox-environment-close-result.fixture.json +31 -0
  18. package/contract-fixtures/portable-contracts/coverage/sandbox-environment-open-request.fixture.json +17 -0
  19. package/contract-fixtures/portable-contracts/coverage/sandbox-environment-open-result.fixture.json +33 -0
  20. package/contract-fixtures/portable-contracts/coverage/sandbox-environment-status-request.fixture.json +29 -0
  21. package/contract-fixtures/portable-contracts/coverage/sandbox-environment-status-result.fixture.json +33 -0
  22. package/contract-fixtures/portable-contracts/coverage/sandbox-exec-cancel-request.fixture.json +25 -0
  23. package/contract-fixtures/portable-contracts/coverage/sandbox-exec-cancel-result.fixture.json +27 -0
  24. package/contract-fixtures/portable-contracts/coverage/sandbox-exec-start-request.fixture.json +51 -0
  25. package/contract-fixtures/portable-contracts/coverage/sandbox-exec-start-result.fixture.json +31 -0
  26. package/contract-fixtures/portable-contracts/coverage/sandbox-exec-wait-request.fixture.json +27 -0
  27. package/contract-fixtures/portable-contracts/coverage/sandbox-exec-wait-result.fixture.json +37 -0
  28. package/contract-fixtures/portable-contracts/coverage/sandbox-fs-list-request.fixture.json +33 -0
  29. package/contract-fixtures/portable-contracts/coverage/sandbox-fs-list-result.fixture.json +21 -0
  30. package/contract-fixtures/portable-contracts/coverage/sandbox-fs-mkdir-request.fixture.json +31 -0
  31. package/contract-fixtures/portable-contracts/coverage/sandbox-fs-mkdir-result.fixture.json +23 -0
  32. package/contract-fixtures/portable-contracts/coverage/sandbox-fs-read-request.fixture.json +35 -0
  33. package/contract-fixtures/portable-contracts/coverage/sandbox-fs-read-result.fixture.json +37 -0
  34. package/contract-fixtures/portable-contracts/coverage/sandbox-fs-remove-request.fixture.json +31 -0
  35. package/contract-fixtures/portable-contracts/coverage/sandbox-fs-remove-result.fixture.json +23 -0
  36. package/contract-fixtures/portable-contracts/coverage/sandbox-fs-rename-request.fixture.json +33 -0
  37. package/contract-fixtures/portable-contracts/coverage/sandbox-fs-rename-result.fixture.json +23 -0
  38. package/contract-fixtures/portable-contracts/coverage/sandbox-fs-stat-request.fixture.json +29 -0
  39. package/contract-fixtures/portable-contracts/coverage/sandbox-fs-stat-result.fixture.json +21 -0
  40. package/contract-fixtures/portable-contracts/coverage/sandbox-fs-write-request.fixture.json +43 -0
  41. package/contract-fixtures/portable-contracts/coverage/sandbox-fs-write-result.fixture.json +27 -0
  42. package/contract-fixtures/portable-contracts/coverage/sandbox-operation-identity.fixture.json +21 -0
  43. package/contract-fixtures/portable-contracts/coverage/sandbox-process-cancel-request.fixture.json +27 -0
  44. package/contract-fixtures/portable-contracts/coverage/sandbox-process-cancel-result.fixture.json +27 -0
  45. package/contract-fixtures/portable-contracts/coverage/sandbox-process-logs-request.fixture.json +37 -0
  46. package/contract-fixtures/portable-contracts/coverage/sandbox-process-logs-result.fixture.json +35 -0
  47. package/contract-fixtures/portable-contracts/coverage/sandbox-process-start-request.fixture.json +35 -0
  48. package/contract-fixtures/portable-contracts/coverage/sandbox-process-start-result.fixture.json +39 -0
  49. package/contract-fixtures/portable-contracts/coverage/sandbox-process-status-request.fixture.json +27 -0
  50. package/contract-fixtures/portable-contracts/coverage/sandbox-process-status-result.fixture.json +37 -0
  51. package/contract-fixtures/portable-contracts/coverage/sandbox-process-wait-request.fixture.json +29 -0
  52. package/contract-fixtures/portable-contracts/coverage/sandbox-process-wait-result.fixture.json +37 -0
  53. package/contract-fixtures/portable-contracts/coverage/sandbox-retained-result-lookup-request.fixture.json +25 -0
  54. package/contract-fixtures/portable-contracts/coverage/sandbox-stream-close-request.fixture.json +29 -0
  55. package/contract-fixtures/portable-contracts/coverage/sandbox-stream-close-result.fixture.json +31 -0
  56. package/contract-fixtures/portable-contracts/coverage/sandbox-stream-read-request.fixture.json +33 -0
  57. package/contract-fixtures/portable-contracts/coverage/sandbox-stream-read-result.fixture.json +47 -0
  58. package/contract-fixtures/portable-contracts/coverage/sandbox-stream-write-request.fixture.json +45 -0
  59. package/contract-fixtures/portable-contracts/coverage/sandbox-stream-write-result.fixture.json +37 -0
  60. package/contract-fixtures/portable-contracts/coverage/sandbox-terminal-attach-request.fixture.json +33 -0
  61. package/contract-fixtures/portable-contracts/coverage/sandbox-terminal-attach-result.fixture.json +53 -0
  62. package/contract-fixtures/portable-contracts/coverage/sandbox-terminal-resize-request.fixture.json +35 -0
  63. package/contract-fixtures/portable-contracts/coverage/sandbox-terminal-resize-result.fixture.json +37 -0
  64. package/contract-fixtures/portable-contracts/defaults/describe-request-defaults.fixture.json +44 -0
  65. package/contract-fixtures/portable-contracts/defaults/list-request-default-limit.fixture.json +29 -0
  66. package/contract-fixtures/portable-contracts/defaults/search-request-defaults.fixture.json +33 -0
  67. package/contract-fixtures/portable-contracts/discovery/describe-result.fixture.json +18 -0
  68. package/contract-fixtures/portable-contracts/discovery/list-result.fixture.json +18 -0
  69. package/contract-fixtures/portable-contracts/discovery/search-result.fixture.json +18 -0
  70. package/contract-fixtures/portable-contracts/gateway/attachment-duplicate-agent.fixture.json +21 -0
  71. package/contract-fixtures/portable-contracts/gateway/attachment-valid.fixture.json +32 -0
  72. package/contract-fixtures/portable-contracts/gateway/managed-agent-projection-hermes-valid.fixture.json +28 -0
  73. package/contract-fixtures/portable-contracts/gateway/managed-agent-projection-old-authority-rejected.fixture.json +20 -0
  74. package/contract-fixtures/portable-contracts/gateway/managed-agent-projection-openclaw-valid.fixture.json +28 -0
  75. package/contract-fixtures/portable-contracts/gateway/managed-agent-projection-self-root-rejected.fixture.json +20 -0
  76. package/contract-fixtures/portable-contracts/gateway/managed-agent-projection-work-root-rejected.fixture.json +20 -0
  77. package/contract-fixtures/portable-contracts/operations/cancellation-pending.fixture.json +18 -0
  78. package/contract-fixtures/portable-contracts/operations/retained-ambiguous.fixture.json +28 -0
  79. package/contract-fixtures/portable-contracts/outcomes/ambiguous.fixture.json +40 -0
  80. package/contract-fixtures/portable-contracts/outcomes/call-result-aggregate-status-invalid.fixture.json +35 -0
  81. package/contract-fixtures/portable-contracts/outcomes/call-result-aggregate-status-valid.fixture.json +54 -0
  82. package/contract-fixtures/portable-contracts/outcomes/cancelled-proven.fixture.json +40 -0
  83. package/contract-fixtures/portable-contracts/outcomes/completed-failed.fixture.json +42 -0
  84. package/contract-fixtures/portable-contracts/outcomes/completed-succeeded.fixture.json +40 -0
  85. package/contract-fixtures/portable-contracts/outcomes/invalid-ambiguous-retry-class.fixture.json +25 -0
  86. package/contract-fixtures/portable-contracts/outcomes/invalid-error-completed-succeeded.fixture.json +26 -0
  87. package/contract-fixtures/portable-contracts/outcomes/invalid-error-result-with-value.fixture.json +19 -0
  88. package/contract-fixtures/portable-contracts/outcomes/invalid-not-dispatched-certainty.fixture.json +25 -0
  89. package/contract-fixtures/portable-contracts/outcomes/invalid-ok-completed-failed.fixture.json +23 -0
  90. package/contract-fixtures/portable-contracts/outcomes/invalid-ok-result-with-error.fixture.json +19 -0
  91. package/contract-fixtures/portable-contracts/outcomes/invalid-replaced-missing-prior-side-effects.fixture.json +25 -0
  92. package/contract-fixtures/portable-contracts/outcomes/missing-operation-identity-outcome.fixture.json +26 -0
  93. package/contract-fixtures/portable-contracts/outcomes/not-dispatched.fixture.json +40 -0
  94. package/contract-fixtures/portable-contracts/outcomes/replaced-proven.fixture.json +42 -0
  95. package/contract-fixtures/portable-contracts/outcomes/timed-out-proven.fixture.json +40 -0
  96. package/contract-fixtures/portable-contracts/requests/call-request-canonical.fixture.json +42 -0
  97. package/contract-fixtures/portable-contracts/requests/call-request-duplicate-id.fixture.json +26 -0
  98. package/contract-fixtures/portable-contracts/requests/call-request-reserved-id.fixture.json +20 -0
  99. package/contract-fixtures/portable-contracts/requests/call-request-unknown-field.fixture.json +21 -0
  100. package/contract-fixtures/portable-contracts/sandbox/exec-start-duplicate-environment-name.fixture.json +32 -0
  101. package/contract-fixtures/portable-contracts/sandbox/fs-stat-parent-path.fixture.json +26 -0
  102. package/contract-fixtures/portable-contracts/sandbox/stream-write-byte-length.fixture.json +21 -0
  103. package/dist/adapter-boundary/index.d.ts +2 -41
  104. package/dist/adapter-boundary/index.js +1 -28
  105. package/dist/adapter-boundary-BIagsTUH.js +29 -0
  106. package/dist/adapter-boundary-BIagsTUH.js.map +1 -0
  107. package/dist/approval-surface/index.d.ts +2 -48
  108. package/dist/approval-surface/index.js +2 -22
  109. package/dist/approval-surface-en5VAY5h.js +20 -0
  110. package/dist/approval-surface-en5VAY5h.js.map +1 -0
  111. package/dist/{artifact-reference-schema-XiJ280uV.js → artifact-reference-schema-CiEjxYPd.js} +4 -3
  112. package/dist/artifact-reference-schema-CiEjxYPd.js.map +1 -0
  113. package/dist/artifact-surface/index.d.ts +2 -49
  114. package/dist/artifact-surface/index.js +3 -27
  115. package/dist/artifact-surface-BstQxq6b.js +65 -0
  116. package/dist/artifact-surface-BstQxq6b.js.map +1 -0
  117. package/dist/capability-description-surface/index.d.ts +2 -142
  118. package/dist/capability-description-surface/index.js +2 -1
  119. package/dist/capability-description-surface-BdzknTKT.js +2 -0
  120. package/dist/{capability-descriptor-schema-wgtHF0Ic.js → capability-descriptor-schema-zRnfGjBc.js} +2 -2
  121. package/dist/{capability-descriptor-schema-wgtHF0Ic.js.map → capability-descriptor-schema-zRnfGjBc.js.map} +1 -1
  122. package/dist/cli/tool-portal.d.ts +1 -0
  123. package/dist/cli/tool-portal.js +207 -0
  124. package/dist/cli/tool-portal.js.map +1 -0
  125. package/dist/contracts/index.d.ts +2 -0
  126. package/dist/contracts/index.js +2 -0
  127. package/dist/contracts-RgGW0RX2.js +611 -0
  128. package/dist/contracts-RgGW0RX2.js.map +1 -0
  129. package/dist/gateway-runtime-client/index.d.ts +385 -0
  130. package/dist/gateway-runtime-client/index.d.ts.map +1 -0
  131. package/dist/gateway-runtime-client/index.js +1439 -0
  132. package/dist/gateway-runtime-client/index.js.map +1 -0
  133. package/dist/gateway-runtime-local-exec/gateway-runtime-local-exec-helper.d.ts +1 -0
  134. package/dist/gateway-runtime-local-exec/gateway-runtime-local-exec-helper.js +125 -0
  135. package/dist/gateway-runtime-local-exec/gateway-runtime-local-exec-helper.js.map +1 -0
  136. package/dist/gateway-runtime-local-exec/index.d.ts +54 -0
  137. package/dist/gateway-runtime-local-exec/index.d.ts.map +1 -0
  138. package/dist/gateway-runtime-local-exec/index.js +2 -0
  139. package/dist/gateway-runtime-local-exec-transport-B1hy2A3Q.js +427 -0
  140. package/dist/gateway-runtime-local-exec-transport-B1hy2A3Q.js.map +1 -0
  141. package/dist/index-B5hgm1KH.d.ts +84 -0
  142. package/dist/index-B5hgm1KH.d.ts.map +1 -0
  143. package/dist/index-BWE2_BcN.d.ts +64 -0
  144. package/dist/index-BWE2_BcN.d.ts.map +1 -0
  145. package/dist/index-Bdnvj5j3.d.ts +142 -0
  146. package/dist/index-Bdnvj5j3.d.ts.map +1 -0
  147. package/dist/index-BmH68K78.d.ts +41 -0
  148. package/dist/index-BmH68K78.d.ts.map +1 -0
  149. package/dist/index-C-NPMMvc.d.ts +2396 -0
  150. package/dist/index-C-NPMMvc.d.ts.map +1 -0
  151. package/dist/index-DKBSYuxW.d.ts +239 -0
  152. package/dist/index-DKBSYuxW.d.ts.map +1 -0
  153. package/dist/{index-DJiaGYF_.d.ts → index-Dj4galCJ.d.ts} +1 -1
  154. package/dist/{index-DJiaGYF_.d.ts.map → index-Dj4galCJ.d.ts.map} +1 -1
  155. package/dist/index-Dxoz-ORl.d.ts +229 -0
  156. package/dist/index-Dxoz-ORl.d.ts.map +1 -0
  157. package/dist/index-v8suC0qe.d.ts +69 -0
  158. package/dist/index-v8suC0qe.d.ts.map +1 -0
  159. package/dist/index-yeFGRMdv.d.ts +152 -0
  160. package/dist/index-yeFGRMdv.d.ts.map +1 -0
  161. package/dist/index.d.ts +12 -10
  162. package/dist/index.js +16 -12
  163. package/dist/{json-value-schema-Bj42URkc.d.ts → json-value-schema-M87sjwWL.d.ts} +1 -1
  164. package/dist/{json-value-schema-Bj42URkc.d.ts.map → json-value-schema-M87sjwWL.d.ts.map} +1 -1
  165. package/dist/{json-value-schema-D-3hfAyL.js → json-value-schema-hdPkabRZ.js} +12 -2
  166. package/dist/json-value-schema-hdPkabRZ.js.map +1 -0
  167. package/dist/node-tool-portal-mcp-transport-Cl2VKbLY.js +156 -0
  168. package/dist/node-tool-portal-mcp-transport-Cl2VKbLY.js.map +1 -0
  169. package/dist/portable-contracts/index.d.ts +2 -0
  170. package/dist/portable-contracts/index.js +3 -0
  171. package/dist/portable-contracts-Bca33zVa.js +326 -0
  172. package/dist/portable-contracts-Bca33zVa.js.map +1 -0
  173. package/dist/portable-refinement-authoring-ZSmR-amG.js +196 -0
  174. package/dist/portable-refinement-authoring-ZSmR-amG.js.map +1 -0
  175. package/dist/portal-call-request-schema-Cp6CMGs9.js +41 -0
  176. package/dist/portal-call-request-schema-Cp6CMGs9.js.map +1 -0
  177. package/dist/portal-call-result-schema-ByxHRCEN.js +158 -0
  178. package/dist/portal-call-result-schema-ByxHRCEN.js.map +1 -0
  179. package/dist/{portal-call-result-schema-DjpKPcE_.d.ts → portal-call-result-schema-wSCaz3mC.d.ts} +235 -21
  180. package/dist/portal-call-result-schema-wSCaz3mC.d.ts.map +1 -0
  181. package/dist/portal-call-surface/index.d.ts +3 -153
  182. package/dist/portal-call-surface/index.js +5 -69
  183. package/dist/portal-call-surface-DjZVquFt.js +83 -0
  184. package/dist/portal-call-surface-DjZVquFt.js.map +1 -0
  185. package/dist/{portal-error-schema-D58onG2t.js → portal-error-schema-CQHgoFq4.js} +12 -2
  186. package/dist/portal-error-schema-CQHgoFq4.js.map +1 -0
  187. package/dist/portal-event-surface/index.d.ts +2 -229
  188. package/dist/portal-event-surface/index.js +2 -50
  189. package/dist/portal-event-surface-CdScrgoN.js +51 -0
  190. package/dist/portal-event-surface-CdScrgoN.js.map +1 -0
  191. package/dist/testing/index.d.ts +2 -3
  192. package/dist/testing/index.d.ts.map +1 -1
  193. package/dist/testing/index.js +10 -1
  194. package/dist/testing/index.js.map +1 -1
  195. package/dist/tool-portal-mcp-client/index.d.ts +2 -0
  196. package/dist/tool-portal-mcp-client/index.js +2 -0
  197. package/dist/tool-portal-mcp-client/node-tool-portal-mcp-transport.d.ts +17 -0
  198. package/dist/tool-portal-mcp-client/node-tool-portal-mcp-transport.d.ts.map +1 -0
  199. package/dist/tool-portal-mcp-client/node-tool-portal-mcp-transport.js +2 -0
  200. package/dist/tool-portal-mcp-client-DwJF-48Y.js +90 -0
  201. package/dist/tool-portal-mcp-client-DwJF-48Y.js.map +1 -0
  202. package/package.json +32 -2
  203. package/portable-contract-schema-manifest.json +7960 -0
  204. package/dist/adapter-boundary/index.d.ts.map +0 -1
  205. package/dist/adapter-boundary/index.js.map +0 -1
  206. package/dist/approval-surface/index.d.ts.map +0 -1
  207. package/dist/approval-surface/index.js.map +0 -1
  208. package/dist/artifact-reference-schema-XiJ280uV.js.map +0 -1
  209. package/dist/artifact-surface/index.d.ts.map +0 -1
  210. package/dist/artifact-surface/index.js.map +0 -1
  211. package/dist/capability-description-surface/index.d.ts.map +0 -1
  212. package/dist/json-value-schema-D-3hfAyL.js.map +0 -1
  213. package/dist/portal-call-result-schema-BIqFTFK8.js +0 -102
  214. package/dist/portal-call-result-schema-BIqFTFK8.js.map +0 -1
  215. package/dist/portal-call-result-schema-DjpKPcE_.d.ts.map +0 -1
  216. package/dist/portal-call-surface/index.d.ts.map +0 -1
  217. package/dist/portal-call-surface/index.js.map +0 -1
  218. package/dist/portal-error-schema-D58onG2t.js.map +0 -1
  219. package/dist/portal-event-surface/index.d.ts.map +0 -1
  220. package/dist/portal-event-surface/index.js.map +0 -1
@@ -0,0 +1,21 @@
1
+ {
2
+ "caseId": "gateway-attachment-duplicate-agent",
3
+ "schemaId": "gateway.attachment.metadata",
4
+ "tags": ["attachment", "duplicate-id", "rejected"],
5
+ "input": {
6
+ "attachmentGeneration": 7,
7
+ "clientKind": "hermes-managed-plugin",
8
+ "configuredAgentIds": ["agent-a", "agent-a"],
9
+ "frameworkEpoch": "framework-3",
10
+ "gatewayEpoch": "gateway-7",
11
+ "projectionCohortDigest": "projection-cohort:0000000000000000000000000000000000000000000000000000000000000000",
12
+ "protocolVersion": 1,
13
+ "runtimeEpoch": "runtime-4",
14
+ "schemaVersion": 1
15
+ },
16
+ "expectation": {
17
+ "kind": "rejected",
18
+ "errorCodes": ["gateway.attachment.duplicate-agent-id"],
19
+ "refinementIdentities": ["gateway.attachment.unique-agent-ids"]
20
+ }
21
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ "caseId": "gateway-attachment-valid",
3
+ "schemaId": "gateway.attachment.metadata",
4
+ "tags": ["accepted", "attachment", "boundary"],
5
+ "input": {
6
+ "attachmentGeneration": 7,
7
+ "clientKind": "hermes-managed-plugin",
8
+ "configuredAgentIds": ["agent-a", "agent-b"],
9
+ "frameworkEpoch": "framework-3",
10
+ "gatewayEpoch": "gateway-7",
11
+ "projectionCohortDigest": "projection-cohort:0000000000000000000000000000000000000000000000000000000000000000",
12
+ "protocolVersion": 1,
13
+ "runtimeEpoch": "runtime-4",
14
+ "schemaVersion": 1
15
+ },
16
+ "expectation": {
17
+ "kind": "accepted",
18
+ "normalized": {
19
+ "attachmentGeneration": 7,
20
+ "clientKind": "hermes-managed-plugin",
21
+ "configuredAgentIds": ["agent-a", "agent-b"],
22
+ "frameworkEpoch": "framework-3",
23
+ "gatewayEpoch": "gateway-7",
24
+ "projectionCohortDigest": "projection-cohort:0000000000000000000000000000000000000000000000000000000000000000",
25
+ "protocolVersion": 1,
26
+ "runtimeEpoch": "runtime-4",
27
+ "schemaVersion": 1
28
+ },
29
+ "canonicalJson": "{\"attachmentGeneration\":7,\"clientKind\":\"hermes-managed-plugin\",\"configuredAgentIds\":[\"agent-a\",\"agent-b\"],\"frameworkEpoch\":\"framework-3\",\"gatewayEpoch\":\"gateway-7\",\"projectionCohortDigest\":\"projection-cohort:0000000000000000000000000000000000000000000000000000000000000000\",\"protocolVersion\":1,\"runtimeEpoch\":\"runtime-4\",\"schemaVersion\":1}",
30
+ "refinementIdentities": ["gateway.attachment.unique-agent-ids"]
31
+ }
32
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "caseId": "gateway-managed-agent-projection-hermes-valid",
3
+ "schemaId": "gateway.managed-agent-projection",
4
+ "tags": ["accepted", "hermes", "managed-agent-projection"],
5
+ "input": {
6
+ "agentId": "agent-b",
7
+ "frameworkIdentity": {
8
+ "kind": "hermes",
9
+ "profileName": "reviewer"
10
+ },
11
+ "profileAssignmentRevision": "profile-assignment-b",
12
+ "toolPortalProfileId": "review"
13
+ },
14
+ "expectation": {
15
+ "kind": "accepted",
16
+ "normalized": {
17
+ "agentId": "agent-b",
18
+ "frameworkIdentity": {
19
+ "kind": "hermes",
20
+ "profileName": "reviewer"
21
+ },
22
+ "profileAssignmentRevision": "profile-assignment-b",
23
+ "toolPortalProfileId": "review"
24
+ },
25
+ "canonicalJson": "{\"agentId\":\"agent-b\",\"frameworkIdentity\":{\"kind\":\"hermes\",\"profileName\":\"reviewer\"},\"profileAssignmentRevision\":\"profile-assignment-b\",\"toolPortalProfileId\":\"review\"}",
26
+ "refinementIdentities": []
27
+ }
28
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "caseId": "gateway-managed-agent-projection-old-authority-rejected",
3
+ "schemaId": "gateway.managed-agent-projection",
4
+ "tags": ["managed-agent-projection", "old-authority", "rejected"],
5
+ "input": {
6
+ "agentId": "agent-a",
7
+ "frameworkIdentity": {
8
+ "agentId": "agent-a",
9
+ "kind": "openclaw"
10
+ },
11
+ "profileAssignmentRevision": "profile-assignment-a",
12
+ "profileId": "retired-profile-selector",
13
+ "toolPortalProfileId": "engineering"
14
+ },
15
+ "expectation": {
16
+ "kind": "rejected",
17
+ "errorCodes": ["portable.object.unknown-field"],
18
+ "refinementIdentities": []
19
+ }
20
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "caseId": "gateway-managed-agent-projection-openclaw-valid",
3
+ "schemaId": "gateway.managed-agent-projection",
4
+ "tags": ["accepted", "managed-agent-projection", "openclaw"],
5
+ "input": {
6
+ "agentId": "agent-a",
7
+ "frameworkIdentity": {
8
+ "agentId": "agent-a",
9
+ "kind": "openclaw"
10
+ },
11
+ "profileAssignmentRevision": "profile-assignment-a",
12
+ "toolPortalProfileId": "engineering"
13
+ },
14
+ "expectation": {
15
+ "kind": "accepted",
16
+ "normalized": {
17
+ "agentId": "agent-a",
18
+ "frameworkIdentity": {
19
+ "agentId": "agent-a",
20
+ "kind": "openclaw"
21
+ },
22
+ "profileAssignmentRevision": "profile-assignment-a",
23
+ "toolPortalProfileId": "engineering"
24
+ },
25
+ "canonicalJson": "{\"agentId\":\"agent-a\",\"frameworkIdentity\":{\"agentId\":\"agent-a\",\"kind\":\"openclaw\"},\"profileAssignmentRevision\":\"profile-assignment-a\",\"toolPortalProfileId\":\"engineering\"}",
26
+ "refinementIdentities": []
27
+ }
28
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "caseId": "gateway-managed-agent-projection-self-root-rejected",
3
+ "schemaId": "gateway.managed-agent-projection",
4
+ "tags": ["managed-agent-projection", "rejected", "unknown-field"],
5
+ "input": {
6
+ "agentId": "agent-a",
7
+ "frameworkIdentity": {
8
+ "agentId": "agent-a",
9
+ "kind": "openclaw"
10
+ },
11
+ "profileAssignmentRevision": "profile-assignment-a",
12
+ "selfRoot": "/zone/agents/agent-a/self",
13
+ "toolPortalProfileId": "engineering"
14
+ },
15
+ "expectation": {
16
+ "kind": "rejected",
17
+ "errorCodes": ["portable.object.unknown-field"],
18
+ "refinementIdentities": []
19
+ }
20
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "caseId": "gateway-managed-agent-projection-work-root-rejected",
3
+ "schemaId": "gateway.managed-agent-projection",
4
+ "tags": ["managed-agent-projection", "rejected", "unknown-field"],
5
+ "input": {
6
+ "agentId": "agent-a",
7
+ "frameworkIdentity": {
8
+ "agentId": "agent-a",
9
+ "kind": "openclaw"
10
+ },
11
+ "profileAssignmentRevision": "profile-assignment-a",
12
+ "toolPortalProfileId": "engineering",
13
+ "workRoot": "/zone/agents/agent-a/work"
14
+ },
15
+ "expectation": {
16
+ "kind": "rejected",
17
+ "errorCodes": ["portable.object.unknown-field"],
18
+ "refinementIdentities": []
19
+ }
20
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "caseId": "sandbox-operation-cancellation-pending",
3
+ "schemaId": "sandbox.operation.control-result",
4
+ "tags": ["accepted", "cancellation", "outcome"],
5
+ "input": {
6
+ "kind": "cancellation-pending",
7
+ "operation": { "operationId": "operation-a", "owningGeneration": "generation-a" }
8
+ },
9
+ "expectation": {
10
+ "kind": "accepted",
11
+ "normalized": {
12
+ "kind": "cancellation-pending",
13
+ "operation": { "operationId": "operation-a", "owningGeneration": "generation-a" }
14
+ },
15
+ "canonicalJson": "{\"kind\":\"cancellation-pending\",\"operation\":{\"operationId\":\"operation-a\",\"owningGeneration\":\"generation-a\"}}",
16
+ "refinementIdentities": ["portal.result.outcome-algebra"]
17
+ }
18
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "caseId": "sandbox-retained-result-ambiguous",
3
+ "schemaId": "sandbox.retained-result.lookup-result",
4
+ "tags": ["accepted", "ambiguity", "outcome", "retained-result"],
5
+ "input": {
6
+ "kind": "retained",
7
+ "operation": { "operationId": "operation-a", "owningGeneration": "generation-a" },
8
+ "outcome": {
9
+ "certainty": "side-effects-and-termination-unknown",
10
+ "kind": "ambiguous",
11
+ "retryClass": "forbidden"
12
+ }
13
+ },
14
+ "expectation": {
15
+ "kind": "accepted",
16
+ "normalized": {
17
+ "kind": "retained",
18
+ "operation": { "operationId": "operation-a", "owningGeneration": "generation-a" },
19
+ "outcome": {
20
+ "certainty": "side-effects-and-termination-unknown",
21
+ "kind": "ambiguous",
22
+ "retryClass": "forbidden"
23
+ }
24
+ },
25
+ "canonicalJson": "{\"kind\":\"retained\",\"operation\":{\"operationId\":\"operation-a\",\"owningGeneration\":\"generation-a\"},\"outcome\":{\"certainty\":\"side-effects-and-termination-unknown\",\"kind\":\"ambiguous\",\"retryClass\":\"forbidden\"}}",
26
+ "refinementIdentities": ["portal.result.outcome-algebra"]
27
+ }
28
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "caseId": "ambiguous",
3
+ "schemaId": "portal.call.item-result",
4
+ "tags": ["accepted", "ambiguity", "outcome"],
5
+ "input": {
6
+ "error": {
7
+ "code": "execution_failed",
8
+ "message": "Execution outcome is ambiguous."
9
+ },
10
+ "id": "call-1",
11
+ "operationId": "operation-1",
12
+ "owningGeneration": "runner-generation-1",
13
+ "outcome": {
14
+ "certainty": "side-effects-and-termination-unknown",
15
+ "kind": "ambiguous",
16
+ "retryClass": "forbidden"
17
+ },
18
+ "status": "error"
19
+ },
20
+ "expectation": {
21
+ "kind": "accepted",
22
+ "normalized": {
23
+ "error": {
24
+ "code": "execution_failed",
25
+ "message": "Execution outcome is ambiguous."
26
+ },
27
+ "id": "call-1",
28
+ "operationId": "operation-1",
29
+ "outcome": {
30
+ "certainty": "side-effects-and-termination-unknown",
31
+ "kind": "ambiguous",
32
+ "retryClass": "forbidden"
33
+ },
34
+ "owningGeneration": "runner-generation-1",
35
+ "status": "error"
36
+ },
37
+ "canonicalJson": "{\"error\":{\"code\":\"execution_failed\",\"message\":\"Execution outcome is ambiguous.\"},\"id\":\"call-1\",\"operationId\":\"operation-1\",\"outcome\":{\"certainty\":\"side-effects-and-termination-unknown\",\"kind\":\"ambiguous\",\"retryClass\":\"forbidden\"},\"owningGeneration\":\"runner-generation-1\",\"status\":\"error\"}",
38
+ "refinementIdentities": ["portal.request-id.not-reserved", "portal.result.outcome-algebra"]
39
+ }
40
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "caseId": "call-result-aggregate-status-invalid",
3
+ "schemaId": "portal.call.result",
4
+ "tags": ["aggregate-status", "illegal-combination", "rejected"],
5
+ "input": {
6
+ "items": [
7
+ {
8
+ "error": {
9
+ "code": "execution_failed",
10
+ "message": "Execution failed safely."
11
+ },
12
+ "id": "call-1",
13
+ "operationId": "operation-1",
14
+ "outcome": {
15
+ "certainty": "proven",
16
+ "completion": "failed",
17
+ "kind": "completed",
18
+ "retryClass": "policy-gated"
19
+ },
20
+ "owningGeneration": "runner-generation-1",
21
+ "status": "error"
22
+ }
23
+ ],
24
+ "ok": true
25
+ },
26
+ "expectation": {
27
+ "kind": "rejected",
28
+ "errorCodes": ["portal.result.aggregate-status"],
29
+ "refinementIdentities": [
30
+ "portal.request-id.not-reserved",
31
+ "portal.result.aggregate-status",
32
+ "portal.result.outcome-algebra"
33
+ ]
34
+ }
35
+ }
@@ -0,0 +1,54 @@
1
+ {
2
+ "caseId": "call-result-aggregate-status-valid",
3
+ "schemaId": "portal.call.result",
4
+ "tags": ["accepted", "aggregate-status", "result-discriminant"],
5
+ "input": {
6
+ "items": [
7
+ {
8
+ "id": "call-1",
9
+ "operationId": "operation-1",
10
+ "outcome": {
11
+ "certainty": "proven",
12
+ "completion": "succeeded",
13
+ "kind": "completed",
14
+ "retryClass": "forbidden"
15
+ },
16
+ "owningGeneration": "tool-vm-generation-1",
17
+ "status": "ok",
18
+ "value": {
19
+ "issue": 123
20
+ }
21
+ }
22
+ ],
23
+ "ok": true
24
+ },
25
+ "expectation": {
26
+ "kind": "accepted",
27
+ "normalized": {
28
+ "items": [
29
+ {
30
+ "id": "call-1",
31
+ "operationId": "operation-1",
32
+ "outcome": {
33
+ "certainty": "proven",
34
+ "completion": "succeeded",
35
+ "kind": "completed",
36
+ "retryClass": "forbidden"
37
+ },
38
+ "owningGeneration": "tool-vm-generation-1",
39
+ "status": "ok",
40
+ "value": {
41
+ "issue": 123
42
+ }
43
+ }
44
+ ],
45
+ "ok": true
46
+ },
47
+ "canonicalJson": "{\"items\":[{\"id\":\"call-1\",\"operationId\":\"operation-1\",\"outcome\":{\"certainty\":\"proven\",\"completion\":\"succeeded\",\"kind\":\"completed\",\"retryClass\":\"forbidden\"},\"owningGeneration\":\"tool-vm-generation-1\",\"status\":\"ok\",\"value\":{\"issue\":123}}],\"ok\":true}",
48
+ "refinementIdentities": [
49
+ "portal.request-id.not-reserved",
50
+ "portal.result.aggregate-status",
51
+ "portal.result.outcome-algebra"
52
+ ]
53
+ }
54
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "caseId": "cancelled-proven",
3
+ "schemaId": "portal.call.item-result",
4
+ "tags": ["accepted", "cancellation", "outcome"],
5
+ "input": {
6
+ "error": {
7
+ "code": "cancelled",
8
+ "message": "Execution was cancelled and termination was proven."
9
+ },
10
+ "id": "call-1",
11
+ "operationId": "operation-1",
12
+ "owningGeneration": "tool-vm-generation-1",
13
+ "outcome": {
14
+ "certainty": "proven-terminated",
15
+ "kind": "cancelled-proven",
16
+ "retryClass": "manual-only"
17
+ },
18
+ "status": "error"
19
+ },
20
+ "expectation": {
21
+ "kind": "accepted",
22
+ "normalized": {
23
+ "error": {
24
+ "code": "cancelled",
25
+ "message": "Execution was cancelled and termination was proven."
26
+ },
27
+ "id": "call-1",
28
+ "operationId": "operation-1",
29
+ "outcome": {
30
+ "certainty": "proven-terminated",
31
+ "kind": "cancelled-proven",
32
+ "retryClass": "manual-only"
33
+ },
34
+ "owningGeneration": "tool-vm-generation-1",
35
+ "status": "error"
36
+ },
37
+ "canonicalJson": "{\"error\":{\"code\":\"cancelled\",\"message\":\"Execution was cancelled and termination was proven.\"},\"id\":\"call-1\",\"operationId\":\"operation-1\",\"outcome\":{\"certainty\":\"proven-terminated\",\"kind\":\"cancelled-proven\",\"retryClass\":\"manual-only\"},\"owningGeneration\":\"tool-vm-generation-1\",\"status\":\"error\"}",
38
+ "refinementIdentities": ["portal.request-id.not-reserved", "portal.result.outcome-algebra"]
39
+ }
40
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "caseId": "completed-failed",
3
+ "schemaId": "portal.call.item-result",
4
+ "tags": ["accepted", "outcome", "result-discriminant"],
5
+ "input": {
6
+ "error": {
7
+ "code": "execution_failed",
8
+ "message": "Execution failed safely."
9
+ },
10
+ "id": "call-1",
11
+ "operationId": "operation-1",
12
+ "owningGeneration": "runner-generation-1",
13
+ "outcome": {
14
+ "certainty": "proven",
15
+ "completion": "failed",
16
+ "kind": "completed",
17
+ "retryClass": "policy-gated"
18
+ },
19
+ "status": "error"
20
+ },
21
+ "expectation": {
22
+ "kind": "accepted",
23
+ "normalized": {
24
+ "error": {
25
+ "code": "execution_failed",
26
+ "message": "Execution failed safely."
27
+ },
28
+ "id": "call-1",
29
+ "operationId": "operation-1",
30
+ "outcome": {
31
+ "certainty": "proven",
32
+ "completion": "failed",
33
+ "kind": "completed",
34
+ "retryClass": "policy-gated"
35
+ },
36
+ "owningGeneration": "runner-generation-1",
37
+ "status": "error"
38
+ },
39
+ "canonicalJson": "{\"error\":{\"code\":\"execution_failed\",\"message\":\"Execution failed safely.\"},\"id\":\"call-1\",\"operationId\":\"operation-1\",\"outcome\":{\"certainty\":\"proven\",\"completion\":\"failed\",\"kind\":\"completed\",\"retryClass\":\"policy-gated\"},\"owningGeneration\":\"runner-generation-1\",\"status\":\"error\"}",
40
+ "refinementIdentities": ["portal.request-id.not-reserved", "portal.result.outcome-algebra"]
41
+ }
42
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "caseId": "completed-succeeded",
3
+ "schemaId": "portal.call.item-result",
4
+ "tags": ["accepted", "outcome", "result-discriminant"],
5
+ "input": {
6
+ "id": "call-1",
7
+ "operationId": "operation-1",
8
+ "owningGeneration": "tool-vm-generation-1",
9
+ "outcome": {
10
+ "certainty": "proven",
11
+ "completion": "succeeded",
12
+ "kind": "completed",
13
+ "retryClass": "forbidden"
14
+ },
15
+ "status": "ok",
16
+ "value": {
17
+ "issue": 123
18
+ }
19
+ },
20
+ "expectation": {
21
+ "kind": "accepted",
22
+ "normalized": {
23
+ "id": "call-1",
24
+ "operationId": "operation-1",
25
+ "outcome": {
26
+ "certainty": "proven",
27
+ "completion": "succeeded",
28
+ "kind": "completed",
29
+ "retryClass": "forbidden"
30
+ },
31
+ "owningGeneration": "tool-vm-generation-1",
32
+ "status": "ok",
33
+ "value": {
34
+ "issue": 123
35
+ }
36
+ },
37
+ "canonicalJson": "{\"id\":\"call-1\",\"operationId\":\"operation-1\",\"outcome\":{\"certainty\":\"proven\",\"completion\":\"succeeded\",\"kind\":\"completed\",\"retryClass\":\"forbidden\"},\"owningGeneration\":\"tool-vm-generation-1\",\"status\":\"ok\",\"value\":{\"issue\":123}}",
38
+ "refinementIdentities": ["portal.request-id.not-reserved", "portal.result.outcome-algebra"]
39
+ }
40
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "caseId": "invalid-ambiguous-retry-class",
3
+ "schemaId": "portal.call.item-result",
4
+ "tags": ["ambiguity", "illegal-combination", "rejected"],
5
+ "input": {
6
+ "error": {
7
+ "code": "execution_failed",
8
+ "message": "Execution outcome is ambiguous."
9
+ },
10
+ "id": "call-1",
11
+ "operationId": "operation-1",
12
+ "owningGeneration": "runner-generation-1",
13
+ "outcome": {
14
+ "certainty": "side-effects-and-termination-unknown",
15
+ "kind": "ambiguous",
16
+ "retryClass": "policy-gated"
17
+ },
18
+ "status": "error"
19
+ },
20
+ "expectation": {
21
+ "kind": "rejected",
22
+ "errorCodes": ["portal.result.outcome-algebra"],
23
+ "refinementIdentities": ["portal.request-id.not-reserved", "portal.result.outcome-algebra"]
24
+ }
25
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "caseId": "invalid-error-completed-succeeded",
3
+ "schemaId": "portal.call.item-result",
4
+ "tags": ["illegal-combination", "outcome", "rejected"],
5
+ "input": {
6
+ "error": {
7
+ "code": "execution_failed",
8
+ "message": "An error cannot carry a succeeded outcome."
9
+ },
10
+ "id": "call-1",
11
+ "operationId": "operation-1",
12
+ "owningGeneration": "runner-generation-1",
13
+ "outcome": {
14
+ "certainty": "proven",
15
+ "completion": "succeeded",
16
+ "kind": "completed",
17
+ "retryClass": "forbidden"
18
+ },
19
+ "status": "error"
20
+ },
21
+ "expectation": {
22
+ "kind": "rejected",
23
+ "errorCodes": ["portal.result.outcome-algebra"],
24
+ "refinementIdentities": ["portal.request-id.not-reserved", "portal.result.outcome-algebra"]
25
+ }
26
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "caseId": "invalid-error-result-with-value",
3
+ "schemaId": "portal.call.item-result",
4
+ "tags": ["rejected", "result-discriminant", "unknown-field"],
5
+ "input": {
6
+ "error": {
7
+ "code": "execution_failed",
8
+ "message": "An error result cannot contain a value."
9
+ },
10
+ "id": "call-1",
11
+ "status": "error",
12
+ "value": {}
13
+ },
14
+ "expectation": {
15
+ "kind": "rejected",
16
+ "errorCodes": ["portal.result.status-shape"],
17
+ "refinementIdentities": ["portal.request-id.not-reserved"]
18
+ }
19
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "caseId": "invalid-not-dispatched-certainty",
3
+ "schemaId": "portal.call.item-result",
4
+ "tags": ["illegal-combination", "outcome", "rejected"],
5
+ "input": {
6
+ "error": {
7
+ "code": "capability_denied",
8
+ "message": "Protected work was not dispatched."
9
+ },
10
+ "id": "call-1",
11
+ "operationId": "operation-1",
12
+ "owningGeneration": "gateway-generation-1",
13
+ "outcome": {
14
+ "certainty": "proven-terminated",
15
+ "kind": "not-dispatched",
16
+ "retryClass": "safe-before-dispatch"
17
+ },
18
+ "status": "error"
19
+ },
20
+ "expectation": {
21
+ "kind": "rejected",
22
+ "errorCodes": ["portal.result.outcome-algebra"],
23
+ "refinementIdentities": ["portal.request-id.not-reserved", "portal.result.outcome-algebra"]
24
+ }
25
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "caseId": "invalid-ok-completed-failed",
3
+ "schemaId": "portal.call.item-result",
4
+ "tags": ["illegal-combination", "outcome", "rejected"],
5
+ "input": {
6
+ "id": "call-1",
7
+ "operationId": "operation-1",
8
+ "owningGeneration": "runner-generation-1",
9
+ "outcome": {
10
+ "certainty": "proven",
11
+ "completion": "failed",
12
+ "kind": "completed",
13
+ "retryClass": "forbidden"
14
+ },
15
+ "status": "ok",
16
+ "value": {}
17
+ },
18
+ "expectation": {
19
+ "kind": "rejected",
20
+ "errorCodes": ["portal.result.outcome-algebra"],
21
+ "refinementIdentities": ["portal.request-id.not-reserved", "portal.result.outcome-algebra"]
22
+ }
23
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "caseId": "invalid-ok-result-with-error",
3
+ "schemaId": "portal.call.item-result",
4
+ "tags": ["rejected", "result-discriminant", "unknown-field"],
5
+ "input": {
6
+ "error": {
7
+ "code": "execution_failed",
8
+ "message": "An ok result cannot contain an error."
9
+ },
10
+ "id": "call-1",
11
+ "status": "ok",
12
+ "value": {}
13
+ },
14
+ "expectation": {
15
+ "kind": "rejected",
16
+ "errorCodes": ["portal.result.status-shape"],
17
+ "refinementIdentities": ["portal.request-id.not-reserved"]
18
+ }
19
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "caseId": "invalid-replaced-missing-prior-side-effects",
3
+ "schemaId": "portal.call.item-result",
4
+ "tags": ["illegal-combination", "rejected", "replacement"],
5
+ "input": {
6
+ "error": {
7
+ "code": "execution_failed",
8
+ "message": "The owning generation was replaced."
9
+ },
10
+ "id": "call-1",
11
+ "operationId": "operation-1",
12
+ "owningGeneration": "tool-vm-generation-1",
13
+ "outcome": {
14
+ "certainty": "proven-terminated",
15
+ "kind": "replaced-proven",
16
+ "retryClass": "manual-only"
17
+ },
18
+ "status": "error"
19
+ },
20
+ "expectation": {
21
+ "kind": "rejected",
22
+ "errorCodes": ["portal.result.outcome-algebra"],
23
+ "refinementIdentities": ["portal.request-id.not-reserved", "portal.result.outcome-algebra"]
24
+ }
25
+ }