@agentproto/corpus-cli 0.11.1 → 0.11.3
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-11/draft/LESSON.schema.json +2 -2
- package/dist/specs/resources/aip-12/draft/PLAYBOOK.schema.json +2 -1
- package/dist/specs/resources/aip-3/draft/SKILL.schema.json +2 -2
- package/dist/specs/resources/aip-34/draft/EXPORT.schema.json +2 -2
- package/dist/specs/resources/aip-34/draft/LOCK.schema.json +3 -3
- package/dist/specs/resources/aip-34/draft/PRESENCE.schema.json +237 -0
- package/dist/specs/resources/aip-34/draft/TYPES.schema.json +2 -2
- package/dist/specs/resources/aip-34/draft/WORKSPACE.schema.json +26 -0
- package/dist/specs/resources/aip-36/draft/SANDBOX.schema.json +8 -1
- package/dist/specs/resources/aip-38/draft/POLICY.schema.json +14 -3
- package/dist/specs/resources/aip-4/draft/DESIGN.schema.json +2 -2
- package/dist/specs/resources/aip-43/draft/Selector.schema.json +245 -0
- package/dist/specs/resources/aip-45/draft/{AGENT-CLI.schema.json → HARNESS.schema.json} +82 -8
- package/dist/specs/resources/aip-46/draft/SessionConfig.schema.json +293 -0
- package/dist/specs/resources/aip-48/draft/MultiAgentRuntime.schema.json +3 -3
- package/dist/specs/resources/aip-53/draft/APP.schema.json +54 -6
- package/dist/specs/resources/aip-6/draft/COMPANY.schema.json +4 -4
- package/dist/specs/resources/aip-62/draft/ATTESTATION.schema.json +11 -4
- package/dist/specs/resources/aip-63/draft/RECORDING.schema.json +2 -2
- package/dist/specs/resources/aip-69/draft/AuthProfile.schema.json +127 -0
- package/dist/specs/resources/aip-7/draft/GOVERNANCE.schema.json +436 -105
- package/dist/specs/resources/aip-9/draft/OPERATOR.schema.json +2 -2
- package/dist/specs/resources/pending/memory/draft/MEMORY.schema.json +1 -1
- package/dist/specs/resources/pending/services/SERVICES.schema.json +22 -2
- package/package.json +3 -3
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://agentproto.sh/schemas/aip-43/Selector.schema.json",
|
|
4
|
+
"title": "AIP-43 saved Selector",
|
|
5
|
+
"description": "A named, ordered, declarative selection over one registry family (2026-10-23 saved-selectors amendment). Host-specific keys on the Selector object MUST be prefixed x-; clause kinds are closed except family clauses.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"id",
|
|
9
|
+
"family"
|
|
10
|
+
],
|
|
11
|
+
"additionalProperties": false,
|
|
12
|
+
"patternProperties": {
|
|
13
|
+
"^x-": {}
|
|
14
|
+
},
|
|
15
|
+
"properties": {
|
|
16
|
+
"id": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"pattern": "^[a-z0-9][a-z0-9-]{0,62}$"
|
|
19
|
+
},
|
|
20
|
+
"family": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"minLength": 1
|
|
23
|
+
},
|
|
24
|
+
"label": {
|
|
25
|
+
"type": "string"
|
|
26
|
+
},
|
|
27
|
+
"include": {
|
|
28
|
+
"type": "array",
|
|
29
|
+
"items": {
|
|
30
|
+
"$ref": "#/$defs/Clause"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"exclude": {
|
|
34
|
+
"type": "array",
|
|
35
|
+
"items": {
|
|
36
|
+
"$ref": "#/$defs/Clause"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"ids": {
|
|
40
|
+
"type": "array",
|
|
41
|
+
"items": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"minLength": 1
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"order": {
|
|
47
|
+
"oneOf": [
|
|
48
|
+
{
|
|
49
|
+
"type": "string",
|
|
50
|
+
"minLength": 1
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"type": "object",
|
|
54
|
+
"required": [
|
|
55
|
+
"by"
|
|
56
|
+
],
|
|
57
|
+
"additionalProperties": false,
|
|
58
|
+
"properties": {
|
|
59
|
+
"by": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"minLength": 1
|
|
62
|
+
},
|
|
63
|
+
"direction": {
|
|
64
|
+
"enum": [
|
|
65
|
+
"asc",
|
|
66
|
+
"desc"
|
|
67
|
+
],
|
|
68
|
+
"default": "asc"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"default": "listed"
|
|
74
|
+
},
|
|
75
|
+
"rotation": {
|
|
76
|
+
"enum": [
|
|
77
|
+
"priority",
|
|
78
|
+
"round-robin",
|
|
79
|
+
"least-recently-limited"
|
|
80
|
+
],
|
|
81
|
+
"default": "priority"
|
|
82
|
+
},
|
|
83
|
+
"revision": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"description": "Content digest of this revision, set by the host on save."
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"$defs": {
|
|
89
|
+
"Clause": {
|
|
90
|
+
"oneOf": [
|
|
91
|
+
{
|
|
92
|
+
"type": "object",
|
|
93
|
+
"required": [
|
|
94
|
+
"id"
|
|
95
|
+
],
|
|
96
|
+
"additionalProperties": false,
|
|
97
|
+
"properties": {
|
|
98
|
+
"id": {
|
|
99
|
+
"type": "string",
|
|
100
|
+
"minLength": 1
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"type": "object",
|
|
106
|
+
"required": [
|
|
107
|
+
"tag"
|
|
108
|
+
],
|
|
109
|
+
"additionalProperties": false,
|
|
110
|
+
"properties": {
|
|
111
|
+
"tag": {
|
|
112
|
+
"type": "string",
|
|
113
|
+
"minLength": 1
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"type": "object",
|
|
119
|
+
"required": [
|
|
120
|
+
"capability"
|
|
121
|
+
],
|
|
122
|
+
"additionalProperties": false,
|
|
123
|
+
"properties": {
|
|
124
|
+
"capability": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"minLength": 1
|
|
127
|
+
},
|
|
128
|
+
"eq": {},
|
|
129
|
+
"in": {
|
|
130
|
+
"type": "array"
|
|
131
|
+
},
|
|
132
|
+
"lte": {
|
|
133
|
+
"type": "number"
|
|
134
|
+
},
|
|
135
|
+
"gte": {
|
|
136
|
+
"type": "number"
|
|
137
|
+
},
|
|
138
|
+
"exists": {
|
|
139
|
+
"type": "boolean"
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
"anyOf": [
|
|
143
|
+
{
|
|
144
|
+
"required": [
|
|
145
|
+
"eq"
|
|
146
|
+
]
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"required": [
|
|
150
|
+
"in"
|
|
151
|
+
]
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"required": [
|
|
155
|
+
"lte"
|
|
156
|
+
]
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"required": [
|
|
160
|
+
"gte"
|
|
161
|
+
]
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"required": [
|
|
165
|
+
"exists"
|
|
166
|
+
]
|
|
167
|
+
}
|
|
168
|
+
]
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"type": "object",
|
|
172
|
+
"required": [
|
|
173
|
+
"selector"
|
|
174
|
+
],
|
|
175
|
+
"additionalProperties": false,
|
|
176
|
+
"properties": {
|
|
177
|
+
"selector": {
|
|
178
|
+
"type": "string",
|
|
179
|
+
"pattern": "^[a-z0-9][a-z0-9-]{0,62}$"
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"type": "object",
|
|
185
|
+
"required": [
|
|
186
|
+
"all"
|
|
187
|
+
],
|
|
188
|
+
"additionalProperties": false,
|
|
189
|
+
"properties": {
|
|
190
|
+
"all": {
|
|
191
|
+
"type": "array",
|
|
192
|
+
"minItems": 1,
|
|
193
|
+
"items": {
|
|
194
|
+
"$ref": "#/$defs/Clause"
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"type": "object",
|
|
201
|
+
"required": [
|
|
202
|
+
"kind"
|
|
203
|
+
],
|
|
204
|
+
"not": {
|
|
205
|
+
"anyOf": [
|
|
206
|
+
{
|
|
207
|
+
"required": [
|
|
208
|
+
"id"
|
|
209
|
+
]
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"required": [
|
|
213
|
+
"tag"
|
|
214
|
+
]
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"required": [
|
|
218
|
+
"capability"
|
|
219
|
+
]
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"required": [
|
|
223
|
+
"selector"
|
|
224
|
+
]
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"required": [
|
|
228
|
+
"all"
|
|
229
|
+
]
|
|
230
|
+
}
|
|
231
|
+
]
|
|
232
|
+
},
|
|
233
|
+
"properties": {
|
|
234
|
+
"kind": {
|
|
235
|
+
"type": "string",
|
|
236
|
+
"minLength": 1,
|
|
237
|
+
"description": "A clause kind registered by the selector's family; its meaning is the family's expansion."
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
"additionalProperties": true
|
|
241
|
+
}
|
|
242
|
+
]
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://agentproto.sh/docs/aip-45/
|
|
4
|
-
"title": "
|
|
5
|
-
"description": "JSON Schema for the YAML frontmatter of an AIP-45
|
|
3
|
+
"$id": "https://agentproto.sh/docs/aip-45/HARNESS.schema.json",
|
|
4
|
+
"title": "HARNESS.md frontmatter — harness/v1",
|
|
5
|
+
"description": "JSON Schema for the YAML frontmatter of an AIP-45 HARNESS.md manifest. Sibling of AIP-29 (CLI.md, tool CLIs); covers interactive harnesses (Hermes, Claude Code, OpenCode, Goose, Gemini CLI). Shares install/version/auth blocks with AIP-29 via $ref; binds to AIP-44 ACP for the wire protocol when protocol=acp.",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"additionalProperties": false,
|
|
8
8
|
"required": ["name", "id", "description", "version", "bin", "install", "version_check", "sandbox", "protocol"],
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"items": { "$ref": "https://agentproto.sh/docs/aip-29/CLI.schema.json#/$defs/setupStep" }
|
|
57
57
|
},
|
|
58
58
|
"auth": {
|
|
59
|
-
"$ref": "
|
|
59
|
+
"$ref": "#/$defs/auth"
|
|
60
60
|
},
|
|
61
61
|
"sandbox": {
|
|
62
62
|
"description": "Inherits AIP-36 SANDBOX.md verbatim. Either an inline block or a workspace-relative ref to a SANDBOX.md.",
|
|
@@ -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."
|
|
@@ -109,10 +114,16 @@
|
|
|
109
114
|
"items": { "$ref": "#/$defs/option" },
|
|
110
115
|
"description": "Independent typed knobs the CLI accepts. The host picks any subset per turn via OPERATOR.runtime.config.options. Patches apply in declaration order, AFTER mode patches."
|
|
111
116
|
},
|
|
117
|
+
"gateways": {
|
|
118
|
+
"type": "array",
|
|
119
|
+
"items": { "$ref": "#/$defs/preset" },
|
|
120
|
+
"description": "AIP-45 gateway endpoints this harness can be pointed at (Anthropic/OpenAI-compatible backends). Merged into the gateway catalog (agentproto presets list / list_provider_presets) alongside the built-in registry, deduped by id (built-in wins on collision). Lets an external harness surface a gateway the built-in registry doesn't know about. Replaces the legacy `presets` field; a manifest MUST NOT carry both."
|
|
121
|
+
},
|
|
112
122
|
"presets": {
|
|
113
123
|
"type": "array",
|
|
114
124
|
"items": { "$ref": "#/$defs/preset" },
|
|
115
|
-
"
|
|
125
|
+
"deprecated": true,
|
|
126
|
+
"description": "DEPRECATED: legacy alias for `gateways`, with identical entry fields. Accepted so existing manifests keep loading. A manifest MUST NOT carry both `gateways` and `presets`."
|
|
116
127
|
},
|
|
117
128
|
"continuation": { "$ref": "#/$defs/continuation" },
|
|
118
129
|
"requires": { "$ref": "https://agentproto.sh/docs/aip-29/CLI.schema.json#/properties/requires" },
|
|
@@ -173,6 +184,9 @@
|
|
|
173
184
|
"required": ["capabilities"]
|
|
174
185
|
}
|
|
175
186
|
},
|
|
187
|
+
{
|
|
188
|
+
"not": { "required": ["gateways", "presets"] }
|
|
189
|
+
},
|
|
176
190
|
{
|
|
177
191
|
"if": {
|
|
178
192
|
"type": "object",
|
|
@@ -201,6 +215,66 @@
|
|
|
201
215
|
}
|
|
202
216
|
],
|
|
203
217
|
"$defs": {
|
|
218
|
+
"auth": {
|
|
219
|
+
"type": "object",
|
|
220
|
+
"additionalProperties": false,
|
|
221
|
+
"description": "Auth surface. The `ref`, `state`, `login`, `refresh`, and `expiry` fields follow AIP-29's auth schema verbatim; `methods` is the AIP-45 addition that lists the credential methods the harness can present per billing route.",
|
|
222
|
+
"properties": {
|
|
223
|
+
"ref": { "type": "string", "description": "Workspace-relative path to SECRETS.md (AIP-19)." },
|
|
224
|
+
"state": {
|
|
225
|
+
"type": "object",
|
|
226
|
+
"additionalProperties": false,
|
|
227
|
+
"properties": {
|
|
228
|
+
"paths": { "type": "array", "items": { "type": "string" } },
|
|
229
|
+
"env": { "type": "array", "items": { "type": "string" } }
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
"login": {
|
|
233
|
+
"type": "object",
|
|
234
|
+
"additionalProperties": false,
|
|
235
|
+
"required": ["cmd"],
|
|
236
|
+
"properties": {
|
|
237
|
+
"cmd": { "type": "string" },
|
|
238
|
+
"interactive": { "type": "boolean" },
|
|
239
|
+
"requires_callback_url": { "type": "boolean" },
|
|
240
|
+
"completes_when": {
|
|
241
|
+
"type": "object",
|
|
242
|
+
"additionalProperties": false,
|
|
243
|
+
"required": ["cmd"],
|
|
244
|
+
"properties": {
|
|
245
|
+
"cmd": { "type": "string" },
|
|
246
|
+
"exit_code": { "type": "integer" }
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
"refresh": {
|
|
252
|
+
"type": "object",
|
|
253
|
+
"additionalProperties": false,
|
|
254
|
+
"required": ["cmd"],
|
|
255
|
+
"properties": {
|
|
256
|
+
"cmd": { "type": "string" },
|
|
257
|
+
"every": { "type": "string", "pattern": "^P(?:T)?\\S+$", "description": "ISO-8601 duration." }
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
"expiry": {
|
|
261
|
+
"type": "object",
|
|
262
|
+
"additionalProperties": false,
|
|
263
|
+
"properties": {
|
|
264
|
+
"detect": { "type": "string", "pattern": "^exit_code:\\d+$" }
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
"methods": {
|
|
268
|
+
"type": "object",
|
|
269
|
+
"description": "Optional map from billing route to the credential methods the harness can present on that route. A route key is one of gateways[].id, or the reserved key `default` for the route the harness uses when no gateway is selected. A host selects an auth profile only if the profile's method appears in this list for the session's route. Absent: the host falls back to its own per-harness table and MUST be able to show it.",
|
|
270
|
+
"additionalProperties": {
|
|
271
|
+
"type": "array",
|
|
272
|
+
"minItems": 1,
|
|
273
|
+
"items": { "type": "string", "minLength": 1 }
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
},
|
|
204
278
|
"session": {
|
|
205
279
|
"type": "object",
|
|
206
280
|
"additionalProperties": false,
|
|
@@ -387,16 +461,16 @@
|
|
|
387
461
|
"type": "object",
|
|
388
462
|
"additionalProperties": false,
|
|
389
463
|
"required": ["id", "label", "schemaFlavor", "baseUrl", "keyEnv"],
|
|
390
|
-
"description": "A gateway
|
|
464
|
+
"description": "A gateway this harness can be pointed at: a backend an Anthropic/OpenAI-compatible client can front. Declared in the manifest so the catalog surfaces harness-contributed gateways alongside the built-in registry. No harness projection (env/env_unset/bin_args) here; that stays in modes/options.",
|
|
391
465
|
"properties": {
|
|
392
466
|
"id": {
|
|
393
467
|
"type": "string",
|
|
394
468
|
"minLength": 1,
|
|
395
|
-
"description": "Stable
|
|
469
|
+
"description": "Stable gateway id. SHOULD equal the mode id if the harness projects this gateway as a mode. Catalog dedupes built-in vs harness-declared by id; a harness-declared id colliding with a built-in is ignored in favor of the built-in (registry is source of truth for canonical providers)."
|
|
396
470
|
},
|
|
397
471
|
"label": { "type": "string", "minLength": 1, "description": "Human label for the catalog UI." },
|
|
398
472
|
"description": { "type": "string" },
|
|
399
|
-
"schemaFlavor": { "enum": ["anthropic", "openai"], "description": "API schema flavor
|
|
473
|
+
"schemaFlavor": { "enum": ["anthropic", "openai"], "description": "API schema flavor: selects which harness family can consume the gateway." },
|
|
400
474
|
"baseUrl": { "type": "string", "minLength": 1, "description": "Base URL the client hits." },
|
|
401
475
|
"keyEnv": {
|
|
402
476
|
"type": "string",
|
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://agentproto.sh/schemas/aip-46/SessionConfig.schema.json",
|
|
4
|
+
"title": "AIP-46 SessionConfig, ConfigOverlay and SessionPreset",
|
|
5
|
+
"description": "Normalized per-session configuration (2026-10-23 session-config amendment). Hosts MAY accept additional host-specific keys only under an x- prefix.",
|
|
6
|
+
"$defs": {
|
|
7
|
+
"ConfigOverlay": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"additionalProperties": false,
|
|
10
|
+
"patternProperties": {
|
|
11
|
+
"^x-": {}
|
|
12
|
+
},
|
|
13
|
+
"properties": {
|
|
14
|
+
"harness": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"minLength": 1,
|
|
17
|
+
"description": "AIP-45 harness slug."
|
|
18
|
+
},
|
|
19
|
+
"adapter": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"minLength": 1,
|
|
22
|
+
"deprecated": true,
|
|
23
|
+
"description": "Legacy alias of `harness` (AIP-70). A config MUST NOT carry both."
|
|
24
|
+
},
|
|
25
|
+
"model": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"minLength": 1,
|
|
28
|
+
"description": "Model id, or selector:<id> naming a saved AIP-43 selector."
|
|
29
|
+
},
|
|
30
|
+
"effort": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"minLength": 1
|
|
33
|
+
},
|
|
34
|
+
"posture": {
|
|
35
|
+
"oneOf": [
|
|
36
|
+
{
|
|
37
|
+
"enum": [
|
|
38
|
+
"default",
|
|
39
|
+
"plan",
|
|
40
|
+
"accept-edits",
|
|
41
|
+
"bypass",
|
|
42
|
+
"read-only"
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"type": "object",
|
|
47
|
+
"required": [
|
|
48
|
+
"harnessModeId"
|
|
49
|
+
],
|
|
50
|
+
"additionalProperties": false,
|
|
51
|
+
"properties": {
|
|
52
|
+
"harnessModeId": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"minLength": 1
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
"contextProfile": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"minLength": 1
|
|
63
|
+
},
|
|
64
|
+
"route": {
|
|
65
|
+
"type": "object",
|
|
66
|
+
"required": [
|
|
67
|
+
"gateway"
|
|
68
|
+
],
|
|
69
|
+
"additionalProperties": false,
|
|
70
|
+
"properties": {
|
|
71
|
+
"gateway": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"minLength": 1
|
|
74
|
+
},
|
|
75
|
+
"baseUrl": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"format": "uri"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"access": {
|
|
82
|
+
"type": "object",
|
|
83
|
+
"required": [
|
|
84
|
+
"profileRef"
|
|
85
|
+
],
|
|
86
|
+
"additionalProperties": false,
|
|
87
|
+
"properties": {
|
|
88
|
+
"profileRef": {
|
|
89
|
+
"type": "string",
|
|
90
|
+
"minLength": 1,
|
|
91
|
+
"description": "AIP-69 auth profile id."
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"options": {
|
|
96
|
+
"type": "object",
|
|
97
|
+
"description": "Harness-native AIP-45 options, validated against the harness manifest."
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"not": {
|
|
101
|
+
"required": [
|
|
102
|
+
"harness",
|
|
103
|
+
"adapter"
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"FailureClass": {
|
|
108
|
+
"enum": [
|
|
109
|
+
"rate-limit",
|
|
110
|
+
"quota-exhausted",
|
|
111
|
+
"upstream-5xx",
|
|
112
|
+
"model-unavailable",
|
|
113
|
+
"auth-failed",
|
|
114
|
+
"no-output-stall",
|
|
115
|
+
"harness-crashed"
|
|
116
|
+
]
|
|
117
|
+
},
|
|
118
|
+
"SessionConfig": {
|
|
119
|
+
"type": "object",
|
|
120
|
+
"additionalProperties": false,
|
|
121
|
+
"patternProperties": {
|
|
122
|
+
"^x-": {}
|
|
123
|
+
},
|
|
124
|
+
"properties": {
|
|
125
|
+
"harness": {
|
|
126
|
+
"type": "string",
|
|
127
|
+
"minLength": 1,
|
|
128
|
+
"description": "AIP-45 harness slug."
|
|
129
|
+
},
|
|
130
|
+
"adapter": {
|
|
131
|
+
"type": "string",
|
|
132
|
+
"minLength": 1,
|
|
133
|
+
"deprecated": true,
|
|
134
|
+
"description": "Legacy alias of `harness` (AIP-70). A config MUST NOT carry both."
|
|
135
|
+
},
|
|
136
|
+
"model": {
|
|
137
|
+
"type": "string",
|
|
138
|
+
"minLength": 1,
|
|
139
|
+
"description": "Model id, or selector:<id> naming a saved AIP-43 selector."
|
|
140
|
+
},
|
|
141
|
+
"effort": {
|
|
142
|
+
"type": "string",
|
|
143
|
+
"minLength": 1
|
|
144
|
+
},
|
|
145
|
+
"posture": {
|
|
146
|
+
"oneOf": [
|
|
147
|
+
{
|
|
148
|
+
"enum": [
|
|
149
|
+
"default",
|
|
150
|
+
"plan",
|
|
151
|
+
"accept-edits",
|
|
152
|
+
"bypass",
|
|
153
|
+
"read-only"
|
|
154
|
+
]
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"type": "object",
|
|
158
|
+
"required": [
|
|
159
|
+
"harnessModeId"
|
|
160
|
+
],
|
|
161
|
+
"additionalProperties": false,
|
|
162
|
+
"properties": {
|
|
163
|
+
"harnessModeId": {
|
|
164
|
+
"type": "string",
|
|
165
|
+
"minLength": 1
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
]
|
|
170
|
+
},
|
|
171
|
+
"contextProfile": {
|
|
172
|
+
"type": "string",
|
|
173
|
+
"minLength": 1
|
|
174
|
+
},
|
|
175
|
+
"route": {
|
|
176
|
+
"type": "object",
|
|
177
|
+
"required": [
|
|
178
|
+
"gateway"
|
|
179
|
+
],
|
|
180
|
+
"additionalProperties": false,
|
|
181
|
+
"properties": {
|
|
182
|
+
"gateway": {
|
|
183
|
+
"type": "string",
|
|
184
|
+
"minLength": 1
|
|
185
|
+
},
|
|
186
|
+
"baseUrl": {
|
|
187
|
+
"type": "string",
|
|
188
|
+
"format": "uri"
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
"access": {
|
|
193
|
+
"type": "object",
|
|
194
|
+
"required": [
|
|
195
|
+
"profileRef"
|
|
196
|
+
],
|
|
197
|
+
"additionalProperties": false,
|
|
198
|
+
"properties": {
|
|
199
|
+
"profileRef": {
|
|
200
|
+
"type": "string",
|
|
201
|
+
"minLength": 1,
|
|
202
|
+
"description": "AIP-69 auth profile id."
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
"options": {
|
|
207
|
+
"type": "object",
|
|
208
|
+
"description": "Harness-native AIP-45 options, validated against the harness manifest."
|
|
209
|
+
},
|
|
210
|
+
"retry": {
|
|
211
|
+
"type": "object",
|
|
212
|
+
"required": [
|
|
213
|
+
"on"
|
|
214
|
+
],
|
|
215
|
+
"additionalProperties": false,
|
|
216
|
+
"properties": {
|
|
217
|
+
"on": {
|
|
218
|
+
"type": "array",
|
|
219
|
+
"items": {
|
|
220
|
+
"$ref": "#/$defs/FailureClass"
|
|
221
|
+
},
|
|
222
|
+
"uniqueItems": true
|
|
223
|
+
},
|
|
224
|
+
"maxRetries": {
|
|
225
|
+
"type": "integer",
|
|
226
|
+
"minimum": 0
|
|
227
|
+
},
|
|
228
|
+
"retryAfterToolCalls": {
|
|
229
|
+
"type": "boolean",
|
|
230
|
+
"default": false
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
"fallback": {
|
|
235
|
+
"type": "array",
|
|
236
|
+
"items": {
|
|
237
|
+
"$ref": "#/$defs/ConfigOverlay"
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
"not": {
|
|
242
|
+
"required": [
|
|
243
|
+
"harness",
|
|
244
|
+
"adapter"
|
|
245
|
+
]
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
"SessionPreset": {
|
|
249
|
+
"type": "object",
|
|
250
|
+
"required": [
|
|
251
|
+
"id",
|
|
252
|
+
"config"
|
|
253
|
+
],
|
|
254
|
+
"additionalProperties": false,
|
|
255
|
+
"properties": {
|
|
256
|
+
"id": {
|
|
257
|
+
"type": "string",
|
|
258
|
+
"pattern": "^[a-z0-9][a-z0-9-]{0,62}$"
|
|
259
|
+
},
|
|
260
|
+
"label": {
|
|
261
|
+
"type": "string"
|
|
262
|
+
},
|
|
263
|
+
"tags": {
|
|
264
|
+
"type": "array",
|
|
265
|
+
"items": {
|
|
266
|
+
"type": "string"
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
"extends": {
|
|
270
|
+
"type": "array",
|
|
271
|
+
"items": {
|
|
272
|
+
"type": "string"
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
"defaultFor": {
|
|
276
|
+
"type": "string",
|
|
277
|
+
"minLength": 1
|
|
278
|
+
},
|
|
279
|
+
"agent": {
|
|
280
|
+
"type": "string",
|
|
281
|
+
"minLength": 1
|
|
282
|
+
},
|
|
283
|
+
"config": {
|
|
284
|
+
"$ref": "#/$defs/SessionConfig"
|
|
285
|
+
},
|
|
286
|
+
"policy": {
|
|
287
|
+
"description": "AIP-38 PolicyRef (inline, ref or file)."
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
"$ref": "#/$defs/SessionConfig"
|
|
293
|
+
}
|