@agentproto/corpus-cli 0.10.1 → 0.10.2

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-14/draft/TOOL.schema.json +1 -1
  2. package/dist/specs/resources/aip-15/draft/WORKFLOW.schema.json +47 -52
  3. package/dist/specs/resources/aip-18/draft/COLLECTION.schema.json +128 -7
  4. package/dist/specs/resources/aip-36/draft/SANDBOX.schema.json +13 -0
  5. package/dist/specs/resources/aip-41/draft/ROUTINE.schema.json +21 -2
  6. package/dist/specs/resources/aip-42/draft/AGENT.schema.json +1 -1
  7. package/dist/specs/resources/aip-47/draft/ROLE.schema.json +1 -1
  8. package/dist/specs/resources/aip-49/draft/ASSET.schema.json +232 -0
  9. package/dist/specs/resources/aip-50/draft/AUTH.schema.json +114 -0
  10. package/dist/specs/resources/aip-53/draft/APP.schema.json +211 -0
  11. package/dist/specs/resources/aip-54/draft/REF.schema.json +1 -1
  12. package/dist/specs/resources/aip-54/draft/WS-REF.schema.json +46 -0
  13. package/dist/specs/resources/aip-55/draft/PRODUCT.schema.json +172 -38
  14. package/dist/specs/resources/aip-58/draft/vectors/v8-heuristic-not-suspend.json +1 -1
  15. package/dist/specs/resources/aip-62/draft/ATTESTATION.schema.json +184 -0
  16. package/dist/specs/resources/aip-62/draft/REVIEW-PACK.schema.json +70 -0
  17. package/dist/specs/resources/aip-62/draft/REVIEW.schema.json +180 -0
  18. package/dist/specs/resources/aip-7/draft/GOVERNANCE.schema.json +147 -1
  19. package/dist/specs/resources/{aip-52/draft → pending/harness}/HARNESS.schema.json +1 -1
  20. package/package.json +3 -3
  21. package/dist/specs/resources/aip-52/draft/ADAPTER.md +0 -193
  22. package/dist/specs/resources/aip-54/draft/REF.md +0 -89
  23. package/dist/specs/resources/aip-55/draft/PRODUCT.md +0 -143
@@ -2,40 +2,94 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://agentproto.sh/schemas/aip-55/PRODUCT.schema.json",
4
4
  "title": "product/v1 frontmatter (AIP-55)",
5
- "description": "Validates the YAML frontmatter portion of an AIP-55 PRODUCT.md — a pricing CAPABILITY attached to any referenced AIP artifact. The target is addressed by an AIP-54 ref/v1 (aip:// URI in string contexts); the target AIP needs zero pricing awareness. Price models: 'one-time', 'prepaid-pool', 'pay-per-call'. Minor units are normative. billingRail is projection config, never the source of truth.",
5
+ "description": "Validates the YAML frontmatter portion of an AIP-55 PRODUCT.md \u2014 a pricing CAPABILITY attached to any referenced AIP artifact. The target is addressed by an AIP-54 ref/v1 (aip:// URI in string contexts); the target AIP needs zero pricing awareness. Price models: 'one-time', 'prepaid-pool', 'pay-per-call'. Minor units are normative. billingRail is projection config, never the source of truth.",
6
6
  "$defs": {
7
7
  "price": {
8
8
  "oneOf": [
9
9
  {
10
10
  "type": "object",
11
- "required": ["model", "amountMinor", "currency"],
11
+ "required": [
12
+ "model",
13
+ "amountMinor",
14
+ "currency"
15
+ ],
12
16
  "additionalProperties": false,
13
17
  "properties": {
14
- "model": { "const": "one-time", "description": "Single payment for perpetual access." },
15
- "amountMinor": { "type": "integer", "minimum": 0, "description": "Amount in MINOR units of the currency (cents for usd). Minor units are normative — major-unit floats are the x100 bug class." },
16
- "currency": { "type": "string", "pattern": "^[a-z]{3}$", "description": "ISO-4217 lowercase, e.g. 'usd'." }
18
+ "model": {
19
+ "const": "one-time",
20
+ "description": "Single payment for perpetual access."
21
+ },
22
+ "amountMinor": {
23
+ "type": "integer",
24
+ "minimum": 0,
25
+ "description": "Amount in MINOR units of the currency (cents for usd). Minor units are normative \u2014 major-unit floats are the x100 bug class."
26
+ },
27
+ "currency": {
28
+ "type": "string",
29
+ "pattern": "^[a-z]{3}$",
30
+ "description": "ISO-4217 lowercase, e.g. 'usd'."
31
+ }
17
32
  }
18
33
  },
19
34
  {
20
35
  "type": "object",
21
- "required": ["model", "unitPriceMinor", "currency", "grantUnits"],
36
+ "required": [
37
+ "model",
38
+ "unitPriceMinor",
39
+ "currency",
40
+ "grantUnits"
41
+ ],
22
42
  "additionalProperties": false,
23
43
  "properties": {
24
- "model": { "const": "prepaid-pool", "description": "Buy a pool of meter units up front; consumption draws the pool down. Pool STATE is host-side on every rail — the rail only initiates the top-up payment." },
25
- "unitPriceMinor": { "type": "integer", "minimum": 0, "description": "Price per unit in minor units of the currency." },
26
- "currency": { "type": "string", "pattern": "^[a-z]{3}$" },
27
- "grantUnits": { "type": "integer", "minimum": 1, "description": "Meter units granted per purchase. Unit semantics are declared by the host, not the spec; if a wallet asset backs the pool, units MUST be minor units of that asset's `decimals` (AIP-49)." }
44
+ "model": {
45
+ "const": "prepaid-pool",
46
+ "description": "Buy a pool of meter units up front; consumption draws the pool down. Pool STATE is host-side on every rail \u2014 the rail only initiates the top-up payment."
47
+ },
48
+ "unitPriceMinor": {
49
+ "type": "integer",
50
+ "minimum": 0,
51
+ "description": "Price per unit in minor units of the currency."
52
+ },
53
+ "currency": {
54
+ "type": "string",
55
+ "pattern": "^[a-z]{3}$"
56
+ },
57
+ "grantUnits": {
58
+ "type": "integer",
59
+ "minimum": 1,
60
+ "description": "Meter units granted per purchase. Unit semantics are declared by the host, not the spec; if a wallet asset backs the pool, units MUST be minor units of that asset's `decimals` (AIP-49)."
61
+ }
28
62
  }
29
63
  },
30
64
  {
31
65
  "type": "object",
32
- "required": ["model", "unitPriceMinor", "currency", "meter"],
66
+ "required": [
67
+ "model",
68
+ "unitPriceMinor",
69
+ "currency",
70
+ "meter"
71
+ ],
33
72
  "additionalProperties": false,
34
73
  "properties": {
35
- "model": { "const": "pay-per-call", "description": "Post-paid metering: each unit consumed is billed." },
36
- "unitPriceMinor": { "type": "integer", "minimum": 0, "description": "Price per meter unit in minor units." },
37
- "currency": { "type": "string", "pattern": "^[a-z]{3}$" },
38
- "meter": { "type": "string", "minLength": 1, "maxLength": 96, "description": "Host-declared meter id, e.g. 'agent-call', 'tokens-1k', 'sandbox-hour'. Open vocabulary; hosts SHOULD namespace host-specific meters." }
74
+ "model": {
75
+ "const": "pay-per-call",
76
+ "description": "Post-paid metering: each unit consumed is billed."
77
+ },
78
+ "unitPriceMinor": {
79
+ "type": "integer",
80
+ "minimum": 0,
81
+ "description": "Price per meter unit in minor units."
82
+ },
83
+ "currency": {
84
+ "type": "string",
85
+ "pattern": "^[a-z]{3}$"
86
+ },
87
+ "meter": {
88
+ "type": "string",
89
+ "minLength": 1,
90
+ "maxLength": 96,
91
+ "description": "Host-declared meter id, e.g. 'agent-call', 'tokens-1k', 'sandbox-hour'. Open vocabulary; hosts SHOULD namespace host-specific meters."
92
+ }
39
93
  }
40
94
  }
41
95
  ]
@@ -44,60 +98,140 @@
44
98
  "oneOf": [
45
99
  {
46
100
  "type": "object",
47
- "required": ["rail"],
101
+ "required": [
102
+ "rail"
103
+ ],
48
104
  "additionalProperties": false,
49
105
  "properties": {
50
- "rail": { "const": "stripe" },
51
- "productId": { "type": "string", "description": "Stripe Product id — a CACHE of the last projection, never the source of truth for the price." },
52
- "priceId": { "type": "string", "description": "Stripe Price id." },
53
- "meterId": { "type": "string", "description": "Stripe Meter id — REQUIRED when price.model is 'pay-per-call'; Stripe meters are created out-of-band and cannot be derived from the Price id." },
54
- "recurrence": { "enum": ["month", "year", "week", "day"], "description": "Billing recurrence for metered prices. Absent = per-unit without period." }
106
+ "rail": {
107
+ "const": "stripe"
108
+ },
109
+ "productId": {
110
+ "type": "string",
111
+ "description": "Stripe Product id \u2014 a CACHE of the last projection, never the source of truth for the price."
112
+ },
113
+ "priceId": {
114
+ "type": "string",
115
+ "description": "Stripe Price id."
116
+ },
117
+ "meterId": {
118
+ "type": "string",
119
+ "description": "Stripe Meter id \u2014 REQUIRED when price.model is 'pay-per-call'; Stripe meters are created out-of-band and cannot be derived from the Price id."
120
+ },
121
+ "recurrence": {
122
+ "enum": [
123
+ "month",
124
+ "year",
125
+ "week",
126
+ "day"
127
+ ],
128
+ "description": "Billing recurrence for metered prices. Absent = per-unit without period."
129
+ }
55
130
  }
56
131
  },
57
132
  {
58
133
  "type": "object",
59
- "required": ["rail"],
134
+ "required": [
135
+ "rail"
136
+ ],
60
137
  "additionalProperties": false,
61
138
  "properties": {
62
- "rail": { "const": "autumn" },
63
- "featureId": { "type": "string", "description": "Autumn feature id. Autumn natively models both metered usage and prepaid credit grants, so prepaid-pool and pay-per-call both project onto one featureId." },
64
- "grantId": { "type": "string", "description": "Autumn credit-grant id for prepaid-pool products, if distinct from featureId." }
139
+ "rail": {
140
+ "const": "autumn"
141
+ },
142
+ "featureId": {
143
+ "type": "string",
144
+ "description": "Autumn feature id. Autumn natively models both metered usage and prepaid credit grants, so prepaid-pool and pay-per-call both project onto one featureId."
145
+ },
146
+ "grantId": {
147
+ "type": "string",
148
+ "description": "Autumn credit-grant id for prepaid-pool products, if distinct from featureId."
149
+ }
65
150
  }
66
151
  },
67
152
  {
68
153
  "type": "object",
69
- "required": ["rail"],
154
+ "required": [
155
+ "rail"
156
+ ],
70
157
  "additionalProperties": false,
71
158
  "properties": {
72
- "rail": { "const": "tbd", "description": "Commerce shape decided, provider not chosen yet." }
159
+ "rail": {
160
+ "const": "tbd",
161
+ "description": "Commerce shape decided, provider not chosen yet."
162
+ }
73
163
  }
74
164
  },
75
165
  {
76
166
  "type": "object",
77
- "required": ["rail"],
167
+ "required": [
168
+ "rail"
169
+ ],
78
170
  "additionalProperties": true,
79
171
  "properties": {
80
- "rail": { "type": "string", "pattern": "^[a-z][a-z0-9-]*$", "not": { "enum": ["stripe", "autumn", "tbd"] }, "description": "Vendor-specific rail. Rail-specific config lives under namespaced keys; unknown rails MUST be tolerated by hosts that only consume the price union." }
172
+ "rail": {
173
+ "type": "string",
174
+ "pattern": "^[a-z][a-z0-9-]*$",
175
+ "not": {
176
+ "enum": [
177
+ "stripe",
178
+ "autumn",
179
+ "tbd"
180
+ ]
181
+ },
182
+ "description": "Vendor-specific rail. Rail-specific config lives under namespaced keys; unknown rails MUST be tolerated by hosts that only consume the price union."
183
+ }
81
184
  }
82
185
  }
83
186
  ]
84
187
  }
85
188
  },
86
189
  "type": "object",
87
- "required": ["schema", "id", "on", "price"],
190
+ "required": [
191
+ "schema",
192
+ "id",
193
+ "on",
194
+ "price"
195
+ ],
88
196
  "additionalProperties": false,
89
197
  "properties": {
90
- "schema": { "const": "product/v1", "description": "Doctype discriminator." },
91
- "id": { "type": "string", "pattern": "^[a-z][a-z0-9-]*$", "minLength": 2, "maxLength": 96, "description": "Stable kebab-case pricing-capability id." },
92
- "kind": { "const": "pricing", "description": "Capability kind. AIP-55 v2 is a capability; other capability kinds may exist under the capability/v1 pattern without their own AIP." },
198
+ "schema": {
199
+ "const": "product/v1",
200
+ "description": "Doctype discriminator."
201
+ },
202
+ "id": {
203
+ "type": "string",
204
+ "pattern": "^[a-z][a-z0-9-]*$",
205
+ "minLength": 2,
206
+ "maxLength": 96,
207
+ "description": "Stable kebab-case pricing-capability id."
208
+ },
209
+ "kind": {
210
+ "const": "pricing",
211
+ "description": "Capability kind. AIP-55 is a capability; other capability kinds may exist under the capability/v1 pattern without their own AIP."
212
+ },
93
213
  "on": {
94
214
  "$ref": "https://agentproto.sh/schemas/aip-54/REF.schema.json",
95
- "description": "The referenced artifact this pricing attaches to (AIP-54 ref/v1). String contexts use the aip:// URI form, e.g. 'aip://42/book-companion@1.2.0'. The target AIP needs zero pricing awareness; hosts MUST refuse when the ref does not resolve."
215
+ "description": "The referenced artifact this pricing attaches to (AIP-54 ref/v1). String contexts use the aip:// URI form, e.g. 'aip://53/book-companion@1.2.0'. The target AIP needs zero pricing awareness; hosts MUST refuse when the ref does not resolve."
216
+ },
217
+ "title": {
218
+ "type": "string",
219
+ "minLength": 1,
220
+ "maxLength": 200,
221
+ "description": "Human-readable display name, e.g. a checkout label."
222
+ },
223
+ "description": {
224
+ "type": "string",
225
+ "minLength": 1,
226
+ "maxLength": 2000
227
+ },
228
+ "price": {
229
+ "$ref": "#/$defs/price",
230
+ "description": "The source of truth for what is charged. billingRail is projection config; a generator derives Stripe Prices / Autumn features FROM this."
231
+ },
232
+ "billingRail": {
233
+ "$ref": "#/$defs/billingRail"
96
234
  },
97
- "title": { "type": "string", "minLength": 1, "maxLength": 200, "description": "Human-readable display name, e.g. a checkout label." },
98
- "description": { "type": "string", "minLength": 1, "maxLength": 2000 },
99
- "price": { "$ref": "#/$defs/price", "description": "The source of truth for what is charged. billingRail is projection config; a generator derives Stripe Prices / Autumn features FROM this." },
100
- "billingRail": { "$ref": "#/$defs/billingRail" },
101
235
  "metadata": {
102
236
  "type": "object",
103
237
  "additionalProperties": true,
@@ -41,7 +41,7 @@
41
41
  "The final message is textually identical to V2's -- a question about tone. The outcome differs because V2's step made an explicit run.requestInput call and this one didn't; a host is NOT permitted to read the two turns identically just because their prose matches.",
42
42
  "A host MAY set StepRecord.hint = 'possible-input-request' after pattern-matching the trailing question mark, purely as a triage aid for a human reading the failed run. The hint MUST NOT change stepStatus/terminalState -- a conformance check that flips this vector's expected terminalState to 'suspended' on the basis of the hint is testing a non-conforming host.",
43
43
  "No step.suspended or run.suspended event may appear anywhere in this run's event log.",
44
- "manifestExcerpt.steps[0] declares an outputSchema (added locally, ahead of agentproto/agentproto#39 / branch aip58-vacuous-contract, which makes the same addition upstream and amends section 3 to say explicitly that a step declaring no contract at all has a vacuous contract and always succeeds on turn end -- which would make this vector inapplicable as written without one). Re-running `pnpm sync-specs` after that PR merges will re-vendor this file from the real source; this edit is expected to become a no-op at that point."
44
+ "manifestExcerpt.steps[0] declares an outputSchema (added 2026-09-25, alongside section 3's vacuous-contract amendment) so this vector actually exercises missing-output -- a step declaring no contract at all has a vacuous contract (section 3) and always succeeds on turn end, which would make this vector inapplicable as written."
45
45
  ]
46
46
  }
47
47
  }
@@ -0,0 +1,184 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://agentproto.sh/schemas/aip-62/ATTESTATION.schema.json",
4
+ "title": "agentproto.review.attestation/v1",
5
+ "description": "A review verdict bound to a manifest and a frozen git range. The `verdict` MUST equal the fold of `lanes` (AIP-62 verdict fold); a verifier recomputes it. `attestor.signature`, when present, covers the canonical JSON of the attestation with `attestor.signature` removed. Mutable annotations (PR status) live outside this document and are never signed.",
6
+ "type": "object",
7
+ "required": [
8
+ "schema",
9
+ "runId",
10
+ "reviewId",
11
+ "manifestSha",
12
+ "binding",
13
+ "target",
14
+ "rangeSha",
15
+ "lanes",
16
+ "verdict",
17
+ "attestor",
18
+ "rubrics",
19
+ "createdAt"
20
+ ],
21
+ "properties": {
22
+ "schema": { "const": "agentproto.review.attestation/v1" },
23
+ "runId": { "type": "string", "pattern": "^review-.+$" },
24
+ "reviewId": { "type": "string", "description": "The REVIEW.md id." },
25
+ "manifestSha": { "$ref": "#/$defs/sha256", "description": "sha256 of the REVIEW.md source bytes." },
26
+ "binding": { "type": "string", "minLength": 1 },
27
+ "target": {
28
+ "type": "object",
29
+ "additionalProperties": false,
30
+ "required": ["repoRemote", "baseSha", "headSha"],
31
+ "properties": {
32
+ "repoRemote": {
33
+ "type": "string",
34
+ "minLength": 1,
35
+ "description": "Normalized origin URL (scheme and credentials stripped, scp form converted to host/path, .git and trailing slashes stripped), or `local:<absolute root>` when the repo has no origin."
36
+ },
37
+ "baseSha": { "type": "string", "minLength": 1 },
38
+ "headSha": { "type": "string", "minLength": 1 }
39
+ }
40
+ },
41
+ "rangeSha": {
42
+ "$ref": "#/$defs/sha256",
43
+ "description": "sha256 of the UTF-8 string `<baseSha>..<headSha>`."
44
+ },
45
+ "lanes": { "type": "array", "items": { "$ref": "#/$defs/lane" } },
46
+ "verdict": { "enum": ["pass", "block", "incomplete"] },
47
+ "attestor": {
48
+ "type": "object",
49
+ "additionalProperties": false,
50
+ "required": ["daemon", "presets"],
51
+ "properties": {
52
+ "daemon": { "type": "string" },
53
+ "presets": { "type": "array", "items": { "type": "string" }, "uniqueItems": true },
54
+ "signature": { "$ref": "#/$defs/signature" }
55
+ }
56
+ },
57
+ "rubrics": {
58
+ "type": "array",
59
+ "items": {
60
+ "type": "object",
61
+ "additionalProperties": false,
62
+ "required": ["check", "path", "sha256"],
63
+ "properties": {
64
+ "check": { "type": "string" },
65
+ "path": { "type": "string" },
66
+ "sha256": { "$ref": "#/$defs/sha256" }
67
+ }
68
+ }
69
+ },
70
+ "packs": {
71
+ "type": "array",
72
+ "minItems": 1,
73
+ "items": {
74
+ "type": "object",
75
+ "additionalProperties": false,
76
+ "required": ["ref", "id", "version", "alg", "sha256"],
77
+ "properties": {
78
+ "ref": { "type": "string", "description": "The uses[].pack string as written." },
79
+ "id": { "type": "string" },
80
+ "version": { "type": "string" },
81
+ "alg": {
82
+ "const": "agentproto-pack-digest/v1",
83
+ "description": "The digest recipe tag. A verifier that does not recognize it MUST refuse to compare."
84
+ },
85
+ "sha256": { "$ref": "#/$defs/sha256" }
86
+ }
87
+ }
88
+ },
89
+ "dirty": {
90
+ "const": true,
91
+ "description": "Present (as true) only when tracked files had uncommitted changes at freeze time."
92
+ },
93
+ "requester": {
94
+ "type": "object",
95
+ "additionalProperties": false,
96
+ "minProperties": 1,
97
+ "description": "Informational provenance. Names the requester; does not authenticate them.",
98
+ "properties": {
99
+ "sessionId": { "type": "string" },
100
+ "gitAuthor": {
101
+ "type": "object",
102
+ "additionalProperties": false,
103
+ "required": ["name", "email"],
104
+ "properties": {
105
+ "name": { "type": "string" },
106
+ "email": { "type": "string" }
107
+ }
108
+ }
109
+ }
110
+ },
111
+ "pr": {
112
+ "type": "object",
113
+ "additionalProperties": false,
114
+ "required": ["provider", "repo", "number", "url"],
115
+ "properties": {
116
+ "provider": { "const": "github" },
117
+ "repo": { "type": "string", "pattern": "^[^/]+/[^/]+$" },
118
+ "number": { "type": "integer", "minimum": 1 },
119
+ "url": { "type": "string" }
120
+ }
121
+ },
122
+ "createdAt": { "type": "string", "format": "date-time" }
123
+ },
124
+ "$defs": {
125
+ "sha256": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
126
+ "finding": {
127
+ "type": "object",
128
+ "additionalProperties": false,
129
+ "required": ["severity", "title", "detail"],
130
+ "properties": {
131
+ "severity": { "enum": ["high", "medium", "low"] },
132
+ "title": { "type": "string" },
133
+ "detail": { "type": "string" },
134
+ "file": { "type": "string", "description": "Repo-relative." },
135
+ "line": { "type": "integer", "minimum": 1 }
136
+ }
137
+ },
138
+ "lane": {
139
+ "type": "object",
140
+ "additionalProperties": false,
141
+ "required": ["id", "kind", "status", "blocking", "findings", "durationMs"],
142
+ "properties": {
143
+ "id": { "type": "string" },
144
+ "kind": { "enum": ["command", "agent"] },
145
+ "status": { "enum": ["pass", "fail", "skipped", "timeout"] },
146
+ "blocking": { "type": "boolean" },
147
+ "findings": { "type": "array", "items": { "$ref": "#/$defs/finding" } },
148
+ "durationMs": { "type": "number", "minimum": 0 },
149
+ "error": { "type": "string" },
150
+ "sessionId": { "type": "string" },
151
+ "preset": { "type": "string" },
152
+ "summary": { "type": "string" },
153
+ "exitCode": { "type": "integer" },
154
+ "model": { "type": "string" },
155
+ "composedFrom": {
156
+ "type": "object",
157
+ "additionalProperties": false,
158
+ "required": ["rangeSha", "headSha", "attestationSha256"],
159
+ "description": "Agent lanes only. The prior passing attestation this lane built on; the lane itself reviewed only headSha..<this attestation's head>.",
160
+ "properties": {
161
+ "rangeSha": { "$ref": "#/$defs/sha256" },
162
+ "headSha": { "type": "string", "minLength": 1 },
163
+ "attestationSha256": { "$ref": "#/$defs/sha256" }
164
+ }
165
+ }
166
+ }
167
+ },
168
+ "signature": {
169
+ "type": "object",
170
+ "additionalProperties": false,
171
+ "required": ["alg", "keyFingerprint", "principal", "signedAt", "sig"],
172
+ "properties": {
173
+ "alg": { "const": "ssh-ed25519" },
174
+ "keyFingerprint": { "type": "string", "pattern": "^SHA256:.+$" },
175
+ "principal": {
176
+ "type": "string",
177
+ "description": "A claim, matched against an allowed_signers principal at verify time. Not authenticated by the signature on its own."
178
+ },
179
+ "signedAt": { "type": "string", "format": "date-time" },
180
+ "sig": { "type": "string", "description": "Armored SSHSIG produced by `ssh-keygen -Y sign -n agentproto-review`." }
181
+ }
182
+ }
183
+ }
184
+ }
@@ -0,0 +1,70 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://agentproto.sh/schemas/aip-62/REVIEW-PACK.schema.json",
4
+ "title": "REVIEW.md frontmatter (kind: review-pack)",
5
+ "description": "The YAML frontmatter of a review pack: a reusable set of checks a REVIEW.md imports through uses[]. A pack has no target, bindings, or prepare phase, and none of its checks may have effects. Check ids MUST be unique within the pack (parser-enforced). Rubric paths are relative to the pack root and confined to it. Unknown keys are errors.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": ["kind", "id", "version", "checks"],
9
+ "properties": {
10
+ "kind": { "const": "review-pack" },
11
+ "id": { "$ref": "#/$defs/id" },
12
+ "version": {
13
+ "type": "string",
14
+ "pattern": "^\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)?(?:\\+[0-9A-Za-z.-]+)?$"
15
+ },
16
+ "description": { "type": "string" },
17
+ "checks": {
18
+ "type": "array",
19
+ "minItems": 1,
20
+ "items": {
21
+ "oneOf": [
22
+ { "$ref": "#/$defs/commandCheck" },
23
+ { "$ref": "#/$defs/agentCheck" }
24
+ ]
25
+ }
26
+ }
27
+ },
28
+ "$defs": {
29
+ "id": {
30
+ "type": "string",
31
+ "pattern": "^[a-z][a-z0-9-]*$",
32
+ "maxLength": 64
33
+ },
34
+ "commandCheck": {
35
+ "type": "object",
36
+ "additionalProperties": false,
37
+ "required": ["id", "kind", "run"],
38
+ "properties": {
39
+ "id": { "$ref": "#/$defs/id" },
40
+ "kind": { "const": "command" },
41
+ "description": { "type": "string" },
42
+ "run": { "type": "string", "minLength": 1 },
43
+ "cwd": { "type": "string" },
44
+ "blocking": { "type": "boolean", "default": true },
45
+ "timeoutMs": { "type": "integer", "exclusiveMinimum": 0, "default": 600000 },
46
+ "effects": { "const": false }
47
+ }
48
+ },
49
+ "agentCheck": {
50
+ "type": "object",
51
+ "additionalProperties": false,
52
+ "required": ["id", "kind", "rubric"],
53
+ "properties": {
54
+ "id": { "$ref": "#/$defs/id" },
55
+ "kind": { "const": "agent" },
56
+ "description": { "type": "string" },
57
+ "preset": {
58
+ "type": "string",
59
+ "minLength": 1,
60
+ "description": "Optional in a pack. The consumer MUST supply one (override.preset, uses.preset, or this default) or resolution fails."
61
+ },
62
+ "rubric": { "type": "string", "minLength": 1 },
63
+ "blockOn": { "enum": ["high", "medium", "low"], "default": "high" },
64
+ "blocking": { "type": "boolean", "default": true },
65
+ "timeoutMs": { "type": "integer", "exclusiveMinimum": 0, "default": 900000 },
66
+ "effects": { "const": false }
67
+ }
68
+ }
69
+ }
70
+ }