@agentproto/corpus-cli 0.11.2 → 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.
Files changed (23) hide show
  1. package/dist/specs/resources/aip-11/draft/LESSON.schema.json +2 -2
  2. package/dist/specs/resources/aip-12/draft/PLAYBOOK.schema.json +2 -1
  3. package/dist/specs/resources/aip-3/draft/SKILL.schema.json +2 -2
  4. package/dist/specs/resources/aip-34/draft/EXPORT.schema.json +2 -2
  5. package/dist/specs/resources/aip-34/draft/LOCK.schema.json +3 -3
  6. package/dist/specs/resources/aip-34/draft/PRESENCE.schema.json +3 -3
  7. package/dist/specs/resources/aip-34/draft/TYPES.schema.json +2 -2
  8. package/dist/specs/resources/aip-34/draft/WORKSPACE.schema.json +1 -1
  9. package/dist/specs/resources/aip-38/draft/POLICY.schema.json +14 -3
  10. package/dist/specs/resources/aip-4/draft/DESIGN.schema.json +2 -2
  11. package/dist/specs/resources/aip-43/draft/Selector.schema.json +245 -0
  12. package/dist/specs/resources/aip-45/draft/{AGENT-CLI.schema.json → HARNESS.schema.json} +77 -8
  13. package/dist/specs/resources/aip-46/draft/SessionConfig.schema.json +293 -0
  14. package/dist/specs/resources/aip-48/draft/MultiAgentRuntime.schema.json +3 -3
  15. package/dist/specs/resources/aip-53/draft/APP.schema.json +35 -6
  16. package/dist/specs/resources/aip-6/draft/COMPANY.schema.json +4 -4
  17. package/dist/specs/resources/aip-62/draft/ATTESTATION.schema.json +11 -4
  18. package/dist/specs/resources/aip-63/draft/RECORDING.schema.json +2 -2
  19. package/dist/specs/resources/aip-69/draft/AuthProfile.schema.json +127 -0
  20. package/dist/specs/resources/aip-7/draft/GOVERNANCE.schema.json +436 -105
  21. package/dist/specs/resources/aip-9/draft/OPERATOR.schema.json +2 -2
  22. package/dist/specs/resources/pending/memory/draft/MEMORY.schema.json +1 -1
  23. package/package.json +3 -3
@@ -8,8 +8,8 @@
8
8
  "additionalProperties": false,
9
9
  "properties": {
10
10
  "schema": {
11
- "const": "learning/v1",
12
- "description": "Spec identifier. Must be the literal string 'learning/v1'."
11
+ "enum": ["lesson/v1", "learning/v1"],
12
+ "description": "Spec identifier. Must be the canonical string 'lesson/v1'. `learning/v1` is accepted as a legacy alias (AIP-70)."
13
13
  },
14
14
  "slug": {
15
15
  "type": "string",
@@ -16,7 +16,8 @@
16
16
  "additionalProperties": false,
17
17
  "properties": {
18
18
  "schema": {
19
- "const": "playbooks/v1"
19
+ "enum": ["playbook/v1", "playbooks/v1"],
20
+ "description": "`playbooks/v1` is accepted as a legacy alias (AIP-70)."
20
21
  },
21
22
  "slug": {
22
23
  "type": "string",
@@ -54,8 +54,8 @@
54
54
  "description": "AIP-3 extensions to the agentskills.io baseline. Runtimes that don't implement AIP-3 MUST preserve this object verbatim (it lives in agentskills.io's `metadata`).",
55
55
  "properties": {
56
56
  "schema": {
57
- "const": "skills/v1",
58
- "description": "Schema dispatch tag. Required for AIP-3 conformance. Pinned to 'skills/v1' for the current spec version."
57
+ "enum": ["skill/v1", "skills/v1"],
58
+ "description": "Schema dispatch tag. Required for AIP-3 conformance. Pinned to 'skill/v1' for the current spec version. `skills/v1` is accepted as a legacy alias (AIP-70)."
59
59
  },
60
60
  "variant": {
61
61
  "enum": ["instruction", "executable", "composite"],
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://agentproto.sh/schemas/aip-34/EXPORT.schema.json",
4
- "title": "EXPORT.md frontmatter — workspace-export/v1 (sealed/hard node digest)",
4
+ "title": "EXPORT.md frontmatter — workspace.export/v1 (sealed/hard node digest)",
5
5
  "description": "Validates the YAML frontmatter portion of an EXPORT.md manifest. A `wall: sealed` or `wall: hard` node's ONLY readable surface for its ancestors: the body is free-form prose (summaries), never raw files.",
6
6
  "type": "object",
7
7
  "required": ["schema", "from", "generated_at"],
8
8
  "additionalProperties": false,
9
9
  "properties": {
10
- "schema": { "const": "workspace-export/v1" },
10
+ "schema": { "enum": ["workspace.export/v1", "workspace-export/v1"], "description": "`workspace-export/v1` is accepted as a legacy alias (AIP-70)." },
11
11
  "from": {
12
12
  "type": "string",
13
13
  "pattern": "^@[a-z0-9][a-z0-9-]*/[a-z0-9][a-z0-9-]*$",
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://agentproto.sh/schemas/aip-34/LOCK.schema.json",
4
- "title": "agentproto.lock — agentproto-lock/v1 (tree-wide app/pack lockfile)",
4
+ "title": "agentproto.lock — workspace.lock/v1 (tree-wide app/pack lockfile)",
5
5
  "description": "Validates agentproto.lock, a plain YAML file (NOT frontmatter — no markdown body) at the tree root. Pins every AIP-53 app and AIP-64 pack installed anywhere in the tree to the exact version, source and attach point it resolved to, so `agentproto workspace check` can flag drift between WORKSPACE.md `apps:` version ranges and what is actually installed.",
6
6
  "type": "object",
7
7
  "required": ["lockfile", "generated"],
8
8
  "additionalProperties": false,
9
9
  "properties": {
10
- "lockfile": { "const": "agentproto-lock/v1" },
10
+ "lockfile": { "enum": ["workspace.lock/v1", "agentproto-lock/v1"], "description": "`agentproto-lock/v1` is accepted as a legacy alias (AIP-70)." },
11
11
  "generated": { "type": "string", "format": "date-time" },
12
12
  "apps": {
13
13
  "type": "array",
@@ -64,7 +64,7 @@
64
64
  },
65
65
  "digest": {
66
66
  "type": "string",
67
- "pattern": "^agentproto-pack-digest/v1:.+$"
67
+ "pattern": "^review.pack-digest/v1:.+$"
68
68
  },
69
69
  "attach": {
70
70
  "type": "string",
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://agentproto.sh/schemas/aip-34/PRESENCE.schema.json",
4
- "title": "PRESENCE.md frontmatter (AIP-34, presence/v1)",
5
- "description": "Validates the YAML frontmatter of a presence/v1 document: the editorial and channel policy of one workspace node (who it talks to, about what, where, how often, in which words). The voice itself lives in the AIP-25 PERSONA.md named by `persona`. The body is markdown and is not validated.",
4
+ "title": "PRESENCE.md frontmatter (AIP-34, workspace.presence/v1)",
5
+ "description": "Validates the YAML frontmatter of a workspace.presence/v1 document: the editorial and channel policy of one workspace node (who it talks to, about what, where, how often, in which words). The voice itself lives in the AIP-25 PERSONA.md named by `persona`. The body is markdown and is not validated.",
6
6
  "type": "object",
7
7
  "required": ["schema", "name", "title", "description", "version", "status"],
8
8
  "additionalProperties": false,
@@ -93,7 +93,7 @@
93
93
  }
94
94
  },
95
95
  "properties": {
96
- "schema": { "const": "presence/v1" },
96
+ "schema": { "enum": ["workspace.presence/v1", "presence/v1"], "description": "`presence/v1` is accepted as a legacy alias (AIP-70)." },
97
97
  "name": { "$ref": "#/$defs/kebab" },
98
98
  "title": { "type": "string", "minLength": 1, "maxLength": 120 },
99
99
  "description": { "type": "string", "minLength": 1, "maxLength": 2000 },
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://agentproto.sh/schemas/aip-34/TYPES.schema.json",
4
- "title": "TYPES.md frontmatter — workspace-types/v1 (tree node-type registry)",
4
+ "title": "TYPES.md frontmatter — workspace.types/v1 (tree node-type registry)",
5
5
  "description": "Validates the YAML frontmatter portion of a TYPES.md manifest. Exactly one per tree, at the root. Declares the node `type` values a workspace/v2 WORKSPACE.md may use, their allowed parent types, their default wall level, required sibling files, and a 'starter' shape a `ws new` command materializes. Each entry conceptually compiles to an AIP-40 EXTENSION.md; this file is the authoring surface.",
6
6
  "type": "object",
7
7
  "required": ["schema", "types"],
8
8
  "additionalProperties": false,
9
9
  "properties": {
10
- "schema": { "const": "workspace-types/v1" },
10
+ "schema": { "enum": ["workspace.types/v1", "workspace-types/v1"], "description": "`workspace-types/v1` is accepted as a legacy alias (AIP-70)." },
11
11
  "types": {
12
12
  "type": "object",
13
13
  "minProperties": 1,
@@ -51,7 +51,7 @@
51
51
  },
52
52
  "presence": {
53
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."
54
+ "description": "PRESENCE.md block (workspace.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
55
  },
56
56
  "identity": { "$ref": "#/$defs/identityRefBlock" },
57
57
  "wall": {
@@ -68,6 +68,11 @@
68
68
  "$ref": "#/$defs/identityRefEntry",
69
69
  "description": "AIP-23 identity-ref. Schemes: operator://, user://, org://, guild://, bot://, group://, role://, *."
70
70
  },
71
+ "effect": {
72
+ "enum": ["allow", "deny"],
73
+ "default": "allow",
74
+ "description": "Grant effect. A matching `deny` wins over any allow in any composed policy (added 2026-10-23). Default `allow`."
75
+ },
71
76
  "actions": {
72
77
  "type": "array",
73
78
  "minItems": 1,
@@ -131,11 +136,12 @@
131
136
  "type": "object",
132
137
  "required": ["kind", "value"],
133
138
  "additionalProperties": true,
139
+ "not": { "required": ["per", "window"] },
134
140
  "properties": {
135
141
  "kind": {
136
142
  "type": "string",
137
143
  "minLength": 1,
138
- "description": "Limit kind. Standard: `max-concurrent-sandboxes`, `rate-tool-calls`, `max-egress-bytes-per-day`. Host-extensible."
144
+ "description": "Limit kind. Standard: `max-concurrent-sandboxes`, `rate-tool-calls`, `max-egress-bytes-per-day`, `spend-usd`. Host-extensible. For `spend-usd`, the USD ceiling accumulates the `costUsd` (AIP-46) of each `model:invoke` in the window."
139
145
  },
140
146
  "value": {
141
147
  "type": "number",
@@ -143,11 +149,16 @@
143
149
  },
144
150
  "scope": {
145
151
  "type": "string",
146
- "description": "Per what? `user`, `workspace`, `org`, host-specific."
152
+ "description": "Per what? `user`, `workspace`, `org`, `session`, `auth-profile`, host-specific. For `spend-usd`, `session` aggregates over the session lineage (successor declared via `succeeds`, or continue-fresh handoff); `auth-profile` is the hard cap across all sessions."
147
153
  },
148
154
  "per": {
149
155
  "enum": ["second", "minute", "hour", "day"],
150
- "description": "For rate-style limits."
156
+ "description": "For rate-style limits. Mutually exclusive with `window`."
157
+ },
158
+ "window": {
159
+ "type": "string",
160
+ "pattern": "^P(?=.)(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+(?:\\.\\d+)?S)?)?$",
161
+ "description": "Rolling window as an ISO-8601 duration, e.g. `PT5H` or `P7D`. ISO-8601 is canonical; a host MAY accept shorthand input (`5h`, `7d`) but MUST normalize before storing or evaluating. Mutually exclusive with `per` (added 2026-10-23)."
151
162
  },
152
163
  "applies_to": {
153
164
  "type": "array",
@@ -8,8 +8,8 @@
8
8
  "additionalProperties": false,
9
9
  "properties": {
10
10
  "schema": {
11
- "const": "designkit/v1",
12
- "description": "Pins the registry schema this kit conforms to. Required for registry submission."
11
+ "enum": ["design/v1", "designkit/v1"],
12
+ "description": "Pins the registry schema this kit conforms to. Required for registry submission. `designkit/v1` is accepted as a legacy alias (AIP-70)."
13
13
  },
14
14
  "kit": {
15
15
  "type": "string",
@@ -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/AGENT-CLI.schema.json",
4
- "title": "AGENT-CLI.md frontmatter — agentcli-interactive/v1",
5
- "description": "JSON Schema for the YAML frontmatter of an AIP-45 AGENT-CLI.md manifest. Sibling of AIP-29 (CLI.md, tool CLIs); covers interactive agent CLIs (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.",
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": "https://agentproto.sh/docs/aip-29/CLI.schema.json#/$defs/auth"
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.",
@@ -114,10 +114,16 @@
114
114
  "items": { "$ref": "#/$defs/option" },
115
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."
116
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
+ },
117
122
  "presets": {
118
123
  "type": "array",
119
124
  "items": { "$ref": "#/$defs/preset" },
120
- "description": "AIP-45 gateway presets this adapter can drive (Anthropic/OpenAI-compatible backends). Merged into the provider-preset catalog (agentproto presets list / list_provider_presets) alongside the built-in registry, deduped by id (built-in wins on collision). Lets an external adapter surface a gateway the built-in registry doesn't know about."
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`."
121
127
  },
122
128
  "continuation": { "$ref": "#/$defs/continuation" },
123
129
  "requires": { "$ref": "https://agentproto.sh/docs/aip-29/CLI.schema.json#/properties/requires" },
@@ -178,6 +184,9 @@
178
184
  "required": ["capabilities"]
179
185
  }
180
186
  },
187
+ {
188
+ "not": { "required": ["gateways", "presets"] }
189
+ },
181
190
  {
182
191
  "if": {
183
192
  "type": "object",
@@ -206,6 +215,66 @@
206
215
  }
207
216
  ],
208
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
+ },
209
278
  "session": {
210
279
  "type": "object",
211
280
  "additionalProperties": false,
@@ -392,16 +461,16 @@
392
461
  "type": "object",
393
462
  "additionalProperties": false,
394
463
  "required": ["id", "label", "schemaFlavor", "baseUrl", "keyEnv"],
395
- "description": "A gateway preset this adapter can drive — a backend an Anthropic/OpenAI-compatible client can front. Declared in the manifest so the catalog surfaces adapter-contributed presets alongside the built-in registry. No adapter projection (env/env_unset/bin_args) here; that stays in modes/options.",
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.",
396
465
  "properties": {
397
466
  "id": {
398
467
  "type": "string",
399
468
  "minLength": 1,
400
- "description": "Stable preset id. SHOULD equal the mode id if the adapter projects this preset as a mode. Catalog dedupes built-in vs adapter-declared by id; an adapter-declared id colliding with a built-in is ignored in favor of the built-in (registry is source of truth for canonical providers)."
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)."
401
470
  },
402
471
  "label": { "type": "string", "minLength": 1, "description": "Human label for the catalog UI." },
403
472
  "description": { "type": "string" },
404
- "schemaFlavor": { "enum": ["anthropic", "openai"], "description": "API schema flavor — selects which adapter family can consume the preset." },
473
+ "schemaFlavor": { "enum": ["anthropic", "openai"], "description": "API schema flavor: selects which harness family can consume the gateway." },
405
474
  "baseUrl": { "type": "string", "minLength": 1, "description": "Base URL the client hits." },
406
475
  "keyEnv": {
407
476
  "type": "string",