altimate-receipts 0.6.2 → 0.8.0
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/{chunk-OQJHGUIN.js → chunk-6QULLAVH.js} +2 -2
- package/dist/chunk-NPYC3NGR.js +859 -0
- package/dist/chunk-NPYC3NGR.js.map +1 -0
- package/dist/{chunk-72Y2GS7I.js → chunk-SGVU3CGP.js} +330 -23
- package/dist/chunk-SGVU3CGP.js.map +1 -0
- package/dist/cli.js +98 -114
- package/dist/cli.js.map +1 -1
- package/dist/index.js +4 -222
- package/dist/index.js.map +1 -1
- package/dist/mcp/server.js +2 -2
- package/package.json +1 -1
- package/schema/agent-execution-receipt-v1.json +303 -58
- package/dist/chunk-5R6W4W4R.js +0 -607
- package/dist/chunk-5R6W4W4R.js.map +0 -1
- package/dist/chunk-72Y2GS7I.js.map +0 -1
- /package/dist/{chunk-OQJHGUIN.js.map → chunk-6QULLAVH.js.map} +0 -0
|
@@ -7,8 +7,12 @@
|
|
|
7
7
|
"required": ["_type", "subject", "predicateType", "predicate"],
|
|
8
8
|
"additionalProperties": false,
|
|
9
9
|
"properties": {
|
|
10
|
-
"_type": {
|
|
11
|
-
|
|
10
|
+
"_type": {
|
|
11
|
+
"const": "https://in-toto.io/Statement/v1"
|
|
12
|
+
},
|
|
13
|
+
"predicateType": {
|
|
14
|
+
"const": "https://receipts.dev/agent-execution/v1"
|
|
15
|
+
},
|
|
12
16
|
"subject": {
|
|
13
17
|
"type": "array",
|
|
14
18
|
"minItems": 1,
|
|
@@ -17,23 +21,35 @@
|
|
|
17
21
|
"required": ["name", "digest"],
|
|
18
22
|
"additionalProperties": false,
|
|
19
23
|
"properties": {
|
|
20
|
-
"name": {
|
|
24
|
+
"name": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"minLength": 1
|
|
27
|
+
},
|
|
21
28
|
"digest": {
|
|
22
29
|
"type": "object",
|
|
23
30
|
"required": ["sha256"],
|
|
24
31
|
"additionalProperties": false,
|
|
25
32
|
"properties": {
|
|
26
|
-
"sha256": {
|
|
33
|
+
"sha256": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
36
|
+
}
|
|
27
37
|
}
|
|
28
38
|
}
|
|
29
39
|
}
|
|
30
40
|
}
|
|
31
41
|
},
|
|
32
|
-
"predicate": {
|
|
42
|
+
"predicate": {
|
|
43
|
+
"$ref": "#/$defs/predicate"
|
|
44
|
+
}
|
|
33
45
|
},
|
|
34
46
|
"$defs": {
|
|
35
|
-
"severity": {
|
|
36
|
-
|
|
47
|
+
"severity": {
|
|
48
|
+
"enum": ["critical", "high", "medium", "low"]
|
|
49
|
+
},
|
|
50
|
+
"grade": {
|
|
51
|
+
"enum": ["A", "B", "C", "F"]
|
|
52
|
+
},
|
|
37
53
|
"predicate": {
|
|
38
54
|
"type": "object",
|
|
39
55
|
"required": ["session", "grade", "evidence", "findings", "generator"],
|
|
@@ -44,15 +60,31 @@
|
|
|
44
60
|
"required": ["agent"],
|
|
45
61
|
"additionalProperties": false,
|
|
46
62
|
"properties": {
|
|
47
|
-
"agent": {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"
|
|
52
|
-
|
|
63
|
+
"agent": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"minLength": 1
|
|
66
|
+
},
|
|
67
|
+
"model": {
|
|
68
|
+
"type": "string"
|
|
69
|
+
},
|
|
70
|
+
"title": {
|
|
71
|
+
"type": "string"
|
|
72
|
+
},
|
|
73
|
+
"startedAt": {
|
|
74
|
+
"type": "integer"
|
|
75
|
+
},
|
|
76
|
+
"endedAt": {
|
|
77
|
+
"type": "integer"
|
|
78
|
+
},
|
|
79
|
+
"durationMs": {
|
|
80
|
+
"type": "integer",
|
|
81
|
+
"minimum": 0
|
|
82
|
+
}
|
|
53
83
|
}
|
|
54
84
|
},
|
|
55
|
-
"grade": {
|
|
85
|
+
"grade": {
|
|
86
|
+
"$ref": "#/$defs/grade"
|
|
87
|
+
},
|
|
56
88
|
"evidence": {
|
|
57
89
|
"type": "object",
|
|
58
90
|
"required": [
|
|
@@ -68,31 +100,70 @@
|
|
|
68
100
|
],
|
|
69
101
|
"additionalProperties": false,
|
|
70
102
|
"properties": {
|
|
71
|
-
"filesChanged": {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
"
|
|
76
|
-
|
|
103
|
+
"filesChanged": {
|
|
104
|
+
"type": "integer",
|
|
105
|
+
"minimum": 0
|
|
106
|
+
},
|
|
107
|
+
"edits": {
|
|
108
|
+
"type": "integer",
|
|
109
|
+
"minimum": 0
|
|
110
|
+
},
|
|
111
|
+
"commands": {
|
|
112
|
+
"type": "integer",
|
|
113
|
+
"minimum": 0
|
|
114
|
+
},
|
|
115
|
+
"reads": {
|
|
116
|
+
"type": "integer",
|
|
117
|
+
"minimum": 0
|
|
118
|
+
},
|
|
119
|
+
"destructiveOps": {
|
|
120
|
+
"type": "integer",
|
|
121
|
+
"minimum": 0
|
|
122
|
+
},
|
|
123
|
+
"testsRan": {
|
|
124
|
+
"type": "boolean"
|
|
125
|
+
},
|
|
77
126
|
"tokens": {
|
|
78
127
|
"type": "object",
|
|
79
128
|
"required": ["input", "output", "cacheRead", "cacheWrite", "total"],
|
|
80
129
|
"additionalProperties": false,
|
|
81
130
|
"properties": {
|
|
82
|
-
"input": {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
131
|
+
"input": {
|
|
132
|
+
"type": "integer",
|
|
133
|
+
"minimum": 0
|
|
134
|
+
},
|
|
135
|
+
"output": {
|
|
136
|
+
"type": "integer",
|
|
137
|
+
"minimum": 0
|
|
138
|
+
},
|
|
139
|
+
"cacheRead": {
|
|
140
|
+
"type": "integer",
|
|
141
|
+
"minimum": 0
|
|
142
|
+
},
|
|
143
|
+
"cacheWrite": {
|
|
144
|
+
"type": "integer",
|
|
145
|
+
"minimum": 0
|
|
146
|
+
},
|
|
86
147
|
"reasoning": {
|
|
87
148
|
"type": "integer",
|
|
88
149
|
"minimum": 0,
|
|
89
150
|
"description": "reasoning/thinking tokens (M41); optional, already included in total"
|
|
90
151
|
},
|
|
91
|
-
"total": {
|
|
152
|
+
"total": {
|
|
153
|
+
"type": "integer",
|
|
154
|
+
"minimum": 0
|
|
155
|
+
}
|
|
92
156
|
}
|
|
93
157
|
},
|
|
94
|
-
"costUsd": {
|
|
95
|
-
|
|
158
|
+
"costUsd": {
|
|
159
|
+
"type": "number",
|
|
160
|
+
"minimum": 0
|
|
161
|
+
},
|
|
162
|
+
"cacheHitRatio": {
|
|
163
|
+
"type": "number",
|
|
164
|
+
"minimum": 0,
|
|
165
|
+
"maximum": 1
|
|
166
|
+
},
|
|
96
167
|
"cacheWriteRatio": {
|
|
97
168
|
"type": "number",
|
|
98
169
|
"minimum": 0,
|
|
@@ -116,7 +187,10 @@
|
|
|
116
187
|
"commandsByClass": {
|
|
117
188
|
"type": "object",
|
|
118
189
|
"description": "count of command spans by descriptive class (M31); optional",
|
|
119
|
-
"additionalProperties": {
|
|
190
|
+
"additionalProperties": {
|
|
191
|
+
"type": "integer",
|
|
192
|
+
"minimum": 0
|
|
193
|
+
},
|
|
120
194
|
"propertyNames": {
|
|
121
195
|
"enum": [
|
|
122
196
|
"read-only",
|
|
@@ -135,14 +209,37 @@
|
|
|
135
209
|
"required": ["runner", "exitStatus"],
|
|
136
210
|
"additionalProperties": false,
|
|
137
211
|
"properties": {
|
|
138
|
-
"runner": {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
"
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
"
|
|
212
|
+
"runner": {
|
|
213
|
+
"type": "string"
|
|
214
|
+
},
|
|
215
|
+
"passed": {
|
|
216
|
+
"type": "integer",
|
|
217
|
+
"minimum": 0
|
|
218
|
+
},
|
|
219
|
+
"failed": {
|
|
220
|
+
"type": "integer",
|
|
221
|
+
"minimum": 0
|
|
222
|
+
},
|
|
223
|
+
"skipped": {
|
|
224
|
+
"type": "integer",
|
|
225
|
+
"minimum": 0
|
|
226
|
+
},
|
|
227
|
+
"total": {
|
|
228
|
+
"type": "integer",
|
|
229
|
+
"minimum": 0
|
|
230
|
+
},
|
|
231
|
+
"exitStatus": {
|
|
232
|
+
"enum": ["passed", "failed", "unknown"]
|
|
233
|
+
},
|
|
234
|
+
"durationMs": {
|
|
235
|
+
"type": "integer",
|
|
236
|
+
"minimum": 0
|
|
237
|
+
},
|
|
238
|
+
"coveragePct": {
|
|
239
|
+
"type": "number",
|
|
240
|
+
"minimum": 0,
|
|
241
|
+
"maximum": 100
|
|
242
|
+
}
|
|
146
243
|
}
|
|
147
244
|
},
|
|
148
245
|
"toolErrorRate": {
|
|
@@ -153,16 +250,29 @@
|
|
|
153
250
|
"required": ["invocations", "errored", "errorRate"],
|
|
154
251
|
"additionalProperties": false,
|
|
155
252
|
"properties": {
|
|
156
|
-
"invocations": {
|
|
157
|
-
|
|
158
|
-
|
|
253
|
+
"invocations": {
|
|
254
|
+
"type": "integer",
|
|
255
|
+
"minimum": 0
|
|
256
|
+
},
|
|
257
|
+
"errored": {
|
|
258
|
+
"type": "integer",
|
|
259
|
+
"minimum": 0
|
|
260
|
+
},
|
|
261
|
+
"errorRate": {
|
|
262
|
+
"type": "number",
|
|
263
|
+
"minimum": 0,
|
|
264
|
+
"maximum": 1
|
|
265
|
+
}
|
|
159
266
|
}
|
|
160
267
|
}
|
|
161
268
|
},
|
|
162
269
|
"finishReasons": {
|
|
163
270
|
"type": "object",
|
|
164
271
|
"description": "count of assistant turns by normalized API stop reason (M35); optional",
|
|
165
|
-
"additionalProperties": {
|
|
272
|
+
"additionalProperties": {
|
|
273
|
+
"type": "integer",
|
|
274
|
+
"minimum": 0
|
|
275
|
+
},
|
|
166
276
|
"propertyNames": {
|
|
167
277
|
"enum": ["stop", "length", "content_filter", "tool_use", "error", "unknown"]
|
|
168
278
|
}
|
|
@@ -178,10 +288,20 @@
|
|
|
178
288
|
"kind": {
|
|
179
289
|
"enum": ["committed-pushed", "ran-tests"]
|
|
180
290
|
},
|
|
181
|
-
"status": {
|
|
182
|
-
|
|
291
|
+
"status": {
|
|
292
|
+
"enum": ["PASS", "UNVERIFIED"]
|
|
293
|
+
},
|
|
294
|
+
"evidence": {
|
|
295
|
+
"type": "string",
|
|
296
|
+
"minLength": 1
|
|
297
|
+
}
|
|
183
298
|
}
|
|
184
299
|
}
|
|
300
|
+
},
|
|
301
|
+
"coveredFiles": {
|
|
302
|
+
"type": "integer",
|
|
303
|
+
"minimum": 0,
|
|
304
|
+
"description": "SPEC-0073 R4 — count of scope.files with ≥1 edit/read tool span in the session (diff-scoped receipts only)."
|
|
185
305
|
}
|
|
186
306
|
}
|
|
187
307
|
},
|
|
@@ -192,16 +312,42 @@
|
|
|
192
312
|
"required": ["id", "severity", "title", "confidence", "score"],
|
|
193
313
|
"additionalProperties": false,
|
|
194
314
|
"properties": {
|
|
195
|
-
"id": {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
"
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
"
|
|
203
|
-
|
|
204
|
-
|
|
315
|
+
"id": {
|
|
316
|
+
"type": "string",
|
|
317
|
+
"minLength": 1
|
|
318
|
+
},
|
|
319
|
+
"severity": {
|
|
320
|
+
"$ref": "#/$defs/severity"
|
|
321
|
+
},
|
|
322
|
+
"title": {
|
|
323
|
+
"type": "string",
|
|
324
|
+
"minLength": 1
|
|
325
|
+
},
|
|
326
|
+
"detail": {
|
|
327
|
+
"type": "string"
|
|
328
|
+
},
|
|
329
|
+
"confidence": {
|
|
330
|
+
"type": "number",
|
|
331
|
+
"minimum": 0,
|
|
332
|
+
"maximum": 1
|
|
333
|
+
},
|
|
334
|
+
"score": {
|
|
335
|
+
"type": "number",
|
|
336
|
+
"minimum": 0
|
|
337
|
+
},
|
|
338
|
+
"impactLabel": {
|
|
339
|
+
"type": "string"
|
|
340
|
+
},
|
|
341
|
+
"filePath": {
|
|
342
|
+
"type": "string"
|
|
343
|
+
},
|
|
344
|
+
"line": {
|
|
345
|
+
"type": "integer",
|
|
346
|
+
"minimum": 1
|
|
347
|
+
},
|
|
348
|
+
"evidenceRef": {
|
|
349
|
+
"type": "string"
|
|
350
|
+
}
|
|
205
351
|
}
|
|
206
352
|
}
|
|
207
353
|
},
|
|
@@ -215,7 +361,9 @@
|
|
|
215
361
|
"required": ["kind"],
|
|
216
362
|
"additionalProperties": false,
|
|
217
363
|
"properties": {
|
|
218
|
-
"kind": {
|
|
364
|
+
"kind": {
|
|
365
|
+
"enum": ["diff", "branch", "session"]
|
|
366
|
+
},
|
|
219
367
|
"base": {
|
|
220
368
|
"type": "string",
|
|
221
369
|
"description": "diff: the ref the diff was taken against (e.g. origin/main)."
|
|
@@ -223,11 +371,21 @@
|
|
|
223
371
|
"files": {
|
|
224
372
|
"type": "array",
|
|
225
373
|
"description": "diff: the changed-file set, sorted, repo-relative — the scope basis.",
|
|
226
|
-
"items": {
|
|
374
|
+
"items": {
|
|
375
|
+
"type": "string"
|
|
376
|
+
}
|
|
227
377
|
},
|
|
228
378
|
"branch": {
|
|
229
379
|
"type": "string",
|
|
230
380
|
"description": "branch: the branch the session was sliced to. With kind \"diff\": the effort metrics (diffCostUsd/Tokens/Turns) were narrowed to this branch's turns (SPEC-0068); absent ⇒ whole-session upper bound."
|
|
381
|
+
},
|
|
382
|
+
"shas": {
|
|
383
|
+
"type": "array",
|
|
384
|
+
"items": {
|
|
385
|
+
"type": "string",
|
|
386
|
+
"pattern": "^[0-9a-f]{40}$"
|
|
387
|
+
},
|
|
388
|
+
"description": "diff: the branch commit SHAs the effort window was anchored on (SPEC-0072 R1; tagless sessions only). Recorded so L1 re-derivation reproduces the window."
|
|
231
389
|
}
|
|
232
390
|
}
|
|
233
391
|
},
|
|
@@ -236,10 +394,97 @@
|
|
|
236
394
|
"required": ["name", "version", "deterministic", "modelCalls"],
|
|
237
395
|
"additionalProperties": false,
|
|
238
396
|
"properties": {
|
|
239
|
-
"name": {
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
397
|
+
"name": {
|
|
398
|
+
"type": "string",
|
|
399
|
+
"minLength": 1
|
|
400
|
+
},
|
|
401
|
+
"version": {
|
|
402
|
+
"type": "string",
|
|
403
|
+
"minLength": 1
|
|
404
|
+
},
|
|
405
|
+
"deterministic": {
|
|
406
|
+
"const": true
|
|
407
|
+
},
|
|
408
|
+
"modelCalls": {
|
|
409
|
+
"const": 0
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
},
|
|
413
|
+
"prEffort": {
|
|
414
|
+
"type": "object",
|
|
415
|
+
"required": ["priorUsd", "totalUsd", "sessions"],
|
|
416
|
+
"additionalProperties": false,
|
|
417
|
+
"description": "Cumulative PR effort across this branch's successive receipts (SPEC-0072 R3). priorUsd is a recorded input (prior receipt), exempt from L1 byte-compare, envelope-covered.",
|
|
418
|
+
"properties": {
|
|
419
|
+
"priorUsd": {
|
|
420
|
+
"type": "number",
|
|
421
|
+
"minimum": 0
|
|
422
|
+
},
|
|
423
|
+
"totalUsd": {
|
|
424
|
+
"type": "number",
|
|
425
|
+
"minimum": 0
|
|
426
|
+
},
|
|
427
|
+
"sessions": {
|
|
428
|
+
"type": "integer",
|
|
429
|
+
"minimum": 1
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
},
|
|
433
|
+
"prHistory": {
|
|
434
|
+
"type": "array",
|
|
435
|
+
"maxItems": 10,
|
|
436
|
+
"description": "Append-only per-push ledger (SPEC-0073 R7). Recorded input like prEffort — exempt from L1 byte-compare, envelope-covered.",
|
|
437
|
+
"items": {
|
|
438
|
+
"type": "object",
|
|
439
|
+
"required": ["push", "new", "cleared", "open"],
|
|
440
|
+
"additionalProperties": false,
|
|
441
|
+
"properties": {
|
|
442
|
+
"push": {
|
|
443
|
+
"type": "integer",
|
|
444
|
+
"minimum": 1
|
|
445
|
+
},
|
|
446
|
+
"endedAt": {
|
|
447
|
+
"type": "number"
|
|
448
|
+
},
|
|
449
|
+
"new": {
|
|
450
|
+
"type": "integer",
|
|
451
|
+
"minimum": 0
|
|
452
|
+
},
|
|
453
|
+
"cleared": {
|
|
454
|
+
"type": "integer",
|
|
455
|
+
"minimum": 0
|
|
456
|
+
},
|
|
457
|
+
"open": {
|
|
458
|
+
"type": "integer",
|
|
459
|
+
"minimum": 0
|
|
460
|
+
},
|
|
461
|
+
"sha": {
|
|
462
|
+
"type": "string",
|
|
463
|
+
"description": "short HEAD sha at generation — the per-commit identity of the row"
|
|
464
|
+
},
|
|
465
|
+
"costUsd": {
|
|
466
|
+
"type": "number",
|
|
467
|
+
"minimum": 0,
|
|
468
|
+
"description": "the change's attributed cost at this push (cumulative within a session)"
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
},
|
|
473
|
+
"prCleared": {
|
|
474
|
+
"type": "array",
|
|
475
|
+
"description": "Events open in the prior receipt and absent now — rendered struck-through for one push cycle (SPEC-0073 R6).",
|
|
476
|
+
"items": {
|
|
477
|
+
"type": "object",
|
|
478
|
+
"required": ["title"],
|
|
479
|
+
"additionalProperties": false,
|
|
480
|
+
"properties": {
|
|
481
|
+
"title": {
|
|
482
|
+
"type": "string"
|
|
483
|
+
},
|
|
484
|
+
"filePath": {
|
|
485
|
+
"type": "string"
|
|
486
|
+
}
|
|
487
|
+
}
|
|
243
488
|
}
|
|
244
489
|
}
|
|
245
490
|
}
|