@agentproto/corpus-cli 0.11.0 → 0.11.1

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.
@@ -6,7 +6,7 @@
6
6
  "$ref": "#/$defs/runEvent",
7
7
  "$defs": {
8
8
  "eventType": {
9
- "description": "step.skipped marks a step in an untaken AIP-15 branch arm — terminal, the step never starts in this run; its data carries { reason: \"branch-not-taken\", branchId }.",
9
+ "description": "step.skipped marks a step in an untaken AIP-15 branch arm — terminal, the step never starts in this run; its data carries { reason: \"branch-not-taken\", branchId }. step.retrying marks a step about to start another attempt after a transport failure (AIP-15 agent-step transport retry) — not terminal; its data carries { attempt, maxAttempts, error, delayMs, sessionId? }.",
10
10
  "type": "string",
11
11
  "enum": [
12
12
  "run.created",
@@ -25,7 +25,8 @@
25
25
  "step.succeeded",
26
26
  "step.failed",
27
27
  "step.skipped",
28
- "step.spend"
28
+ "step.spend",
29
+ "step.retrying"
29
30
  ]
30
31
  },
31
32
  "runEvent": {
@@ -19,39 +19,87 @@
19
19
  "createdAt"
20
20
  ],
21
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 },
22
+ "schema": {
23
+ "const": "agentproto.review.attestation/v1"
24
+ },
25
+ "runId": {
26
+ "type": "string",
27
+ "pattern": "^review-.+$"
28
+ },
29
+ "reviewId": {
30
+ "type": "string",
31
+ "description": "The REVIEW.md id."
32
+ },
33
+ "manifestSha": {
34
+ "$ref": "#/$defs/sha256",
35
+ "description": "sha256 of the REVIEW.md source bytes."
36
+ },
37
+ "binding": {
38
+ "type": "string",
39
+ "minLength": 1
40
+ },
27
41
  "target": {
28
42
  "type": "object",
29
43
  "additionalProperties": false,
30
- "required": ["repoRemote", "baseSha", "headSha"],
44
+ "required": [
45
+ "repoRemote",
46
+ "baseSha",
47
+ "headSha"
48
+ ],
31
49
  "properties": {
32
50
  "repoRemote": {
33
51
  "type": "string",
34
52
  "minLength": 1,
35
53
  "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
54
  },
37
- "baseSha": { "type": "string", "minLength": 1 },
38
- "headSha": { "type": "string", "minLength": 1 }
55
+ "baseSha": {
56
+ "type": "string",
57
+ "minLength": 1
58
+ },
59
+ "headSha": {
60
+ "type": "string",
61
+ "minLength": 1
62
+ }
39
63
  }
40
64
  },
41
65
  "rangeSha": {
42
66
  "$ref": "#/$defs/sha256",
43
67
  "description": "sha256 of the UTF-8 string `<baseSha>..<headSha>`."
44
68
  },
45
- "lanes": { "type": "array", "items": { "$ref": "#/$defs/lane" } },
46
- "verdict": { "enum": ["pass", "block", "incomplete"] },
69
+ "lanes": {
70
+ "type": "array",
71
+ "items": {
72
+ "$ref": "#/$defs/lane"
73
+ }
74
+ },
75
+ "verdict": {
76
+ "enum": [
77
+ "pass",
78
+ "block",
79
+ "incomplete"
80
+ ]
81
+ },
47
82
  "attestor": {
48
83
  "type": "object",
49
84
  "additionalProperties": false,
50
- "required": ["daemon", "presets"],
85
+ "required": [
86
+ "daemon",
87
+ "presets"
88
+ ],
51
89
  "properties": {
52
- "daemon": { "type": "string" },
53
- "presets": { "type": "array", "items": { "type": "string" }, "uniqueItems": true },
54
- "signature": { "$ref": "#/$defs/signature" }
90
+ "daemon": {
91
+ "type": "string"
92
+ },
93
+ "presets": {
94
+ "type": "array",
95
+ "items": {
96
+ "type": "string"
97
+ },
98
+ "uniqueItems": true
99
+ },
100
+ "signature": {
101
+ "$ref": "#/$defs/signature"
102
+ }
55
103
  }
56
104
  },
57
105
  "rubrics": {
@@ -59,11 +107,21 @@
59
107
  "items": {
60
108
  "type": "object",
61
109
  "additionalProperties": false,
62
- "required": ["check", "path", "sha256"],
110
+ "required": [
111
+ "check",
112
+ "path",
113
+ "sha256"
114
+ ],
63
115
  "properties": {
64
- "check": { "type": "string" },
65
- "path": { "type": "string" },
66
- "sha256": { "$ref": "#/$defs/sha256" }
116
+ "check": {
117
+ "type": "string"
118
+ },
119
+ "path": {
120
+ "type": "string"
121
+ },
122
+ "sha256": {
123
+ "$ref": "#/$defs/sha256"
124
+ }
67
125
  }
68
126
  }
69
127
  },
@@ -73,16 +131,31 @@
73
131
  "items": {
74
132
  "type": "object",
75
133
  "additionalProperties": false,
76
- "required": ["ref", "id", "version", "alg", "sha256"],
134
+ "required": [
135
+ "ref",
136
+ "id",
137
+ "version",
138
+ "alg",
139
+ "sha256"
140
+ ],
77
141
  "properties": {
78
- "ref": { "type": "string", "description": "The uses[].pack string as written." },
79
- "id": { "type": "string" },
80
- "version": { "type": "string" },
142
+ "ref": {
143
+ "type": "string",
144
+ "description": "The uses[].pack string as written."
145
+ },
146
+ "id": {
147
+ "type": "string"
148
+ },
149
+ "version": {
150
+ "type": "string"
151
+ },
81
152
  "alg": {
82
153
  "const": "agentproto-pack-digest/v1",
83
154
  "description": "The digest recipe tag. A verifier that does not recognize it MUST refuse to compare."
84
155
  },
85
- "sha256": { "$ref": "#/$defs/sha256" }
156
+ "sha256": {
157
+ "$ref": "#/$defs/sha256"
158
+ }
86
159
  }
87
160
  }
88
161
  },
@@ -96,14 +169,23 @@
96
169
  "minProperties": 1,
97
170
  "description": "Informational provenance. Names the requester; does not authenticate them.",
98
171
  "properties": {
99
- "sessionId": { "type": "string" },
172
+ "sessionId": {
173
+ "type": "string"
174
+ },
100
175
  "gitAuthor": {
101
176
  "type": "object",
102
177
  "additionalProperties": false,
103
- "required": ["name", "email"],
178
+ "required": [
179
+ "name",
180
+ "email"
181
+ ],
104
182
  "properties": {
105
- "name": { "type": "string" },
106
- "email": { "type": "string" }
183
+ "name": {
184
+ "type": "string"
185
+ },
186
+ "email": {
187
+ "type": "string"
188
+ }
107
189
  }
108
190
  }
109
191
  }
@@ -111,69 +193,263 @@
111
193
  "pr": {
112
194
  "type": "object",
113
195
  "additionalProperties": false,
114
- "required": ["provider", "repo", "number", "url"],
196
+ "required": [
197
+ "provider",
198
+ "repo",
199
+ "number",
200
+ "url"
201
+ ],
202
+ "properties": {
203
+ "provider": {
204
+ "const": "github"
205
+ },
206
+ "repo": {
207
+ "type": "string",
208
+ "pattern": "^[^/]+/[^/]+$"
209
+ },
210
+ "number": {
211
+ "type": "integer",
212
+ "minimum": 1
213
+ },
214
+ "url": {
215
+ "type": "string"
216
+ }
217
+ }
218
+ },
219
+ "decision": {
220
+ "type": "object",
221
+ "additionalProperties": false,
222
+ "required": [
223
+ "decisionId",
224
+ "spec"
225
+ ],
226
+ "description": "The AIP-65 decision that picked `binding`, when the caller resolved it that way. Omitted when binding was resolved any other way.",
115
227
  "properties": {
116
- "provider": { "const": "github" },
117
- "repo": { "type": "string", "pattern": "^[^/]+/[^/]+$" },
118
- "number": { "type": "integer", "minimum": 1 },
119
- "url": { "type": "string" }
228
+ "decisionId": {
229
+ "type": "string",
230
+ "minLength": 1
231
+ },
232
+ "spec": {
233
+ "type": "object",
234
+ "additionalProperties": false,
235
+ "required": [
236
+ "id",
237
+ "version"
238
+ ],
239
+ "properties": {
240
+ "id": {
241
+ "type": "string",
242
+ "minLength": 1
243
+ },
244
+ "version": {
245
+ "type": "string",
246
+ "minLength": 1
247
+ }
248
+ }
249
+ }
120
250
  }
121
251
  },
122
- "createdAt": { "type": "string", "format": "date-time" }
252
+ "createdAt": {
253
+ "type": "string",
254
+ "format": "date-time"
255
+ }
123
256
  },
124
257
  "$defs": {
125
- "sha256": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
258
+ "sha256": {
259
+ "type": "string",
260
+ "pattern": "^[0-9a-f]{64}$"
261
+ },
126
262
  "finding": {
127
263
  "type": "object",
128
264
  "additionalProperties": false,
129
- "required": ["severity", "title", "detail"],
265
+ "required": [
266
+ "severity",
267
+ "title",
268
+ "detail"
269
+ ],
130
270
  "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 }
271
+ "severity": {
272
+ "enum": [
273
+ "high",
274
+ "medium",
275
+ "low"
276
+ ]
277
+ },
278
+ "title": {
279
+ "type": "string"
280
+ },
281
+ "detail": {
282
+ "type": "string"
283
+ },
284
+ "file": {
285
+ "type": "string",
286
+ "description": "Repo-relative."
287
+ },
288
+ "line": {
289
+ "type": "integer",
290
+ "minimum": 1
291
+ }
136
292
  }
137
293
  },
138
294
  "lane": {
139
295
  "type": "object",
140
296
  "additionalProperties": false,
141
- "required": ["id", "kind", "status", "blocking", "findings", "durationMs"],
297
+ "required": [
298
+ "id",
299
+ "kind",
300
+ "status",
301
+ "blocking",
302
+ "findings",
303
+ "durationMs"
304
+ ],
142
305
  "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" },
306
+ "id": {
307
+ "type": "string"
308
+ },
309
+ "kind": {
310
+ "enum": [
311
+ "command",
312
+ "agent"
313
+ ]
314
+ },
315
+ "status": {
316
+ "enum": [
317
+ "pass",
318
+ "fail",
319
+ "skipped",
320
+ "timeout",
321
+ "error"
322
+ ]
323
+ },
324
+ "blocking": {
325
+ "type": "boolean"
326
+ },
327
+ "findings": {
328
+ "type": "array",
329
+ "items": {
330
+ "$ref": "#/$defs/finding"
331
+ }
332
+ },
333
+ "durationMs": {
334
+ "type": "number",
335
+ "minimum": 0
336
+ },
337
+ "error": {
338
+ "type": "string"
339
+ },
340
+ "sessionId": {
341
+ "type": "string"
342
+ },
343
+ "preset": {
344
+ "type": "string"
345
+ },
346
+ "summary": {
347
+ "type": "string"
348
+ },
349
+ "exitCode": {
350
+ "type": "integer"
351
+ },
352
+ "model": {
353
+ "type": "string"
354
+ },
355
+ "composedFrom": {
356
+ "type": "object",
357
+ "additionalProperties": false,
358
+ "required": [
359
+ "rangeSha",
360
+ "headSha",
361
+ "attestationSha256"
362
+ ],
363
+ "description": "Agent lanes only. The prior passing attestation this lane built on; the lane itself reviewed only headSha..<this attestation's head>.",
364
+ "properties": {
365
+ "rangeSha": {
366
+ "$ref": "#/$defs/sha256"
367
+ },
368
+ "headSha": {
369
+ "type": "string",
370
+ "minLength": 1
371
+ },
372
+ "attestationSha256": {
373
+ "$ref": "#/$defs/sha256"
374
+ }
375
+ }
376
+ },
155
377
  "fallbacks": {
156
378
  "type": "array",
157
379
  "description": "Agent lanes only. Reviewers tried BEFORE the one in `preset` that were unavailable, in order, each with the error that made it so. Absent when the primary reviewer ran.",
158
380
  "items": {
159
381
  "type": "object",
160
382
  "additionalProperties": false,
161
- "required": ["preset", "error"],
383
+ "required": [
384
+ "preset",
385
+ "error"
386
+ ],
162
387
  "properties": {
163
- "preset": { "type": "string" },
164
- "error": { "type": "string" }
388
+ "preset": {
389
+ "type": "string"
390
+ },
391
+ "error": {
392
+ "type": "string"
393
+ }
165
394
  }
166
395
  }
167
396
  },
168
- "composedFrom": {
397
+ "recovery": {
169
398
  "type": "object",
170
399
  "additionalProperties": false,
171
- "required": ["rangeSha", "headSha", "attestationSha256"],
172
- "description": "Agent lanes only. The prior passing attestation this lane built on; the lane itself reviewed only headSha..<this attestation's head>.",
400
+ "required": [
401
+ "outcome"
402
+ ],
403
+ "description": "Agent lanes only. Present when the reviewer's turn ended without a valid verdict file and the host ran its bounded output-recovery step. `sessionId`/`preset`/`model` here name the RECOVERY model and are always distinct from the lane's own reviewer fields. `recovered` = the host wrote the verdict file from the reviewer's own explicit conclusion; `followup` = the original reviewer wrote it after one targeted follow-up; every other outcome leaves the lane incomplete.",
173
404
  "properties": {
174
- "rangeSha": { "$ref": "#/$defs/sha256" },
175
- "headSha": { "type": "string", "minLength": 1 },
176
- "attestationSha256": { "$ref": "#/$defs/sha256" }
405
+ "outcome": {
406
+ "enum": [
407
+ "recovered",
408
+ "followup",
409
+ "insufficient_evidence",
410
+ "reviewer_failed",
411
+ "invalid_output",
412
+ "unavailable",
413
+ "timeout",
414
+ "cancelled"
415
+ ]
416
+ },
417
+ "reason": {
418
+ "type": "string"
419
+ },
420
+ "sessionId": {
421
+ "type": "string"
422
+ },
423
+ "preset": {
424
+ "type": "string"
425
+ },
426
+ "model": {
427
+ "type": "string"
428
+ }
429
+ }
430
+ },
431
+ "sharedExecution": {
432
+ "type": "object",
433
+ "additionalProperties": false,
434
+ "required": [
435
+ "executionId",
436
+ "role",
437
+ "ownerLane"
438
+ ],
439
+ "description": "Agent lanes only. Present when this lane's result came from a reviewer execution shared with other lanes of the same run that resolved to the same model, configuration, rubric and range. Every lane naming the same `executionId` is ONE reviewer's verdict, not independent agreement.",
440
+ "properties": {
441
+ "executionId": {
442
+ "type": "string"
443
+ },
444
+ "role": {
445
+ "enum": [
446
+ "owner",
447
+ "joiner"
448
+ ]
449
+ },
450
+ "ownerLane": {
451
+ "type": "string"
452
+ }
177
453
  }
178
454
  }
179
455
  }
@@ -181,16 +457,33 @@
181
457
  "signature": {
182
458
  "type": "object",
183
459
  "additionalProperties": false,
184
- "required": ["alg", "keyFingerprint", "principal", "signedAt", "sig"],
460
+ "required": [
461
+ "alg",
462
+ "keyFingerprint",
463
+ "principal",
464
+ "signedAt",
465
+ "sig"
466
+ ],
185
467
  "properties": {
186
- "alg": { "const": "ssh-ed25519" },
187
- "keyFingerprint": { "type": "string", "pattern": "^SHA256:.+$" },
468
+ "alg": {
469
+ "const": "ssh-ed25519"
470
+ },
471
+ "keyFingerprint": {
472
+ "type": "string",
473
+ "pattern": "^SHA256:.+$"
474
+ },
188
475
  "principal": {
189
476
  "type": "string",
190
477
  "description": "A claim, matched against an allowed_signers principal at verify time. Not authenticated by the signature on its own."
191
478
  },
192
- "signedAt": { "type": "string", "format": "date-time" },
193
- "sig": { "type": "string", "description": "Armored SSHSIG produced by `ssh-keygen -Y sign -n agentproto-review`." }
479
+ "signedAt": {
480
+ "type": "string",
481
+ "format": "date-time"
482
+ },
483
+ "sig": {
484
+ "type": "string",
485
+ "description": "Armored SSHSIG produced by `ssh-keygen -Y sign -n agentproto-review`."
486
+ }
194
487
  }
195
488
  }
196
489
  }