@agentproto/corpus-cli 0.11.2 → 0.11.4
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/cli.mjs +1 -1
- package/dist/cli.mjs.map +1 -1
- 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-14/draft/TOOL.schema.json +2 -2
- package/dist/specs/resources/aip-22/draft/OFFICE.schema.json +8 -8
- package/dist/specs/resources/aip-23/draft/IDENTITY.schema.json +2 -2
- 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 +3 -3
- package/dist/specs/resources/aip-34/draft/TYPES.schema.json +3 -3
- package/dist/specs/resources/aip-34/draft/WORKSPACE.schema.json +6 -3
- package/dist/specs/resources/aip-38/draft/POLICY.schema.json +36 -5
- package/dist/specs/resources/aip-4/draft/DESIGN.schema.json +2 -2
- package/dist/specs/resources/aip-42/draft/AGENT.schema.json +42 -4
- 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} +156 -9
- package/dist/specs/resources/aip-45/draft/STREAM-EVENTS.schema.json +151 -0
- package/dist/specs/resources/aip-46/draft/SessionConfig.schema.json +293 -0
- package/dist/specs/resources/aip-47/draft/ROLE.schema.json +93 -1
- package/dist/specs/resources/aip-48/draft/MultiAgentRuntime.schema.json +3 -3
- package/dist/specs/resources/aip-53/draft/APP.schema.json +36 -19
- package/dist/specs/resources/aip-54/draft/WS-REF.schema.json +2 -1
- package/dist/specs/resources/aip-6/draft/COMPANY.schema.json +69 -107
- 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/{pending/memory → aip-72}/draft/MEMORY.schema.json +115 -62
- package/dist/specs/resources/aip-9/draft/OPERATOR.schema.json +230 -139
- package/package.json +3 -3
- package/dist/specs/resources/pending/harness/HARNESS.schema.json +0 -254
- package/dist/specs/resources/pending/services/SERVICES.schema.json +0 -55
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"additionalProperties": false,
|
|
9
9
|
"properties": {
|
|
10
10
|
"schema": {
|
|
11
|
-
"
|
|
12
|
-
"description": "Spec identifier. Must be the
|
|
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",
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
},
|
|
34
34
|
"inputs": {
|
|
35
35
|
"description": "Defined by AIP-16 — the IO `inputs` block.",
|
|
36
|
-
"$ref": "https://agentproto.sh/
|
|
36
|
+
"$ref": "https://agentproto.sh/schemas/aip-16/IO.schema.json#/$defs/inputs"
|
|
37
37
|
},
|
|
38
38
|
"outputs": {
|
|
39
39
|
"description": "Defined by AIP-16 — the IO `outputs` block.",
|
|
40
|
-
"$ref": "https://agentproto.sh/
|
|
40
|
+
"$ref": "https://agentproto.sh/schemas/aip-16/IO.schema.json#/$defs/outputs"
|
|
41
41
|
},
|
|
42
42
|
"idempotent": {
|
|
43
43
|
"type": "boolean",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"type": "string",
|
|
40
40
|
"minLength": 1,
|
|
41
41
|
"maxLength": 512,
|
|
42
|
-
"pattern": "^(\\.\\./|\\./)[^\\s]+/
|
|
43
|
-
"description": "OPTIONAL
|
|
42
|
+
"pattern": "^(\\.\\./|\\./)([^\\s]+/)?OFFICE\\.md$",
|
|
43
|
+
"description": "OPTIONAL: relative path to a parent OFFICE.md, for example ../OFFICE.md from a child node of a company tree. Presence makes the manifest a VIEW; absence makes it a WORKSPACE ROOT. Recursive composition; maximum chain depth is 8."
|
|
44
44
|
},
|
|
45
45
|
"appliesTo": {
|
|
46
46
|
"type": "array",
|
|
@@ -99,8 +99,8 @@
|
|
|
99
99
|
},
|
|
100
100
|
"executor": {
|
|
101
101
|
"type": "string",
|
|
102
|
-
"pattern": "^ws://operators/[a-z][a-z0-9-]
|
|
103
|
-
"description": "OPTIONAL
|
|
102
|
+
"pattern": "^(ws://operators/[a-z][a-z0-9-]*|operator:[a-z][a-z0-9-]*(@[^\\s]+)?)$",
|
|
103
|
+
"description": "OPTIONAL: AIP-9 default org-level operator of the whole tree this office spans, as a ws:// ref or an AIP-54 `operator:<slug>[@<workspace>]` compact ref. The `@<workspace>` form names an operator of another workspace; ws:// cannot. The host activates this operator for company-level prompts when no more-specific seat or view applies."
|
|
104
104
|
},
|
|
105
105
|
"governance": {
|
|
106
106
|
"type": "string",
|
|
@@ -110,8 +110,8 @@
|
|
|
110
110
|
},
|
|
111
111
|
"work": {
|
|
112
112
|
"type": "string",
|
|
113
|
-
"pattern": "^ws://workspaces
|
|
114
|
-
"description": "OPTIONAL — AIP-20 work tracker the company runs. Cross-references on items resolve against the bound work workspace by default."
|
|
113
|
+
"pattern": "^ws://workspaces/@[a-z0-9][a-z0-9-]*/[a-z0-9][a-z0-9-]*/WORK\\.md$",
|
|
114
|
+
"description": "OPTIONAL — AIP-20 work tracker the company runs, as the AIP-54 ref of its WORK.md: `ws://workspaces/@<owner>/<slug>/WORK.md`. Cross-references on items resolve against the bound work workspace by default."
|
|
115
115
|
},
|
|
116
116
|
"agency": {
|
|
117
117
|
"type": "string",
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
"type": "string",
|
|
154
154
|
"pattern": "^[a-z][a-zA-Z0-9_]*$",
|
|
155
155
|
"default": "parent",
|
|
156
|
-
"description": "Item field name carrying the org-parent ref. Defaults to AIP-18's universal-ish 'parent'."
|
|
156
|
+
"description": "Item field name carrying the org-parent ref: an item id, or for a seat attached to a node an AIP-54 `workspace:` ref to that node's view. Defaults to AIP-18's universal-ish 'parent'."
|
|
157
157
|
},
|
|
158
158
|
"rules": {
|
|
159
159
|
"type": "object",
|
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
},
|
|
179
179
|
"uniqueItems": true
|
|
180
180
|
},
|
|
181
|
-
"description": "OPTIONAL
|
|
181
|
+
"description": "OPTIONAL: containment matrix. Keys are CHILD collection names; values are arrays of allowed PARENT collection names. The reserved parent name `view` stands for a node of the same tree that carries a view of this office; it is not a collection. The host enforces this at item-write time. Per-item violations: office_orgtree_invalid_parent_kind (HARD)."
|
|
182
182
|
},
|
|
183
183
|
"maxDepth": {
|
|
184
184
|
"type": "integer",
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
},
|
|
66
66
|
"work": {
|
|
67
67
|
"type": "string",
|
|
68
|
-
"pattern": "^ws://workspaces
|
|
69
|
-
"description": "OPTIONAL — AIP-20 work tracker the identity participates in (an operator's task queue, a company's program plan)."
|
|
68
|
+
"pattern": "^ws://workspaces/@[a-z0-9][a-z0-9-]*/[a-z0-9][a-z0-9-]*/WORK\\.md$",
|
|
69
|
+
"description": "OPTIONAL — AIP-20 work tracker the identity participates in (an operator's task queue, a company's program plan). The ref names the node's WORK.md through the workspace node's work binding (same form as the AIP-22 OFFICE.schema.json work field)."
|
|
70
70
|
},
|
|
71
71
|
"knowledge": {
|
|
72
72
|
"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
|
-
"
|
|
58
|
-
"description": "Schema dispatch tag. Required for AIP-3 conformance. Pinned to '
|
|
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
|
|
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": { "
|
|
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 —
|
|
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": { "
|
|
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": "^
|
|
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": { "
|
|
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
|
|
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": { "
|
|
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,
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"extends": {
|
|
29
29
|
"type": "string",
|
|
30
|
-
"description": "Another type this one inherits
|
|
30
|
+
"description": "Another type of the same registry this one inherits from (e.g. a `guild` or `client` type extending `project`). Fields left unset here (`parents`, `default_wall`, `requires_files`, `starter`, `max_per_tree`, `adds_fields`) are inherited whole from the resolved base; a field set here replaces the inherited one, nothing is merged. An omitted or empty `requires_files` counts as unset."
|
|
31
31
|
},
|
|
32
32
|
"default_wall": {
|
|
33
33
|
"enum": ["shared", "isolated", "sealed", "hard"],
|
|
@@ -51,13 +51,13 @@
|
|
|
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": {
|
|
58
58
|
"enum": ["shared", "isolated", "sealed", "hard"],
|
|
59
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
|
|
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. Walls are evaluated against the requesting SESSION's node scope (the nearest declared node whose folder contains the session's AIP-46 `ground`), never against an operator or agent. A child MAY raise its own wall (shared→isolated→sealed→hard) but MUST NOT set a level looser than its TYPES.md entry's `default_wall` (conformance rule 7)."
|
|
61
61
|
},
|
|
62
62
|
"includes": {
|
|
63
63
|
"type": "array",
|
|
@@ -100,7 +100,10 @@
|
|
|
100
100
|
"default": [],
|
|
101
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."
|
|
102
102
|
},
|
|
103
|
-
"policy": {
|
|
103
|
+
"policy": {
|
|
104
|
+
"$ref": "#/$defs/policyRefBlock",
|
|
105
|
+
"description": "AIP-38 POLICY block for this node. A session scoped to a node is evaluated under the AIP-38 composition of the policy of every node on its chain, from this node up to the root of its tree: a matching deny in any node wins, `default: deny` in any node prevails, every requirement applies. The chain stops at the tree root; doors never extend it."
|
|
106
|
+
},
|
|
104
107
|
"defaults": {
|
|
105
108
|
"type": "object",
|
|
106
109
|
"additionalProperties": true,
|
|
@@ -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,
|
|
@@ -111,9 +116,29 @@
|
|
|
111
116
|
},
|
|
112
117
|
"scope": {
|
|
113
118
|
"type": "string",
|
|
114
|
-
"description": "Optional scope narrowing for this grant (action-specific)."
|
|
119
|
+
"description": "Optional scope narrowing for this grant (action-specific). For `tool:invoke` (AIP-39), a tool name `<server>/<name>` (AIP-54 tool-body), or a `*`-suffix glob such as `<server>/*`; matching is AIP-38 Scope matching rules 1, 2 and 5."
|
|
115
120
|
}
|
|
116
|
-
}
|
|
121
|
+
},
|
|
122
|
+
"allOf": [
|
|
123
|
+
{
|
|
124
|
+
"if": {
|
|
125
|
+
"required": ["action"],
|
|
126
|
+
"properties": {
|
|
127
|
+
"action": {
|
|
128
|
+
"enum": ["tool:invoke", "@agentik/actions/standard/tool-invoke"]
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"then": {
|
|
133
|
+
"properties": {
|
|
134
|
+
"scope": {
|
|
135
|
+
"pattern": "^(\\*|[A-Za-z0-9_.-]+\\*|[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]*\\*?)$",
|
|
136
|
+
"description": "Lint for `tool:invoke`: `*`, a `<prefix>*` glob, a full tool name `<server>/<name>`, or a `<server>/<prefix>*` glob. A bare name such as `cron_create` has no server and matches nothing (AIP-38 Tool names)."
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
]
|
|
117
142
|
},
|
|
118
143
|
"condition": {
|
|
119
144
|
"type": "object",
|
|
@@ -131,11 +156,12 @@
|
|
|
131
156
|
"type": "object",
|
|
132
157
|
"required": ["kind", "value"],
|
|
133
158
|
"additionalProperties": true,
|
|
159
|
+
"not": { "required": ["per", "window"] },
|
|
134
160
|
"properties": {
|
|
135
161
|
"kind": {
|
|
136
162
|
"type": "string",
|
|
137
163
|
"minLength": 1,
|
|
138
|
-
"description": "Limit kind. Standard: `max-concurrent-sandboxes`, `rate-tool-calls`, `max-egress-bytes-per-day`. Host-extensible."
|
|
164
|
+
"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
165
|
},
|
|
140
166
|
"value": {
|
|
141
167
|
"type": "number",
|
|
@@ -143,11 +169,16 @@
|
|
|
143
169
|
},
|
|
144
170
|
"scope": {
|
|
145
171
|
"type": "string",
|
|
146
|
-
"description": "Per what? `user`, `workspace`, `org`, host-specific."
|
|
172
|
+
"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
173
|
},
|
|
148
174
|
"per": {
|
|
149
175
|
"enum": ["second", "minute", "hour", "day"],
|
|
150
|
-
"description": "For rate-style limits."
|
|
176
|
+
"description": "For rate-style limits. Mutually exclusive with `window`."
|
|
177
|
+
},
|
|
178
|
+
"window": {
|
|
179
|
+
"type": "string",
|
|
180
|
+
"pattern": "^P(?=.)(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+(?:\\.\\d+)?S)?)?$",
|
|
181
|
+
"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
182
|
},
|
|
152
183
|
"applies_to": {
|
|
153
184
|
"type": "array",
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"additionalProperties": false,
|
|
9
9
|
"properties": {
|
|
10
10
|
"schema": {
|
|
11
|
-
"
|
|
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",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"type": "array",
|
|
54
54
|
"items": { "$ref": "#/$defs/toolRef" },
|
|
55
55
|
"default": [],
|
|
56
|
-
"description": "AIP-14 tool refs."
|
|
56
|
+
"description": "AIP-14 tool refs, or structured server refs { kind: mcp, server, allow?, deny? }. A tool is named <server>/<name> (AIP-54 tool-body); deny wins."
|
|
57
57
|
},
|
|
58
58
|
"actions": {
|
|
59
59
|
"type": "object",
|
|
@@ -161,7 +161,8 @@
|
|
|
161
161
|
},
|
|
162
162
|
"metadata": {
|
|
163
163
|
"type": "object",
|
|
164
|
-
"additionalProperties": true
|
|
164
|
+
"additionalProperties": true,
|
|
165
|
+
"description": "Free-form, namespaced under '<vendor>'. Hosts MUST tolerate unknown vendor namespaces; they MUST NOT honour metadata that overrides AIP-defined fields. Session configuration (harness, posture, preset, auth) is AIP-46, not an AGENT field."
|
|
165
166
|
}
|
|
166
167
|
},
|
|
167
168
|
"$defs": {
|
|
@@ -184,7 +185,34 @@
|
|
|
184
185
|
"$ref": "#/$defs/anyRef"
|
|
185
186
|
},
|
|
186
187
|
"toolRef": {
|
|
187
|
-
"
|
|
188
|
+
"oneOf": [
|
|
189
|
+
{ "$ref": "#/$defs/anyRef" },
|
|
190
|
+
{ "$ref": "#/$defs/mcpToolRef" }
|
|
191
|
+
],
|
|
192
|
+
"description": "An AIP-14/AIP-54 ref, or a structured server ref."
|
|
193
|
+
},
|
|
194
|
+
"mcpToolRef": {
|
|
195
|
+
"type": "object",
|
|
196
|
+
"required": ["kind", "server"],
|
|
197
|
+
"additionalProperties": false,
|
|
198
|
+
"properties": {
|
|
199
|
+
"kind": { "const": "mcp" },
|
|
200
|
+
"server": {
|
|
201
|
+
"type": "string",
|
|
202
|
+
"pattern": "^[A-Za-z0-9_.-]+$",
|
|
203
|
+
"description": "The server that exposes the tools, as the host names it. Mandatory; no '/'."
|
|
204
|
+
},
|
|
205
|
+
"allow": {
|
|
206
|
+
"type": "array",
|
|
207
|
+
"items": { "type": "string", "pattern": "^[A-Za-z0-9_.-]+$" },
|
|
208
|
+
"description": "Tool names on this server the agent is offered (the <name> part of <server>/<name>). Absent = every tool the server exposes; [] = none."
|
|
209
|
+
},
|
|
210
|
+
"deny": {
|
|
211
|
+
"type": "array",
|
|
212
|
+
"items": { "type": "string", "pattern": "^[A-Za-z0-9_.-]+$" },
|
|
213
|
+
"description": "Tool names on this server the agent is never offered. Deny wins over allow and over any other tools item; it is the AGENT-level projection of an AIP-38 explicit deny and never grants permission."
|
|
214
|
+
}
|
|
215
|
+
}
|
|
188
216
|
},
|
|
189
217
|
"actionRef": {
|
|
190
218
|
"oneOf": [
|
|
@@ -247,7 +275,17 @@
|
|
|
247
275
|
"enabled": {
|
|
248
276
|
"type": "boolean",
|
|
249
277
|
"default": true,
|
|
250
|
-
"description": "When false, the agent MUST NOT write
|
|
278
|
+
"description": "AIP-72 memory items for this agent. When false, the agent MUST NOT write any memory item (none is created, updated or retired), and the host projects none into its sessions."
|
|
279
|
+
},
|
|
280
|
+
"store": {
|
|
281
|
+
"type": "string",
|
|
282
|
+
"minLength": 1,
|
|
283
|
+
"description": "The AIP-72 memory store (section 8) the agent's items are read from and proposed to: a workspace-relative path to a reference-layout directory, or a host-resolved store id. Host default when omitted."
|
|
284
|
+
},
|
|
285
|
+
"anchors": {
|
|
286
|
+
"type": "array",
|
|
287
|
+
"items": { "type": "string", "minLength": 1 },
|
|
288
|
+
"description": "Scope anchors in formatted form (e.g. 'global', 'project:acme', 'agent:assistant') added to the ones the host resolves for a session; they select the items of the AIP-72 projection digest (section 9). 'global' always applies."
|
|
251
289
|
},
|
|
252
290
|
"scope": {
|
|
253
291
|
"enum": ["per-conversation", "per-thread", "per-workspace", "none"],
|
|
@@ -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
|
+
}
|