@mininglamp-oss/octo-runtime 1.1.12 → 1.1.13

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 (172) hide show
  1. package/README.md +1 -1
  2. package/apps/cli/dist/adapters.d.ts +19 -1
  3. package/apps/cli/dist/adapters.js +153 -23
  4. package/apps/cli/dist/build-info.json +2 -2
  5. package/apps/cli/dist/codex.d.ts +5 -0
  6. package/apps/cli/dist/codex.js +36 -0
  7. package/apps/cli/dist/kernel.d.ts +4 -0
  8. package/apps/cli/dist/kernel.js +84 -0
  9. package/apps/cli/dist/main.js +8 -7
  10. package/apps/cli/dist/manifest.json +33 -22
  11. package/apps/cli/dist/output.d.ts +1 -0
  12. package/apps/cli/dist/output.js +8 -4
  13. package/apps/cli/dist/playboard.js +21 -12
  14. package/apps/cli/dist/provider-launch.d.ts +28 -0
  15. package/apps/cli/dist/provider-launch.js +52 -0
  16. package/apps/cli/dist/providers.d.ts +182 -0
  17. package/apps/cli/dist/providers.js +34 -0
  18. package/dist/public/adapter-sdk.d.ts +2 -0
  19. package/dist/public/adapter-sdk.js +2 -0
  20. package/dist/public/protocol.d.ts +1 -1
  21. package/dist/public/protocol.js +1 -1
  22. package/node_modules/@mininglamp-oss/octo-runtime-acp-client/dist/index.js +4 -4
  23. package/node_modules/@mininglamp-oss/octo-runtime-acp-client/package.json +3 -3
  24. package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/dist/index.d.ts +15 -14
  25. package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/dist/index.js +24 -28
  26. package/node_modules/@mininglamp-oss/octo-runtime-adapter-acp/package.json +4 -4
  27. package/node_modules/@mininglamp-oss/octo-runtime-adapter-antigravity/dist/index.d.ts +10 -35
  28. package/node_modules/@mininglamp-oss/octo-runtime-adapter-antigravity/dist/index.js +22 -29
  29. package/node_modules/@mininglamp-oss/octo-runtime-adapter-antigravity/package.json +3 -3
  30. package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/dist/index.d.ts +14 -68
  31. package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/dist/index.js +60 -43
  32. package/node_modules/@mininglamp-oss/octo-runtime-adapter-claude-code/package.json +3 -3
  33. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codebuddy/dist/index.d.ts +19 -31
  34. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codebuddy/dist/index.js +29 -18
  35. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codebuddy/package.json +4 -4
  36. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/app-server.d.ts +6 -5
  37. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/app-server.js +32 -26
  38. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/engine.d.ts +54 -0
  39. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/engine.js +147 -0
  40. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/environment.js +4 -8
  41. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/index.d.ts +20 -92
  42. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/index.js +104 -216
  43. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/mcp.d.ts +2 -2
  44. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/mcp.js +4 -11
  45. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/service.d.ts +9 -5
  46. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/dist/service.js +77 -81
  47. package/node_modules/@mininglamp-oss/octo-runtime-adapter-codex/package.json +3 -3
  48. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/index.d.ts +4 -2
  49. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/dist/index.js +12 -14
  50. package/node_modules/@mininglamp-oss/octo-runtime-adapter-dsh/package.json +3 -3
  51. package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/dist/adapter.d.ts +14 -14
  52. package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/dist/adapter.js +23 -30
  53. package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/dist/client.js +4 -7
  54. package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/dist/index.d.ts +13 -21
  55. package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/dist/index.js +48 -26
  56. package/node_modules/@mininglamp-oss/octo-runtime-adapter-grok-build/package.json +5 -5
  57. package/node_modules/@mininglamp-oss/octo-runtime-adapter-hermes/dist/index.d.ts +16 -14
  58. package/node_modules/@mininglamp-oss/octo-runtime-adapter-hermes/dist/index.js +15 -7
  59. package/node_modules/@mininglamp-oss/octo-runtime-adapter-hermes/package.json +2 -2
  60. package/node_modules/@mininglamp-oss/octo-runtime-adapter-kimi-code/dist/index.d.ts +16 -14
  61. package/node_modules/@mininglamp-oss/octo-runtime-adapter-kimi-code/dist/index.js +14 -6
  62. package/node_modules/@mininglamp-oss/octo-runtime-adapter-kimi-code/package.json +2 -2
  63. package/node_modules/@mininglamp-oss/octo-runtime-adapter-mcode/dist/index.d.ts +16 -14
  64. package/node_modules/@mininglamp-oss/octo-runtime-adapter-mcode/dist/index.js +15 -7
  65. package/node_modules/@mininglamp-oss/octo-runtime-adapter-mcode/package.json +2 -2
  66. package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/dist/index.d.ts +7 -3
  67. package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/dist/index.js +27 -29
  68. package/node_modules/@mininglamp-oss/octo-runtime-adapter-openclaw/package.json +3 -3
  69. package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/dist/index.d.ts +16 -25
  70. package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/dist/index.js +109 -178
  71. package/node_modules/@mininglamp-oss/octo-runtime-adapter-opencode/package.json +4 -4
  72. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qodercli/dist/index.d.ts +16 -14
  73. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qodercli/dist/index.js +15 -6
  74. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qodercli/package.json +3 -2
  75. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qoderclicn/dist/index.d.ts +16 -14
  76. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qoderclicn/dist/index.js +15 -6
  77. package/node_modules/@mininglamp-oss/octo-runtime-adapter-qoderclicn/package.json +3 -2
  78. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/activity.d.ts +5 -1
  79. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/agent-env.d.ts +49 -0
  80. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/agent-env.js +256 -0
  81. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/approval.js +7 -2
  82. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/environment.js +1 -1
  83. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/execution-scope.d.ts +5 -1
  84. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/index.d.ts +25 -12
  85. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/index.js +116 -58
  86. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/mcp.js +1 -1
  87. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/process-launch.d.ts +11 -1
  88. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/process-launch.js +89 -8
  89. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/provider-launch.d.ts +10 -0
  90. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/provider-launch.js +25 -0
  91. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/dist/public-display.js +10 -3
  92. package/node_modules/@mininglamp-oss/octo-runtime-adapter-sdk/package.json +2 -2
  93. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapters.d.ts +19 -1
  94. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/adapters.js +153 -23
  95. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/build-info.json +2 -2
  96. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/codex.d.ts +5 -0
  97. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/codex.js +36 -0
  98. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/kernel.d.ts +4 -0
  99. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/kernel.js +84 -0
  100. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/main.js +8 -7
  101. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/manifest.json +33 -22
  102. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/output.d.ts +1 -0
  103. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/output.js +8 -4
  104. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/playboard.js +21 -12
  105. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/provider-launch.d.ts +28 -0
  106. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/provider-launch.js +52 -0
  107. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/providers.d.ts +182 -0
  108. package/node_modules/@mininglamp-oss/octo-runtime-cli/dist/providers.js +34 -0
  109. package/node_modules/@mininglamp-oss/octo-runtime-cli/package.json +20 -20
  110. package/node_modules/@mininglamp-oss/octo-runtime-client/build-info.json +2 -2
  111. package/node_modules/@mininglamp-oss/octo-runtime-client/dist/client.js +2 -2
  112. package/node_modules/@mininglamp-oss/octo-runtime-client/package.json +5 -5
  113. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/kernel-ipc.schema.json +3 -104
  114. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/protocol.schema.json +173 -1295
  115. package/node_modules/@mininglamp-oss/octo-runtime-cross-service/package.json +1 -1
  116. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/index.d.ts +0 -2
  117. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/index.js +26 -54
  118. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/invoke-input.d.ts +2 -2
  119. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/invoke-input.js +13 -85
  120. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/watchdog.d.ts +3 -1
  121. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/watchdog.js +5 -0
  122. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/package.json +3 -3
  123. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/index.d.ts +1 -1
  124. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/index.js +1 -1
  125. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/server.d.ts +5 -0
  126. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/dist/server.js +17 -20
  127. package/node_modules/@mininglamp-oss/octo-runtime-executor-kernel/package.json +5 -5
  128. package/node_modules/@mininglamp-oss/octo-runtime-host-sdk/package.json +4 -4
  129. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/browser.d.ts +0 -2
  130. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/browser.js +0 -2
  131. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context-catalog.d.ts +0 -1
  132. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context-catalog.js +3 -5
  133. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context-configuration.js +1 -8
  134. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context.d.ts +1 -2
  135. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/context.js +3 -267
  136. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/failure.d.ts +2 -0
  137. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/failure.js +17 -3
  138. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/generated/protocol-types.d.ts +102 -396
  139. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/generated/protocol-types.js +32 -1
  140. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/index.d.ts +6 -15
  141. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/index.js +33 -178
  142. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/invoke-input.d.ts +11 -22
  143. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/invoke-input.js +38 -78
  144. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/multimodal.js +6 -0
  145. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/run-protocol.d.ts +2 -1
  146. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/run-protocol.js +5 -28
  147. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/service-processes.js +2 -1
  148. package/node_modules/@mininglamp-oss/octo-runtime-protocol/package.json +1 -1
  149. package/package.json +34 -37
  150. package/packages/octo-runtime-protocol/schema/kernel-ipc.schema.json +3 -104
  151. package/packages/octo-runtime-protocol/schema/protocol.schema.json +173 -1295
  152. package/dist/public/codex.d.ts +0 -1
  153. package/dist/public/codex.js +0 -1
  154. package/dist/public/dsh.d.ts +0 -2
  155. package/dist/public/dsh.js +0 -1
  156. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/context-configuration-fixtures.json +0 -1219
  157. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/context-fixtures.json +0 -5988
  158. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/kernel-client.behavior.json +0 -56
  159. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/native-invoke-fixtures.json +0 -116
  160. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/run-protocol-fixtures.json +0 -761
  161. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/runtime-selection-fixtures.json +0 -663
  162. package/node_modules/@mininglamp-oss/octo-runtime-client/schema/session-name-fixtures.json +0 -191
  163. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/context.d.ts +0 -12
  164. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/context.js +0 -89
  165. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/execution-preparation.d.ts +0 -33
  166. package/node_modules/@mininglamp-oss/octo-runtime-executor-core/dist/execution-preparation.js +0 -93
  167. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/execution-plan.d.ts +0 -3
  168. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/execution-plan.js +0 -80
  169. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/model-context.d.ts +0 -3
  170. package/node_modules/@mininglamp-oss/octo-runtime-protocol/dist/model-context.js +0 -9
  171. /package/node_modules/@mininglamp-oss/octo-runtime-client/{schema → fixtures}/kernel-ipc-fixtures.json +0 -0
  172. /package/packages/octo-runtime-protocol/{schema → test/fixtures}/kernel-ipc-fixtures.json +0 -0
@@ -225,6 +225,11 @@
225
225
  "OPERATION_OUTCOME_UNKNOWN",
226
226
  "HOST_EXECUTION_FAILED",
227
227
  "HOST_ENDED_WITHOUT_TERMINAL",
228
+ "WORKDIR_REQUIRED",
229
+ "WORKDIR_INVALID",
230
+ "WORKDIR_NOT_FOUND",
231
+ "WORKDIR_NOT_DIRECTORY",
232
+ "WORKDIR_UNAVAILABLE",
228
233
  "PROVIDER_MESSAGE_TOO_LARGE",
229
234
  "HOST_FRAME_TOO_LARGE",
230
235
  "STREAM_QUEUE_ITEM_TOO_LARGE",
@@ -978,7 +983,7 @@
978
983
  },
979
984
  "ContextItem": {
980
985
  "title": "ContextItem",
981
- "description": "Open Context item. Built-in types retain their payload contracts; unknown optional types are preserved and ignored by unsupported consumers.",
986
+ "description": "Opaque ordered item. The envelope validates structure; consuming Adapters validate shared settings and their privately agreed payloads. Private items require no public registration.",
982
987
  "tsType": "{ namespace: string; name: string; guidance?: string; data_format?: 'text'; payload: Record<string, unknown> }",
983
988
  "type": "object",
984
989
  "additionalProperties": false,
@@ -1001,286 +1006,23 @@
1001
1006
  },
1002
1007
  "guidance": {
1003
1008
  "type": "string",
1004
- "description": "Producer-authored context guidance, rendered as ordinary model input."
1009
+ "description": "Optional producer metadata. Runtime does not render AgentEnv items into model input."
1005
1010
  },
1006
1011
  "data_format": {
1007
1012
  "const": "text",
1008
- "description": "Explicit extra.* text rendering; payload must contain only a text string. Omit for complete JSON rendering."
1013
+ "description": "Optional producer metadata; it does not request Runtime rendering."
1009
1014
  }
1010
1015
  },
1011
- "allOf": [
1012
- {
1013
- "if": {
1014
- "required": ["data_format"]
1015
- },
1016
- "then": {
1017
- "properties": {
1018
- "namespace": {
1019
- "pattern": "^extra\\."
1020
- },
1021
- "payload": {
1022
- "type": "object",
1023
- "required": ["text"],
1024
- "additionalProperties": false,
1025
- "properties": {
1026
- "text": {
1027
- "type": "string"
1028
- }
1029
- }
1030
- }
1031
- }
1032
- }
1033
- },
1034
- {
1035
- "if": {
1036
- "properties": {
1037
- "namespace": {
1038
- "const": "octo.execution"
1039
- },
1040
- "name": {
1041
- "const": "actmode"
1042
- }
1043
- }
1044
- },
1045
- "then": {
1046
- "properties": {
1047
- "payload": {
1048
- "$ref": "#/definitions/ContextActmodePayload"
1049
- }
1050
- }
1051
- }
1052
- },
1053
- {
1054
- "if": {
1055
- "properties": {
1056
- "namespace": {
1057
- "const": "octo.execution"
1058
- },
1059
- "name": {
1060
- "const": "model"
1061
- }
1062
- }
1063
- },
1064
- "then": {
1065
- "properties": {
1066
- "payload": {
1067
- "$ref": "#/definitions/ContextModelPayload"
1068
- }
1069
- }
1070
- }
1071
- },
1072
- {
1073
- "if": {
1074
- "properties": {
1075
- "namespace": {
1076
- "const": "octo.execution"
1077
- },
1078
- "name": {
1079
- "const": "adapter"
1080
- }
1081
- }
1082
- },
1083
- "then": {
1084
- "properties": {
1085
- "payload": {
1086
- "$ref": "#/definitions/ContextAdapterPayload"
1087
- }
1088
- }
1089
- }
1090
- },
1091
- {
1092
- "if": {
1093
- "properties": {
1094
- "namespace": {
1095
- "const": "octo.execution"
1096
- },
1097
- "name": {
1098
- "const": "workspace"
1099
- }
1100
- }
1101
- },
1102
- "then": {
1103
- "properties": {
1104
- "payload": {
1105
- "$ref": "#/definitions/ContextWorkspacePayload"
1106
- }
1107
- }
1108
- }
1109
- },
1110
- {
1111
- "if": {
1112
- "properties": {
1113
- "namespace": {
1114
- "const": "octo.execution"
1115
- },
1116
- "name": {
1117
- "const": "limits"
1118
- }
1119
- }
1120
- },
1121
- "then": {
1122
- "properties": {
1123
- "payload": {
1124
- "$ref": "#/definitions/ContextLimitsPayload"
1125
- }
1126
- }
1127
- }
1128
- },
1129
- {
1130
- "if": {
1131
- "properties": {
1132
- "namespace": {
1133
- "const": "octo.runtime"
1134
- },
1135
- "name": {
1136
- "const": "selection"
1137
- }
1138
- }
1139
- },
1140
- "then": {
1141
- "properties": {
1142
- "payload": {
1143
- "$ref": "#/definitions/ContextRuntimeSelectionPayload"
1144
- }
1145
- }
1146
- }
1147
- },
1148
- {
1149
- "if": {
1150
- "properties": {
1151
- "namespace": {
1152
- "const": "octo.security"
1153
- },
1154
- "name": {
1155
- "const": "approval_policy"
1156
- }
1157
- }
1158
- },
1159
- "then": {
1160
- "properties": {
1161
- "payload": {
1162
- "$ref": "#/definitions/ContextApprovalPolicyPayload"
1163
- }
1164
- }
1165
- }
1166
- },
1167
- {
1168
- "if": {
1169
- "properties": {
1170
- "namespace": {
1171
- "const": "octo.content"
1172
- },
1173
- "name": {
1174
- "const": "inline"
1175
- }
1176
- }
1177
- },
1178
- "then": {
1179
- "properties": {
1180
- "payload": {
1181
- "$ref": "#/definitions/ContextInlinePayload"
1182
- }
1183
- }
1184
- }
1185
- },
1186
- {
1187
- "if": {
1188
- "properties": {
1189
- "namespace": {
1190
- "const": "octo.content"
1191
- },
1192
- "name": {
1193
- "const": "references"
1194
- }
1195
- }
1196
- },
1197
- "then": {
1198
- "properties": {
1199
- "payload": {
1200
- "$ref": "#/definitions/ContextReferencesPayload"
1201
- }
1202
- }
1203
- }
1204
- },
1205
- {
1206
- "if": {
1207
- "properties": {
1208
- "namespace": {
1209
- "const": "octo.control"
1210
- },
1211
- "name": {
1212
- "const": "instructions"
1213
- }
1214
- }
1215
- },
1216
- "then": {
1217
- "properties": {
1218
- "payload": {
1219
- "$ref": "#/definitions/ContextInstructionsPayload"
1220
- }
1221
- }
1222
- }
1223
- },
1224
- {
1225
- "if": {
1226
- "properties": {
1227
- "namespace": {
1228
- "const": "octo.execution"
1229
- },
1230
- "name": {
1231
- "const": "envs"
1232
- }
1233
- }
1234
- },
1235
- "then": {
1236
- "properties": {
1237
- "payload": {
1238
- "$ref": "#/definitions/ContextEnvsPayload"
1239
- }
1240
- }
1241
- }
1242
- },
1243
- {
1244
- "if": {
1245
- "properties": {
1246
- "namespace": {
1247
- "enum": ["octo.execution", "octo.runtime", "octo.security", "octo.control"]
1248
- }
1249
- }
1250
- },
1251
- "then": {
1252
- "not": {
1253
- "required": ["guidance"]
1254
- }
1255
- }
1256
- },
1257
- {
1258
- "if": {
1259
- "properties": {
1260
- "namespace": {
1261
- "const": "octo.execution"
1262
- },
1263
- "name": {
1264
- "const": "mcp"
1265
- }
1266
- }
1267
- },
1268
- "then": {
1269
- "properties": {
1270
- "payload": {
1271
- "$ref": "#/definitions/ContextMcpPayload"
1272
- }
1273
- }
1274
- }
1275
- }
1276
- ],
1277
1016
  "not": {
1278
1017
  "properties": {
1279
1018
  "namespace": {
1280
- "const": "octo.resources"
1019
+ "const": "octo.control"
1020
+ },
1021
+ "name": {
1022
+ "const": "instructions"
1281
1023
  }
1282
1024
  },
1283
- "required": ["namespace"]
1025
+ "required": ["namespace", "name"]
1284
1026
  }
1285
1027
  },
1286
1028
  "ContextEnvelope": {
@@ -1308,32 +1050,13 @@
1308
1050
  },
1309
1051
  "ContextConfiguration": {
1310
1052
  "title": "ContextConfiguration",
1311
- "description": "Agent defaults and mandatory constraints, stored under one external configuration version. Authorized configuration writers may persist system instructions in mandatory with text-only entries. Ephemeral business content and default-layer instructions are forbidden; callers cannot submit trusted control instructions.",
1053
+ "description": "Agent defaults and mandatory execution constraints stored under one external configuration version. Application prompts belong to caller-provided ordinary inputs, not execution settings.",
1312
1054
  "type": "object",
1313
1055
  "additionalProperties": false,
1314
1056
  "required": ["defaults", "mandatory"],
1315
1057
  "properties": {
1316
1058
  "defaults": {
1317
- "allOf": [
1318
- {
1319
- "$ref": "#/definitions/PersistentContextEnvelope"
1320
- },
1321
- {
1322
- "properties": {
1323
- "items": {
1324
- "items": {
1325
- "not": {
1326
- "properties": {
1327
- "namespace": {
1328
- "const": "octo.control"
1329
- }
1330
- }
1331
- }
1332
- }
1333
- }
1334
- }
1335
- }
1336
- ],
1059
+ "$ref": "#/definitions/PersistentContextEnvelope",
1337
1060
  "tsType": "ContextEnvelope"
1338
1061
  },
1339
1062
  "mandatory": {
@@ -1395,7 +1118,7 @@
1395
1118
  "execution": {
1396
1119
  "type": "object",
1397
1120
  "additionalProperties": false,
1398
- "required": ["adapter_type", "approval_mode", "workspace_mode"],
1121
+ "required": ["adapter_type", "approval_mode"],
1399
1122
  "properties": {
1400
1123
  "adapter_type": {
1401
1124
  "type": "string",
@@ -1411,9 +1134,6 @@
1411
1134
  },
1412
1135
  "approval_mode": {
1413
1136
  "enum": ["ask", "assisted", "full_access"]
1414
- },
1415
- "workspace_mode": {
1416
- "enum": ["fixed", "random", "none"]
1417
1137
  }
1418
1138
  }
1419
1139
  }
@@ -1515,7 +1235,7 @@
1515
1235
  },
1516
1236
  "ContextPreparationReceipt": {
1517
1237
  "title": "ContextPreparationReceipt",
1518
- "description": "Workspace preparation for the current Run lease and frozen execution Context; it does not prove Provider use of model context.",
1238
+ "description": "Preparation facts for the current Run lease and caller-owned workspace path; they do not prove Provider use of model context or transfer directory ownership to Runtime.",
1519
1239
  "type": "object",
1520
1240
  "additionalProperties": false,
1521
1241
  "required": [
@@ -1523,7 +1243,6 @@
1523
1243
  "run_id",
1524
1244
  "lease_id",
1525
1245
  "fencing_token",
1526
- "workspace_mode",
1527
1246
  "workspace_path",
1528
1247
  "provider_state_dir",
1529
1248
  "warnings"
@@ -1546,9 +1265,6 @@
1546
1265
  "minimum": 1,
1547
1266
  "maximum": 9007199254740991
1548
1267
  },
1549
- "workspace_mode": {
1550
- "enum": ["fixed", "random", "none"]
1551
- },
1552
1268
  "workspace_path": {
1553
1269
  "type": "string"
1554
1270
  },
@@ -1566,127 +1282,8 @@
1566
1282
  }
1567
1283
  },
1568
1284
  "PersistentContextEnvelope": {
1569
- "allOf": [
1570
- {
1571
- "$ref": "#/definitions/ContextEnvelope"
1572
- },
1573
- {
1574
- "properties": {
1575
- "items": {
1576
- "items": {
1577
- "allOf": [
1578
- {
1579
- "not": {
1580
- "properties": {
1581
- "namespace": {
1582
- "const": "octo.content"
1583
- },
1584
- "name": {
1585
- "const": "inline"
1586
- }
1587
- }
1588
- }
1589
- },
1590
- {
1591
- "anyOf": [
1592
- {
1593
- "properties": {
1594
- "namespace": {
1595
- "const": "octo.execution"
1596
- },
1597
- "name": {
1598
- "const": "adapter"
1599
- }
1600
- }
1601
- },
1602
- {
1603
- "properties": {
1604
- "namespace": {
1605
- "const": "octo.execution"
1606
- },
1607
- "name": {
1608
- "const": "model"
1609
- }
1610
- }
1611
- },
1612
- {
1613
- "properties": {
1614
- "namespace": {
1615
- "const": "octo.execution"
1616
- },
1617
- "name": {
1618
- "const": "workspace"
1619
- }
1620
- }
1621
- },
1622
- {
1623
- "properties": {
1624
- "namespace": {
1625
- "const": "octo.execution"
1626
- },
1627
- "name": {
1628
- "const": "limits"
1629
- }
1630
- }
1631
- },
1632
- {
1633
- "properties": {
1634
- "namespace": {
1635
- "const": "octo.runtime"
1636
- },
1637
- "name": {
1638
- "const": "selection"
1639
- }
1640
- }
1641
- },
1642
- {
1643
- "properties": {
1644
- "namespace": {
1645
- "const": "octo.security"
1646
- },
1647
- "name": {
1648
- "const": "approval_policy"
1649
- }
1650
- }
1651
- },
1652
- {
1653
- "properties": {
1654
- "namespace": {
1655
- "const": "octo.content"
1656
- },
1657
- "name": {
1658
- "const": "inline"
1659
- }
1660
- }
1661
- },
1662
- {
1663
- "properties": {
1664
- "namespace": {
1665
- "const": "octo.content"
1666
- },
1667
- "name": {
1668
- "const": "references"
1669
- }
1670
- }
1671
- },
1672
- {
1673
- "properties": {
1674
- "namespace": {
1675
- "const": "octo.control"
1676
- },
1677
- "name": {
1678
- "const": "instructions"
1679
- }
1680
- }
1681
- }
1682
- ]
1683
- }
1684
- ]
1685
- }
1686
- }
1687
- }
1688
- }
1689
- ],
1285
+ "title": "PersistentContextEnvelope",
1286
+ "$ref": "#/definitions/ContextEnvelope",
1690
1287
  "tsType": "ContextEnvelope"
1691
1288
  },
1692
1289
  "ContextAdapterPayload": {
@@ -1697,25 +1294,6 @@
1697
1294
  "type": {
1698
1295
  "type": "string",
1699
1296
  "minLength": 1
1700
- },
1701
- "provider_agent_id": {
1702
- "type": "string",
1703
- "pattern": "^[a-z0-9_][a-z0-9_-]{0,63}$"
1704
- }
1705
- },
1706
- "if": {
1707
- "properties": {
1708
- "type": {
1709
- "const": "openclaw"
1710
- }
1711
- }
1712
- },
1713
- "then": {
1714
- "required": ["provider_agent_id"]
1715
- },
1716
- "else": {
1717
- "not": {
1718
- "required": ["provider_agent_id"]
1719
1297
  }
1720
1298
  }
1721
1299
  },
@@ -1800,43 +1378,16 @@
1800
1378
  ]
1801
1379
  },
1802
1380
  "ContextWorkspacePayload": {
1803
- "description": "fixed uses the supplied path; random creates a workspace on the AgentSession's first run and reuses it for subsequent runs; none delegates workspace ownership to a preset Agent.",
1804
- "oneOf": [
1805
- {
1806
- "type": "object",
1807
- "additionalProperties": false,
1808
- "required": ["mode", "path"],
1809
- "properties": {
1810
- "mode": {
1811
- "const": "fixed"
1812
- },
1813
- "path": {
1814
- "type": "string",
1815
- "minLength": 1
1816
- }
1817
- }
1818
- },
1819
- {
1820
- "type": "object",
1821
- "additionalProperties": false,
1822
- "required": ["mode"],
1823
- "properties": {
1824
- "mode": {
1825
- "const": "random"
1826
- }
1827
- }
1828
- },
1829
- {
1830
- "type": "object",
1831
- "required": ["mode"],
1832
- "additionalProperties": false,
1833
- "properties": {
1834
- "mode": {
1835
- "const": "none"
1836
- }
1837
- }
1381
+ "description": "Caller-owned, already prepared directory. Runtime validates the concrete local execution path and never allocates or recreates an application workspace.",
1382
+ "type": "object",
1383
+ "additionalProperties": false,
1384
+ "required": ["path"],
1385
+ "properties": {
1386
+ "path": {
1387
+ "type": "string",
1388
+ "minLength": 1
1838
1389
  }
1839
- ]
1390
+ }
1840
1391
  },
1841
1392
  "ContextLimitsPayload": {
1842
1393
  "description": "Snake-case frozen watchdog limits, with the same bounds as RuntimeLimits. Legacy enforcement=observe cannot be combined with v2 settings.",
@@ -1983,74 +1534,10 @@
1983
1534
  }
1984
1535
  }
1985
1536
  },
1986
- "ContextSelectionEntry": {
1987
- "description": "Untrusted inline selection text with optional resource reference, source metadata and summary. Source metadata is not an authorization claim.",
1537
+ "ContextMcpLocator": {
1988
1538
  "type": "object",
1989
1539
  "additionalProperties": false,
1990
- "required": ["text"],
1991
- "properties": {
1992
- "text": {
1993
- "type": "string",
1994
- "minLength": 1
1995
- },
1996
- "resource_ref": {
1997
- "type": "string",
1998
- "minLength": 1
1999
- },
2000
- "source": {
2001
- "type": ["object", "string"],
2002
- "additionalProperties": true
2003
- },
2004
- "summary": {
2005
- "type": "string"
2006
- }
2007
- }
2008
- },
2009
- "ContextResourceEntry": {
2010
- "description": "Declarative MCP resource operation. Only deployed scoped operations may execute; schema validation does not authorize access.",
2011
- "type": "object",
2012
- "additionalProperties": false,
2013
- "required": ["resource_ref", "resolver", "locator"],
2014
- "properties": {
2015
- "resource_ref": {
2016
- "type": "string",
2017
- "minLength": 1
2018
- },
2019
- "resolver": {
2020
- "const": "mcp"
2021
- },
2022
- "locator": {
2023
- "type": "object"
2024
- },
2025
- "params": {
2026
- "description": "Frozen non-secret JSON parameters supplied by the authenticated resolver plan, not model-generated commands.",
2027
- "type": "object",
2028
- "additionalProperties": true,
2029
- "tsType": "Record<string, unknown>"
2030
- },
2031
- "authorization_ref": {
2032
- "type": "string",
2033
- "minLength": 1
2034
- },
2035
- "revision": {
2036
- "type": "string",
2037
- "minLength": 1
2038
- }
2039
- },
2040
- "allOf": [
2041
- {
2042
- "properties": {
2043
- "locator": {
2044
- "$ref": "#/definitions/ContextMcpLocator"
2045
- }
2046
- }
2047
- }
2048
- ]
2049
- },
2050
- "ContextMcpLocator": {
2051
- "type": "object",
2052
- "additionalProperties": false,
2053
- "required": ["server_ref", "tool"],
1540
+ "required": ["server_ref", "tool"],
2054
1541
  "properties": {
2055
1542
  "server_ref": {
2056
1543
  "type": "string",
@@ -2062,60 +1549,6 @@
2062
1549
  }
2063
1550
  }
2064
1551
  },
2065
- "ContextInstructionEntry": {
2066
- "description": "Control instruction containing only non-empty text. Authorization belongs to the authenticated upstream boundary, not to a caller-supplied source label.",
2067
- "type": "object",
2068
- "additionalProperties": false,
2069
- "required": ["text"],
2070
- "properties": {
2071
- "text": {
2072
- "type": "string",
2073
- "minLength": 1
2074
- }
2075
- }
2076
- },
2077
- "ContextInstructionsPayload": {
2078
- "type": "object",
2079
- "additionalProperties": false,
2080
- "required": ["entries"],
2081
- "properties": {
2082
- "entries": {
2083
- "type": "array",
2084
- "items": {
2085
- "$ref": "#/definitions/ContextInstructionEntry"
2086
- }
2087
- }
2088
- }
2089
- },
2090
- "ContextContinuityPayload": {
2091
- "description": "A channel continuity descriptor. The x-octo-matching-trigger-fields keyword requires trigger_fact.message_id == trigger_message_id and matching presence/value of trigger_fact.message_seq and trigger_seq.",
2092
- "x-octo-matching-trigger-fields": true,
2093
- "allOf": [
2094
- {
2095
- "$ref": "#/definitions/ChannelContextDescriptor"
2096
- },
2097
- {
2098
- "properties": {
2099
- "session_generation": {
2100
- "maximum": 9007199254740991
2101
- },
2102
- "trigger_seq": {
2103
- "maximum": 9007199254740991
2104
- },
2105
- "trigger_fact": {
2106
- "properties": {
2107
- "message_seq": {
2108
- "maximum": 9007199254740991
2109
- },
2110
- "occurred_at_ms": {
2111
- "maximum": 9007199254740991
2112
- }
2113
- }
2114
- }
2115
- }
2116
- }
2117
- ]
2118
- },
2119
1552
  "ResolvedRuntimeSelection": {
2120
1553
  "title": "ResolvedRuntimeSelection",
2121
1554
  "description": "Worker-frozen Context runtime candidates. Explicit selection cannot fail over.",
@@ -2207,110 +1640,6 @@
2207
1640
  }
2208
1641
  ]
2209
1642
  },
2210
- "ResolvedExecutionPlan": {
2211
- "title": "ResolvedExecutionPlan",
2212
- "x-octo-unicode-scalar-strings": true,
2213
- "type": "object",
2214
- "additionalProperties": false,
2215
- "required": ["agent_source", "adapter_type", "workdir", "approval_mode"],
2216
- "properties": {
2217
- "actmode": {
2218
- "enum": ["default", "plan"]
2219
- },
2220
- "adapter_type": {
2221
- "type": "string",
2222
- "minLength": 1
2223
- },
2224
- "workdir": {
2225
- "type": "string"
2226
- },
2227
- "workspace": {
2228
- "$ref": "#/definitions/ContextWorkspacePayload"
2229
- },
2230
- "model": {
2231
- "type": "string",
2232
- "minLength": 1
2233
- },
2234
- "effort": {
2235
- "type": "string",
2236
- "minLength": 1
2237
- },
2238
- "approval_mode": {
2239
- "$ref": "#/definitions/ApprovalMode"
2240
- },
2241
- "runtime_limits": {
2242
- "$ref": "#/definitions/ContextLimitsPayload"
2243
- },
2244
- "provider_agent_id": {
2245
- "type": "string",
2246
- "pattern": "^[a-z0-9_][a-z0-9_-]{0,63}$"
2247
- },
2248
- "agent_source": {
2249
- "$ref": "#/definitions/AgentSource"
2250
- },
2251
- "envs": {
2252
- "$ref": "#/definitions/ContextEnvsPayload"
2253
- },
2254
- "mcp": {
2255
- "$ref": "#/definitions/ContextMcpPayload"
2256
- }
2257
- },
2258
- "if": {
2259
- "properties": {
2260
- "agent_source": {
2261
- "const": "provisioned"
2262
- },
2263
- "workdir": {
2264
- "const": ""
2265
- }
2266
- },
2267
- "required": ["agent_source", "workdir"]
2268
- },
2269
- "then": {
2270
- "required": ["workspace"],
2271
- "properties": {
2272
- "workspace": {
2273
- "properties": {
2274
- "mode": {
2275
- "const": "random"
2276
- }
2277
- }
2278
- }
2279
- }
2280
- },
2281
- "allOf": [
2282
- {
2283
- "if": {
2284
- "properties": {
2285
- "adapter_type": {
2286
- "const": "openclaw"
2287
- }
2288
- }
2289
- },
2290
- "then": {
2291
- "required": ["provider_agent_id"]
2292
- },
2293
- "else": {
2294
- "not": {
2295
- "required": ["provider_agent_id"]
2296
- }
2297
- }
2298
- },
2299
- {
2300
- "if": {
2301
- "properties": {
2302
- "agent_source": {
2303
- "const": "preset"
2304
- }
2305
- },
2306
- "required": ["agent_source"]
2307
- },
2308
- "then": {
2309
- "required": ["provider_agent_id"]
2310
- }
2311
- }
2312
- ]
2313
- },
2314
1643
  "MessageChannel": {
2315
1644
  "title": "MessageChannel",
2316
1645
  "description": "Provider-neutral assistant output channel. analysis is reasoning-class content gated by exposure; commentary is public in-run progress; final is answer content delivered only after the Run reaches a completed terminal state.",
@@ -2570,68 +1899,6 @@
2570
1899
  }
2571
1900
  }
2572
1901
  },
2573
- "AgentConfig": {
2574
- "title": "AgentConfig",
2575
- "description": "Adapter-internal configuration derived from the resolved execution plan, not a public source of run model or approval choices. Legacy permission and thinking fields are forbidden.",
2576
- "type": "object",
2577
- "additionalProperties": true,
2578
- "not": {
2579
- "anyOf": [
2580
- {
2581
- "required": ["permissionMode"]
2582
- },
2583
- {
2584
- "required": ["autoApprove"]
2585
- },
2586
- {
2587
- "required": ["dangerouslyBypassPermissions"]
2588
- },
2589
- {
2590
- "required": ["thinking"]
2591
- }
2592
- ]
2593
- },
2594
- "properties": {
2595
- "workdir": {
2596
- "description": "Default provider CLI working directory. It is a cwd, not a filesystem security boundary.",
2597
- "type": "string"
2598
- },
2599
- "model": {
2600
- "description": "Model identifier.",
2601
- "type": "string"
2602
- },
2603
- "sandbox": {
2604
- "description": "Provider sandbox mode identifier.",
2605
- "type": "string"
2606
- },
2607
- "providerAgentId": {
2608
- "description": "Provider-side agent identifier.",
2609
- "type": "string"
2610
- },
2611
- "effort": {
2612
- "description": "Optional provider reasoning effort identifier. Provider adapters may define an explicit default.",
2613
- "type": "string"
2614
- },
2615
- "timeoutSeconds": {
2616
- "description": "Invocation timeout in seconds.",
2617
- "type": "number"
2618
- },
2619
- "openclawConfigPath": {
2620
- "description": "OpenClaw configuration path.",
2621
- "type": "string"
2622
- },
2623
- "openclawStateDir": {
2624
- "description": "OpenClaw state directory.",
2625
- "type": "string"
2626
- },
2627
- "providerOptions": {
2628
- "description": "Provider-specific extension options passed through unchanged by Core.",
2629
- "type": "object",
2630
- "additionalProperties": true,
2631
- "tsType": "Record<string, unknown>"
2632
- }
2633
- }
2634
- },
2635
1902
  "AsyncUserInputQuestion": {
2636
1903
  "type": "object",
2637
1904
  "additionalProperties": false,
@@ -2641,7 +1908,7 @@
2641
1908
  "type": "string",
2642
1909
  "minLength": 1,
2643
1910
  "maxLength": 4096,
2644
- "pattern": "[^\t-\r \u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff    - 

   ]"
1911
+ "pattern": "[^\t-\r    - 

   ]"
2645
1912
  },
2646
1913
  "options": {
2647
1914
  "type": ["array", "null"],
@@ -2650,7 +1917,7 @@
2650
1917
  "type": "string",
2651
1918
  "minLength": 1,
2652
1919
  "maxLength": 4096,
2653
- "pattern": "[^\t-\r \u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff    - 

   ]"
1920
+ "pattern": "[^\t-\r    - 

   ]"
2654
1921
  }
2655
1922
  }
2656
1923
  }
@@ -2686,7 +1953,7 @@
2686
1953
  "type": "string",
2687
1954
  "minLength": 1,
2688
1955
  "maxLength": 4096,
2689
- "pattern": "[^\t-\r \u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff    - 

   ]"
1956
+ "pattern": "[^\t-\r    - 

   ]"
2690
1957
  },
2691
1958
  "options": {
2692
1959
  "type": ["array", "null"],
@@ -2695,7 +1962,7 @@
2695
1962
  "type": "string",
2696
1963
  "minLength": 1,
2697
1964
  "maxLength": 4096,
2698
- "pattern": "[^\t-\r \u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff    - 

   ]"
1965
+ "pattern": "[^\t-\r    - 

   ]"
2699
1966
  }
2700
1967
  },
2701
1968
  "allowCustom": {
@@ -2733,7 +2000,7 @@
2733
2000
  "type": "string",
2734
2001
  "minLength": 1,
2735
2002
  "maxLength": 4096,
2736
- "pattern": "[^\t-\r \u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff    - 

   ]"
2003
+ "pattern": "[^\t-\r    - 

   ]"
2737
2004
  }
2738
2005
  }
2739
2006
  }
@@ -3053,473 +2320,169 @@
3053
2320
  "outcome": {
3054
2321
  "enum": ["accepted", "declined", "cancelled", "answered"]
3055
2322
  },
3056
- "reasonCode": {
3057
- "type": "string",
3058
- "minLength": 1
3059
- }
3060
- },
3061
- "if": {
3062
- "properties": {
3063
- "status": {
3064
- "const": "resolved"
3065
- }
3066
- },
3067
- "required": ["status"]
3068
- },
3069
- "then": {
3070
- "required": ["outcome"]
3071
- },
3072
- "else": {
3073
- "required": ["reasonCode"]
3074
- }
3075
- },
3076
- "ModelStepStartedPayload": {
3077
- "title": "ModelStepStartedPayload",
3078
- "description": "Starts one provider model round. A round may contain public reasoning, tool calls, and text output.",
3079
- "type": "object",
3080
- "additionalProperties": true,
3081
- "required": ["stepId"],
3082
- "properties": {
3083
- "stepId": {
3084
- "description": "Stable identifier reused by model_step.finished and child events.",
3085
- "type": "string"
3086
- },
3087
- "startedAtMs": {
3088
- "description": "Provider-observed round content-start timestamp in Unix milliseconds.",
3089
- "type": "integer",
3090
- "minimum": 1
3091
- }
3092
- }
3093
- },
3094
- "ModelStepFinishedPayload": {
3095
- "title": "ModelStepFinishedPayload",
3096
- "description": "Finishes one provider model round and records why control returned to the harness.",
3097
- "type": "object",
3098
- "additionalProperties": true,
3099
- "required": ["stepId", "status"],
3100
- "properties": {
3101
- "stepId": {
3102
- "description": "Stable identifier from model_step.started.",
3103
- "type": "string"
3104
- },
3105
- "status": {
3106
- "enum": ["completed", "failed", "cancelled"]
3107
- },
3108
- "finishReason": {
3109
- "description": "Provider-normalized reason such as tool-calls or stop.",
3110
- "type": "string"
3111
- },
3112
- "endedAtMs": {
3113
- "description": "Provider-observed round finish timestamp in Unix milliseconds.",
3114
- "type": "integer",
3115
- "minimum": 1
3116
- }
3117
- }
3118
- },
3119
- "ToolCallCreatePayload": {
3120
- "title": "ToolCallCreatePayload",
3121
- "description": "Formal tool_call.create payload. args preserves the original structured input, including args.command for shell tools.",
3122
- "type": "object",
3123
- "additionalProperties": true,
3124
- "required": ["id", "name", "args", "status"],
3125
- "properties": {
3126
- "id": {
3127
- "description": "Stable tool call identifier reused by later delta and update events.",
3128
- "type": "string"
3129
- },
3130
- "name": {
3131
- "description": "Tool name normalized across providers.",
3132
- "type": "string"
3133
- },
3134
- "args": {
3135
- "description": "Original structured input known when the tool call starts. Streaming providers may begin empty and append argsDelta.",
3136
- "type": "object",
3137
- "additionalProperties": true,
3138
- "tsType": "Record<string, unknown>"
3139
- },
3140
- "status": {
3141
- "const": "running"
3142
- }
3143
- }
3144
- },
3145
- "ToolCallDeltaPayload": {
3146
- "title": "ToolCallDeltaPayload",
3147
- "description": "Formal tool_call.delta payload. argsDelta is an ordered raw JSON fragment and must be concatenated before parsing.",
3148
- "type": "object",
3149
- "additionalProperties": true,
3150
- "required": ["id", "kind"],
3151
- "properties": {
3152
- "id": {
3153
- "description": "Stable identifier from the corresponding tool_call.create event.",
3154
- "type": "string"
3155
- },
3156
- "argsDelta": {
3157
- "description": "Raw JSON argument fragment; do not parse fragments independently.",
3158
- "type": "string"
3159
- },
3160
- "outputDelta": {
3161
- "description": "Tool output text fragment.",
3162
- "type": "string"
3163
- },
3164
- "outputSnapshot": {
3165
- "type": "string",
3166
- "description": "Full replacement of a provider rolling output snapshot; never an activity or a terminal status."
3167
- }
3168
- }
3169
- },
3170
- "ToolCallUpdatePayload": {
3171
- "title": "ToolCallUpdatePayload",
3172
- "description": "Formal tool_call.update payload that closes the tool lifecycle and carries its final result.",
3173
- "type": "object",
3174
- "additionalProperties": true,
3175
- "required": ["id", "status"],
3176
- "properties": {
3177
- "id": {
3178
- "description": "Stable identifier from the corresponding tool_call.create event.",
3179
- "type": "string"
3180
- },
3181
- "status": {
3182
- "enum": ["completed", "failed", "cancelled"]
3183
- },
3184
- "output": {
3185
- "description": "Final tool output as text or structured JSON.",
3186
- "tsType": "unknown"
3187
- },
3188
- "error": {
3189
- "description": "Structured error details.",
3190
- "type": "object",
3191
- "additionalProperties": true,
3192
- "tsType": "Record<string, unknown>"
3193
- },
3194
- "exitCode": {
3195
- "description": "Process exit code for command tools.",
3196
- "type": "integer"
3197
- },
3198
- "durationMs": {
3199
- "type": "integer",
3200
- "minimum": 0,
3201
- "maximum": 9007199254740991
3202
- }
3203
- }
3204
- },
3205
- "RunIdentity": {
3206
- "title": "RunIdentity",
3207
- "description": "Stable run identity used by envelopes without requiring the complete domain object.",
3208
- "type": "object",
3209
- "additionalProperties": false,
3210
- "required": ["id", "agentSessionId"],
3211
- "properties": {
3212
- "id": {
3213
- "description": "Run identifier.",
3214
- "type": "string"
3215
- },
3216
- "agentSessionId": {
3217
- "description": "Owning Agent Worker session identifier.",
3218
- "type": "string"
3219
- }
3220
- }
3221
- },
3222
- "ChannelScope": {
3223
- "title": "ChannelScope",
3224
- "description": "Platform-neutral channel isolation key. account_id may be null but remains explicit; an absent thread_id selects the conversation root.",
3225
- "type": "object",
3226
- "additionalProperties": false,
3227
- "required": [
3228
- "tenant_id",
3229
- "endpoint_id",
3230
- "channel",
3231
- "account_id",
3232
- "bot_id",
3233
- "conversation_id"
3234
- ],
3235
- "properties": {
3236
- "tenant_id": {
3237
- "type": "string",
3238
- "minLength": 1
3239
- },
3240
- "endpoint_id": {
3241
- "type": "string",
3242
- "minLength": 1
3243
- },
3244
- "channel": {
3245
- "type": "string",
3246
- "minLength": 1
3247
- },
3248
- "account_id": {
3249
- "type": ["string", "null"]
3250
- },
3251
- "bot_id": {
3252
- "type": "string",
3253
- "minLength": 1
3254
- },
3255
- "conversation_id": {
3256
- "type": "string",
3257
- "minLength": 1
3258
- },
3259
- "thread_id": {
3260
- "type": ["string", "null"]
3261
- }
3262
- }
3263
- },
3264
- "ChannelMessagePart": {
3265
- "title": "ChannelMessagePart",
3266
- "description": "Normalized platform message part. type and text are common fields; connector extensions remain untrusted external data.",
3267
- "type": "object",
3268
- "additionalProperties": true,
3269
- "required": ["type"],
3270
- "properties": {
3271
- "type": {
3272
- "type": "string",
3273
- "minLength": 1
3274
- },
3275
- "text": {
3276
- "type": "string"
3277
- }
3278
- }
3279
- },
3280
- "ChannelMessageSender": {
3281
- "title": "ChannelMessageSender",
3282
- "description": "Normalized sender fact without platform credentials.",
3283
- "type": "object",
3284
- "additionalProperties": false,
3285
- "required": ["id", "kind"],
3286
- "properties": {
3287
- "id": {
3288
- "type": "string",
3289
- "minLength": 1
3290
- },
3291
- "label": {
3292
- "type": "string"
3293
- },
3294
- "kind": {
3295
- "type": "string",
3296
- "minLength": 1
3297
- }
3298
- }
3299
- },
3300
- "ChannelMessageFlags": {
3301
- "title": "ChannelMessageFlags",
3302
- "description": "Common message flags that affect context projection. Self and control messages are excluded from provider-visible context.",
3303
- "type": "object",
3304
- "additionalProperties": false,
3305
- "properties": {
3306
- "self": {
3307
- "type": "boolean"
3308
- },
3309
- "control": {
3310
- "type": "boolean"
2323
+ "reasonCode": {
2324
+ "type": "string",
2325
+ "minLength": 1
3311
2326
  }
2327
+ },
2328
+ "if": {
2329
+ "properties": {
2330
+ "status": {
2331
+ "const": "resolved"
2332
+ }
2333
+ },
2334
+ "required": ["status"]
2335
+ },
2336
+ "then": {
2337
+ "required": ["outcome"]
2338
+ },
2339
+ "else": {
2340
+ "required": ["reasonCode"]
3312
2341
  }
3313
2342
  },
3314
- "ChannelMessageFact": {
3315
- "title": "ChannelMessageFact",
3316
- "description": "A platform-neutral message fact in the rebuildable channel journal. Message content is always untrusted external input.",
2343
+ "ModelStepStartedPayload": {
2344
+ "title": "ModelStepStartedPayload",
2345
+ "description": "Starts one provider model round. A round may contain public reasoning, tool calls, and text output.",
3317
2346
  "type": "object",
3318
- "additionalProperties": false,
3319
- "required": ["message_id", "sender", "occurred_at_ms", "parts"],
2347
+ "additionalProperties": true,
2348
+ "required": ["stepId"],
3320
2349
  "properties": {
3321
- "message_id": {
3322
- "type": "string",
3323
- "minLength": 1
3324
- },
3325
- "message_seq": {
3326
- "type": "integer",
3327
- "minimum": 0
3328
- },
3329
- "sender": {
3330
- "$ref": "#/definitions/ChannelMessageSender"
2350
+ "stepId": {
2351
+ "description": "Stable identifier reused by model_step.finished and child events.",
2352
+ "type": "string"
3331
2353
  },
3332
- "occurred_at_ms": {
2354
+ "startedAtMs": {
2355
+ "description": "Provider-observed round content-start timestamp in Unix milliseconds.",
3333
2356
  "type": "integer",
3334
2357
  "minimum": 1
3335
- },
3336
- "parts": {
3337
- "type": "array",
3338
- "minItems": 1,
3339
- "items": {
3340
- "$ref": "#/definitions/ChannelMessagePart"
3341
- }
3342
- },
3343
- "flags": {
3344
- "$ref": "#/definitions/ChannelMessageFlags"
3345
2358
  }
3346
2359
  }
3347
2360
  },
3348
- "ChannelContextAppend": {
3349
- "title": "ChannelContextAppend",
3350
- "description": "Idempotent context-only batch appended by agent-worker to its bound daemon.",
2361
+ "ModelStepFinishedPayload": {
2362
+ "title": "ModelStepFinishedPayload",
2363
+ "description": "Finishes one provider model round and records why control returned to the harness.",
3351
2364
  "type": "object",
3352
- "additionalProperties": false,
3353
- "required": ["agent_id", "scope", "facts"],
2365
+ "additionalProperties": true,
2366
+ "required": ["stepId", "status"],
3354
2367
  "properties": {
3355
- "agent_id": {
3356
- "type": "string",
3357
- "minLength": 1,
3358
- "maxLength": 96
2368
+ "stepId": {
2369
+ "description": "Stable identifier from model_step.started.",
2370
+ "type": "string"
3359
2371
  },
3360
- "scope": {
3361
- "$ref": "#/definitions/ChannelScope"
2372
+ "status": {
2373
+ "enum": ["completed", "failed", "cancelled"]
3362
2374
  },
3363
- "facts": {
3364
- "type": "array",
3365
- "minItems": 1,
3366
- "maxItems": 100,
3367
- "items": {
3368
- "$ref": "#/definitions/ChannelMessageFact"
3369
- }
2375
+ "finishReason": {
2376
+ "description": "Provider-normalized reason such as tool-calls or stop.",
2377
+ "type": "string"
3370
2378
  },
3371
- "gap_after_seq": {
2379
+ "endedAtMs": {
2380
+ "description": "Provider-observed round finish timestamp in Unix milliseconds.",
3372
2381
  "type": "integer",
3373
- "minimum": 0
2382
+ "minimum": 1
3374
2383
  }
3375
2384
  }
3376
2385
  },
3377
- "ContextSyncRequest": {
3378
- "title": "ContextSyncRequest",
3379
- "description": "Bounded backfill requested by the daemon after cold start or gap detection. It never carries platform tokens.",
2386
+ "ToolCallCreatePayload": {
2387
+ "title": "ToolCallCreatePayload",
2388
+ "description": "Formal tool_call.create payload. args preserves the original structured input, including args.command for shell tools.",
3380
2389
  "type": "object",
3381
- "additionalProperties": false,
3382
- "required": ["request_id", "run_id", "scope", "trigger_message_id", "limit"],
2390
+ "additionalProperties": true,
2391
+ "required": ["id", "name", "args", "status"],
3383
2392
  "properties": {
3384
- "request_id": {
3385
- "type": "string",
3386
- "minLength": 1
3387
- },
3388
- "run_id": {
3389
- "type": "string",
3390
- "minLength": 1
3391
- },
3392
- "scope": {
3393
- "$ref": "#/definitions/ChannelScope"
3394
- },
3395
- "trigger_message_id": {
3396
- "type": "string",
3397
- "minLength": 1
2393
+ "id": {
2394
+ "description": "Stable tool call identifier reused by later delta and update events.",
2395
+ "type": "string"
3398
2396
  },
3399
- "trigger_seq": {
3400
- "type": "integer",
3401
- "minimum": 0
2397
+ "name": {
2398
+ "description": "Tool name normalized across providers.",
2399
+ "type": "string"
3402
2400
  },
3403
- "after_seq": {
3404
- "type": "integer",
3405
- "minimum": 0
2401
+ "args": {
2402
+ "description": "Original structured input known when the tool call starts. Streaming providers may begin empty and append argsDelta.",
2403
+ "type": "object",
2404
+ "additionalProperties": true,
2405
+ "tsType": "Record<string, unknown>"
3406
2406
  },
3407
- "limit": {
3408
- "type": "integer",
3409
- "minimum": 1,
3410
- "maximum": 100
2407
+ "status": {
2408
+ "const": "running"
3411
2409
  }
3412
2410
  }
3413
2411
  },
3414
- "ContextSyncResult": {
3415
- "title": "ContextSyncResult",
3416
- "description": "Bounded history result. complete means only that the requested window was returned, not that the local journal is authoritative.",
2412
+ "ToolCallDeltaPayload": {
2413
+ "title": "ToolCallDeltaPayload",
2414
+ "description": "Formal tool_call.delta payload. argsDelta is an ordered raw JSON fragment and must be concatenated before parsing.",
3417
2415
  "type": "object",
3418
- "additionalProperties": false,
3419
- "required": ["request_id", "scope", "facts", "completeness"],
2416
+ "additionalProperties": true,
2417
+ "required": ["id", "kind"],
3420
2418
  "properties": {
3421
- "request_id": {
3422
- "type": "string",
3423
- "minLength": 1
2419
+ "id": {
2420
+ "description": "Stable identifier from the corresponding tool_call.create event.",
2421
+ "type": "string"
3424
2422
  },
3425
- "scope": {
3426
- "$ref": "#/definitions/ChannelScope"
2423
+ "argsDelta": {
2424
+ "description": "Raw JSON argument fragment; do not parse fragments independently.",
2425
+ "type": "string"
3427
2426
  },
3428
- "facts": {
3429
- "type": "array",
3430
- "maxItems": 100,
3431
- "items": {
3432
- "$ref": "#/definitions/ChannelMessageFact"
3433
- }
2427
+ "outputDelta": {
2428
+ "description": "Tool output text fragment.",
2429
+ "type": "string"
3434
2430
  },
3435
- "completeness": {
2431
+ "outputSnapshot": {
3436
2432
  "type": "string",
3437
- "enum": ["complete", "partial", "unavailable"]
3438
- },
3439
- "through_seq": {
3440
- "type": "integer",
3441
- "minimum": 0
3442
- }
3443
- },
3444
- "allOf": [
3445
- {
3446
- "if": {
3447
- "properties": {
3448
- "completeness": {
3449
- "const": "unavailable"
3450
- }
3451
- }
3452
- },
3453
- "then": {
3454
- "properties": {
3455
- "facts": {
3456
- "maxItems": 0
3457
- }
3458
- }
3459
- }
2433
+ "description": "Full replacement of a provider rolling output snapshot; never an activity or a terminal status."
3460
2434
  }
3461
- ]
2435
+ }
3462
2436
  },
3463
- "ChannelContextDescriptor": {
3464
- "title": "ChannelContextDescriptor",
3465
- "description": "Snapshot selection descriptor in ExecutionEnvelope. Scope, consumer_key, and session_generation isolate the consumption cursor.",
2437
+ "ToolCallUpdatePayload": {
2438
+ "title": "ToolCallUpdatePayload",
2439
+ "description": "Formal tool_call.update payload that closes the tool lifecycle and carries its final result.",
3466
2440
  "type": "object",
3467
- "additionalProperties": false,
3468
- "required": [
3469
- "scope",
3470
- "consumer_key",
3471
- "session_generation",
3472
- "trigger_message_id",
3473
- "trigger_fact"
3474
- ],
2441
+ "additionalProperties": true,
2442
+ "required": ["id", "status"],
3475
2443
  "properties": {
3476
- "scope": {
3477
- "$ref": "#/definitions/ChannelScope"
2444
+ "id": {
2445
+ "description": "Stable identifier from the corresponding tool_call.create event.",
2446
+ "type": "string"
3478
2447
  },
3479
- "consumer_key": {
3480
- "type": "string",
3481
- "minLength": 1
2448
+ "status": {
2449
+ "enum": ["completed", "failed", "cancelled"]
3482
2450
  },
3483
- "session_generation": {
3484
- "type": "integer",
3485
- "minimum": 1
2451
+ "output": {
2452
+ "description": "Final tool output as text or structured JSON.",
2453
+ "tsType": "unknown"
3486
2454
  },
3487
- "trigger_message_id": {
3488
- "type": "string",
3489
- "minLength": 1
2455
+ "error": {
2456
+ "description": "Structured error details.",
2457
+ "type": "object",
2458
+ "additionalProperties": true,
2459
+ "tsType": "Record<string, unknown>"
3490
2460
  },
3491
- "trigger_seq": {
3492
- "type": "integer",
3493
- "minimum": 0
2461
+ "exitCode": {
2462
+ "description": "Process exit code for command tools.",
2463
+ "type": "integer"
3494
2464
  },
3495
- "trigger_fact": {
3496
- "$ref": "#/definitions/ChannelMessageFact"
2465
+ "durationMs": {
2466
+ "type": "integer",
2467
+ "minimum": 0,
2468
+ "maximum": 9007199254740991
3497
2469
  }
3498
2470
  }
3499
2471
  },
3500
- "ContextCommitResult": {
3501
- "title": "ContextCommitResult",
3502
- "description": "Result of advancing the consumer cursor with version CAS after terminal durability.",
2472
+ "RunIdentity": {
2473
+ "title": "RunIdentity",
2474
+ "description": "Stable run identity used by envelopes without requiring the complete domain object.",
3503
2475
  "type": "object",
3504
2476
  "additionalProperties": false,
3505
- "required": ["snapshot_id", "committed"],
2477
+ "required": ["id", "agentSessionId"],
3506
2478
  "properties": {
3507
- "snapshot_id": {
3508
- "type": "string",
3509
- "minLength": 1
3510
- },
3511
- "committed": {
3512
- "type": "boolean"
2479
+ "id": {
2480
+ "description": "Run identifier.",
2481
+ "type": "string"
3513
2482
  },
3514
- "reason": {
3515
- "type": "string",
3516
- "enum": [
3517
- "already_committed",
3518
- "snapshot_not_found",
3519
- "snapshot_not_submitted",
3520
- "consumer_advanced",
3521
- "snapshot_failed"
3522
- ]
2483
+ "agentSessionId": {
2484
+ "description": "Owning Agent Worker session identifier.",
2485
+ "type": "string"
3523
2486
  }
3524
2487
  }
3525
2488
  },
@@ -3717,14 +2680,9 @@
3717
2680
  "agentSessionId",
3718
2681
  "runId",
3719
2682
  "prompt",
3720
- "workdir",
3721
- "controlInstructions",
3722
- "context",
3723
- "agentConfig",
3724
2683
  "modelInput",
3725
- "approvalMode",
3726
2684
  "protocolVersion",
3727
- "agentSource"
2685
+ "agentEnv"
3728
2686
  ],
3729
2687
  "properties": {
3730
2688
  "executionEnvOverrides": {
@@ -3750,7 +2708,7 @@
3750
2708
  "pattern": "[\\x00-\\x1f\\x7f-\\x9f]"
3751
2709
  },
3752
2710
  {
3753
- "pattern": "^[ \u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff    - 

   ]*$"
2711
+ "pattern": "^[    - 

   ]*$"
3754
2712
  }
3755
2713
  ]
3756
2714
  }
@@ -3808,41 +2766,28 @@
3808
2766
  "description": "Frozen alternate user turn for the first turn of a fresh provider session after resume fails.",
3809
2767
  "type": "string"
3810
2768
  },
3811
- "workdir": {
3812
- "description": "Provider process cwd. Sandboxing, containers, or host permissions provide the actual access boundary.",
3813
- "type": "string"
3814
- },
3815
- "controlInstructions": {
3816
- "description": "Trusted session instructions. Adapters inject them only when starting a provider session; resuming an existing session must not inject or clear them.",
3817
- "type": "string"
3818
- },
3819
- "context": {
3820
- "$ref": "#/definitions/ContextEnvelope"
3821
- },
3822
2769
  "runMetadata": {
3823
2770
  "type": "object",
3824
2771
  "additionalProperties": true,
3825
2772
  "tsType": "Record<string, unknown>"
3826
2773
  },
3827
- "approvalMode": {
3828
- "$ref": "#/definitions/ApprovalMode"
3829
- },
3830
2774
  "providerSession": {
3831
2775
  "$ref": "#/definitions/ProviderSession"
3832
2776
  },
3833
- "runtimeLimits": {
3834
- "$ref": "#/definitions/RuntimeLimits"
3835
- },
3836
- "agentConfig": {
3837
- "$ref": "#/definitions/AgentConfig"
3838
- },
3839
2777
  "protocolVersion": {
3840
2778
  "const": 2
3841
2779
  },
3842
- "agentSource": {
3843
- "$ref": "#/definitions/AgentSource"
2780
+ "agentEnv": {
2781
+ "$ref": "#/definitions/AgentEnv"
3844
2782
  }
3845
- }
2783
+ },
2784
+ "allOf": [
2785
+ {
2786
+ "not": {
2787
+ "required": ["controlInstructions"]
2788
+ }
2789
+ }
2790
+ ]
3846
2791
  },
3847
2792
  "ActivityInfo": {
3848
2793
  "type": "object",
@@ -4348,7 +3293,7 @@
4348
3293
  },
4349
3294
  "ContextEnvsPayload": {
4350
3295
  "title": "ContextEnvsPayload",
4351
- "description": "Run \u7ea7\u73af\u5883\u53d8\u91cf\u5217\u8868\uff1b\u4ee5 key \u6807\u8bc6\u53d8\u91cf\uff0c\u6309 key \u5408\u5e76\uff0c\u4e0d\u8fdb\u5165\u6a21\u578b\u8f93\u5165\u3002",
3296
+ "description": "Run 级环境变量列表;以 key 标识变量,按 key 合并,不进入模型输入。",
4352
3297
  "type": "object",
4353
3298
  "additionalProperties": false,
4354
3299
  "required": ["env_variables"],
@@ -4397,7 +3342,7 @@
4397
3342
  },
4398
3343
  "InvokeInputWire": {
4399
3344
  "type": "object",
4400
- "additionalProperties": true,
3345
+ "additionalProperties": false,
4401
3346
  "required": ["inputs", "agentEnv"],
4402
3347
  "properties": {
4403
3348
  "sessionName": {
@@ -4411,7 +3356,7 @@
4411
3356
  "pattern": "[\\x00-\\x1f\\x7f-\\x9f]"
4412
3357
  },
4413
3358
  {
4414
- "pattern": "^[ \u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff    - 

   ]*$"
3359
+ "pattern": "^[    - 

   ]*$"
4415
3360
  }
4416
3361
  ]
4417
3362
  }
@@ -4512,7 +3457,7 @@
4512
3457
  "providerSession": {
4513
3458
  "properties": {
4514
3459
  "sessionId": {
4515
- "pattern": "[^\\t\\n\\r\\f\\v \u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff    - 

   ]"
3460
+ "pattern": "[^\\t\\n\\r\\f\\v    - 

   ]"
4516
3461
  }
4517
3462
  }
4518
3463
  }
@@ -4543,11 +3488,6 @@
4543
3488
  "required": ["approvalMode"]
4544
3489
  }
4545
3490
  },
4546
- {
4547
- "not": {
4548
- "required": ["agentConfig"]
4549
- }
4550
- },
4551
3491
  {
4552
3492
  "not": {
4553
3493
  "required": ["runtimeLimits"]
@@ -4625,7 +3565,14 @@
4625
3565
  }
4626
3566
  },
4627
3567
  "AgentEnv": {
3568
+ "title": "AgentEnv",
3569
+ "description": "Execution envelope forwarded unchanged to the Adapter. Only shared bean types belong to the public protocol; Harness-specific payloads are private agreements between the caller and its Adapter.",
4628
3570
  "type": "object",
3571
+ "additionalProperties": false,
3572
+ "x-octo-unique-type-keys": true,
3573
+ "x-octo-max-json-bytes": 65536,
3574
+ "x-octo-max-json-depth": 32,
3575
+ "x-octo-unicode-scalar-strings": true,
4629
3576
  "required": ["schema", "items"],
4630
3577
  "properties": {
4631
3578
  "schema": {
@@ -4635,79 +3582,10 @@
4635
3582
  "type": "array",
4636
3583
  "maxItems": 32,
4637
3584
  "items": {
4638
- "allOf": [
4639
- {
4640
- "$ref": "#/definitions/ContextItem"
4641
- },
4642
- {
4643
- "anyOf": [
4644
- {
4645
- "properties": {
4646
- "namespace": {
4647
- "const": "octo.execution"
4648
- }
4649
- }
4650
- },
4651
- {
4652
- "properties": {
4653
- "namespace": {
4654
- "const": "octo.security"
4655
- },
4656
- "name": {
4657
- "const": "approval_policy"
4658
- }
4659
- }
4660
- },
4661
- {
4662
- "properties": {
4663
- "namespace": {
4664
- "const": "octo.control"
4665
- },
4666
- "name": {
4667
- "const": "instructions"
4668
- }
4669
- }
4670
- }
4671
- ]
4672
- }
4673
- ]
4674
- }
4675
- },
4676
- "agentSource": {
4677
- "$ref": "#/definitions/AgentSource"
4678
- },
4679
- "workdir": {
4680
- "type": "string"
4681
- },
4682
- "controlInstructions": {
4683
- "type": "string"
4684
- },
4685
- "approvalMode": {
4686
- "$ref": "#/definitions/ApprovalMode"
4687
- },
4688
- "agentConfig": {
4689
- "$ref": "#/definitions/AgentConfig"
4690
- },
4691
- "runtimeLimits": {
4692
- "$ref": "#/definitions/RuntimeLimits"
4693
- }
4694
- },
4695
- "additionalProperties": false,
4696
- "allOf": [
4697
- {
4698
- "properties": {
4699
- "agentConfig": {
4700
- "properties": {
4701
- "timeoutSeconds": {
4702
- "not": {
4703
- "maximum": 0
4704
- }
4705
- }
4706
- }
4707
- }
3585
+ "$ref": "#/definitions/ContextItem"
4708
3586
  }
4709
3587
  }
4710
- ]
3588
+ }
4711
3589
  }
4712
3590
  }
4713
3591
  }