@agentproto/corpus-cli 0.11.3 → 0.11.5

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 (29) hide show
  1. package/dist/cli.mjs +1 -1
  2. package/dist/cli.mjs.map +1 -1
  3. package/dist/specs/resources/aip-14/draft/TOOL.schema.json +2 -2
  4. package/dist/specs/resources/aip-15/draft/WORKFLOW.schema.json +7 -7
  5. package/dist/specs/resources/aip-22/draft/OFFICE.schema.json +8 -8
  6. package/dist/specs/resources/aip-23/draft/IDENTITY.schema.json +2 -2
  7. package/dist/specs/resources/aip-34/draft/TYPES.schema.json +1 -1
  8. package/dist/specs/resources/aip-34/draft/WORKSPACE.schema.json +5 -2
  9. package/dist/specs/resources/aip-36/draft/PLACEMENT.schema.json +129 -0
  10. package/dist/specs/resources/aip-36/draft/SANDBOX.schema.json +3 -3
  11. package/dist/specs/resources/aip-38/draft/POLICY.schema.json +22 -2
  12. package/dist/specs/resources/aip-41/draft/ROUTINE.schema.json +3 -3
  13. package/dist/specs/resources/aip-42/draft/AGENT.schema.json +42 -4
  14. package/dist/specs/resources/aip-45/draft/HARNESS.schema.json +87 -9
  15. package/dist/specs/resources/aip-45/draft/STREAM-EVENTS.schema.json +192 -0
  16. package/dist/specs/resources/aip-46/draft/SessionConfig.schema.json +2 -26
  17. package/dist/specs/resources/aip-47/draft/ROLE.schema.json +93 -1
  18. package/dist/specs/resources/aip-53/draft/APP.schema.json +354 -87
  19. package/dist/specs/resources/aip-54/draft/WS-REF.schema.json +2 -1
  20. package/dist/specs/resources/aip-58/draft/run.schema.json +1 -1
  21. package/dist/specs/resources/aip-6/draft/COMPANY.schema.json +67 -105
  22. package/dist/specs/resources/aip-63/draft/BROWSER.schema.json +54 -12
  23. package/dist/specs/resources/aip-63/draft/RECIPE.schema.json +93 -0
  24. package/dist/specs/resources/aip-63/draft/RECORDING.schema.json +2 -0
  25. package/dist/specs/resources/{pending/memory → aip-72}/draft/MEMORY.schema.json +115 -62
  26. package/dist/specs/resources/aip-9/draft/OPERATOR.schema.json +229 -138
  27. package/package.json +3 -3
  28. package/dist/specs/resources/pending/harness/HARNESS.schema.json +0 -254
  29. package/dist/specs/resources/pending/services/SERVICES.schema.json +0 -55
@@ -2,11 +2,14 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://agentproto.sh/schemas/aip-9/OPERATOR.schema.json",
4
4
  "title": "OPERATOR.md frontmatter (AIP-9)",
5
- "description": "Validates the YAML frontmatter portion of an AIP-9 OPERATOR.md manifest.",
5
+ "description": "Validates the YAML frontmatter portion of an AIP-9 OPERATOR.md manifest: an agent holding a role in an organization. Every field it shares with an AIP-42 AGENT.md is a $ref into AGENT.schema.json (never a copy, never allOf over two closed schemas), so a change to the AGENT field reaches the operator unchanged. The operator-owned fields are role, home, reports_to, participation, capabilities, runtime and profile. Fields marked deprecated are accepted for one minor version and read as their replacement.",
6
6
  "type": "object",
7
- "required": ["name", "id", "persona_summary", "version", "profile"],
7
+ "required": ["name", "id", "persona_summary"],
8
8
  "additionalProperties": false,
9
9
  "properties": {
10
+ "schema": {
11
+ "const": "operator/v1"
12
+ },
10
13
  "name": {
11
14
  "type": "string",
12
15
  "minLength": 1,
@@ -18,7 +21,7 @@
18
21
  "minLength": 2,
19
22
  "maxLength": 64,
20
23
  "pattern": "^[a-z][a-z0-9-]*[a-z0-9]$",
21
- "description": "Machine identifier and dispatch slug. Lowercase, digits, dashes."
24
+ "description": "The operator slug: machine identifier, dispatch slug and the body of its `operator:<slug>` compact ref. Lowercase, digits, dashes. The effective AGENT it resolves into takes this id."
22
25
  },
23
26
  "persona_summary": {
24
27
  "type": "string",
@@ -26,113 +29,127 @@
26
29
  "maxLength": 280,
27
30
  "description": "One-sentence role description, written for a teammate to read at a glance."
28
31
  },
29
- "version": {
30
- "type": "string",
31
- "pattern": "^\\d+\\.\\d+\\.\\d+(?:[-+][a-zA-Z0-9.-]+)?$",
32
- "description": "Spec version of THIS file. Bump on breaking change."
33
- },
34
32
  "entry": {
35
33
  "type": "string",
36
34
  "description": "Relative path to the implementation file (e.g. operator.ts)."
37
35
  },
38
- "profile": {
39
- "type": "object",
40
- "required": ["role", "voice", "boundaries"],
41
- "additionalProperties": false,
42
- "properties": {
43
- "role": {
44
- "type": "string",
45
- "minLength": 1,
46
- "maxLength": 1000,
47
- "description": "Job title and primary responsibility."
48
- },
49
- "voice": {
50
- "type": "string",
51
- "minLength": 1,
52
- "maxLength": 1000,
53
- "description": "Tone, register, and pronoun stance."
54
- },
55
- "boundaries": {
56
- "type": "array",
57
- "minItems": 0,
58
- "items": { "type": "string", "maxLength": 500 },
59
- "description": "Imperative MUST-NOT rules. Surface in every system-prompt synthesis."
60
- }
61
- }
36
+
37
+ "version": { "$ref": "https://agentproto.sh/schemas/aip-42/AGENT.schema.json#/properties/version" },
38
+ "description": { "$ref": "https://agentproto.sh/schemas/aip-42/AGENT.schema.json#/properties/description" },
39
+ "extends": {
40
+ "$ref": "https://agentproto.sh/schemas/aip-42/AGENT.schema.json#/properties/extends",
41
+ "description": "The base AGENT this operator builds on (merge step 1). It resolves to an AGENT only, never to another operator."
62
42
  },
63
- "skills": {
43
+ "model": { "$ref": "https://agentproto.sh/schemas/aip-42/AGENT.schema.json#/properties/model" },
44
+ "identity": { "$ref": "https://agentproto.sh/schemas/aip-42/AGENT.schema.json#/properties/identity" },
45
+ "persona": { "$ref": "https://agentproto.sh/schemas/aip-42/AGENT.schema.json#/properties/persona" },
46
+ "runner": { "$ref": "https://agentproto.sh/schemas/aip-42/AGENT.schema.json#/properties/runner" },
47
+ "tools": {
64
48
  "type": "array",
65
- "items": { "$ref": "#/$defs/skillRef" },
49
+ "items": {
50
+ "anyOf": [
51
+ { "$ref": "https://agentproto.sh/schemas/aip-42/AGENT.schema.json#/properties/tools/items" },
52
+ { "$ref": "#/$defs/legacyScopedToolRef" }
53
+ ]
54
+ },
66
55
  "default": [],
67
- "description": "AIP-3 skill references the operator loads."
56
+ "description": "The AGENT `tools` items, plus the deprecated scoped form `{id, source?, scope?}`."
68
57
  },
69
- "tools": {
58
+ "actions": { "$ref": "https://agentproto.sh/schemas/aip-42/AGENT.schema.json#/properties/actions" },
59
+ "skills": {
70
60
  "type": "array",
71
- "items": { "$ref": "#/$defs/toolRef" },
61
+ "items": {
62
+ "anyOf": [
63
+ { "$ref": "https://agentproto.sh/schemas/aip-42/AGENT.schema.json#/properties/skills/items" },
64
+ { "$ref": "#/$defs/legacySkillRef" }
65
+ ]
66
+ },
72
67
  "default": [],
73
- "description": "AIP-14 tool refs and MCP server bindings the operator may invoke."
68
+ "description": "The AGENT `skills` items, plus the deprecated pinned form `{id, source?, version?, allow?}`."
69
+ },
70
+ "workflows": { "$ref": "https://agentproto.sh/schemas/aip-42/AGENT.schema.json#/properties/workflows" },
71
+ "routines": { "$ref": "https://agentproto.sh/schemas/aip-42/AGENT.schema.json#/properties/routines" },
72
+ "delegates_to": {
73
+ "$ref": "https://agentproto.sh/schemas/aip-42/AGENT.schema.json#/properties/delegates_to",
74
+ "description": "Agents or operators this operator may spawn or dispatch to. Never roles."
74
75
  },
75
76
  "memory": {
76
- "type": "object",
77
- "required": ["kind"],
78
- "additionalProperties": false,
79
- "properties": {
80
- "kind": {
81
- "enum": ["none", "thread", "operator-context", "external"],
82
- "description": "Memory scope. Default 'thread' for stateless workflows; 'operator-context' for long-running roles."
83
- },
84
- "policy": {
85
- "enum": ["append-only", "redactable", "summarising"],
86
- "default": "summarising"
87
- },
88
- "share_with": {
89
- "type": "array",
90
- "items": { "type": "string", "pattern": "^[a-z][a-z0-9-]*[a-z0-9]$" },
91
- "default": [],
92
- "description": "Operator ids granted READ access to this operator's memory."
93
- },
94
- "external": {
77
+ "anyOf": [
78
+ { "$ref": "https://agentproto.sh/schemas/aip-42/AGENT.schema.json#/properties/memory" },
79
+ { "$ref": "#/$defs/legacyMemory" }
80
+ ],
81
+ "description": "The AGENT `memory` config. The items are owned by the operator, not by a session (AIP-72 `operator` anchor). The legacy `{kind, policy, share_with, external}` form is deprecated."
82
+ },
83
+ "governance": {
84
+ "anyOf": [
85
+ { "$ref": "https://agentproto.sh/schemas/aip-42/AGENT.schema.json#/properties/governance" },
86
+ { "$ref": "#/$defs/legacyGovernance" }
87
+ ],
88
+ "description": "The AIP-7 governance binding of the AGENT. The legacy inline `{policies, audit_log, autonomy}` object is deprecated: policies go to `policy`, autonomy to `autonomy`."
89
+ },
90
+ "policy": {
91
+ "$ref": "https://agentproto.sh/schemas/aip-42/AGENT.schema.json#/properties/policy",
92
+ "description": "The AIP-38 policy bound on THIS operator. A role never changes it (AIP-47); a node chain composes with it."
93
+ },
94
+ "traits": { "$ref": "https://agentproto.sh/schemas/aip-42/AGENT.schema.json#/properties/traits" },
95
+ "autonomy": {
96
+ "$ref": "https://agentproto.sh/schemas/aip-42/AGENT.schema.json#/properties/autonomy",
97
+ "description": "0 (always asks) to 10. 0 is the former `gated`, 5 `supervised`, 10 `autonomous`. At 0 the operator is not proactive."
98
+ },
99
+ "boundaries": { "$ref": "https://agentproto.sh/schemas/aip-42/AGENT.schema.json#/properties/boundaries" },
100
+ "on": { "$ref": "https://agentproto.sh/schemas/aip-42/AGENT.schema.json#/properties/on" },
101
+ "publish": { "$ref": "https://agentproto.sh/schemas/aip-42/AGENT.schema.json#/properties/publish" },
102
+ "tags": { "$ref": "https://agentproto.sh/schemas/aip-42/AGENT.schema.json#/properties/tags" },
103
+ "metadata": { "$ref": "https://agentproto.sh/schemas/aip-42/AGENT.schema.json#/properties/metadata" },
104
+
105
+ "role": {
106
+ "description": "The AIP-47 role this operator holds. A bare string is `{ref}`. Optional for one minor version: a reader without `role` falls back to `metadata.roleSlug`, then to `profile.role` when that value is a role slug that resolves, and emits a warning (`role_fallback`). Required after the alias period.",
107
+ "oneOf": [
108
+ { "type": "string", "minLength": 1 },
109
+ {
95
110
  "type": "object",
96
- "required": ["uri"],
111
+ "required": ["ref"],
97
112
  "additionalProperties": false,
98
113
  "properties": {
99
- "uri": { "type": "string" },
100
- "namespace": { "type": "string" }
114
+ "ref": {
115
+ "type": "string",
116
+ "minLength": 1,
117
+ "description": "AIP-54 ref to the ROLE: a slug, `ws://roles/<slug>` or a path to a ROLE.md."
118
+ },
119
+ "bind": {
120
+ "type": "object",
121
+ "additionalProperties": { "$ref": "#/$defs/slotValue" },
122
+ "description": "Slot name -> value. A key MUST name a slot the role declares, and the value MUST match the slot's declared type (checked against the role, not by this schema)."
123
+ },
124
+ "with": {
125
+ "type": "object",
126
+ "additionalProperties": { "type": ["string", "number", "boolean"] },
127
+ "description": "Rare scalar parameters the role declares. Never refs, never prose."
128
+ }
101
129
  }
102
130
  }
103
- }
131
+ ]
104
132
  },
105
- "governance": {
106
- "type": "object",
107
- "required": ["audit_log", "autonomy"],
108
- "additionalProperties": false,
109
- "properties": {
110
- "policies": {
111
- "type": "array",
112
- "items": { "type": "string", "pattern": "^policy:[A-Za-z0-9_./-]+$" },
113
- "default": [],
114
- "description": "AIP-7 policy refs the operator MUST consult before privileged actions."
115
- },
116
- "audit_log": {
117
- "type": "string",
118
- "pattern": "^audit:[A-Za-z0-9_./-]+$",
119
- "description": "Audit channel for state transitions, tool calls, memory writes."
120
- },
121
- "autonomy": {
122
- "enum": ["autonomous", "supervised", "gated"],
123
- "description": "Per-turn autonomy class. Default 'supervised'."
124
- }
125
- }
133
+ "home": {
134
+ "$ref": "https://agentproto.sh/schemas/aip-42/AGENT.schema.json#/$defs/anyRef",
135
+ "description": "AIP-54 ref to the AIP-34 workspace node that is the operator's home: the root of its memory and of its default policy. A company node, a guild node, a user root. Not the node of a session: that is the session's `ground`."
126
136
  },
127
- "capabilities": {
128
- "type": "array",
129
- "items": { "type": "string", "pattern": "^[a-z][a-z0-9-]*$" },
130
- "default": [],
131
- "description": "Capability surface the operator declares. Negotiated against runtime offer at registration."
137
+ "reports_to": {
138
+ "type": "string",
139
+ "minLength": 2,
140
+ "maxLength": 64,
141
+ "pattern": "^[a-z][a-z0-9-]*[a-z0-9]$",
142
+ "description": "Slug of the operator this one reports to. Used only when no AIP-22 office seat gives the reporting line; a seat wins."
143
+ },
144
+ "company": {
145
+ "$ref": "https://agentproto.sh/schemas/aip-42/AGENT.schema.json#/$defs/anyRef",
146
+ "deprecated": true,
147
+ "description": "Deprecated: `home`. A ref to an AIP-6 COMPANY.md is read as the company node it sits in."
132
148
  },
133
149
  "participation": {
134
150
  "type": "object",
135
151
  "additionalProperties": false,
152
+ "description": "Conversation participation. Optional: an operator that never joins a shared thread omits it.",
136
153
  "properties": {
137
154
  "mode": {
138
155
  "enum": ["mention-only", "proactive", "silent"],
@@ -145,11 +162,17 @@
145
162
  "reactions": { "type": "boolean", "default": false }
146
163
  }
147
164
  },
165
+ "capabilities": {
166
+ "type": "array",
167
+ "items": { "type": "string", "pattern": "^[a-z][a-z0-9-]*$" },
168
+ "default": [],
169
+ "description": "Capability surface the operator declares. Negotiated against runtime offer at registration."
170
+ },
148
171
  "runtime": {
149
172
  "type": "object",
150
173
  "required": ["kind"],
151
174
  "additionalProperties": false,
152
- "description": "Runtime binding. When kind=in-process (default), the operator runs in the host's in-process agent runtime. When kind=agent-cli, turns are dispatched to a spawned AIP-45 harness subprocess (Hermes, Claude Code, OpenCode, ...).",
175
+ "description": "Portable runtime binding only: kind, harness ref and AIP-45-validated config. The session preset, the posture and the auth profile are host configuration (AIP-46) and are never written here. When kind=in-process (default), the operator runs as a per-request persona in the host's shared in-process shell. When kind=agent-cli, turns go to a spawned AIP-45 harness session.",
153
176
  "properties": {
154
177
  "kind": {
155
178
  "enum": ["in-process", "agent-cli"],
@@ -162,6 +185,8 @@
162
185
  "session": {
163
186
  "type": "object",
164
187
  "additionalProperties": false,
188
+ "deprecated": true,
189
+ "description": "Deprecated: session lifetime and idle policy are owned by AIP-46 and the host. A host MAY read this as a hint during the alias period.",
165
190
  "properties": {
166
191
  "mode": { "enum": ["ephemeral", "persistent", "resumable"] },
167
192
  "idle_timeout_ms": { "type": "integer", "minimum": 1000 }
@@ -170,7 +195,7 @@
170
195
  "config": {
171
196
  "type": "object",
172
197
  "additionalProperties": false,
173
- "description": "Per-runtime configuration that the host applies when spawning / dispatching to the bound AIP-45 manifest. The host MUST validate every entry against the manifest's declared `modes` / `options` / `continuation.supported`; unknown ids are a hard load-time error.",
198
+ "description": "Per-runtime configuration that the host applies when spawning / dispatching to the bound AIP-45 manifest (layer 3 of the AIP-46 session config). The host MUST validate every entry against the manifest's declared `modes` / `options` / `continuation.supported`; unknown ids are a hard load-time error.",
174
199
  "properties": {
175
200
  "mode": {
176
201
  "type": "string",
@@ -179,7 +204,7 @@
179
204
  "options": {
180
205
  "type": "object",
181
206
  "additionalProperties": true,
182
- "description": "Map of manifest-declared option id → value. Each value MUST satisfy the option's declared type / enum / min / max. Unknown ids are rejected at load time."
207
+ "description": "Map of manifest-declared option id -> value. Each value MUST satisfy the option's declared type / enum / min / max. Unknown ids are rejected at load time."
183
208
  },
184
209
  "continuation": {
185
210
  "type": "string",
@@ -190,27 +215,53 @@
190
215
  }
191
216
  }
192
217
  },
193
- "tags": {
194
- "type": "array",
195
- "items": { "type": "string", "pattern": "^[a-z][a-z0-9-]*$" },
196
- "default": []
197
- },
198
- "metadata": {
218
+ "profile": {
199
219
  "type": "object",
200
- "additionalProperties": true,
201
- "default": {}
220
+ "additionalProperties": false,
221
+ "description": "Position prose. `role` is the job title and responsibility as a person would write it on a door plate; it is not a role ref (that is the top-level `role`).",
222
+ "properties": {
223
+ "role": {
224
+ "type": "string",
225
+ "minLength": 1,
226
+ "maxLength": 1000,
227
+ "description": "Position / title prose."
228
+ },
229
+ "voice": {
230
+ "type": "string",
231
+ "minLength": 1,
232
+ "maxLength": 1000,
233
+ "deprecated": true,
234
+ "description": "Deprecated: tone and register belong to the AIP-25 persona (`persona`). A reader folds it into an inline persona and warns."
235
+ },
236
+ "boundaries": {
237
+ "type": "array",
238
+ "items": { "type": "string", "maxLength": 500 },
239
+ "deprecated": true,
240
+ "description": "Deprecated: dropped from the shape; use the top-level `boundaries`. A reader folds the entries into `boundaries` (union, dedupe) and warns."
241
+ }
242
+ }
202
243
  }
203
244
  },
204
245
  "allOf": [
205
246
  {
247
+ "description": "A gated operator (autonomy 0, or the deprecated governance.autonomy: gated) is never proactive.",
206
248
  "if": {
207
- "properties": {
208
- "governance": {
209
- "properties": { "autonomy": { "const": "gated" } },
249
+ "anyOf": [
250
+ {
251
+ "properties": { "autonomy": { "const": 0 } },
210
252
  "required": ["autonomy"]
253
+ },
254
+ {
255
+ "properties": {
256
+ "governance": {
257
+ "type": "object",
258
+ "properties": { "autonomy": { "const": "gated" } },
259
+ "required": ["autonomy"]
260
+ }
261
+ },
262
+ "required": ["governance"]
211
263
  }
212
- },
213
- "required": ["governance"]
264
+ ]
214
265
  },
215
266
  "then": {
216
267
  "properties": {
@@ -244,54 +295,94 @@
244
295
  }
245
296
  ],
246
297
  "$defs": {
247
- "skillRef": {
298
+ "slotValue": {
248
299
  "anyOf": [
249
- { "type": "string", "pattern": "^[a-z][a-z0-9-]*[a-z0-9]$" },
250
- {
300
+ { "$ref": "https://agentproto.sh/schemas/aip-42/AGENT.schema.json#/$defs/anyRef" },
301
+ { "$ref": "https://agentproto.sh/schemas/aip-42/AGENT.schema.json#/properties/tools/items" }
302
+ ],
303
+ "description": "A value bound to a role slot: an AIP-54 ref, or a tool ref (the AIP-42 `tools` item form)."
304
+ },
305
+ "legacyScopedToolRef": {
306
+ "type": "object",
307
+ "required": ["id"],
308
+ "additionalProperties": false,
309
+ "description": "Deprecated: an AIP-14 tool narrowed for this operator.",
310
+ "properties": {
311
+ "id": { "type": "string" },
312
+ "source": { "type": "string" },
313
+ "scope": {
251
314
  "type": "object",
252
- "required": ["id"],
253
315
  "additionalProperties": false,
254
316
  "properties": {
255
- "id": { "type": "string", "pattern": "^[a-z][a-z0-9-]*[a-z0-9]$" },
256
- "source": { "type": "string" },
257
- "version": { "type": "string" },
258
- "allow": { "type": "array", "items": { "type": "string" } }
317
+ "workspace": { "type": "string" },
318
+ "network": { "type": "array", "items": { "type": "string" } },
319
+ "secrets": { "type": "array", "items": { "type": "string" } }
259
320
  }
260
321
  }
261
- ]
322
+ }
262
323
  },
263
- "toolRef": {
264
- "anyOf": [
265
- { "type": "string", "pattern": "^[a-z][a-z0-9-]*[a-z0-9]$" },
266
- {
267
- "type": "object",
268
- "required": ["id"],
269
- "additionalProperties": false,
270
- "properties": {
271
- "id": { "type": "string" },
272
- "source": { "type": "string" },
273
- "scope": {
274
- "type": "object",
275
- "additionalProperties": false,
276
- "properties": {
277
- "workspace": { "type": "string" },
278
- "network": { "type": "array", "items": { "type": "string" } },
279
- "secrets": { "type": "array", "items": { "type": "string" } }
280
- }
281
- }
282
- }
324
+ "legacySkillRef": {
325
+ "type": "object",
326
+ "required": ["id"],
327
+ "additionalProperties": false,
328
+ "description": "Deprecated: an AIP-3 skill pinned for this operator.",
329
+ "properties": {
330
+ "id": { "type": "string", "pattern": "^[a-z][a-z0-9-]*[a-z0-9]$" },
331
+ "source": { "type": "string" },
332
+ "version": { "type": "string" },
333
+ "allow": { "type": "array", "items": { "type": "string" } }
334
+ }
335
+ },
336
+ "legacyMemory": {
337
+ "type": "object",
338
+ "required": ["kind"],
339
+ "additionalProperties": false,
340
+ "description": "Deprecated memory form. `kind` maps onto the AGENT memory config (AIP-9 section Memory); `share_with` becomes AIP-38 read grants on the memory store.",
341
+ "properties": {
342
+ "kind": {
343
+ "enum": ["none", "thread", "operator-context", "external"]
283
344
  },
284
- {
345
+ "policy": {
346
+ "enum": ["append-only", "redactable", "summarising"],
347
+ "default": "summarising"
348
+ },
349
+ "share_with": {
350
+ "type": "array",
351
+ "items": { "type": "string", "pattern": "^[a-z][a-z0-9-]*[a-z0-9]$" },
352
+ "default": [],
353
+ "deprecated": true,
354
+ "description": "Operator ids granted READ access to this operator's memory. Deprecated toward AIP-38 read grants."
355
+ },
356
+ "external": {
285
357
  "type": "object",
286
- "required": ["kind", "server"],
358
+ "required": ["uri"],
287
359
  "additionalProperties": false,
288
360
  "properties": {
289
- "kind": { "const": "mcp" },
290
- "server": { "type": "string" },
291
- "allow": { "type": "array", "items": { "type": "string" } }
361
+ "uri": { "type": "string" },
362
+ "namespace": { "type": "string" }
292
363
  }
293
364
  }
294
- ]
365
+ }
366
+ },
367
+ "legacyGovernance": {
368
+ "type": "object",
369
+ "required": ["audit_log", "autonomy"],
370
+ "additionalProperties": false,
371
+ "description": "Deprecated inline governance object.",
372
+ "properties": {
373
+ "policies": {
374
+ "type": "array",
375
+ "items": { "type": "string", "pattern": "^policy:[A-Za-z0-9_./-]+$" },
376
+ "default": []
377
+ },
378
+ "audit_log": {
379
+ "type": "string",
380
+ "pattern": "^audit:[A-Za-z0-9_./-]+$"
381
+ },
382
+ "autonomy": {
383
+ "enum": ["autonomous", "supervised", "gated"]
384
+ }
385
+ }
295
386
  }
296
387
  }
297
388
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentproto/corpus-cli",
3
- "version": "0.11.3",
3
+ "version": "0.11.5",
4
4
  "description": "@agentproto/corpus-cli — the `corpus` binary. Validate, lint, and operate an AIP-10 corpus workspace from the command line. Local-topology host for @agentproto/corpus — pair with a local backing engine (qdrant docker / gbrain) for a fully offline corpus runtime.",
5
5
  "keywords": [
6
6
  "agentproto",
@@ -54,8 +54,8 @@
54
54
  "zod": "^4.6.7",
55
55
  "@agentproto/batch": "0.2.3",
56
56
  "@agentproto/cli-exec": "0.1.2",
57
- "@agentproto/corpus": "0.9.0",
58
- "@agentproto/corpus-presets": "0.2.17"
57
+ "@agentproto/corpus": "1.0.1",
58
+ "@agentproto/corpus-presets": "0.2.19"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@types/node": "^25.9.9",