@agentproto/corpus-cli 0.11.0 → 0.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/specs/resources/aip-10/draft/KNOWLEDGE.schema.json +2 -2
- package/dist/specs/resources/aip-18/draft/COLLECTION.schema.json +9 -2
- package/dist/specs/resources/aip-19/draft/SECRETS.schema.json +8 -2
- package/dist/specs/resources/aip-20/draft/WORK.schema.json +232 -206
- package/dist/specs/resources/aip-34/draft/EXPORT.schema.json +29 -0
- package/dist/specs/resources/aip-34/draft/LOCK.schema.json +76 -0
- package/dist/specs/resources/aip-34/draft/PRESENCE.schema.json +237 -0
- package/dist/specs/resources/aip-34/draft/TYPES.schema.json +78 -0
- package/dist/specs/resources/aip-34/draft/WORKSPACE.schema.json +252 -95
- package/dist/specs/resources/aip-36/draft/SANDBOX.schema.json +8 -1
- package/dist/specs/resources/aip-42/draft/AGENT.schema.json +5 -0
- package/dist/specs/resources/aip-45/draft/AGENT-CLI.schema.json +5 -0
- package/dist/specs/resources/aip-49/draft/ASSET.schema.json +10 -0
- package/dist/specs/resources/aip-53/draft/APP.schema.json +841 -65
- package/dist/specs/resources/aip-58/draft/event.schema.json +3 -2
- package/dist/specs/resources/aip-62/draft/ATTESTATION.schema.json +360 -67
- package/dist/specs/resources/aip-62/draft/REVIEW.schema.json +198 -52
- package/dist/specs/resources/aip-63/draft/BROWSER.schema.json +5 -1
- package/dist/specs/resources/aip-63/draft/RECORDING.schema.json +292 -0
- package/dist/specs/resources/aip-7/draft/GOVERNANCE.schema.json +2 -2
- package/dist/specs/resources/pending/memory/draft/MEMORY.schema.json +321 -0
- package/dist/specs/resources/pending/services/SERVICES.schema.json +55 -0
- package/package.json +7 -7
|
@@ -1,35 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://agentproto.sh/
|
|
4
|
-
"title": "WORKSPACE.md frontmatter — agentworkspace/
|
|
5
|
-
"description": "Validates the YAML frontmatter portion of an AIP-34 WORKSPACE.md manifest
|
|
3
|
+
"$id": "https://agentproto.sh/schemas/aip-34/WORKSPACE.schema.json",
|
|
4
|
+
"title": "WORKSPACE.md frontmatter — agentworkspace/v2 (workspace tree node — THE canonical AIP-34 schema; supersedes v1 outright)",
|
|
5
|
+
"description": "Validates the YAML frontmatter portion of an AIP-34 WORKSPACE.md manifest — the canonical workspace/v2 tree-node shape: node `type` (resolved against a sibling TYPES.md), `wall` (visibility level), `includes`/`exports` (two-sided consent doors), `agents`/`routines` (declared manifests this node hosts), `secrets`/`uses_secrets` (never-inherited secret grants), `apps`/`accepted_apps` (versioned app attachments with two-sided consent), `work` (AIP-20 status/board), and `policy.limits` budget aggregation. Supersedes the original workspace/v1 identity-only draft outright — there is no parallel v1 schema; see AIP-34 §Migrating from workspace/v1.",
|
|
6
6
|
"type": "object",
|
|
7
|
-
"required": ["schema", "id", "version", "name", "owner", "storage"],
|
|
7
|
+
"required": ["schema", "id", "version", "name", "type", "owner", "storage"],
|
|
8
8
|
"additionalProperties": false,
|
|
9
9
|
"properties": {
|
|
10
|
-
"schema": {
|
|
11
|
-
"const": "workspace/v1"
|
|
12
|
-
},
|
|
10
|
+
"schema": { "const": "workspace/v2" },
|
|
13
11
|
"id": {
|
|
14
12
|
"type": "string",
|
|
15
13
|
"pattern": "^@[a-z0-9][a-z0-9-]*/[a-z0-9][a-z0-9-]*$",
|
|
16
|
-
"description": "Globally addressable id `@<owner-slug>/<workspace-slug>`.
|
|
14
|
+
"description": "Globally addressable, FLAT id `@<owner-slug>/<workspace-slug>`. Immutable even if the node moves to a different folder (`ws mv` rewrites the path, never the id)."
|
|
17
15
|
},
|
|
18
16
|
"version": {
|
|
19
17
|
"type": "string",
|
|
20
|
-
"pattern": "^\\d+\\.\\d+\\.\\d+(?:[-+][\\w.\\-]+)?$"
|
|
21
|
-
"description": "Spec version of THIS file. Bump on breaking shape change."
|
|
18
|
+
"pattern": "^\\d+\\.\\d+\\.\\d+(?:[-+][\\w.\\-]+)?$"
|
|
22
19
|
},
|
|
23
|
-
"name": {
|
|
20
|
+
"name": { "type": "string", "minLength": 1, "maxLength": 80 },
|
|
21
|
+
"description": { "type": "string", "maxLength": 2000 },
|
|
22
|
+
"type": {
|
|
24
23
|
"type": "string",
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"description": "Human-readable display name."
|
|
24
|
+
"pattern": "^[a-z][a-z0-9-]*$",
|
|
25
|
+
"description": "Node kind. MUST be a key declared in the nearest ancestor TYPES.md (walking up through folders with no WORKSPACE.md). Day-1 vocabulary: root | perso | company | project | initiative. Hosts/trees MAY register more under TYPES.md; this field stays an open string so the registry — not this schema — is the extension point."
|
|
28
26
|
},
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"description": "
|
|
27
|
+
"status": {
|
|
28
|
+
"enum": ["active", "paused", "archived"],
|
|
29
|
+
"default": "active",
|
|
30
|
+
"description": "active: runs normally. paused: keeps declarations/data but runs nothing — hosts MUST NOT start agents or fire routines at or below this node, excluded from budget/heartbeat checks like archived, stays writable and resumes by flipping back to active. archived: read-only, excluded from budget/heartbeat checks, never runs anything. A node's EFFECTIVE status is the most restrictive value along its ancestor chain (archived > paused > active) — a child is never more active than an ancestor; the field itself always holds only this node's own declared value."
|
|
33
31
|
},
|
|
34
32
|
"owner": {
|
|
35
33
|
"type": "object",
|
|
@@ -40,38 +38,73 @@
|
|
|
40
38
|
"id": { "type": "string", "minLength": 1 },
|
|
41
39
|
"slug": {
|
|
42
40
|
"type": "string",
|
|
43
|
-
"
|
|
44
|
-
"pattern": "^[a-z0-9][a-z0-9-]*[a-z0-9]$|^[a-z0-9]$",
|
|
45
|
-
"description": "Owner-side slug. MUST match the slug suffix of the workspace `id`."
|
|
41
|
+
"pattern": "^[a-z0-9][a-z0-9-]*[a-z0-9]$|^[a-z0-9]$"
|
|
46
42
|
}
|
|
47
43
|
}
|
|
48
44
|
},
|
|
49
|
-
"storage": {
|
|
50
|
-
|
|
51
|
-
|
|
45
|
+
"storage": { "$ref": "#/$defs/storageRef" },
|
|
46
|
+
"sandbox": { "$ref": "#/$defs/sandboxRef" },
|
|
47
|
+
"code": { "$ref": "#/$defs/codeRef" },
|
|
48
|
+
"work": {
|
|
49
|
+
"$ref": "#/$defs/workRef",
|
|
50
|
+
"description": "AIP-20 WORK.md block. Optional — when present, this node's status/board is tracked there (items are AIP-18 ITEM.md records under the collection(s) WORK.md declares), not in a flat status file. Same inline/ref/file union shape as `code`."
|
|
51
|
+
},
|
|
52
|
+
"presence": {
|
|
53
|
+
"$ref": "#/$defs/presenceRef",
|
|
54
|
+
"description": "PRESENCE.md block (presence/v1, see AIP-34 §Presence block). Optional. How this node speaks in public: audience, topics, forbidden words, channels, cadence, approval. Same inline/ref/file union as `work`; a `file` is path-confined."
|
|
55
|
+
},
|
|
56
|
+
"identity": { "$ref": "#/$defs/identityRefBlock" },
|
|
57
|
+
"wall": {
|
|
58
|
+
"enum": ["shared", "isolated", "sealed", "hard"],
|
|
59
|
+
"default": "isolated",
|
|
60
|
+
"description": "Visibility level toward sibling/ancestor nodes. shared: siblings read the whole node (implicit export `to: \"children\"` of the PARENT). isolated (default): nothing crosses without an explicit includes/exports door; ancestors still see everything. sealed: as isolated, PLUS ancestors see only this node's EXPORT.md, never raw files; inbound includes require host-side approval (AIP-7). hard: as sealed, PLUS enforced by a separate process/identity — no shared daemon, no shared auth profile, no shared MCP surface; the only traffic in or out is the declared exports, delivered by message, never by mount. A child MAY raise its own wall (shared→isolated→sealed→hard) but MUST NOT set a level looser than its parent's or its TYPES.md entry's `default_wall`."
|
|
61
|
+
},
|
|
62
|
+
"includes": {
|
|
63
|
+
"type": "array",
|
|
64
|
+
"items": { "$ref": "#/$defs/includeEntry" },
|
|
65
|
+
"default": []
|
|
66
|
+
},
|
|
67
|
+
"exports": {
|
|
68
|
+
"type": "array",
|
|
69
|
+
"items": { "$ref": "#/$defs/exportEntry" },
|
|
70
|
+
"default": []
|
|
71
|
+
},
|
|
72
|
+
"agents": {
|
|
73
|
+
"type": "array",
|
|
74
|
+
"items": { "$ref": "#/$defs/agentRef" },
|
|
75
|
+
"default": []
|
|
76
|
+
},
|
|
77
|
+
"routines": {
|
|
78
|
+
"type": "array",
|
|
79
|
+
"items": { "$ref": "#/$defs/fileRef" },
|
|
80
|
+
"default": []
|
|
52
81
|
},
|
|
53
|
-
"
|
|
54
|
-
"$ref": "#/$defs/
|
|
55
|
-
"description": "AIP-
|
|
82
|
+
"secrets": {
|
|
83
|
+
"$ref": "#/$defs/fileRef",
|
|
84
|
+
"description": "Ref to this node's OWN .secrets/SECRETS.md inventory (AIP-19). Never inherited — a node with no `secrets` block has no secrets of its own, full stop."
|
|
56
85
|
},
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
86
|
+
"uses_secrets": {
|
|
87
|
+
"type": "array",
|
|
88
|
+
"items": { "$ref": "#/$defs/usesSecretEntry" },
|
|
89
|
+
"default": [],
|
|
90
|
+
"description": "Consumer-side declaration of a secret grant this node expects. Only effective if the named provider workspace's SECRETS.md carries a matching `access.bind[].workspace` (or `.reveal[].workspace`) grant for this node's id — consent MUST exist on both sides, same rule as includes/exports."
|
|
60
91
|
},
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
92
|
+
"apps": {
|
|
93
|
+
"type": "array",
|
|
94
|
+
"items": { "$ref": "#/$defs/appRef" },
|
|
95
|
+
"default": []
|
|
64
96
|
},
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
97
|
+
"accepted_apps": {
|
|
98
|
+
"type": "array",
|
|
99
|
+
"items": { "$ref": "#/$defs/acceptedAppEntry" },
|
|
100
|
+
"default": [],
|
|
101
|
+
"description": "Provider-side consent for an `apps[].attach` pointed at THIS node by another node — same two-sided-consent shape as `exports`/`uses_secrets`. An attach with no matching entry here is a conformance error, never silently honoured."
|
|
68
102
|
},
|
|
103
|
+
"policy": { "$ref": "#/$defs/policyRefBlock" },
|
|
69
104
|
"defaults": {
|
|
70
105
|
"type": "object",
|
|
71
106
|
"additionalProperties": true,
|
|
72
|
-
"properties": {
|
|
73
|
-
"read_only": { "type": "boolean" }
|
|
74
|
-
}
|
|
107
|
+
"properties": { "read_only": { "type": "boolean" } }
|
|
75
108
|
},
|
|
76
109
|
"publish": {
|
|
77
110
|
"type": "object",
|
|
@@ -85,21 +118,148 @@
|
|
|
85
118
|
}
|
|
86
119
|
}
|
|
87
120
|
},
|
|
88
|
-
"tags": {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
"default": []
|
|
92
|
-
},
|
|
93
|
-
"created_at": {
|
|
121
|
+
"tags": { "type": "array", "items": { "type": "string" }, "default": [] },
|
|
122
|
+
"created_at": { "type": "string", "format": "date-time" },
|
|
123
|
+
"lock": {
|
|
94
124
|
"type": "string",
|
|
95
|
-
"
|
|
125
|
+
"default": "agentproto.lock",
|
|
126
|
+
"description": "Workspace-relative path to this node's apps/packs lockfile (see AIP-34 §agentproto.lock). Only meaningful on nodes that install apps/packs directly; a node that attaches nothing MAY omit it."
|
|
96
127
|
},
|
|
97
|
-
"metadata": {
|
|
98
|
-
"type": "object",
|
|
99
|
-
"additionalProperties": true
|
|
100
|
-
}
|
|
128
|
+
"metadata": { "type": "object", "additionalProperties": true }
|
|
101
129
|
},
|
|
102
130
|
"$defs": {
|
|
131
|
+
"safeRelativePath": {
|
|
132
|
+
"type": "string",
|
|
133
|
+
"minLength": 1,
|
|
134
|
+
"pattern": "^(?!/)(?!.*(^|/)\\.\\.(/|$)).+$",
|
|
135
|
+
"description": "Path confinement (see §Path confinement): tree-relative (no leading `/`), no `..` path segment anywhere. Schema-level best effort — hosts MUST ALSO realpath-resolve and verify containment to catch a symlink escape the string alone can't reveal."
|
|
136
|
+
},
|
|
137
|
+
"acceptedAppEntry": {
|
|
138
|
+
"type": "object",
|
|
139
|
+
"required": ["from"],
|
|
140
|
+
"additionalProperties": false,
|
|
141
|
+
"properties": {
|
|
142
|
+
"from": {
|
|
143
|
+
"type": "string",
|
|
144
|
+
"pattern": "^@[a-z0-9][a-z0-9-]*/[a-z0-9][a-z0-9-]*$",
|
|
145
|
+
"description": "Id of the workspace whose `apps[].attach` this grant honours."
|
|
146
|
+
},
|
|
147
|
+
"app": {
|
|
148
|
+
"type": "string",
|
|
149
|
+
"pattern": "^@[a-z0-9][a-z0-9-]*/[a-z0-9][a-z0-9-]*$",
|
|
150
|
+
"description": "Restrict the grant to one app id. Omitted = any app `from` attaches."
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"fileRef": {
|
|
155
|
+
"type": "object",
|
|
156
|
+
"required": ["file"],
|
|
157
|
+
"additionalProperties": false,
|
|
158
|
+
"properties": { "file": { "$ref": "#/$defs/safeRelativePath" } }
|
|
159
|
+
},
|
|
160
|
+
"agentRef": {
|
|
161
|
+
"type": "object",
|
|
162
|
+
"required": ["file"],
|
|
163
|
+
"additionalProperties": false,
|
|
164
|
+
"properties": {
|
|
165
|
+
"file": { "$ref": "#/$defs/safeRelativePath" },
|
|
166
|
+
"share": {
|
|
167
|
+
"type": "array",
|
|
168
|
+
"items": {
|
|
169
|
+
"type": "string",
|
|
170
|
+
"pattern": "^@[a-z0-9][a-z0-9-]*/[a-z0-9][a-z0-9-]*$"
|
|
171
|
+
},
|
|
172
|
+
"description": "Other workspace ids this agent is also declared transverse to (AIP-34 §Specification (workspace/v2) exception 3). The agent always runs scoped to whichever of these ids is the live caller — never a union of several at once."
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"includeEntry": {
|
|
177
|
+
"type": "object",
|
|
178
|
+
"required": ["ref"],
|
|
179
|
+
"additionalProperties": false,
|
|
180
|
+
"properties": {
|
|
181
|
+
"ref": {
|
|
182
|
+
"type": "string",
|
|
183
|
+
"pattern": "^ws://workspaces/@[a-z0-9][a-z0-9-]*/[a-z0-9][a-z0-9-]*(#(?!.*\\.\\.)[^\\s]+)?$",
|
|
184
|
+
"description": "AIP-54 ws:// ref: `ws://workspaces/<provider-id>[#<subpath>]`. No subpath = the whole node. The `#<subpath>` fragment is path confinement scope (see §Path confinement): no `..` anywhere in it."
|
|
185
|
+
},
|
|
186
|
+
"mode": { "enum": ["read", "write", "append"], "default": "read" }
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
"exportEntry": {
|
|
190
|
+
"type": "object",
|
|
191
|
+
"required": ["path", "to"],
|
|
192
|
+
"additionalProperties": false,
|
|
193
|
+
"properties": {
|
|
194
|
+
"path": {
|
|
195
|
+
"allOf": [{ "$ref": "#/$defs/safeRelativePath" }],
|
|
196
|
+
"description": "Path (relative to this node) made available to the grantee(s). Path confinement applies — see §Path confinement."
|
|
197
|
+
},
|
|
198
|
+
"to": {
|
|
199
|
+
"oneOf": [
|
|
200
|
+
{
|
|
201
|
+
"const": "children",
|
|
202
|
+
"description": "Sentinel: every node nested, in the folder tree, under whichever workspace DECLARES this export entry — regardless of id. For an explicit entry, that's whoever wrote it. For the IMPLICIT grant `wall: shared` synthesizes, the declaring node is the PARENT, not the shared node itself — so the grant reaches the shared node's SIBLINGS (the parent's other children), not merely its own descendants. See AIP-34 §The four wall levels."
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"type": "string",
|
|
206
|
+
"pattern": "^@[a-z0-9][a-z0-9-]*/[a-z0-9][a-z0-9-]*$",
|
|
207
|
+
"description": "A single named workspace id — the explicit two-sided door case."
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"type": "array",
|
|
211
|
+
"items": {
|
|
212
|
+
"type": "string",
|
|
213
|
+
"pattern": "^@[a-z0-9][a-z0-9-]*/[a-z0-9][a-z0-9-]*$"
|
|
214
|
+
},
|
|
215
|
+
"minItems": 1
|
|
216
|
+
}
|
|
217
|
+
]
|
|
218
|
+
},
|
|
219
|
+
"mode": { "enum": ["read", "write"], "default": "read" }
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
"usesSecretEntry": {
|
|
223
|
+
"type": "object",
|
|
224
|
+
"required": ["from", "slug"],
|
|
225
|
+
"additionalProperties": false,
|
|
226
|
+
"properties": {
|
|
227
|
+
"from": {
|
|
228
|
+
"type": "string",
|
|
229
|
+
"pattern": "^@[a-z0-9][a-z0-9-]*/[a-z0-9][a-z0-9-]*$",
|
|
230
|
+
"description": "Id of the workspace whose SECRETS.md owns this slug."
|
|
231
|
+
},
|
|
232
|
+
"slug": { "type": "string", "minLength": 1 },
|
|
233
|
+
"mode": { "enum": ["bind", "reveal"], "default": "bind" }
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
"appRef": {
|
|
237
|
+
"type": "object",
|
|
238
|
+
"required": ["id", "version"],
|
|
239
|
+
"additionalProperties": false,
|
|
240
|
+
"properties": {
|
|
241
|
+
"id": {
|
|
242
|
+
"type": "string",
|
|
243
|
+
"pattern": "^@[a-z0-9][a-z0-9-]*/[a-z0-9][a-z0-9-]*$",
|
|
244
|
+
"description": "AIP-53 APP id."
|
|
245
|
+
},
|
|
246
|
+
"version": {
|
|
247
|
+
"type": "string",
|
|
248
|
+
"minLength": 1,
|
|
249
|
+
"description": "Semver or semver-range (`^0.1.0`, `~1.2.0`, `1.2.3`). Resolved against the installed app store at attach time; the resolved exact version is what lands in agentproto.lock."
|
|
250
|
+
},
|
|
251
|
+
"expose": {
|
|
252
|
+
"type": "array",
|
|
253
|
+
"items": { "enum": ["agents", "tools", "ui", "data"] },
|
|
254
|
+
"default": []
|
|
255
|
+
},
|
|
256
|
+
"attach": {
|
|
257
|
+
"type": "string",
|
|
258
|
+
"default": "self",
|
|
259
|
+
"description": "`\"self\"` (default): this node and its subtree — no consent needed, the declaring node can only ever restrict itself. Otherwise a workspace id the app is attached to instead — effective ONLY if that target node's WORKSPACE.md declares a matching `accepted_apps` entry granting this node (and optionally this app id); see §Apps and consent. An unconsented cross-node attach is a conformance error, not a silent no-op."
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
},
|
|
103
263
|
"storageRef": {
|
|
104
264
|
"anyOf": [
|
|
105
265
|
{
|
|
@@ -158,9 +318,7 @@
|
|
|
158
318
|
"type": "object",
|
|
159
319
|
"required": ["inline"],
|
|
160
320
|
"additionalProperties": false,
|
|
161
|
-
"properties": {
|
|
162
|
-
"inline": { "type": "object" }
|
|
163
|
-
}
|
|
321
|
+
"properties": { "inline": { "type": "object" } }
|
|
164
322
|
},
|
|
165
323
|
{
|
|
166
324
|
"type": "object",
|
|
@@ -176,19 +334,14 @@
|
|
|
176
334
|
}
|
|
177
335
|
]
|
|
178
336
|
},
|
|
179
|
-
"
|
|
337
|
+
"workRef": {
|
|
180
338
|
"anyOf": [
|
|
181
|
-
{ "$ref": "#/$defs/identityRefEntry" },
|
|
182
339
|
{
|
|
183
|
-
"type": "
|
|
184
|
-
"
|
|
185
|
-
"
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
},
|
|
189
|
-
"policyRefEntry": {
|
|
190
|
-
"anyOf": [
|
|
191
|
-
{ "$ref": "https://agentproto.sh/schemas/aip-38/POLICY.schema.json" },
|
|
340
|
+
"type": "object",
|
|
341
|
+
"required": ["inline"],
|
|
342
|
+
"additionalProperties": false,
|
|
343
|
+
"properties": { "inline": { "type": "object" } }
|
|
344
|
+
},
|
|
192
345
|
{
|
|
193
346
|
"type": "object",
|
|
194
347
|
"required": ["ref"],
|
|
@@ -203,50 +356,54 @@
|
|
|
203
356
|
}
|
|
204
357
|
]
|
|
205
358
|
},
|
|
206
|
-
"
|
|
207
|
-
"anyOf": [
|
|
208
|
-
{ "$ref": "#/$defs/policyRefEntry" },
|
|
209
|
-
{
|
|
210
|
-
"type": "array",
|
|
211
|
-
"items": { "$ref": "#/$defs/policyRefEntry" },
|
|
212
|
-
"minItems": 1
|
|
213
|
-
}
|
|
214
|
-
]
|
|
215
|
-
},
|
|
216
|
-
"identityRefEntry": {
|
|
359
|
+
"presenceRef": {
|
|
217
360
|
"anyOf": [
|
|
218
361
|
{
|
|
219
362
|
"type": "object",
|
|
220
|
-
"required": ["
|
|
221
|
-
"additionalProperties":
|
|
222
|
-
"properties": {
|
|
223
|
-
"name": { "type": "string", "minLength": 1 },
|
|
224
|
-
"email": { "type": "string", "minLength": 1 },
|
|
225
|
-
"avatar": { "type": "string" },
|
|
226
|
-
"gpg_key": { "type": "string" },
|
|
227
|
-
"role": { "type": "string" },
|
|
228
|
-
"metadata": { "type": "object" }
|
|
229
|
-
}
|
|
363
|
+
"required": ["inline"],
|
|
364
|
+
"additionalProperties": false,
|
|
365
|
+
"properties": { "inline": { "type": "object" } }
|
|
230
366
|
},
|
|
231
367
|
{
|
|
232
368
|
"type": "object",
|
|
233
369
|
"required": ["ref"],
|
|
234
|
-
"additionalProperties":
|
|
235
|
-
"properties": {
|
|
236
|
-
"ref": { "type": "string", "minLength": 1 },
|
|
237
|
-
"role": { "type": "string" }
|
|
238
|
-
}
|
|
370
|
+
"additionalProperties": false,
|
|
371
|
+
"properties": { "ref": { "type": "string", "minLength": 1 } }
|
|
239
372
|
},
|
|
240
373
|
{
|
|
241
374
|
"type": "object",
|
|
242
375
|
"required": ["file"],
|
|
243
|
-
"additionalProperties":
|
|
244
|
-
"properties": {
|
|
245
|
-
"file": { "type": "string", "minLength": 1 },
|
|
246
|
-
"role": { "type": "string" }
|
|
247
|
-
}
|
|
376
|
+
"additionalProperties": false,
|
|
377
|
+
"properties": { "file": { "$ref": "#/$defs/safeRelativePath" } }
|
|
248
378
|
}
|
|
249
379
|
]
|
|
380
|
+
},
|
|
381
|
+
"identityRefBlock": {
|
|
382
|
+
"description": "AIP-23 identity-ref. Single entry or multi-attribution array. Left permissive here; AIP-23 owns the normative shape."
|
|
383
|
+
},
|
|
384
|
+
"policyRefBlock": {
|
|
385
|
+
"type": "object",
|
|
386
|
+
"additionalProperties": true,
|
|
387
|
+
"properties": {
|
|
388
|
+
"limits": {
|
|
389
|
+
"type": "array",
|
|
390
|
+
"items": {
|
|
391
|
+
"type": "object",
|
|
392
|
+
"required": ["kind", "value"],
|
|
393
|
+
"additionalProperties": true,
|
|
394
|
+
"properties": {
|
|
395
|
+
"kind": {
|
|
396
|
+
"type": "string",
|
|
397
|
+
"description": "AIP-38 limit kind. Budget kinds added by AIP-34 v2: budget-usd-per-month | budget-usd-per-day. Also any AIP-38 kind (max-concurrent-sessions, rate-tool-calls, ...)."
|
|
398
|
+
},
|
|
399
|
+
"value": { "type": "number" },
|
|
400
|
+
"scope": { "type": "string" },
|
|
401
|
+
"per": { "type": "string" }
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
"default": []
|
|
405
|
+
}
|
|
406
|
+
}
|
|
250
407
|
}
|
|
251
408
|
}
|
|
252
409
|
}
|
|
@@ -44,7 +44,8 @@
|
|
|
44
44
|
"properties": {
|
|
45
45
|
"timeout_ms": { "type": "integer", "minimum": 1 },
|
|
46
46
|
"memory_mb": { "type": "integer", "minimum": 1 },
|
|
47
|
-
"cpu_ms": { "type": "integer", "minimum": 1 }
|
|
47
|
+
"cpu_ms": { "type": "integer", "minimum": 1 },
|
|
48
|
+
"cpus": { "type": "number", "minimum": 0.1, "description": "vCPUs, may be fractional (AIP-36 v1.3). Provider config-level cpus maps onto this." }
|
|
48
49
|
},
|
|
49
50
|
"description": "Resource caps per command."
|
|
50
51
|
},
|
|
@@ -74,6 +75,12 @@
|
|
|
74
75
|
"items": { "type": "string" },
|
|
75
76
|
"default": [],
|
|
76
77
|
"description": "Hostnames the sandbox MAY reach. Empty / missing = no egress."
|
|
78
|
+
},
|
|
79
|
+
"egressIp": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"pattern": "^(shared|auto|dedicated|[a-z0-9]{1,8})$",
|
|
82
|
+
"default": "shared",
|
|
83
|
+
"description": "Public source address for outbound traffic (AIP-36 v1.3): shared | auto | dedicated | pool slot id. A provider without an address pool MUST refuse any value other than shared with sandbox_egress_pool_unavailable."
|
|
77
84
|
}
|
|
78
85
|
}
|
|
79
86
|
},
|
|
@@ -244,6 +244,11 @@
|
|
|
244
244
|
"type": "object",
|
|
245
245
|
"additionalProperties": false,
|
|
246
246
|
"properties": {
|
|
247
|
+
"enabled": {
|
|
248
|
+
"type": "boolean",
|
|
249
|
+
"default": true,
|
|
250
|
+
"description": "When false, the agent MUST NOT write anything to MEMORY.md files (no item is created, updated, or tombstoned)."
|
|
251
|
+
},
|
|
247
252
|
"scope": {
|
|
248
253
|
"enum": ["per-conversation", "per-thread", "per-workspace", "none"],
|
|
249
254
|
"default": "per-conversation"
|
|
@@ -71,6 +71,11 @@
|
|
|
71
71
|
{ "type": "object", "description": "Inline AIP-17 runner block." }
|
|
72
72
|
]
|
|
73
73
|
},
|
|
74
|
+
"confinedReadPaths": {
|
|
75
|
+
"type": "array",
|
|
76
|
+
"items": { "type": "string", "minLength": 1 },
|
|
77
|
+
"description": "READ-only paths an OS-confined spawn needs to boot (e.g. the CLI's own global config files under $HOME, which the sandbox denies). `~/...` anchors at the operator's home; a leading `$VAR`/`${VAR}` is read from the per-spawn env and dropped when unset. Never grants write access; mutable state belongs in the adapter's state home."
|
|
78
|
+
},
|
|
74
79
|
"protocol": {
|
|
75
80
|
"enum": ["acp", "mcp", "proprietary"],
|
|
76
81
|
"description": "Wire protocol discriminator. acp = AIP-44 ACP server; mcp = MCP-over-stdio; proprietary = adapter package implements AgentCliClient."
|
|
@@ -126,6 +126,16 @@
|
|
|
126
126
|
"categories": { "type": "array", "items": { "type": "string", "minLength": 1 }, "description": "Narrows payable categories (∩ with the asset's spendableOn)." }
|
|
127
127
|
}
|
|
128
128
|
},
|
|
129
|
+
{
|
|
130
|
+
"type": "object",
|
|
131
|
+
"additionalProperties": false,
|
|
132
|
+
"required": ["kind", "key", "allow"],
|
|
133
|
+
"properties": {
|
|
134
|
+
"kind": { "const": "qualify" },
|
|
135
|
+
"key": { "type": "string", "minLength": 1, "description": "Qualifier name looked up in the spend context's `qualifiers` (e.g. `channel`)." },
|
|
136
|
+
"allow": { "type": "array", "items": { "type": "string", "minLength": 1 }, "description": "Qualifier values that may spend this value. `*` = any value, but the qualifier must still be present. A spend that omits the qualifier is ineligible; a pure balance read is unaffected." }
|
|
137
|
+
}
|
|
138
|
+
},
|
|
129
139
|
{
|
|
130
140
|
"type": "object",
|
|
131
141
|
"additionalProperties": false,
|