sealbridge 0.2.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (266) hide show
  1. package/README.ja.md +499 -31
  2. package/README.md +529 -110
  3. package/dist/cli/dist/accept.d.ts +13 -0
  4. package/dist/cli/dist/accept.js +115 -0
  5. package/dist/cli/dist/accept.js.map +1 -0
  6. package/dist/cli/dist/approval-summary.d.ts +1 -1
  7. package/dist/cli/dist/board.d.ts +10 -9
  8. package/dist/cli/dist/board.js +62 -31
  9. package/dist/cli/dist/board.js.map +1 -1
  10. package/dist/cli/dist/command-identity.d.ts +6 -0
  11. package/dist/cli/dist/command-identity.js +13 -0
  12. package/dist/cli/dist/command-identity.js.map +1 -0
  13. package/dist/cli/dist/config.d.ts +3 -0
  14. package/dist/cli/dist/config.js +29 -0
  15. package/dist/cli/dist/config.js.map +1 -0
  16. package/dist/cli/dist/connections.d.ts +15 -0
  17. package/dist/cli/dist/connections.js +191 -0
  18. package/dist/cli/dist/connections.js.map +1 -0
  19. package/dist/cli/dist/contacts.d.ts +4 -3
  20. package/dist/cli/dist/contacts.js +39 -28
  21. package/dist/cli/dist/contacts.js.map +1 -1
  22. package/dist/cli/dist/doctor.d.ts +9 -0
  23. package/dist/cli/dist/doctor.js +46 -5
  24. package/dist/cli/dist/doctor.js.map +1 -1
  25. package/dist/cli/dist/error-messages.js +24 -0
  26. package/dist/cli/dist/error-messages.js.map +1 -1
  27. package/dist/cli/dist/index.js +54 -6
  28. package/dist/cli/dist/index.js.map +1 -1
  29. package/dist/cli/dist/invite-output.d.ts +14 -0
  30. package/dist/cli/dist/invite-output.js +66 -0
  31. package/dist/cli/dist/invite-output.js.map +1 -0
  32. package/dist/cli/dist/invite-share.d.ts +6 -3
  33. package/dist/cli/dist/invite-share.js +40 -15
  34. package/dist/cli/dist/invite-share.js.map +1 -1
  35. package/dist/cli/dist/invites-migrate.d.ts +3 -0
  36. package/dist/cli/dist/invites-migrate.js +33 -0
  37. package/dist/cli/dist/invites-migrate.js.map +1 -0
  38. package/dist/cli/dist/mcp.d.ts +7 -5
  39. package/dist/cli/dist/mcp.js +23 -18
  40. package/dist/cli/dist/mcp.js.map +1 -1
  41. package/dist/cli/dist/network.d.ts +11 -1
  42. package/dist/cli/dist/network.js +150 -87
  43. package/dist/cli/dist/network.js.map +1 -1
  44. package/dist/cli/dist/pending.d.ts +8 -0
  45. package/dist/cli/dist/pending.js +50 -0
  46. package/dist/cli/dist/pending.js.map +1 -0
  47. package/dist/cli/dist/public-settings.d.ts +5 -4
  48. package/dist/cli/dist/public-settings.js +13 -15
  49. package/dist/cli/dist/public-settings.js.map +1 -1
  50. package/dist/cli/dist/receipt.d.ts +1 -1
  51. package/dist/cli/dist/relay-auth.d.ts +3 -0
  52. package/dist/cli/dist/relay-auth.js +23 -0
  53. package/dist/cli/dist/relay-auth.js.map +1 -0
  54. package/dist/cli/dist/requests.d.ts +10 -0
  55. package/dist/cli/dist/requests.js +91 -0
  56. package/dist/cli/dist/requests.js.map +1 -0
  57. package/dist/cli/dist/sdk.d.ts +10 -0
  58. package/dist/cli/dist/sdk.js +7 -0
  59. package/dist/cli/dist/sdk.js.map +1 -0
  60. package/dist/cli/dist/setup-files.d.ts +24 -0
  61. package/dist/cli/dist/setup-files.js +190 -0
  62. package/dist/cli/dist/setup-files.js.map +1 -0
  63. package/dist/cli/dist/setup-hosts.d.ts +29 -0
  64. package/dist/cli/dist/setup-hosts.js +75 -0
  65. package/dist/cli/dist/setup-hosts.js.map +1 -0
  66. package/dist/cli/dist/setup.d.ts +61 -0
  67. package/dist/cli/dist/setup.js +243 -0
  68. package/dist/cli/dist/setup.js.map +1 -0
  69. package/dist/cli/dist/task-input.d.ts +1 -1
  70. package/dist/cli/dist/wake-hook.d.ts +1 -1
  71. package/dist/cli/dist/worker-json.d.ts +4 -0
  72. package/dist/cli/dist/worker-json.js +87 -0
  73. package/dist/cli/dist/worker-json.js.map +1 -0
  74. package/dist/examples/two-owner-demo/dist/run-demo.d.ts +13 -13
  75. package/dist/package.json +1 -1
  76. package/dist/packages/adapters/dist/codex-config.d.ts +15 -0
  77. package/dist/packages/adapters/dist/codex-config.js +171 -0
  78. package/dist/packages/adapters/dist/codex-config.js.map +1 -0
  79. package/dist/packages/adapters/dist/command.d.ts +7 -3
  80. package/dist/packages/adapters/dist/command.js +74 -24
  81. package/dist/packages/adapters/dist/command.js.map +1 -1
  82. package/dist/packages/adapters/dist/credential-proxy.d.ts +4 -2
  83. package/dist/packages/adapters/dist/credential-proxy.js +5 -0
  84. package/dist/packages/adapters/dist/credential-proxy.js.map +1 -1
  85. package/dist/packages/adapters/dist/index.d.ts +1 -1
  86. package/dist/packages/adapters/dist/mcp.d.ts +2 -2
  87. package/dist/packages/adapters/dist/openai.d.ts +2 -2
  88. package/dist/packages/adapters/dist/sandbox.d.ts +2 -2
  89. package/dist/packages/adapters/dist/windows-command.d.ts +6 -0
  90. package/dist/packages/adapters/dist/windows-command.js +37 -0
  91. package/dist/packages/adapters/dist/windows-command.js.map +1 -0
  92. package/dist/packages/core/dist/connection.d.ts +58 -0
  93. package/dist/packages/core/dist/connection.js +132 -0
  94. package/dist/packages/core/dist/connection.js.map +1 -0
  95. package/dist/packages/core/dist/delivery-status.d.ts +22 -0
  96. package/dist/packages/core/dist/delivery-status.js +53 -0
  97. package/dist/packages/core/dist/delivery-status.js.map +1 -0
  98. package/dist/packages/core/dist/discovery.d.ts +7 -6
  99. package/dist/packages/core/dist/discovery.js +19 -20
  100. package/dist/packages/core/dist/discovery.js.map +1 -1
  101. package/dist/packages/core/dist/edge.d.ts +1 -0
  102. package/dist/packages/core/dist/edge.js +1 -0
  103. package/dist/packages/core/dist/edge.js.map +1 -1
  104. package/dist/packages/core/dist/index.d.ts +3 -0
  105. package/dist/packages/core/dist/index.js +3 -0
  106. package/dist/packages/core/dist/index.js.map +1 -1
  107. package/dist/packages/core/dist/protocol.d.ts +24 -0
  108. package/dist/packages/core/dist/protocol.js +54 -0
  109. package/dist/packages/core/dist/protocol.js.map +1 -0
  110. package/dist/packages/core/dist/receipts.d.ts +1 -0
  111. package/dist/packages/core/dist/receipts.js +1 -1
  112. package/dist/packages/core/dist/receipts.js.map +1 -1
  113. package/dist/packages/core/dist/schema.d.ts +1 -0
  114. package/dist/packages/core/dist/schema.js +13 -2
  115. package/dist/packages/core/dist/schema.js.map +1 -1
  116. package/dist/packages/ledger/dist/index.d.ts +1 -1
  117. package/dist/packages/relay/dist/admission.d.ts +14 -0
  118. package/dist/packages/relay/dist/admission.js +70 -0
  119. package/dist/packages/relay/dist/admission.js.map +1 -0
  120. package/dist/packages/relay/dist/fetch.d.ts +8 -2
  121. package/dist/packages/relay/dist/fetch.js +41 -12
  122. package/dist/packages/relay/dist/fetch.js.map +1 -1
  123. package/dist/packages/relay/dist/index.d.ts +23 -12
  124. package/dist/packages/relay/dist/index.js +130 -78
  125. package/dist/packages/relay/dist/index.js.map +1 -1
  126. package/dist/packages/relay/dist/journal.d.ts +1 -1
  127. package/dist/packages/relay/dist/notifications.d.ts +1 -1
  128. package/dist/packages/relay/dist/retry.d.ts +23 -0
  129. package/dist/packages/relay/dist/retry.js +43 -1
  130. package/dist/packages/relay/dist/retry.js.map +1 -1
  131. package/dist/packages/relay/dist/ssrf.d.ts +3 -2
  132. package/dist/packages/relay/dist/ssrf.js.map +1 -1
  133. package/dist/packages/relay/dist/worker.js +1 -1
  134. package/dist/packages/relay/dist/worker.js.map +1 -1
  135. package/dist/packages/runtime/dist/a2a.d.ts +1 -1
  136. package/dist/packages/runtime/dist/a2a.js +1 -1
  137. package/dist/packages/runtime/dist/adapter.d.ts +2 -2
  138. package/dist/packages/runtime/dist/application-config.d.ts +20 -0
  139. package/dist/packages/runtime/dist/application-config.js +222 -0
  140. package/dist/packages/runtime/dist/application-config.js.map +1 -0
  141. package/dist/packages/runtime/dist/approval-providers.d.ts +24 -3
  142. package/dist/packages/runtime/dist/approval-providers.js +79 -3
  143. package/dist/packages/runtime/dist/approval-providers.js.map +1 -1
  144. package/dist/packages/runtime/dist/connection-admission-review.d.ts +39 -0
  145. package/dist/packages/runtime/dist/connection-admission-review.js +86 -0
  146. package/dist/packages/runtime/dist/connection-admission-review.js.map +1 -0
  147. package/dist/packages/runtime/dist/connection-persistence.d.ts +35 -0
  148. package/dist/packages/runtime/dist/connection-persistence.js +181 -0
  149. package/dist/packages/runtime/dist/connection-persistence.js.map +1 -0
  150. package/dist/packages/runtime/dist/connection-records.d.ts +167 -0
  151. package/dist/packages/runtime/dist/connection-records.js +132 -0
  152. package/dist/packages/runtime/dist/connection-records.js.map +1 -0
  153. package/dist/packages/runtime/dist/connection-router.d.ts +45 -0
  154. package/dist/packages/runtime/dist/connection-router.js +130 -0
  155. package/dist/packages/runtime/dist/connection-router.js.map +1 -0
  156. package/dist/packages/runtime/dist/connection-service.d.ts +159 -0
  157. package/dist/packages/runtime/dist/connection-service.js +239 -0
  158. package/dist/packages/runtime/dist/connection-service.js.map +1 -0
  159. package/dist/packages/runtime/dist/connection-transport.d.ts +14 -0
  160. package/dist/packages/runtime/dist/connection-transport.js +89 -0
  161. package/dist/packages/runtime/dist/connection-transport.js.map +1 -0
  162. package/dist/packages/runtime/dist/delivery-records.d.ts +180 -0
  163. package/dist/packages/runtime/dist/delivery-records.js +205 -0
  164. package/dist/packages/runtime/dist/delivery-records.js.map +1 -0
  165. package/dist/packages/runtime/dist/delivery-status-router.d.ts +27 -0
  166. package/dist/packages/runtime/dist/delivery-status-router.js +150 -0
  167. package/dist/packages/runtime/dist/delivery-status-router.js.map +1 -0
  168. package/dist/packages/runtime/dist/delivery-status.d.ts +43 -0
  169. package/dist/packages/runtime/dist/delivery-status.js +193 -0
  170. package/dist/packages/runtime/dist/delivery-status.js.map +1 -0
  171. package/dist/packages/runtime/dist/delivery-store.d.ts +125 -0
  172. package/dist/packages/runtime/dist/delivery-store.js +1047 -0
  173. package/dist/packages/runtime/dist/delivery-store.js.map +1 -0
  174. package/dist/packages/runtime/dist/gateway.d.ts +4 -3
  175. package/dist/packages/runtime/dist/gateway.js.map +1 -1
  176. package/dist/packages/runtime/dist/held-request-review.d.ts +49 -0
  177. package/dist/packages/runtime/dist/held-request-review.js +122 -0
  178. package/dist/packages/runtime/dist/held-request-review.js.map +1 -0
  179. package/dist/packages/runtime/dist/held-request-store.d.ts +112 -0
  180. package/dist/packages/runtime/dist/held-request-store.js +290 -0
  181. package/dist/packages/runtime/dist/held-request-store.js.map +1 -0
  182. package/dist/packages/runtime/dist/idempotency-store.d.ts +53 -0
  183. package/dist/packages/runtime/dist/idempotency-store.js +331 -0
  184. package/dist/packages/runtime/dist/idempotency-store.js.map +1 -0
  185. package/dist/packages/runtime/dist/inbox.d.ts +1 -1
  186. package/dist/packages/runtime/dist/index.d.ts +27 -1
  187. package/dist/packages/runtime/dist/index.js +26 -0
  188. package/dist/packages/runtime/dist/index.js.map +1 -1
  189. package/dist/packages/runtime/dist/invite-store.d.ts +76 -0
  190. package/dist/packages/runtime/dist/invite-store.js +337 -0
  191. package/dist/packages/runtime/dist/invite-store.js.map +1 -0
  192. package/dist/packages/runtime/dist/key-store.d.ts +77 -0
  193. package/dist/packages/runtime/dist/key-store.js +226 -0
  194. package/dist/packages/runtime/dist/key-store.js.map +1 -0
  195. package/dist/packages/runtime/dist/local-identity.d.ts +33 -0
  196. package/dist/packages/runtime/dist/local-identity.js +278 -0
  197. package/dist/packages/runtime/dist/local-identity.js.map +1 -0
  198. package/dist/packages/runtime/dist/mcp-rpc.d.ts +19 -0
  199. package/dist/packages/runtime/dist/mcp-rpc.js +175 -0
  200. package/dist/packages/runtime/dist/mcp-rpc.js.map +1 -0
  201. package/dist/packages/runtime/dist/mcp-server.d.ts +46 -19
  202. package/dist/packages/runtime/dist/mcp-server.js +427 -184
  203. package/dist/packages/runtime/dist/mcp-server.js.map +1 -1
  204. package/dist/packages/runtime/dist/mcp-tool-catalog.d.ts +1 -1
  205. package/dist/packages/runtime/dist/mcp-tool-catalog.js +172 -13
  206. package/dist/packages/runtime/dist/mcp-tool-catalog.js.map +1 -1
  207. package/dist/packages/runtime/dist/mcp.d.ts +2 -2
  208. package/dist/packages/runtime/dist/message-status.d.ts +32 -0
  209. package/dist/packages/runtime/dist/message-status.js +29 -0
  210. package/dist/packages/runtime/dist/message-status.js.map +1 -0
  211. package/dist/packages/runtime/dist/outbox.d.ts +91 -0
  212. package/dist/packages/runtime/dist/outbox.js +462 -0
  213. package/dist/packages/runtime/dist/outbox.js.map +1 -0
  214. package/dist/packages/runtime/dist/policy.d.ts +1 -1
  215. package/dist/packages/runtime/dist/protocol-peer-store.d.ts +40 -0
  216. package/dist/packages/runtime/dist/protocol-peer-store.js +176 -0
  217. package/dist/packages/runtime/dist/protocol-peer-store.js.map +1 -0
  218. package/dist/packages/runtime/dist/protocol-release.d.ts +26 -0
  219. package/dist/packages/runtime/dist/protocol-release.js +76 -0
  220. package/dist/packages/runtime/dist/protocol-release.js.map +1 -0
  221. package/dist/packages/runtime/dist/quota.d.ts +1 -1
  222. package/dist/packages/runtime/dist/relay-selection.d.ts +20 -0
  223. package/dist/packages/runtime/dist/relay-selection.js +34 -0
  224. package/dist/packages/runtime/dist/relay-selection.js.map +1 -0
  225. package/dist/packages/runtime/dist/requester-pending-store.d.ts +59 -0
  226. package/dist/packages/runtime/dist/requester-pending-store.js +266 -0
  227. package/dist/packages/runtime/dist/requester-pending-store.js.map +1 -0
  228. package/dist/packages/runtime/dist/secret-store.d.ts +19 -0
  229. package/dist/packages/runtime/dist/secret-store.js +51 -0
  230. package/dist/packages/runtime/dist/secret-store.js.map +1 -0
  231. package/dist/packages/runtime/dist/session-audit.d.ts +29 -7
  232. package/dist/packages/runtime/dist/session-audit.js +149 -29
  233. package/dist/packages/runtime/dist/session-audit.js.map +1 -1
  234. package/dist/packages/runtime/dist/session.d.ts +101 -9
  235. package/dist/packages/runtime/dist/session.js +696 -96
  236. package/dist/packages/runtime/dist/session.js.map +1 -1
  237. package/dist/packages/runtime/dist/task-journal.d.ts +18 -3
  238. package/dist/packages/runtime/dist/task-journal.js +271 -18
  239. package/dist/packages/runtime/dist/task-journal.js.map +1 -1
  240. package/dist/packages/runtime/dist/verifier.d.ts +3 -2
  241. package/dist/packages/runtime/dist/verifier.js +1 -0
  242. package/dist/packages/runtime/dist/verifier.js.map +1 -1
  243. package/dist/packages/runtime/dist/worker-trust-store.d.ts +111 -0
  244. package/dist/packages/runtime/dist/worker-trust-store.js +592 -0
  245. package/dist/packages/runtime/dist/worker-trust-store.js.map +1 -0
  246. package/dist/packages/sandbox/dist/command-environment.d.ts +2 -0
  247. package/dist/packages/sandbox/dist/command-environment.js +29 -0
  248. package/dist/packages/sandbox/dist/command-environment.js.map +1 -0
  249. package/dist/packages/sandbox/dist/container.d.ts +1 -1
  250. package/dist/packages/sandbox/dist/index.d.ts +2 -1
  251. package/dist/packages/sandbox/dist/index.js +1 -0
  252. package/dist/packages/sandbox/dist/index.js.map +1 -1
  253. package/dist/spec/README.ja.md +21 -1
  254. package/dist/spec/README.md +20 -1
  255. package/dist/spec/agent-card.schema.json +11 -1
  256. package/dist/spec/delivery-status.schema.json +106 -0
  257. package/dist/spec/examples/protocol-versions/sample-agent-card.json +35 -0
  258. package/dist/spec/examples/sample-delivery-status.json +21 -0
  259. package/dist/spec/examples/sample-task-manifest.0.1.0.json +173 -0
  260. package/dist/spec/examples/sample-task-manifest.0.2.0.json +173 -0
  261. package/dist/spec/task-manifest.0.1.0.schema.json +422 -0
  262. package/dist/spec/task-manifest.0.2.0.schema.json +422 -0
  263. package/dist/spec/task-manifest.schema.json +9 -418
  264. package/docs/sdk.ja.md +133 -0
  265. package/docs/sdk.md +138 -0
  266. package/package.json +15 -3
@@ -0,0 +1,173 @@
1
+ {
2
+ "protocolVersion": "0.2.0",
3
+ "taskId": "task_01J8Z9M0Q4X8K2R7V5N3P1W9",
4
+ "createdAt": "2026-10-25T12:00:00Z",
5
+ "deadline": "2026-10-25T18:00:00Z",
6
+ "requester": {
7
+ "ownerDid": "did:key:z6MkhaXgBZDvotDkL5257faiztiGiC2QtKLGpbnnEGta2doK",
8
+ "agentDid": "did:key:z6MkpTHR8VNsBxYAAWHut2Geadd9jSwuBV8xRoAnwWsdvktH",
9
+ "displayName": "Alice Planner Agent",
10
+ "relayEndpoint": "wss://relay.example.org/v1"
11
+ },
12
+ "worker": {
13
+ "ownerDid": "did:key:z6MkjchhfUsD6mmvni8mCdXHw216Xrm9bQe2mBH1P5RDjVJG",
14
+ "agentDid": "did:key:z6MknGc3ocHs3zdPiJbnaaqDi58NGb4pk1Sp9WxWufuXSdxf",
15
+ "displayName": "Bob Security Auditor Agent",
16
+ "relayEndpoint": "wss://relay.example.org/v1"
17
+ },
18
+ "task": {
19
+ "title": "Summarize architecture documents after owner opening",
20
+ "description": "After connection admission, inspection and owner opening, read the provided documents through the scoped capability and return the agreed structured summary.",
21
+ "acceptanceCriteria": [
22
+ {
23
+ "id": "ac_schema_valid",
24
+ "description": "Output JSON strictly conforms to io.outputSchema.",
25
+ "required": true
26
+ },
27
+ {
28
+ "id": "ac_citations_present",
29
+ "description": "Every finding includes a source document SHA-256 digest and line range.",
30
+ "required": true
31
+ }
32
+ ]
33
+ },
34
+ "io": {
35
+ "inputSchema": {
36
+ "type": "object",
37
+ "required": [
38
+ "docUris"
39
+ ],
40
+ "properties": {
41
+ "docUris": {
42
+ "type": "array",
43
+ "items": {
44
+ "type": "string"
45
+ }
46
+ }
47
+ }
48
+ },
49
+ "outputSchema": {
50
+ "type": "object",
51
+ "required": [
52
+ "summary",
53
+ "findings"
54
+ ],
55
+ "properties": {
56
+ "summary": {
57
+ "type": "string"
58
+ },
59
+ "findings": {
60
+ "type": "array",
61
+ "items": {
62
+ "type": "object",
63
+ "required": [
64
+ "id",
65
+ "severity",
66
+ "sourceDigest"
67
+ ],
68
+ "properties": {
69
+ "id": {
70
+ "type": "string"
71
+ },
72
+ "severity": {
73
+ "type": "string",
74
+ "enum": [
75
+ "LOW",
76
+ "MEDIUM",
77
+ "HIGH",
78
+ "CRITICAL"
79
+ ]
80
+ },
81
+ "sourceDigest": {
82
+ "type": "string",
83
+ "pattern": "^sha256:[a-f0-9]{64}$"
84
+ }
85
+ }
86
+ }
87
+ }
88
+ }
89
+ },
90
+ "inputArtifacts": [
91
+ {
92
+ "name": "docs/spec-draft.md",
93
+ "digest": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
94
+ "mediaType": "text/markdown",
95
+ "sizeBytes": 4096
96
+ }
97
+ ]
98
+ },
99
+ "verification": {
100
+ "mode": "hybrid",
101
+ "requireUsageReceipt": true,
102
+ "requireExecutionAttestation": true,
103
+ "maxRetries": 2,
104
+ "checks": [
105
+ {
106
+ "checkId": "chk_schema",
107
+ "kind": "json_schema",
108
+ "target": "artifact://report.json",
109
+ "expectedExitCode": 0
110
+ },
111
+ {
112
+ "checkId": "chk_owner_review",
113
+ "kind": "human_review",
114
+ "target": "GATE_DELIVERY_ACCEPT"
115
+ }
116
+ ]
117
+ },
118
+ "budget": {
119
+ "costBearer": "worker_byok",
120
+ "maxInputTokens": 50000,
121
+ "maxOutputTokens": 10000,
122
+ "maxToolInvocations": 10,
123
+ "maxWallClockSeconds": 600,
124
+ "onOverrun": "request_hitl_amendment"
125
+ },
126
+ "permissions": {
127
+ "maxDelegationDepth": 0,
128
+ "grantedCapabilities": [
129
+ {
130
+ "capabilityId": "cap_read_docs_01",
131
+ "resource": "mcp://alice-gateway/docs/spec-draft.md",
132
+ "allowedTools": [
133
+ "resources/read"
134
+ ],
135
+ "argConstraints": {
136
+ "type": "object",
137
+ "required": [
138
+ "uri"
139
+ ],
140
+ "properties": {
141
+ "uri": {
142
+ "const": "mcp://alice-gateway/docs/spec-draft.md"
143
+ }
144
+ }
145
+ },
146
+ "maxInvocations": 5,
147
+ "expiresAt": "2026-10-25T18:00:00Z"
148
+ }
149
+ ]
150
+ },
151
+ "sandboxPolicy": {
152
+ "isolationLevel": "oci_container",
153
+ "networkAccess": "none",
154
+ "filesystemScope": "ephemeral_workspace_only"
155
+ },
156
+ "hitlPolicy": {
157
+ "requiredGates": [
158
+ "GATE_CONTRACT_ACCEPT",
159
+ "GATE_EXTERNAL_SIDE_EFFECT",
160
+ "GATE_BUDGET_OVERRUN",
161
+ "GATE_DELIVERY_ACCEPT"
162
+ ]
163
+ },
164
+ "signatures": {
165
+ "requesterSignature": {
166
+ "signerDid": "did:key:z6MkhaXgBZDvotDkL5257faiztiGiC2QtKLGpbnnEGta2doK",
167
+ "canonicalization": "RFC8785-JCS",
168
+ "payloadDigest": "sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
169
+ "signedAt": "2026-10-25T12:00:05Z",
170
+ "signature": "ed25519:dGhpcyBpcyBhIHNhbXBsZSBzY2hlbWEtdmFsaWRhdGVkIGVkMjU1MTkgc2lnbmF0dXJlIGJsb2NrIGZvciBkcmFmdCB2MC4x"
171
+ }
172
+ }
173
+ }
@@ -0,0 +1,422 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://acp-spec.local/schemas/v0.1/task-manifest.schema.json",
4
+ "title": "TaskManifest",
5
+ "description": "Cross-owner agent collaboration task manifest and contract specification.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": [
9
+ "protocolVersion",
10
+ "taskId",
11
+ "createdAt",
12
+ "deadline",
13
+ "requester",
14
+ "task",
15
+ "io",
16
+ "verification",
17
+ "budget",
18
+ "permissions",
19
+ "sandboxPolicy",
20
+ "hitlPolicy"
21
+ ],
22
+ "properties": {
23
+ "protocolVersion": {
24
+ "type": "string",
25
+ "const": "0.1.0",
26
+ "description": "Protocol specification version."
27
+ },
28
+ "taskId": {
29
+ "type": "string",
30
+ "pattern": "^task_[a-zA-Z0-9_-]{8,64}$",
31
+ "description": "Globally unique task identifier."
32
+ },
33
+ "parentTaskId": {
34
+ "type": "string",
35
+ "pattern": "^task_[a-zA-Z0-9_-]{8,64}$",
36
+ "description": "Optional parent task identifier when sub-delegating."
37
+ },
38
+ "createdAt": {
39
+ "type": "string",
40
+ "format": "date-time"
41
+ },
42
+ "deadline": {
43
+ "type": "string",
44
+ "format": "date-time",
45
+ "description": "Hard UTC timestamp deadline after which the task transitions to TIMED_OUT."
46
+ },
47
+ "requester": {
48
+ "$ref": "#/$defs/partyDescriptor"
49
+ },
50
+ "worker": {
51
+ "$ref": "#/$defs/partyDescriptor",
52
+ "description": "Target worker party if directed; omitted in open proposals before ACCEPT."
53
+ },
54
+ "task": {
55
+ "type": "object",
56
+ "additionalProperties": false,
57
+ "required": ["title", "description", "acceptanceCriteria"],
58
+ "properties": {
59
+ "skillId": { "type": "string", "minLength": 1 },
60
+ "taskType": { "type": "string", "minLength": 1 },
61
+ "title": {
62
+ "type": "string",
63
+ "minLength": 1,
64
+ "maxLength": 200
65
+ },
66
+ "description": {
67
+ "type": "string",
68
+ "minLength": 1,
69
+ "maxLength": 32768,
70
+ "description": "Task instructions. Must be treated as untrusted data by the worker runtime."
71
+ },
72
+ "acceptanceCriteria": {
73
+ "type": "array",
74
+ "minItems": 1,
75
+ "maxItems": 50,
76
+ "items": {
77
+ "type": "object",
78
+ "additionalProperties": false,
79
+ "required": ["id", "description", "required"],
80
+ "properties": {
81
+ "id": {
82
+ "type": "string",
83
+ "pattern": "^ac_[a-zA-Z0-9_-]{1,32}$"
84
+ },
85
+ "description": {
86
+ "type": "string",
87
+ "minLength": 1,
88
+ "maxLength": 1000
89
+ },
90
+ "required": {
91
+ "type": "boolean"
92
+ }
93
+ }
94
+ }
95
+ }
96
+ }
97
+ },
98
+ "io": {
99
+ "type": "object",
100
+ "additionalProperties": false,
101
+ "required": ["inputSchema", "outputSchema"],
102
+ "properties": {
103
+ "inputSchema": {
104
+ "type": "object",
105
+ "description": "JSON Schema describing the structured task input payload."
106
+ },
107
+ "outputSchema": {
108
+ "type": "object",
109
+ "description": "JSON Schema describing the required structured output artifact."
110
+ },
111
+ "inputArtifacts": {
112
+ "type": "array",
113
+ "maxItems": 100,
114
+ "items": {
115
+ "$ref": "#/$defs/artifactRef"
116
+ }
117
+ }
118
+ }
119
+ },
120
+ "verification": {
121
+ "type": "object",
122
+ "additionalProperties": false,
123
+ "required": ["mode", "requireUsageReceipt", "requireExecutionAttestation", "maxRetries"],
124
+ "properties": {
125
+ "mode": {
126
+ "type": "string",
127
+ "enum": ["schema_only", "automated_checks", "human_in_the_loop", "hybrid"],
128
+ "description": "How the requester gateway verifies delivered artifacts."
129
+ },
130
+ "requireUsageReceipt": {
131
+ "type": "boolean"
132
+ },
133
+ "requireExecutionAttestation": {
134
+ "type": "boolean"
135
+ },
136
+ "maxRetries": {
137
+ "type": "integer",
138
+ "minimum": 0,
139
+ "maximum": 10
140
+ },
141
+ "checks": {
142
+ "type": "array",
143
+ "maxItems": 20,
144
+ "items": {
145
+ "type": "object",
146
+ "additionalProperties": false,
147
+ "required": ["checkId", "kind", "target"],
148
+ "properties": {
149
+ "checkId": {
150
+ "type": "string",
151
+ "pattern": "^chk_[a-zA-Z0-9_-]{1,32}$"
152
+ },
153
+ "kind": {
154
+ "type": "string",
155
+ "enum": ["json_schema", "sha256_match", "deterministic_command", "human_review"]
156
+ },
157
+ "target": {
158
+ "type": "string",
159
+ "minLength": 1,
160
+ "maxLength": 512
161
+ },
162
+ "expectedExitCode": {
163
+ "type": "integer",
164
+ "default": 0
165
+ }
166
+ }
167
+ }
168
+ }
169
+ }
170
+ },
171
+ "budget": {
172
+ "type": "object",
173
+ "additionalProperties": false,
174
+ "required": [
175
+ "costBearer",
176
+ "maxInputTokens",
177
+ "maxOutputTokens",
178
+ "maxToolInvocations",
179
+ "maxWallClockSeconds",
180
+ "onOverrun"
181
+ ],
182
+ "properties": {
183
+ "costBearer": {
184
+ "type": "string",
185
+ "enum": ["worker_byok", "bilateral_quota", "external_settlement_plugin"],
186
+ "description": "Who bears the LLM/API inference cost. Never shares raw API keys across owners."
187
+ },
188
+ "maxInputTokens": {
189
+ "type": "integer",
190
+ "minimum": 0,
191
+ "maximum": 100000000
192
+ },
193
+ "maxOutputTokens": {
194
+ "type": "integer",
195
+ "minimum": 0,
196
+ "maximum": 100000000
197
+ },
198
+ "maxToolInvocations": {
199
+ "type": "integer",
200
+ "minimum": 0,
201
+ "maximum": 100000
202
+ },
203
+ "maxWallClockSeconds": {
204
+ "type": "integer",
205
+ "minimum": 1,
206
+ "maximum": 604800
207
+ },
208
+ "onOverrun": {
209
+ "type": "string",
210
+ "enum": ["hard_stop", "request_hitl_amendment"]
211
+ },
212
+ "settlementExtension": {
213
+ "type": "object",
214
+ "description": "Optional plugin metadata for off-protocol settlement or bilateral ledger accounting."
215
+ }
216
+ }
217
+ },
218
+ "permissions": {
219
+ "type": "object",
220
+ "additionalProperties": false,
221
+ "required": ["maxDelegationDepth", "grantedCapabilities"],
222
+ "properties": {
223
+ "maxDelegationDepth": {
224
+ "type": "integer",
225
+ "minimum": 0,
226
+ "maximum": 5,
227
+ "description": "0 forbids sub-delegation to any third-party agent."
228
+ },
229
+ "grantedCapabilities": {
230
+ "type": "array",
231
+ "maxItems": 50,
232
+ "items": {
233
+ "$ref": "#/$defs/capabilityGrantSpec"
234
+ }
235
+ }
236
+ }
237
+ },
238
+ "sandboxPolicy": {
239
+ "type": "object",
240
+ "additionalProperties": false,
241
+ "required": ["isolationLevel", "networkAccess", "filesystemScope"],
242
+ "properties": {
243
+ "allowSubprocessFallback": {
244
+ "type": "boolean",
245
+ "description": "Explicitly permit a restricted subprocess when OCI isolation is requested."
246
+ },
247
+ "isolationLevel": {
248
+ "type": "string",
249
+ "enum": ["subprocess_restricted", "oci_container", "wasm", "microvm"]
250
+ },
251
+ "networkAccess": {
252
+ "type": "string",
253
+ "enum": ["none", "allowlist_only"]
254
+ },
255
+ "allowedHosts": {
256
+ "type": "array",
257
+ "items": {
258
+ "type": "string",
259
+ "minLength": 1,
260
+ "maxLength": 253
261
+ }
262
+ },
263
+ "filesystemScope": {
264
+ "type": "string",
265
+ "enum": ["ephemeral_workspace_only", "read_only_inputs"]
266
+ }
267
+ }
268
+ },
269
+ "hitlPolicy": {
270
+ "type": "object",
271
+ "additionalProperties": false,
272
+ "required": ["requiredGates"],
273
+ "properties": {
274
+ "requiredGates": {
275
+ "type": "array",
276
+ "uniqueItems": true,
277
+ "items": {
278
+ "type": "string",
279
+ "enum": [
280
+ "GATE_CONTRACT_ACCEPT",
281
+ "GATE_EXTERNAL_SIDE_EFFECT",
282
+ "GATE_BUDGET_OVERRUN",
283
+ "GATE_SUB_DELEGATION",
284
+ "GATE_DELIVERY_ACCEPT"
285
+ ]
286
+ }
287
+ }
288
+ }
289
+ },
290
+ "signatures": {
291
+ "type": "object",
292
+ "additionalProperties": false,
293
+ "properties": {
294
+ "requesterSignature": {
295
+ "$ref": "#/$defs/signatureBlock"
296
+ },
297
+ "workerSignature": {
298
+ "$ref": "#/$defs/signatureBlock"
299
+ }
300
+ }
301
+ }
302
+ },
303
+ "$defs": {
304
+ "didKey": {
305
+ "type": "string",
306
+ "pattern": "^did:key:z[1-9A-HJ-NP-Za-km-z]{32,128}$"
307
+ },
308
+ "sha256Digest": {
309
+ "type": "string",
310
+ "pattern": "^sha256:[a-f0-9]{64}$"
311
+ },
312
+ "partyDescriptor": {
313
+ "type": "object",
314
+ "additionalProperties": false,
315
+ "required": ["ownerDid", "agentDid"],
316
+ "properties": {
317
+ "ownerDid": {
318
+ "$ref": "#/$defs/didKey"
319
+ },
320
+ "agentDid": {
321
+ "$ref": "#/$defs/didKey"
322
+ },
323
+ "displayName": {
324
+ "type": "string",
325
+ "maxLength": 100
326
+ },
327
+ "relayEndpoint": {
328
+ "type": "string",
329
+ "format": "uri"
330
+ }
331
+ }
332
+ },
333
+ "artifactRef": {
334
+ "type": "object",
335
+ "additionalProperties": false,
336
+ "required": ["name", "digest", "mediaType", "sizeBytes"],
337
+ "properties": {
338
+ "name": {
339
+ "type": "string",
340
+ "pattern": "^[a-zA-Z0-9._/-]{1,255}$"
341
+ },
342
+ "digest": {
343
+ "$ref": "#/$defs/sha256Digest"
344
+ },
345
+ "mediaType": {
346
+ "type": "string",
347
+ "maxLength": 128
348
+ },
349
+ "sizeBytes": {
350
+ "type": "integer",
351
+ "minimum": 0,
352
+ "maximum": 1073741824
353
+ }
354
+ }
355
+ },
356
+ "capabilityGrantSpec": {
357
+ "type": "object",
358
+ "additionalProperties": false,
359
+ "required": ["capabilityId", "resource", "allowedTools", "maxInvocations", "expiresAt"],
360
+ "properties": {
361
+ "capabilityId": {
362
+ "type": "string",
363
+ "pattern": "^cap_[a-zA-Z0-9_-]{4,64}$"
364
+ },
365
+ "resource": {
366
+ "type": "string",
367
+ "minLength": 1,
368
+ "maxLength": 512,
369
+ "description": "Scoped URI or MCP resource prefix (e.g. mcp://owner-a/docs/public/*)."
370
+ },
371
+ "allowedTools": {
372
+ "type": "array",
373
+ "minItems": 1,
374
+ "maxItems": 50,
375
+ "items": {
376
+ "type": "string",
377
+ "minLength": 1,
378
+ "maxLength": 128
379
+ }
380
+ },
381
+ "argConstraints": {
382
+ "type": "object",
383
+ "description": "Optional JSON Schema constraining tool arguments."
384
+ },
385
+ "maxInvocations": {
386
+ "type": "integer",
387
+ "minimum": 1,
388
+ "maximum": 10000
389
+ },
390
+ "expiresAt": {
391
+ "type": "string",
392
+ "format": "date-time"
393
+ }
394
+ }
395
+ },
396
+ "signatureBlock": {
397
+ "type": "object",
398
+ "additionalProperties": false,
399
+ "required": ["signerDid", "canonicalization", "payloadDigest", "signedAt", "signature"],
400
+ "properties": {
401
+ "signerDid": {
402
+ "$ref": "#/$defs/didKey"
403
+ },
404
+ "canonicalization": {
405
+ "type": "string",
406
+ "const": "RFC8785-JCS"
407
+ },
408
+ "payloadDigest": {
409
+ "$ref": "#/$defs/sha256Digest"
410
+ },
411
+ "signedAt": {
412
+ "type": "string",
413
+ "format": "date-time"
414
+ },
415
+ "signature": {
416
+ "type": "string",
417
+ "pattern": "^ed25519:[a-zA-Z0-9+/=_-]{64,180}$"
418
+ }
419
+ }
420
+ }
421
+ }
422
+ }