@agentproto/corpus-cli 0.11.4 → 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.
- package/dist/specs/resources/aip-15/draft/WORKFLOW.schema.json +7 -7
- package/dist/specs/resources/aip-36/draft/PLACEMENT.schema.json +129 -0
- package/dist/specs/resources/aip-36/draft/SANDBOX.schema.json +3 -3
- package/dist/specs/resources/aip-41/draft/ROUTINE.schema.json +3 -3
- package/dist/specs/resources/aip-45/draft/HARNESS.schema.json +8 -8
- package/dist/specs/resources/aip-45/draft/STREAM-EVENTS.schema.json +44 -3
- package/dist/specs/resources/aip-46/draft/SessionConfig.schema.json +2 -26
- package/dist/specs/resources/aip-53/draft/APP.schema.json +326 -47
- package/dist/specs/resources/aip-58/draft/run.schema.json +1 -1
- package/dist/specs/resources/aip-63/draft/BROWSER.schema.json +54 -12
- package/dist/specs/resources/aip-63/draft/RECIPE.schema.json +93 -0
- package/dist/specs/resources/aip-63/draft/RECORDING.schema.json +2 -0
- package/package.json +3 -3
|
@@ -426,7 +426,7 @@
|
|
|
426
426
|
"kind": { "const": "agent" },
|
|
427
427
|
"agent": {
|
|
428
428
|
"type": "object",
|
|
429
|
-
"description": "App-scoped agent id to resolve at compile time. Omit to spawn a plain `adapter` (no app-ref resolution) or reuse via `sessionRef`.",
|
|
429
|
+
"description": "App-scoped agent id to resolve at compile time. Omit to spawn a plain harness through the step's `adapter` key (no app-ref resolution) or reuse via `sessionRef`.",
|
|
430
430
|
"required": ["ref"],
|
|
431
431
|
"properties": {
|
|
432
432
|
"ref": { "type": "string" }
|
|
@@ -435,7 +435,7 @@
|
|
|
435
435
|
"prompt": { "type": "string" },
|
|
436
436
|
"adapter": {
|
|
437
437
|
"type": "string",
|
|
438
|
-
"description": "
|
|
438
|
+
"description": "AIP-45 harness slug for spawning a NEW session. Ignored (and unnecessary) when `agent.ref` resolves one for you. Omit both to reuse via `sessionRef`. The key keeps the name `adapter` until the AIP-15 open question on the `harness` block is settled."
|
|
439
439
|
},
|
|
440
440
|
"sessionRef": {
|
|
441
441
|
"type": "string",
|
|
@@ -492,7 +492,7 @@
|
|
|
492
492
|
"options": {
|
|
493
493
|
"type": "object",
|
|
494
494
|
"additionalProperties": { "type": ["boolean", "number", "string"] },
|
|
495
|
-
"description": "Manifest-declared
|
|
495
|
+
"description": "Manifest-declared harness option id → value, forwarded to a NEW spawn's `startSession({ options })` — e.g. mastra-agent's `agent` option, set by `agent.ref` resolution at compile time. Only meaningful with `adapter`; ignored on a `sessionRef` reuse. May also be authored directly on the step."
|
|
496
496
|
},
|
|
497
497
|
"harness": { "$ref": "#/$defs/harness" }
|
|
498
498
|
}
|
|
@@ -520,21 +520,21 @@
|
|
|
520
520
|
},
|
|
521
521
|
"harness": {
|
|
522
522
|
"type": "object",
|
|
523
|
-
"description": "Harness pinning for a `kind: \"agent\"` step's spawn. Precedence when a field is also set elsewhere: step `harness` (highest) > the resolved AGENT.md's own frontmatter > `app_run` caller args > the
|
|
523
|
+
"description": "Harness pinning for a `kind: \"agent\"` step's spawn. Precedence when a field is also set elsewhere: step `harness` (highest) > the resolved AGENT.md's own frontmatter > `app_run` caller args > the harness's own default (lowest).",
|
|
524
524
|
"additionalProperties": false,
|
|
525
525
|
"properties": {
|
|
526
526
|
"model": { "type": "string", "description": "Model id override for this spawn." },
|
|
527
|
-
"effort": { "type": "string", "description": "Reasoning-effort override for this spawn (
|
|
527
|
+
"effort": { "type": "string", "description": "Reasoning-effort override for this spawn (harness-defined vocabulary, e.g. \"low\" | \"medium\" | \"high\")." },
|
|
528
528
|
"role": { "type": "string", "description": "Spawn-time role governing the child's tool-policy disposition (e.g. \"executor\" | \"supervisor\")." },
|
|
529
529
|
"tools": {
|
|
530
530
|
"type": "array",
|
|
531
531
|
"items": { "type": "string" },
|
|
532
|
-
"description": "Per-spawn tool allowlist. Applied where the resolved
|
|
532
|
+
"description": "Per-spawn tool allowlist. Applied where the resolved harness supports a generic per-spawn allowlist mechanism; where it doesn't, the host records `toolsApplied: false` on the step's run record and emits a warning event instead of silently ignoring the field."
|
|
533
533
|
},
|
|
534
534
|
"skills": {
|
|
535
535
|
"type": "array",
|
|
536
536
|
"items": { "type": "string" },
|
|
537
|
-
"description": "Skill ids auto-mounted into the spawn —
|
|
537
|
+
"description": "Skill ids auto-mounted into the spawn — harnesses with no such option (e.g. claude-code, which auto-discovers skills) ignore it."
|
|
538
538
|
},
|
|
539
539
|
"cwd": { "type": "string", "description": "Working directory override for this step's spawn; takes precedence over the run-level cwd." },
|
|
540
540
|
"promptFile": { "type": "string", "description": "Read this file (relative to the WORKFLOW.md's directory) at load time and use its contents as the step's `prompt`, replacing any inline `prompt`." },
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://agentproto.sh/schemas/aip-36/PLACEMENT.schema.json",
|
|
4
|
+
"title": "Placement ladder (AIP-36 v1.4)",
|
|
5
|
+
"description": "Validates the `placement` input of a session spawn (AIP-36 v1.4 §Placement ladder): an ordered list of rungs, each a sandbox plus optional model / access / preflight / turnRetry overrides. Mirrors `placementInputSchema` in agentproto/ts `packages/runtime/src/placement-ladder.ts:36-40`. Mutually exclusive with a top-level `sandbox` on the same spawn.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["ladder"],
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"properties": {
|
|
10
|
+
"ladder": {
|
|
11
|
+
"type": "array",
|
|
12
|
+
"minItems": 1,
|
|
13
|
+
"maxItems": 8,
|
|
14
|
+
"items": { "$ref": "#/$defs/rung" },
|
|
15
|
+
"description": "Rungs, tried in order. 1 to 8 (MAX_PLACEMENT_RUNGS, placement-ladder.ts:17)."
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"$defs": {
|
|
19
|
+
"rung": {
|
|
20
|
+
"type": "object",
|
|
21
|
+
"required": ["sandbox"],
|
|
22
|
+
"additionalProperties": false,
|
|
23
|
+
"description": "One placement choice (placement-ladder.ts:26-34). An axis the rung omits inherits the spawn's own top-level value (placement-ladder.ts:125-136).",
|
|
24
|
+
"properties": {
|
|
25
|
+
"sandbox": {
|
|
26
|
+
"description": "A provider slug, or an inline sandbox spec in the AIP-36 inline form (SANDBOX.schema.json). A rung always boots a fresh box: `reuse` is refused (placement-ladder.ts:115-120).",
|
|
27
|
+
"oneOf": [
|
|
28
|
+
{ "type": "string", "minLength": 1 },
|
|
29
|
+
{
|
|
30
|
+
"type": "object",
|
|
31
|
+
"required": ["provider"],
|
|
32
|
+
"properties": {
|
|
33
|
+
"provider": { "type": "string", "minLength": 1 }
|
|
34
|
+
},
|
|
35
|
+
"not": { "required": ["reuse"] }
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
"model": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"minLength": 1,
|
|
42
|
+
"description": "Model id for a session placed on this rung. A metered model id MUST be gated by an owner-controlled allowlist (AIP-36 v1.4 §5)."
|
|
43
|
+
},
|
|
44
|
+
"access": {
|
|
45
|
+
"type": "object",
|
|
46
|
+
"additionalProperties": false,
|
|
47
|
+
"description": "Auth profile override for this rung (AIP-69 profile refs).",
|
|
48
|
+
"properties": {
|
|
49
|
+
"profileRef": { "type": "string", "minLength": 1 },
|
|
50
|
+
"profileRefs": {
|
|
51
|
+
"type": "array",
|
|
52
|
+
"minItems": 1,
|
|
53
|
+
"items": { "type": "string", "minLength": 1 }
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"preflight": {
|
|
58
|
+
"type": "array",
|
|
59
|
+
"items": { "type": "string", "minLength": 1 },
|
|
60
|
+
"description": "Preflight probe ids run on the booted box before the agent starts, in order, stopping at the first `ko` (AIP-36 v1.4 §2). An id no probe is registered under fails the spawn with `sandbox_preflight_invalid`, which ends the walk."
|
|
61
|
+
},
|
|
62
|
+
"turnRetry": {
|
|
63
|
+
"description": "Mid-run turn-retry policy for a session placed on this rung. Replaces, never merges with, the spawn's top-level `turnRetry`. `null` opts out. Mirrors `turnRetryInputSchema` (packages/runtime/src/turn-retry-policy.ts:199-230).",
|
|
64
|
+
"oneOf": [
|
|
65
|
+
{ "type": "null" },
|
|
66
|
+
{ "$ref": "#/$defs/turnRetry" }
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"turnRetry": {
|
|
72
|
+
"type": "object",
|
|
73
|
+
"required": ["on"],
|
|
74
|
+
"properties": {
|
|
75
|
+
"on": {
|
|
76
|
+
"type": "array",
|
|
77
|
+
"items": { "enum": ["rate-limit", "upstream-5xx", "no-output-stall", "usage-limit"] }
|
|
78
|
+
},
|
|
79
|
+
"action": { "enum": ["retry", "migrate"] },
|
|
80
|
+
"maxRetries": { "type": "integer", "minimum": 1 },
|
|
81
|
+
"baseDelayMs": { "type": "integer", "minimum": 0 },
|
|
82
|
+
"factor": { "type": "number", "minimum": 1 },
|
|
83
|
+
"maxDelayMs": { "type": "integer", "minimum": 0 },
|
|
84
|
+
"maxMigrations": { "type": "integer", "minimum": 0 },
|
|
85
|
+
"retryAfterToolCalls": { "type": "boolean" },
|
|
86
|
+
"rotate": {
|
|
87
|
+
"type": "array",
|
|
88
|
+
"maxItems": 16,
|
|
89
|
+
"items": {
|
|
90
|
+
"type": "object",
|
|
91
|
+
"required": ["model"],
|
|
92
|
+
"properties": {
|
|
93
|
+
"model": { "type": "string", "minLength": 1 },
|
|
94
|
+
"profileRef": { "type": "string", "minLength": 1 }
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"rotateOn": {
|
|
99
|
+
"type": "array",
|
|
100
|
+
"minItems": 1,
|
|
101
|
+
"items": { "enum": ["rate-limit", "upstream-5xx", "no-output-stall", "usage-limit"] }
|
|
102
|
+
},
|
|
103
|
+
"cooldownMs": { "type": "integer", "minimum": 1 },
|
|
104
|
+
"fallback": {
|
|
105
|
+
"type": "array",
|
|
106
|
+
"maxItems": 16,
|
|
107
|
+
"description": "Ordered config overlays tried after same-config retries are exhausted; the reference implementation's subset of AIP-46 `ConfigOverlay`.",
|
|
108
|
+
"items": {
|
|
109
|
+
"type": "object",
|
|
110
|
+
"anyOf": [
|
|
111
|
+
{ "required": ["model"] },
|
|
112
|
+
{ "required": ["access"] },
|
|
113
|
+
{ "required": ["harness"] }
|
|
114
|
+
],
|
|
115
|
+
"properties": {
|
|
116
|
+
"model": { "type": "string", "minLength": 1 },
|
|
117
|
+
"access": {
|
|
118
|
+
"type": "object",
|
|
119
|
+
"required": ["profileRef"],
|
|
120
|
+
"properties": { "profileRef": { "type": "string", "minLength": 1 } }
|
|
121
|
+
},
|
|
122
|
+
"harness": { "type": "string", "minLength": 1 }
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"type": "object",
|
|
31
31
|
"additionalProperties": true,
|
|
32
32
|
"properties": {
|
|
33
|
-
"
|
|
33
|
+
"installHarnesses": {
|
|
34
34
|
"type": "array",
|
|
35
35
|
"items": { "type": "string", "minLength": 1 },
|
|
36
|
-
"description": "Semantic harness slugs to pre-install in the box at boot (e.g. [\"hermes\", \"claude-code\"]). Each expands to @agentproto/
|
|
36
|
+
"description": "Semantic harness slugs to pre-install in the box at boot (e.g. [\"hermes\", \"claude-code\"]). Each expands to @agentproto/harness-<slug>@latest plus that harness's declared boot extras; a config.installPackages pin for the same package always wins. Additive — absent means no extra install."
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
"description": "Provider-specific connection fields. Shape varies per provider (see AIP-36 §Provider config shapes)."
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"type": "string",
|
|
81
81
|
"pattern": "^(shared|auto|dedicated|[a-z0-9]{1,8})$",
|
|
82
82
|
"default": "shared",
|
|
83
|
-
"description": "Public source address for outbound traffic (AIP-36 v1.3): shared | auto | dedicated | pool slot id. A provider without an address pool MUST refuse any value other than shared with sandbox_egress_pool_unavailable."
|
|
83
|
+
"description": "Public source address for outbound traffic (AIP-36 v1.3): shared | auto | dedicated | pool slot id. A provider without an address pool MUST refuse any value other than shared with sandbox_egress_pool_unavailable. With auto, a provider given an egress health view skips slots cooling down for the session's model and fails with sandbox_egress_all_cooling, booting nothing, when every slot is cooling (AIP-36 v1.4 §3)."
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
},
|
|
@@ -248,12 +248,12 @@
|
|
|
248
248
|
"properties": {
|
|
249
249
|
"agent": {
|
|
250
250
|
"type": "object",
|
|
251
|
-
"required": ["
|
|
251
|
+
"required": ["harness", "prompt"],
|
|
252
252
|
"additionalProperties": false,
|
|
253
253
|
"properties": {
|
|
254
|
-
"
|
|
254
|
+
"harness": { "type": "string", "minLength": 1, "description": "AIP-45 harness slug (e.g. 'claude-code', 'hermes')." },
|
|
255
255
|
"prompt": { "type": "string", "minLength": 1, "description": "Initial prompt / consigne sent to the spawned agent." },
|
|
256
|
-
"model": { "type": "string", "minLength": 1, "description": "Optional model identifier forwarded to the
|
|
256
|
+
"model": { "type": "string", "minLength": 1, "description": "Optional model identifier forwarded to the harness." },
|
|
257
257
|
"cwd": { "type": "string", "minLength": 1, "description": "Working directory for the spawned session." }
|
|
258
258
|
}
|
|
259
259
|
}
|
|
@@ -74,11 +74,11 @@
|
|
|
74
74
|
"confinedReadPaths": {
|
|
75
75
|
"type": "array",
|
|
76
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
|
|
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 harness's state home."
|
|
78
78
|
},
|
|
79
79
|
"protocol": {
|
|
80
80
|
"enum": ["acp", "mcp", "proprietary"],
|
|
81
|
-
"description": "Wire protocol discriminator. acp = AIP-44 ACP server; mcp = MCP-over-stdio; proprietary =
|
|
81
|
+
"description": "Wire protocol discriminator. acp = AIP-44 ACP server; mcp = MCP-over-stdio; proprietary = harness package implements AgentCliClient."
|
|
82
82
|
},
|
|
83
83
|
"acp": {
|
|
84
84
|
"type": "string",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"url": { "type": "string", "format": "uri" }
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
|
-
"
|
|
99
|
+
"harness": {
|
|
100
100
|
"type": "string",
|
|
101
101
|
"pattern": "^@?[a-z0-9][a-z0-9\\-./]*$",
|
|
102
102
|
"description": "NPM package name implementing AgentCliClient. REQUIRED when protocol=proprietary."
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
},
|
|
159
159
|
{
|
|
160
160
|
"if": { "properties": { "protocol": { "const": "proprietary" } }, "required": ["protocol"] },
|
|
161
|
-
"then": { "required": ["
|
|
161
|
+
"then": { "required": ["harness"] }
|
|
162
162
|
},
|
|
163
163
|
{
|
|
164
164
|
"if": {
|
|
@@ -314,16 +314,16 @@
|
|
|
314
314
|
"type": "object",
|
|
315
315
|
"additionalProperties": false,
|
|
316
316
|
"required": ["id"],
|
|
317
|
-
"description": "A model id annotated with who serves/bills it and how this
|
|
317
|
+
"description": "A model id annotated with who serves/bills it and how this harness reaches it. A bare string (still legal) leaves provider unstated — the projector MUST NOT guess one.",
|
|
318
318
|
"properties": {
|
|
319
319
|
"id": { "type": "string", "description": "Model id, unchanged on the wire — this is annotation, not renaming." },
|
|
320
320
|
"provider": { "type": "string", "description": "ProviderPreset id (or direct provider, e.g. \"anthropic\") — who serves and bills this model. Omit when unstated." },
|
|
321
|
-
"mode": { "type": "string", "description": "This
|
|
321
|
+
"mode": { "type": "string", "description": "This harness's mode id that routes to `provider` (e.g. \"moonshot\"). Omit when the harness routes on its own (e.g. a model-id prefix) or needs no mode switch." }
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
324
|
]
|
|
325
325
|
},
|
|
326
|
-
"description": "Model ids the host MAY route to. Each entry is either a bare id (provider unstated,
|
|
326
|
+
"description": "Model ids the host MAY route to. Each entry is either a bare id (provider unstated, harness default) or a { id, provider?, mode? } binding declaring who serves it and which harness mode reaches it."
|
|
327
327
|
},
|
|
328
328
|
"env": {
|
|
329
329
|
"type": "object",
|
|
@@ -558,7 +558,7 @@
|
|
|
558
558
|
"scrubEnv": {
|
|
559
559
|
"type": "array",
|
|
560
560
|
"items": { "type": "string" },
|
|
561
|
-
"description": "Env vars to scrub when this preset is active. Optional —
|
|
561
|
+
"description": "Env vars to scrub when this preset is active. Optional — a harness that scrubs in code may omit it. Not surfaced to catalog clients."
|
|
562
562
|
},
|
|
563
563
|
"defaultModel": { "type": "string", "description": "Conventional default model id for this provider, if any." },
|
|
564
564
|
"homepage": { "type": "string", "description": "Optional homepage/docs URL for the catalog UI." }
|
|
@@ -62,7 +62,13 @@
|
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
64
|
"allowFreeText": { "type": "boolean", "description": "A typed answer is accepted: the caller selects freeTextOptionId and puts the text in the resolution's feedback." },
|
|
65
|
-
"freeTextOptionId": { "type": "string", "minLength": 1, "description": "REQUIRED when allowFreeText is true. MUST appear in the event's options." }
|
|
65
|
+
"freeTextOptionId": { "type": "string", "minLength": 1, "description": "REQUIRED when allowFreeText is true. MUST appear in the event's options." },
|
|
66
|
+
"fields": {
|
|
67
|
+
"type": "array",
|
|
68
|
+
"minItems": 1,
|
|
69
|
+
"items": { "$ref": "#/$defs/questionField" },
|
|
70
|
+
"description": "Multi-field question (2026-11-03). When present it is the source of truth: the caller answers with respondPermission(toolCallId, { answers }) keyed by field id, and the legacy members (prompt as the overall message, choices, allowFreeText, freeTextOptionId) are a projection for consumers that predate it."
|
|
71
|
+
}
|
|
66
72
|
},
|
|
67
73
|
"allOf": [
|
|
68
74
|
{
|
|
@@ -70,11 +76,46 @@
|
|
|
70
76
|
"then": { "required": ["freeTextOptionId"] }
|
|
71
77
|
},
|
|
72
78
|
{
|
|
73
|
-
"if": {
|
|
79
|
+
"if": {
|
|
80
|
+
"properties": { "allowFreeText": { "const": false } },
|
|
81
|
+
"required": ["allowFreeText"],
|
|
82
|
+
"not": { "required": ["fields"] }
|
|
83
|
+
},
|
|
74
84
|
"then": { "properties": { "choices": { "minItems": 1 } } }
|
|
75
85
|
}
|
|
76
86
|
]
|
|
77
87
|
},
|
|
88
|
+
"questionField": {
|
|
89
|
+
"type": "object",
|
|
90
|
+
"additionalProperties": false,
|
|
91
|
+
"required": ["id", "input", "prompt"],
|
|
92
|
+
"description": "One question of a multi-field prompt. For an ACP form elicitation, one schema property.",
|
|
93
|
+
"properties": {
|
|
94
|
+
"id": { "type": "string", "minLength": 1, "description": "Stable key, unique in the prompt. For an ACP elicitation: the schema property key." },
|
|
95
|
+
"input": { "enum": ["single", "multi", "text", "boolean", "number"] },
|
|
96
|
+
"header": { "type": "string", "description": "Short chip label." },
|
|
97
|
+
"prompt": { "type": "string", "minLength": 1, "description": "The question text for this field." },
|
|
98
|
+
"choices": {
|
|
99
|
+
"type": "array",
|
|
100
|
+
"items": {
|
|
101
|
+
"type": "object",
|
|
102
|
+
"additionalProperties": false,
|
|
103
|
+
"required": ["value", "label"],
|
|
104
|
+
"properties": {
|
|
105
|
+
"value": { "type": "string", "description": "What goes back to the harness." },
|
|
106
|
+
"label": { "type": "string", "minLength": 1 },
|
|
107
|
+
"description": { "type": "string" },
|
|
108
|
+
"preview": { "type": "string" }
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"allowFreeText": { "type": "boolean", "description": "single / multi: the user may type an answer instead of, or in addition to, a choice." },
|
|
113
|
+
"required": { "type": "boolean" },
|
|
114
|
+
"recommended": { "type": "string", "description": "Daemon recommendation, a choices[].value. Never guessed by a client." }
|
|
115
|
+
},
|
|
116
|
+
"if": { "properties": { "input": { "enum": ["single", "multi"] } } },
|
|
117
|
+
"then": { "required": ["choices"], "properties": { "choices": { "minItems": 1 } } }
|
|
118
|
+
},
|
|
78
119
|
"planApprovalRequest": {
|
|
79
120
|
"type": "object",
|
|
80
121
|
"additionalProperties": false,
|
|
@@ -92,7 +133,7 @@
|
|
|
92
133
|
"type": "object",
|
|
93
134
|
"additionalProperties": false,
|
|
94
135
|
"required": ["kind", "sessionId", "toolCallId", "options"],
|
|
95
|
-
"description": "The agent asks the caller to choose among options. Answered with respondPermission(toolCallId, { optionId, feedback? } | { cancelled: true }).",
|
|
136
|
+
"description": "The agent asks the caller to choose among options. Answered with respondPermission(toolCallId, { optionId, feedback? } | { answers } | { cancelled: true }); answers only for a question with fields.",
|
|
96
137
|
"properties": {
|
|
97
138
|
"kind": { "const": "agent-prompt" },
|
|
98
139
|
"sessionId": { "type": "string", "minLength": 1 },
|
|
@@ -16,12 +16,6 @@
|
|
|
16
16
|
"minLength": 1,
|
|
17
17
|
"description": "AIP-45 harness slug."
|
|
18
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
19
|
"model": {
|
|
26
20
|
"type": "string",
|
|
27
21
|
"minLength": 1,
|
|
@@ -88,7 +82,7 @@
|
|
|
88
82
|
"profileRef": {
|
|
89
83
|
"type": "string",
|
|
90
84
|
"minLength": 1,
|
|
91
|
-
"description": "AIP-69 auth profile id."
|
|
85
|
+
"description": "AIP-69 auth profile id, or an account slot `slot:<name>`: a named indirection resolved through the host config map `accountSlots` (slot name, no dot -> real auth profile id) at the moment of use (spawn, restart, turn-retry fallback). An unknown slot, or one naming a missing or disabled profile, is an error at use time, never a silent fallback. The session records the real profile it bills and, separately, the slot it asked for (`accessSlot`)."
|
|
92
86
|
}
|
|
93
87
|
}
|
|
94
88
|
},
|
|
@@ -96,12 +90,6 @@
|
|
|
96
90
|
"type": "object",
|
|
97
91
|
"description": "Harness-native AIP-45 options, validated against the harness manifest."
|
|
98
92
|
}
|
|
99
|
-
},
|
|
100
|
-
"not": {
|
|
101
|
-
"required": [
|
|
102
|
-
"harness",
|
|
103
|
-
"adapter"
|
|
104
|
-
]
|
|
105
93
|
}
|
|
106
94
|
},
|
|
107
95
|
"FailureClass": {
|
|
@@ -127,12 +115,6 @@
|
|
|
127
115
|
"minLength": 1,
|
|
128
116
|
"description": "AIP-45 harness slug."
|
|
129
117
|
},
|
|
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
118
|
"model": {
|
|
137
119
|
"type": "string",
|
|
138
120
|
"minLength": 1,
|
|
@@ -199,7 +181,7 @@
|
|
|
199
181
|
"profileRef": {
|
|
200
182
|
"type": "string",
|
|
201
183
|
"minLength": 1,
|
|
202
|
-
"description": "AIP-69 auth profile id."
|
|
184
|
+
"description": "AIP-69 auth profile id, or an account slot `slot:<name>`: a named indirection resolved through the host config map `accountSlots` (slot name, no dot -> real auth profile id) at the moment of use (spawn, restart, turn-retry fallback). An unknown slot, or one naming a missing or disabled profile, is an error at use time, never a silent fallback. The session records the real profile it bills and, separately, the slot it asked for (`accessSlot`)."
|
|
203
185
|
}
|
|
204
186
|
}
|
|
205
187
|
},
|
|
@@ -237,12 +219,6 @@
|
|
|
237
219
|
"$ref": "#/$defs/ConfigOverlay"
|
|
238
220
|
}
|
|
239
221
|
}
|
|
240
|
-
},
|
|
241
|
-
"not": {
|
|
242
|
-
"required": [
|
|
243
|
-
"harness",
|
|
244
|
-
"adapter"
|
|
245
|
-
]
|
|
246
222
|
}
|
|
247
223
|
},
|
|
248
224
|
"SessionPreset": {
|
|
@@ -85,13 +85,14 @@
|
|
|
85
85
|
"description": "Optional home workspace id (AIP-34). When set, a sibling WORKSPACE.md exists at the app dir root."
|
|
86
86
|
},
|
|
87
87
|
"requires": {
|
|
88
|
-
"description": "What the app needs
|
|
89
|
-
"
|
|
88
|
+
"description": "What the app needs (see the AIP-53 section `Requirements`). Either a list of app ids (each a dependency only: no version range, no workflow, nothing granted), or an object naming host capabilities and, under `apps`, the apps it depends on with what it uses from each.",
|
|
89
|
+
"oneOf": [
|
|
90
90
|
{
|
|
91
91
|
"type": "array",
|
|
92
92
|
"items": {
|
|
93
93
|
"type": "string",
|
|
94
|
-
"minLength": 1
|
|
94
|
+
"minLength": 1,
|
|
95
|
+
"pattern": "\\S"
|
|
95
96
|
},
|
|
96
97
|
"uniqueItems": true
|
|
97
98
|
},
|
|
@@ -101,62 +102,34 @@
|
|
|
101
102
|
"properties": {
|
|
102
103
|
"browser": {
|
|
103
104
|
"type": "boolean",
|
|
105
|
+
"default": false,
|
|
104
106
|
"description": "Needs the user's real browser."
|
|
105
107
|
},
|
|
106
108
|
"fs": {
|
|
107
109
|
"type": "boolean",
|
|
108
|
-
"
|
|
110
|
+
"default": false,
|
|
111
|
+
"description": "Needs the user's local filesystem beyond the app data dir."
|
|
109
112
|
},
|
|
110
113
|
"gpu": {
|
|
111
114
|
"type": "boolean",
|
|
115
|
+
"default": false,
|
|
112
116
|
"description": "Needs a GPU."
|
|
113
117
|
},
|
|
114
118
|
"secrets": {
|
|
115
119
|
"type": "array",
|
|
116
120
|
"items": {
|
|
117
121
|
"type": "string",
|
|
118
|
-
"minLength": 1
|
|
122
|
+
"minLength": 1,
|
|
123
|
+
"pattern": "\\S"
|
|
119
124
|
},
|
|
120
|
-
"description": "Env
|
|
125
|
+
"description": "Env or secret names the app needs."
|
|
121
126
|
},
|
|
122
127
|
"apps": {
|
|
123
128
|
"type": "array",
|
|
124
|
-
"description": "Other app ids this app depends on — bare ids or { id, version?, workflows? } objects.",
|
|
125
129
|
"items": {
|
|
126
|
-
"
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
"minLength": 1
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
"type": "object",
|
|
133
|
-
"required": [
|
|
134
|
-
"id"
|
|
135
|
-
],
|
|
136
|
-
"additionalProperties": false,
|
|
137
|
-
"properties": {
|
|
138
|
-
"id": {
|
|
139
|
-
"type": "string",
|
|
140
|
-
"minLength": 1,
|
|
141
|
-
"description": "The depended-on app id."
|
|
142
|
-
},
|
|
143
|
-
"version": {
|
|
144
|
-
"type": "string",
|
|
145
|
-
"minLength": 1,
|
|
146
|
-
"description": "Optional semver range the provider's installed version must satisfy: exact (\"1.2.3\"), caret (\"^1\", \"^1.2\", \"^1.2.3\"), or tilde (\"~1\", \"~1.2\", \"~1.2.3\")."
|
|
147
|
-
},
|
|
148
|
-
"workflows": {
|
|
149
|
-
"type": "array",
|
|
150
|
-
"items": {
|
|
151
|
-
"type": "string",
|
|
152
|
-
"minLength": 1
|
|
153
|
-
},
|
|
154
|
-
"description": "Provider workflows (ids from its exposes.workflows) this consumer may call via app_call. Omitted/empty = dependency only, no call permission."
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
]
|
|
159
|
-
}
|
|
130
|
+
"$ref": "#/$defs/appRequirement"
|
|
131
|
+
},
|
|
132
|
+
"description": "Apps this app depends on. Two entries naming the same `id` are refused (loader rule)."
|
|
160
133
|
}
|
|
161
134
|
}
|
|
162
135
|
}
|
|
@@ -376,9 +349,104 @@
|
|
|
376
349
|
"type": "integer",
|
|
377
350
|
"minimum": 1,
|
|
378
351
|
"maximum": 65535,
|
|
379
|
-
"description": "Optional TCP port the service listens on. Omitted = a service that does not listen.
|
|
352
|
+
"description": "Optional TCP port the service listens on. Omitted = a service that does not listen. For a keep-alive service this is bookkeeping only: the host records it and does not inject it into the service's environment. With `activation.mode: on-demand` the host listens on this port itself and gives the process another one in `PORT`. An `expose`d service's tunnel targets it."
|
|
353
|
+
},
|
|
354
|
+
"expose": {
|
|
355
|
+
"type": "object",
|
|
356
|
+
"additionalProperties": false,
|
|
357
|
+
"properties": {
|
|
358
|
+
"auth": {
|
|
359
|
+
"enum": [
|
|
360
|
+
"guard",
|
|
361
|
+
"service"
|
|
362
|
+
],
|
|
363
|
+
"default": "guard",
|
|
364
|
+
"description": "Who authenticates a request that reaches the public URL. `guard`: the host's access guard sits in front of the tunnel. `service`: no guard, the URL is public and the service authenticates every request itself (for example a Telegram Mini App validating `initData`)."
|
|
365
|
+
},
|
|
366
|
+
"hostname": {
|
|
367
|
+
"type": "string",
|
|
368
|
+
"pattern": "^(?=.{1,253}$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$",
|
|
369
|
+
"description": "Hostname request: a DNS label or a full name, lowercase. Passed as the primary AIP-73 `hostnames` entry; the provider may assign another name."
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
"description": "Ask the host for a public URL that reaches `port`, through one AIP-73 tunnel per service, keyed `app.<app>.<service>.<hash>` (AIP-53 § Tunnel key). The host picks the provider and passes the public origin to the process as `AGENTPROTO_PUBLIC_URL`. Requires `port`. See AIP-53 § Exposure."
|
|
373
|
+
},
|
|
374
|
+
"activation": {
|
|
375
|
+
"type": "object",
|
|
376
|
+
"required": [
|
|
377
|
+
"mode"
|
|
378
|
+
],
|
|
379
|
+
"additionalProperties": false,
|
|
380
|
+
"properties": {
|
|
381
|
+
"mode": {
|
|
382
|
+
"enum": [
|
|
383
|
+
"always",
|
|
384
|
+
"on-demand"
|
|
385
|
+
],
|
|
386
|
+
"description": "`always`: the host starts the process at install and boot and keeps it running. `on-demand`: the host owns `port` (and the `expose` tunnel's target), starts the process on the first inbound connection, proxies HTTP and WebSocket traffic to it and stops it after `idleStopMs` without traffic. `on-demand` requires `port`, and the process MUST bind the port the host passes in `PORT`."
|
|
387
|
+
},
|
|
388
|
+
"idleStopMs": {
|
|
389
|
+
"type": "integer",
|
|
390
|
+
"minimum": 1000,
|
|
391
|
+
"maximum": 86400000,
|
|
392
|
+
"default": 300000,
|
|
393
|
+
"description": "`on-demand` only. Milliseconds without an open request or connection before the host stops the process. Default 300000."
|
|
394
|
+
},
|
|
395
|
+
"startTimeoutMs": {
|
|
396
|
+
"type": "integer",
|
|
397
|
+
"minimum": 1000,
|
|
398
|
+
"maximum": 300000,
|
|
399
|
+
"default": 30000,
|
|
400
|
+
"description": "`on-demand` only. Milliseconds a request waits for the process to start listening before the host answers 503. Default 30000."
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
"if": {
|
|
404
|
+
"properties": {
|
|
405
|
+
"mode": {
|
|
406
|
+
"const": "always"
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
},
|
|
410
|
+
"then": {
|
|
411
|
+
"properties": {
|
|
412
|
+
"idleStopMs": false,
|
|
413
|
+
"startTimeoutMs": false
|
|
414
|
+
}
|
|
415
|
+
},
|
|
416
|
+
"description": "When the host runs the process. Omitted means `{ mode: always }`: kept running from install and boot, restarted on an unexpected exit. Only a service whose work is driven entirely by inbound requests may be `on-demand`; one that polls or schedules on its own would be stopped while idle. See AIP-53 § Activation."
|
|
380
417
|
}
|
|
381
418
|
},
|
|
419
|
+
"dependentRequired": {
|
|
420
|
+
"expose": [
|
|
421
|
+
"port"
|
|
422
|
+
]
|
|
423
|
+
},
|
|
424
|
+
"allOf": [
|
|
425
|
+
{
|
|
426
|
+
"if": {
|
|
427
|
+
"required": [
|
|
428
|
+
"activation"
|
|
429
|
+
],
|
|
430
|
+
"properties": {
|
|
431
|
+
"activation": {
|
|
432
|
+
"required": [
|
|
433
|
+
"mode"
|
|
434
|
+
],
|
|
435
|
+
"properties": {
|
|
436
|
+
"mode": {
|
|
437
|
+
"const": "on-demand"
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
},
|
|
443
|
+
"then": {
|
|
444
|
+
"required": [
|
|
445
|
+
"port"
|
|
446
|
+
]
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
],
|
|
382
450
|
"oneOf": [
|
|
383
451
|
{
|
|
384
452
|
"required": [
|
|
@@ -399,7 +467,7 @@
|
|
|
399
467
|
}
|
|
400
468
|
]
|
|
401
469
|
},
|
|
402
|
-
"description": "Production hosting surface: long-running processes the host starts with the app, one process per entry. No dependency graph, no
|
|
470
|
+
"description": "Production hosting surface: long-running processes the host starts with the app, one process per entry. No dependency graph, no replicas, no scheduler; `activation` only chooses between keeping the process running and starting it on demand. Not `dev.launch`, which stays dev-only and is never executed. See AIP-53 § Services."
|
|
403
471
|
},
|
|
404
472
|
"setup": {
|
|
405
473
|
"type": "array",
|
|
@@ -438,12 +506,14 @@
|
|
|
438
506
|
"exposes": {
|
|
439
507
|
"type": "object",
|
|
440
508
|
"additionalProperties": false,
|
|
509
|
+
"description": "What the app offers to callers outside it: A2A-visible agents and workflows, and the tools and `ui://` views it publishes to MCP clients (see the AIP-53 section `Exposed tools and resources`). Closed object. Rules JSON Schema cannot express (ids naming the app's own agents/workflows, a TOOL.md behind every non-imported tool id, no two entries computing the same MCP name, a computed name of at most 64 characters) are enforced by the loader.",
|
|
441
510
|
"properties": {
|
|
442
511
|
"agents": {
|
|
443
512
|
"type": "array",
|
|
444
513
|
"items": {
|
|
445
514
|
"type": "string",
|
|
446
|
-
"minLength": 1
|
|
515
|
+
"minLength": 1,
|
|
516
|
+
"pattern": "\\S"
|
|
447
517
|
},
|
|
448
518
|
"description": "Agent ids this app exposes. Every id must name one of the app's own agents."
|
|
449
519
|
},
|
|
@@ -451,15 +521,224 @@
|
|
|
451
521
|
"type": "array",
|
|
452
522
|
"items": {
|
|
453
523
|
"type": "string",
|
|
454
|
-
"minLength": 1
|
|
524
|
+
"minLength": 1,
|
|
525
|
+
"pattern": "\\S"
|
|
526
|
+
},
|
|
527
|
+
"description": "Workflow ids this app exposes: the callable surface other apps' `requires.apps[].workflows` entries may name (consumed via `app_call`). Every id must name one of the app's own workflows."
|
|
528
|
+
},
|
|
529
|
+
"prefix": {
|
|
530
|
+
"type": "string",
|
|
531
|
+
"pattern": "^[a-z][a-z0-9]{1,15}$",
|
|
532
|
+
"description": "MCP name prefix of every exposed tool: the computed name is `<prefix>_<name>`. Lowercase letters and digits only, no `_`, 2 to 16 characters. Required when `tools` is non-empty. A host additionally refuses a prefix that is the first `_` segment of one of its own tool names."
|
|
533
|
+
},
|
|
534
|
+
"tools": {
|
|
535
|
+
"type": "array",
|
|
536
|
+
"items": {
|
|
537
|
+
"$ref": "#/$defs/exposedTool"
|
|
538
|
+
},
|
|
539
|
+
"description": "Tools offered to MCP clients, each with an explicit access class. `id` values are unique within the array (loader rule)."
|
|
540
|
+
},
|
|
541
|
+
"resources": {
|
|
542
|
+
"type": "array",
|
|
543
|
+
"items": {
|
|
544
|
+
"type": "string",
|
|
545
|
+
"pattern": "^ui://[^\\s]+$"
|
|
455
546
|
},
|
|
456
|
-
"
|
|
547
|
+
"uniqueItems": true,
|
|
548
|
+
"description": "Per-app allowlist of `ui://` view URIs a host may relay to the app's imported MCP servers on `resources/read`. Needs at least one `imported:` entry in `tools` to relay from. An empty array is accepted and means no allowlist."
|
|
457
549
|
}
|
|
458
550
|
},
|
|
459
|
-
"
|
|
551
|
+
"allOf": [
|
|
552
|
+
{
|
|
553
|
+
"if": {
|
|
554
|
+
"required": [
|
|
555
|
+
"tools"
|
|
556
|
+
],
|
|
557
|
+
"properties": {
|
|
558
|
+
"tools": {
|
|
559
|
+
"minItems": 1
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
},
|
|
563
|
+
"then": {
|
|
564
|
+
"required": [
|
|
565
|
+
"prefix"
|
|
566
|
+
]
|
|
567
|
+
}
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
"if": {
|
|
571
|
+
"required": [
|
|
572
|
+
"resources"
|
|
573
|
+
],
|
|
574
|
+
"properties": {
|
|
575
|
+
"resources": {
|
|
576
|
+
"minItems": 1
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
},
|
|
580
|
+
"then": {
|
|
581
|
+
"required": [
|
|
582
|
+
"tools"
|
|
583
|
+
],
|
|
584
|
+
"properties": {
|
|
585
|
+
"tools": {
|
|
586
|
+
"contains": {
|
|
587
|
+
"type": "object",
|
|
588
|
+
"required": [
|
|
589
|
+
"id"
|
|
590
|
+
],
|
|
591
|
+
"properties": {
|
|
592
|
+
"id": {
|
|
593
|
+
"type": "string",
|
|
594
|
+
"pattern": "^imported:"
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
]
|
|
460
603
|
}
|
|
461
604
|
},
|
|
462
605
|
"$defs": {
|
|
606
|
+
"appRequirement": {
|
|
607
|
+
"description": "One `requires.apps` entry: a bare provider app id (a dependency only) or an object. Rules JSON Schema cannot express (every `workflows` id in the provider's `exposes.workflows` when called, every `tools` name computed by one of the provider's `exposes.tools` entries) are enforced by the host against the installed provider.",
|
|
608
|
+
"oneOf": [
|
|
609
|
+
{
|
|
610
|
+
"type": "string",
|
|
611
|
+
"minLength": 1,
|
|
612
|
+
"pattern": "\\S"
|
|
613
|
+
},
|
|
614
|
+
{
|
|
615
|
+
"type": "object",
|
|
616
|
+
"required": [
|
|
617
|
+
"id"
|
|
618
|
+
],
|
|
619
|
+
"additionalProperties": false,
|
|
620
|
+
"properties": {
|
|
621
|
+
"id": {
|
|
622
|
+
"type": "string",
|
|
623
|
+
"minLength": 1,
|
|
624
|
+
"pattern": "\\S",
|
|
625
|
+
"description": "The provider app id, as it appears in the provider's APP.md `id`."
|
|
626
|
+
},
|
|
627
|
+
"version": {
|
|
628
|
+
"type": "string",
|
|
629
|
+
"pattern": "^(?:[\\^~]\\d+(?:\\.\\d+(?:\\.\\d+)?)?|\\d+\\.\\d+\\.\\d+(?:[-+][\\w.\\-]+)?)$",
|
|
630
|
+
"description": "Range the provider's installed version must satisfy: an exact version (`1.2.3`), a caret (`^1`, `^1.2`, `^1.2.3`) or a tilde (`~1`, `~1.2`, `~1.2.3`). Omitted means any version."
|
|
631
|
+
},
|
|
632
|
+
"workflows": {
|
|
633
|
+
"type": "array",
|
|
634
|
+
"items": {
|
|
635
|
+
"type": "string",
|
|
636
|
+
"minLength": 1,
|
|
637
|
+
"pattern": "\\S"
|
|
638
|
+
},
|
|
639
|
+
"uniqueItems": true,
|
|
640
|
+
"description": "Provider workflows this app may call with `app_call`: ids from the provider's `exposes.workflows`. Omitted or empty means no call is allowed."
|
|
641
|
+
},
|
|
642
|
+
"tools": {
|
|
643
|
+
"type": "array",
|
|
644
|
+
"items": {
|
|
645
|
+
"type": "string",
|
|
646
|
+
"maxLength": 64,
|
|
647
|
+
"pattern": "^[a-z][a-z0-9]{1,15}_[a-zA-Z0-9-](?:[a-zA-Z0-9_-]*[a-zA-Z0-9-])?$"
|
|
648
|
+
},
|
|
649
|
+
"uniqueItems": true,
|
|
650
|
+
"description": "Provider tools granted to this app's own agents: the MCP names the provider's `exposes.tools` entries compute (`<prefix>_<name>`, for example `bureau_navigate`). Each is granted at the access class the provider declares, as if every AGENT.md of this app had opted in to it by name. Omitted or empty means nothing is granted."
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
]
|
|
655
|
+
},
|
|
656
|
+
"exposedTool": {
|
|
657
|
+
"type": "object",
|
|
658
|
+
"required": [
|
|
659
|
+
"id",
|
|
660
|
+
"access",
|
|
661
|
+
"description"
|
|
662
|
+
],
|
|
663
|
+
"additionalProperties": false,
|
|
664
|
+
"description": "One entry of `exposes.tools`. The MCP name is computed from `exposes.prefix` and `mcpName` (else `id`); see the AIP-53 section `Exposed tools and resources`.",
|
|
665
|
+
"properties": {
|
|
666
|
+
"id": {
|
|
667
|
+
"type": "string",
|
|
668
|
+
"minLength": 1,
|
|
669
|
+
"not": {
|
|
670
|
+
"pattern": "^approval"
|
|
671
|
+
},
|
|
672
|
+
"description": "A TOOL.md id the app bundles, or `imported:<alias>/<tool>` for a tool of one of the app's imported MCP servers. An id starting with `approval` is refused: deciding an approval never goes through this registry. A host's own tool names are refused too (loader rule)."
|
|
673
|
+
},
|
|
674
|
+
"access": {
|
|
675
|
+
"enum": [
|
|
676
|
+
"read",
|
|
677
|
+
"write",
|
|
678
|
+
"approve"
|
|
679
|
+
],
|
|
680
|
+
"description": "Access class. `read` is visible to every caller by default; `write` and `approve` are visible only to a caller that opted in by exact MCP name."
|
|
681
|
+
},
|
|
682
|
+
"description": {
|
|
683
|
+
"type": "string",
|
|
684
|
+
"pattern": "\\S",
|
|
685
|
+
"maxLength": 300,
|
|
686
|
+
"description": "Written for a model; non-blank, at most 300 characters."
|
|
687
|
+
},
|
|
688
|
+
"inputSchema": {
|
|
689
|
+
"type": "object",
|
|
690
|
+
"description": "JSON Schema object for the tool's input. Defaults to the bundled TOOL.md `inputs`. On an `imported:` entry whose schema declares `properties`, a host drops every undeclared input key before the call, unless `additionalProperties` is `true`."
|
|
691
|
+
},
|
|
692
|
+
"mcpName": {
|
|
693
|
+
"type": "string",
|
|
694
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9_-]*$",
|
|
695
|
+
"not": {
|
|
696
|
+
"pattern": "^approval"
|
|
697
|
+
},
|
|
698
|
+
"description": "Replaces the id as the source of the MCP name (no `:`, `/` or `.`). Required for an `imported:` id. A name starting with `approval` is refused."
|
|
699
|
+
},
|
|
700
|
+
"approvalArg": {
|
|
701
|
+
"type": "string",
|
|
702
|
+
"minLength": 1,
|
|
703
|
+
"description": "Name of the input argument that carries an approval reference. Only for `access: approve`; a shape hint, not a guarantee."
|
|
704
|
+
}
|
|
705
|
+
},
|
|
706
|
+
"allOf": [
|
|
707
|
+
{
|
|
708
|
+
"if": {
|
|
709
|
+
"required": [
|
|
710
|
+
"approvalArg"
|
|
711
|
+
]
|
|
712
|
+
},
|
|
713
|
+
"then": {
|
|
714
|
+
"properties": {
|
|
715
|
+
"access": {
|
|
716
|
+
"const": "approve"
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
"if": {
|
|
723
|
+
"properties": {
|
|
724
|
+
"id": {
|
|
725
|
+
"pattern": "^imported:"
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
},
|
|
729
|
+
"then": {
|
|
730
|
+
"required": [
|
|
731
|
+
"mcpName"
|
|
732
|
+
],
|
|
733
|
+
"properties": {
|
|
734
|
+
"access": {
|
|
735
|
+
"const": "read"
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
]
|
|
741
|
+
},
|
|
463
742
|
"stepId": {
|
|
464
743
|
"type": "string",
|
|
465
744
|
"pattern": "^[a-z][a-z0-9-]*$",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"additionalProperties": false,
|
|
74
74
|
"properties": {
|
|
75
75
|
"kind": { "type": "string", "minLength": 1 },
|
|
76
|
-
"
|
|
76
|
+
"harness": { "type": "string" },
|
|
77
77
|
"model": { "type": "string" },
|
|
78
78
|
"sessionId": {
|
|
79
79
|
"description": "The AIP-46 session id, when this step is agent-backed.",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
},
|
|
87
87
|
"conformanceLevel": {
|
|
88
88
|
"type": "string",
|
|
89
|
-
"enum": ["core", "interaction", "network", "download", "profile", "recording"]
|
|
89
|
+
"enum": ["core", "interaction", "network", "download", "profile", "recording", "recipes"]
|
|
90
90
|
},
|
|
91
91
|
"capabilities": {
|
|
92
92
|
"type": "object",
|
|
@@ -208,7 +208,7 @@
|
|
|
208
208
|
"type": "array",
|
|
209
209
|
"minItems": 1,
|
|
210
210
|
"uniqueItems": true,
|
|
211
|
-
"items": { "type": "string", "enum": ["ephemeral", "persistent", "import", "native-login", "clone"] }
|
|
211
|
+
"items": { "type": "string", "enum": ["ephemeral", "persistent", "import", "native-login", "clone", "attach"] }
|
|
212
212
|
},
|
|
213
213
|
"storedBy": { "type": "string", "enum": ["host", "provider"], "description": "Who persists session material between instance runs. provider means the provider keeps its own jar, outside the host store and outside the host's at-rest protections." }
|
|
214
214
|
}
|
|
@@ -315,11 +315,12 @@
|
|
|
315
315
|
"grant": {
|
|
316
316
|
"type": "object",
|
|
317
317
|
"additionalProperties": false,
|
|
318
|
-
"description": "A consent grant. The only way session material enters a store or a remote instance (C1). The scope is EITHER an explicit domain list OR fullProfile true: a wildcard is not a value of domains.",
|
|
319
|
-
"required": ["id", "sessionId", "
|
|
318
|
+
"description": "A consent grant. The only way session material enters a store or a remote instance (C1), and the authority to attach to a browser the user already runs (attach true, C14). The scope is EITHER an explicit domain list, OR fullProfile true, OR attach true with a profileRef: a wildcard is not a value of domains.",
|
|
319
|
+
"required": ["id", "sessionId", "sinks", "grantedAt", "grantedVia"],
|
|
320
320
|
"properties": {
|
|
321
321
|
"id": { "type": "string", "minLength": 1 },
|
|
322
322
|
"sessionId": { "type": "string", "minLength": 1 },
|
|
323
|
+
"profileRef": { "type": "string", "minLength": 1, "description": "Profile the grant applies to, as <instance>/<profile> (for example chrome-user/perso). Optional next to sessionId, which keeps its meaning (C17); required with attach." },
|
|
323
324
|
"deviceId": { "type": "string", "minLength": 1, "description": "Paired device (AIP-59) this grant is scoped to. Absent = usable by any device the host serves (C12)." },
|
|
324
325
|
"source": {
|
|
325
326
|
"type": "object",
|
|
@@ -332,6 +333,7 @@
|
|
|
332
333
|
},
|
|
333
334
|
"domains": { "type": "array", "minItems": 1, "uniqueItems": true, "items": { "$ref": "#/$defs/domain" } },
|
|
334
335
|
"fullProfile": { "const": true, "description": "The recorded full-profile grant (C3). Not a wildcard domain." },
|
|
336
|
+
"attach": { "const": true, "description": "An attach grant (C14): the host may attach to the browser instance and profile named by profileRef. Copies nothing; local sinks only (C16)." },
|
|
335
337
|
"sinks": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/grantSink" } },
|
|
336
338
|
"grantedAt": { "type": "string", "format": "date-time" },
|
|
337
339
|
"grantedVia": { "type": "string", "enum": ["interactive", "flag"] },
|
|
@@ -340,11 +342,41 @@
|
|
|
340
342
|
"revokedAt": { "type": "string", "format": "date-time" }
|
|
341
343
|
},
|
|
342
344
|
"oneOf": [
|
|
343
|
-
{ "required": ["domains"], "not": { "required": ["fullProfile"] } },
|
|
344
|
-
{ "required": ["fullProfile"], "not": { "required": ["domains"] } }
|
|
345
|
+
{ "required": ["domains", "source", "cookieCount"], "not": { "anyOf": [{ "required": ["fullProfile"] }, { "required": ["attach"] }] } },
|
|
346
|
+
{ "required": ["fullProfile", "source", "cookieCount"], "not": { "anyOf": [{ "required": ["domains"] }, { "required": ["attach"] }] } },
|
|
347
|
+
{ "required": ["attach", "profileRef"], "not": { "anyOf": [{ "required": ["domains"] }, { "required": ["fullProfile"] }] } }
|
|
345
348
|
],
|
|
346
|
-
"
|
|
347
|
-
|
|
349
|
+
"allOf": [
|
|
350
|
+
{
|
|
351
|
+
"if": { "required": ["fullProfile"] },
|
|
352
|
+
"then": { "properties": { "sinks": { "items": { "properties": { "kind": { "const": "local" } } } } } }
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"description": "C16: an attached profile never goes to a remote sink.",
|
|
356
|
+
"if": { "required": ["attach"] },
|
|
357
|
+
"then": { "properties": { "sinks": { "items": { "properties": { "kind": { "const": "local" } } } } } }
|
|
358
|
+
}
|
|
359
|
+
]
|
|
360
|
+
},
|
|
361
|
+
"account": {
|
|
362
|
+
"type": "object",
|
|
363
|
+
"additionalProperties": false,
|
|
364
|
+
"description": "A host record of one account on one site in one profile (C17). It authorizes nothing: only grants do. It never holds a cookie, token or storage value (C9).",
|
|
365
|
+
"required": ["id", "site", "profileRef", "session", "source", "grantIds"],
|
|
366
|
+
"properties": {
|
|
367
|
+
"id": { "type": "string", "minLength": 1, "description": "Stable name, for example linkedin-jeremy." },
|
|
368
|
+
"site": { "$ref": "#/$defs/domain" },
|
|
369
|
+
"account": { "type": "string", "minLength": 1, "maxLength": 200, "description": "Display name or address on the site. Personal data, not a secret." },
|
|
370
|
+
"profileRef": { "type": "string", "minLength": 1, "description": "<instance>/<profile> the account lives in." },
|
|
371
|
+
"session": { "type": "string", "enum": ["valid", "expired", "unknown"], "description": "Observed login state. Indicative; this AIP does not require a probe." },
|
|
372
|
+
"verifiedAt": { "type": "string", "format": "date-time" },
|
|
373
|
+
"source": { "type": "string", "enum": ["native", "synced"], "description": "native: the user logged in in this profile. synced: material copied in under a grant." },
|
|
374
|
+
"syncedFrom": { "type": "string", "minLength": 1, "description": "profileRef the material came from (source synced)." },
|
|
375
|
+
"syncedAt": { "type": "string", "format": "date-time" },
|
|
376
|
+
"grantIds": { "type": "array", "uniqueItems": true, "items": { "type": "string", "minLength": 1 } }
|
|
377
|
+
},
|
|
378
|
+
"if": { "properties": { "source": { "const": "synced" } }, "required": ["source"] },
|
|
379
|
+
"then": { "required": ["syncedFrom"] }
|
|
348
380
|
},
|
|
349
381
|
"ledgerRecord": {
|
|
350
382
|
"type": "object",
|
|
@@ -354,7 +386,7 @@
|
|
|
354
386
|
"properties": {
|
|
355
387
|
"seq": { "type": "integer", "minimum": 0 },
|
|
356
388
|
"at": { "type": "string", "format": "date-time" },
|
|
357
|
-
"event": { "type": "string", "enum": ["grant", "refresh", "revoke", "sink-ack", "deny"] },
|
|
389
|
+
"event": { "type": "string", "enum": ["grant", "refresh", "revoke", "sink-ack", "deny", "attach-ack"] },
|
|
358
390
|
"actor": {
|
|
359
391
|
"type": "object",
|
|
360
392
|
"additionalProperties": false,
|
|
@@ -367,8 +399,12 @@
|
|
|
367
399
|
},
|
|
368
400
|
"grantId": { "type": "string", "minLength": 1 },
|
|
369
401
|
"sessionId": { "type": "string", "minLength": 1 },
|
|
402
|
+
"profileRef": { "type": "string", "minLength": 1, "description": "Profile an attach grant or attach-ack applies to (C14)." },
|
|
403
|
+
"instance": { "type": "string", "minLength": 1, "description": "Browser instance an attach-ack applies to (C14)." },
|
|
404
|
+
"purpose": { "type": "string", "maxLength": 500, "description": "What the human attached the browser for (C14)." },
|
|
370
405
|
"domains": { "type": "array", "uniqueItems": true, "items": { "$ref": "#/$defs/domain" } },
|
|
371
406
|
"fullProfile": { "const": true },
|
|
407
|
+
"attach": { "const": true },
|
|
372
408
|
"cookieCount": { "type": "integer", "minimum": 0 },
|
|
373
409
|
"nameHashes": {
|
|
374
410
|
"type": "array",
|
|
@@ -397,10 +433,11 @@
|
|
|
397
433
|
{
|
|
398
434
|
"if": { "properties": { "event": { "const": "grant" } } },
|
|
399
435
|
"then": {
|
|
400
|
-
"required": ["grantId", "sessionId"
|
|
436
|
+
"required": ["grantId", "sessionId"],
|
|
401
437
|
"oneOf": [
|
|
402
|
-
{ "required": ["domains"], "not": { "required": ["fullProfile"] } },
|
|
403
|
-
{ "required": ["fullProfile"], "not": { "required": ["domains"] } }
|
|
438
|
+
{ "required": ["domains", "cookieCount"], "not": { "anyOf": [{ "required": ["fullProfile"] }, { "required": ["attach"] }] } },
|
|
439
|
+
{ "required": ["fullProfile", "cookieCount"], "not": { "anyOf": [{ "required": ["domains"] }, { "required": ["attach"] }] } },
|
|
440
|
+
{ "required": ["attach", "profileRef"], "not": { "anyOf": [{ "required": ["domains"] }, { "required": ["fullProfile"] }] } }
|
|
404
441
|
],
|
|
405
442
|
"properties": { "domains": { "minItems": 1 } }
|
|
406
443
|
}
|
|
@@ -417,6 +454,11 @@
|
|
|
417
454
|
"if": { "properties": { "event": { "const": "sink-ack" } } },
|
|
418
455
|
"then": { "required": ["grantId", "sinkId"], "properties": { "actor": { "properties": { "kind": { "const": "human" } } } } }
|
|
419
456
|
},
|
|
457
|
+
{
|
|
458
|
+
"description": "C14: an attach-ack is a human record naming the grant, the instance, the profile and the purpose.",
|
|
459
|
+
"if": { "properties": { "event": { "const": "attach-ack" } } },
|
|
460
|
+
"then": { "required": ["grantId", "instance", "profileRef", "purpose"], "properties": { "actor": { "properties": { "kind": { "const": "human" } } } } }
|
|
461
|
+
},
|
|
420
462
|
{
|
|
421
463
|
"if": { "properties": { "event": { "const": "deny" } } },
|
|
422
464
|
"then": { "required": ["reason"] }
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://agentproto.sh/docs/aip-63/RECIPE.schema.json",
|
|
4
|
+
"title": "recipe/v1",
|
|
5
|
+
"description": "JSON Schema for the YAML frontmatter of an AIP-63 site recipe manifest (RECIPE.md). The property set is closed: an unknown top-level key is a load error, never a silent ignore (P2). The tool prefix rule (P3) and the workflow prefix rule (P4) are normative prose, not expressible here because each composes with the recipe id.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": ["schema", "id", "version", "title", "api", "sites", "tools", "publisher"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"schema": { "const": "recipe/v1", "description": "Required, exact (P2)." },
|
|
11
|
+
"id": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"pattern": "^[a-z][a-z0-9-]{1,30}$",
|
|
14
|
+
"description": "Recipe id. Also the directory name (P1) and the base of the tool prefix (P3)."
|
|
15
|
+
},
|
|
16
|
+
"version": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(-[0-9A-Za-z.-]+)?(\\+[0-9A-Za-z.-]+)?$",
|
|
19
|
+
"description": "Semver. One recipe, one version."
|
|
20
|
+
},
|
|
21
|
+
"title": { "type": "string", "minLength": 1, "description": "Display name." },
|
|
22
|
+
"api": {
|
|
23
|
+
"const": 1,
|
|
24
|
+
"description": "The recipe API version this recipe targets. A host MUST refuse an api it does not know."
|
|
25
|
+
},
|
|
26
|
+
"sites": {
|
|
27
|
+
"type": "array",
|
|
28
|
+
"minItems": 1,
|
|
29
|
+
"uniqueItems": true,
|
|
30
|
+
"items": { "$ref": "#/$defs/domain" },
|
|
31
|
+
"description": "Non-empty registrable domains, lowercase. The recipe's origin guard covers each domain and its subdomains exactly as C2 does for grants (P8)."
|
|
32
|
+
},
|
|
33
|
+
"accounts": {
|
|
34
|
+
"type": "array",
|
|
35
|
+
"uniqueItems": true,
|
|
36
|
+
"items": { "$ref": "#/$defs/domain" },
|
|
37
|
+
"description": "Optional subset of sites. The recipe needs an Account (C17) on these sites (P5, P11). A subset relation is not expressible in JSON Schema; the loader checks it."
|
|
38
|
+
},
|
|
39
|
+
"tools": {
|
|
40
|
+
"type": "array",
|
|
41
|
+
"minItems": 1,
|
|
42
|
+
"uniqueItems": true,
|
|
43
|
+
"items": { "$ref": "#/$defs/toolName" },
|
|
44
|
+
"description": "Exact set of tool names the entry returns (P6). Every name starts with the recipe's tool prefix (P3, prose)."
|
|
45
|
+
},
|
|
46
|
+
"workflows": {
|
|
47
|
+
"type": "array",
|
|
48
|
+
"uniqueItems": true,
|
|
49
|
+
"items": { "type": "string", "pattern": "^[a-z][a-z0-9-]*$" },
|
|
50
|
+
"description": "Exact set of workflow ids the entry returns (P6). Every id starts with `<id>-` (P4, prose)."
|
|
51
|
+
},
|
|
52
|
+
"writes": {
|
|
53
|
+
"type": "object",
|
|
54
|
+
"propertyNames": { "$ref": "#/$defs/toolName" },
|
|
55
|
+
"additionalProperties": { "type": "string", "enum": ["approve", "confirm"] },
|
|
56
|
+
"description": "Tool name to write gate level (P5, P9, P10). Every tool not listed is a read."
|
|
57
|
+
},
|
|
58
|
+
"probes": {
|
|
59
|
+
"type": "array",
|
|
60
|
+
"uniqueItems": true,
|
|
61
|
+
"items": { "type": "string", "pattern": "^[a-z][a-z0-9_-]*$" },
|
|
62
|
+
"description": "Exact set of probe ids the entry exports (P6, P15)."
|
|
63
|
+
},
|
|
64
|
+
"entry": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"minLength": 1,
|
|
67
|
+
"description": "Entry module path. Default dist/index.js (P1)."
|
|
68
|
+
},
|
|
69
|
+
"guide": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"minLength": 1,
|
|
72
|
+
"description": "Guide path. Default guide/GUIDE.md (P1)."
|
|
73
|
+
},
|
|
74
|
+
"publisher": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"minLength": 1,
|
|
77
|
+
"description": "Who publishes the recipe. Shown in discovery and in the guide's provenance."
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"$defs": {
|
|
81
|
+
"domain": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"maxLength": 253,
|
|
84
|
+
"pattern": "^([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?\\.)+([a-z]{2,63}|xn--[a-z0-9-]{1,59})$",
|
|
85
|
+
"description": "An explicit lowercase registrable domain or host (at least two labels, ASCII or punycode). No wildcard, no leading dot, no bare TLD. A schema cannot see the Public Suffix List, so a host MUST additionally reject public suffixes at runtime (C2)."
|
|
86
|
+
},
|
|
87
|
+
"toolName": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"pattern": "^[a-z][a-z0-9_]*$",
|
|
90
|
+
"description": "Generic AIP-14 tool name shape. The recipe id prefix rule is prose (P3)."
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"minLength": 1,
|
|
55
55
|
"description": "The agent or browser session that was recorded."
|
|
56
56
|
},
|
|
57
|
+
"callerSessionId": { "type": "string", "minLength": 1, "description": "Caller session (AIP-63 L15) that drove the recorded targets, established by an AIP-59 sub-session token (R16)." },
|
|
57
58
|
"provider": {
|
|
58
59
|
"type": "string",
|
|
59
60
|
"minLength": 1,
|
|
@@ -229,6 +230,7 @@
|
|
|
229
230
|
"description": "Page URL when the action started, with fragment and any userinfo removed."
|
|
230
231
|
},
|
|
231
232
|
"tabId": { "type": "string", "minLength": 1 },
|
|
233
|
+
"callerSessionId": { "type": "string", "minLength": 1, "description": "Caller session (AIP-63 L15) that made this call." },
|
|
232
234
|
"target": {
|
|
233
235
|
"type": "object",
|
|
234
236
|
"additionalProperties": false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentproto/corpus-cli",
|
|
3
|
-
"version": "0.11.
|
|
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": "1.0.
|
|
58
|
-
"@agentproto/corpus-presets": "0.2.
|
|
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",
|