agent-scenario-loop 0.1.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.
Files changed (170) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +119 -0
  3. package/app/profile-session.ts +812 -0
  4. package/core/config-template.json +41 -0
  5. package/dist/core/agent-summary.d.ts +15 -0
  6. package/dist/core/agent-summary.js +177 -0
  7. package/dist/core/artifact-contract.d.ts +151 -0
  8. package/dist/core/artifact-contract.js +897 -0
  9. package/dist/core/artifact-layout.d.ts +56 -0
  10. package/dist/core/artifact-layout.js +61 -0
  11. package/dist/core/artifact-writer.d.ts +44 -0
  12. package/dist/core/artifact-writer.js +55 -0
  13. package/dist/core/comparison.d.ts +133 -0
  14. package/dist/core/comparison.js +294 -0
  15. package/dist/core/evidence-interpreter.d.ts +28 -0
  16. package/dist/core/evidence-interpreter.js +69 -0
  17. package/dist/core/execution-plan.d.ts +44 -0
  18. package/dist/core/execution-plan.js +95 -0
  19. package/dist/core/planner.d.ts +132 -0
  20. package/dist/core/planner.js +812 -0
  21. package/dist/core/ports.d.ts +198 -0
  22. package/dist/core/ports.js +146 -0
  23. package/dist/core/run-index.d.ts +62 -0
  24. package/dist/core/run-index.js +143 -0
  25. package/dist/core/schema-validator.d.ts +86 -0
  26. package/dist/core/schema-validator.js +407 -0
  27. package/dist/index.d.ts +11 -0
  28. package/dist/index.js +27 -0
  29. package/dist/runner/agent-device-driver.d.ts +126 -0
  30. package/dist/runner/agent-device-driver.js +168 -0
  31. package/dist/runner/agent-device.d.ts +295 -0
  32. package/dist/runner/agent-device.js +1271 -0
  33. package/dist/runner/android-adb-driver.d.ts +175 -0
  34. package/dist/runner/android-adb-driver.js +399 -0
  35. package/dist/runner/android-adb.d.ts +254 -0
  36. package/dist/runner/android-adb.js +1618 -0
  37. package/dist/runner/argent-driver.d.ts +183 -0
  38. package/dist/runner/argent-driver.js +297 -0
  39. package/dist/runner/argent.d.ts +349 -0
  40. package/dist/runner/argent.js +1211 -0
  41. package/dist/runner/check-plan.d.ts +45 -0
  42. package/dist/runner/check-plan.js +210 -0
  43. package/dist/runner/cli.d.ts +20 -0
  44. package/dist/runner/cli.js +23 -0
  45. package/dist/runner/compare-latest.d.ts +99 -0
  46. package/dist/runner/compare-latest.js +233 -0
  47. package/dist/runner/compare.d.ts +58 -0
  48. package/dist/runner/compare.js +157 -0
  49. package/dist/runner/demo-loop.d.ts +45 -0
  50. package/dist/runner/demo-loop.js +170 -0
  51. package/dist/runner/example-android-live.d.ts +137 -0
  52. package/dist/runner/example-android-live.js +454 -0
  53. package/dist/runner/example-ios-live.d.ts +137 -0
  54. package/dist/runner/example-ios-live.js +471 -0
  55. package/dist/runner/host-doctor.d.ts +131 -0
  56. package/dist/runner/host-doctor.js +628 -0
  57. package/dist/runner/init-project.d.ts +88 -0
  58. package/dist/runner/init-project.js +263 -0
  59. package/dist/runner/ios-simctl-driver.d.ts +69 -0
  60. package/dist/runner/ios-simctl-driver.js +97 -0
  61. package/dist/runner/ios-simctl.d.ts +254 -0
  62. package/dist/runner/ios-simctl.js +1415 -0
  63. package/dist/runner/live-android.d.ts +137 -0
  64. package/dist/runner/live-android.js +539 -0
  65. package/dist/runner/live-comparison.d.ts +67 -0
  66. package/dist/runner/live-comparison.js +147 -0
  67. package/dist/runner/live-ios.d.ts +137 -0
  68. package/dist/runner/live-ios.js +460 -0
  69. package/dist/runner/live-proof-summary.d.ts +263 -0
  70. package/dist/runner/live-proof-summary.js +465 -0
  71. package/dist/runner/live-proof.d.ts +467 -0
  72. package/dist/runner/live-proof.js +920 -0
  73. package/dist/runner/local-env.d.ts +64 -0
  74. package/dist/runner/local-env.js +155 -0
  75. package/dist/runner/profile-android.d.ts +82 -0
  76. package/dist/runner/profile-android.js +671 -0
  77. package/dist/runner/profile-ios.d.ts +108 -0
  78. package/dist/runner/profile-ios.js +532 -0
  79. package/dist/runner/profile-mobile.d.ts +254 -0
  80. package/dist/runner/profile-mobile.js +1307 -0
  81. package/dist/runner/validate-project.d.ts +273 -0
  82. package/dist/runner/validate-project.js +1501 -0
  83. package/docs/adapters.md +145 -0
  84. package/docs/api.md +94 -0
  85. package/docs/authoring.md +196 -0
  86. package/docs/concepts.md +136 -0
  87. package/docs/consumer-rehearsal.md +115 -0
  88. package/docs/contracts.md +267 -0
  89. package/docs/live-proofs.md +270 -0
  90. package/docs/principles.md +46 -0
  91. package/examples/event-logs/app-startup-baseline.log +4 -0
  92. package/examples/event-logs/app-startup-current.log +4 -0
  93. package/examples/minimal-app/README.md +70 -0
  94. package/examples/mobile-app/README.md +302 -0
  95. package/examples/mobile-app/app.json +22 -0
  96. package/examples/mobile-app/asl/package-scripts.json +32 -0
  97. package/examples/mobile-app/asl.config.json +37 -0
  98. package/examples/mobile-app/event-logs/android-app-startup.log +4 -0
  99. package/examples/mobile-app/event-logs/android-open-close-cycle.log +12 -0
  100. package/examples/mobile-app/event-logs/android-scroll-settle.log +12 -0
  101. package/examples/mobile-app/event-logs/app-startup.log +4 -0
  102. package/examples/mobile-app/event-logs/open-close-cycle.log +12 -0
  103. package/examples/mobile-app/event-logs/scroll-settle.log +12 -0
  104. package/examples/mobile-app/index.ts +20 -0
  105. package/examples/mobile-app/metro.config.js +20 -0
  106. package/examples/mobile-app/package.json +62 -0
  107. package/examples/mobile-app/patches/expo-modules-jsi@56.0.10.patch +19 -0
  108. package/examples/mobile-app/plugins/with-ios-build-compat.js +271 -0
  109. package/examples/mobile-app/pnpm-lock.yaml +4440 -0
  110. package/examples/mobile-app/runner-manifests/evidence-provider.json +79 -0
  111. package/examples/mobile-app/runner-manifests/primary-runner.json +19 -0
  112. package/examples/mobile-app/scenarios/android/app-startup-video.json +73 -0
  113. package/examples/mobile-app/scenarios/android/app-startup.json +44 -0
  114. package/examples/mobile-app/scenarios/android/open-close-cycle.json +54 -0
  115. package/examples/mobile-app/scenarios/android/scroll-settle.json +49 -0
  116. package/examples/mobile-app/scenarios/ios/app-startup.json +44 -0
  117. package/examples/mobile-app/scenarios/ios/open-close-cycle.json +54 -0
  118. package/examples/mobile-app/scenarios/ios/scroll-settle.json +49 -0
  119. package/examples/mobile-app/scenarios/mobile/app-startup.json +91 -0
  120. package/examples/mobile-app/scenarios/mobile/open-close-cycle.json +160 -0
  121. package/examples/mobile-app/scenarios/mobile/scroll-settle.json +148 -0
  122. package/examples/mobile-app/scripts/asl-capture-accessibility-provider.mjs +112 -0
  123. package/examples/mobile-app/scripts/asl-capture-profiler-provider.mjs +127 -0
  124. package/examples/mobile-app/src/devtools/profile-session.ts +7 -0
  125. package/examples/mobile-app/src/example-screen.tsx +322 -0
  126. package/examples/mobile-app/tsconfig.json +16 -0
  127. package/examples/mobile-app/tsconfig.typecheck.json +13 -0
  128. package/examples/runners/README.md +44 -0
  129. package/examples/runners/adb-android.json +25 -0
  130. package/examples/runners/agent-device-android.json +27 -0
  131. package/examples/runners/agent-device-ios.json +27 -0
  132. package/examples/runners/argent-android.json +32 -0
  133. package/examples/runners/argent-ios.json +32 -0
  134. package/examples/runners/argent-react-profiler-provider.json +15 -0
  135. package/examples/runners/axe-accessibility-provider.json +24 -0
  136. package/examples/runners/manual-log-ingest.json +9 -0
  137. package/examples/runners/rozenite-profiler-provider.json +9 -0
  138. package/examples/runners/script-accessibility-provider.json +24 -0
  139. package/examples/runners/script-memory-provider.json +24 -0
  140. package/examples/runners/script-network-provider.json +24 -0
  141. package/examples/runners/script-profiler-provider.json +30 -0
  142. package/examples/runners/xcodebuildmcp-ios.json +29 -0
  143. package/examples/scenarios/ios/app-startup.json +28 -0
  144. package/examples/scenarios/ios/open-close-cycle.json +35 -0
  145. package/examples/scenarios/mobile/app-startup.json +72 -0
  146. package/examples/scenarios/mobile/media-open-close.json +141 -0
  147. package/examples/scenarios/mobile/open-close-cycle.json +135 -0
  148. package/examples/scenarios/mobile/scroll-settle.json +106 -0
  149. package/package.json +240 -0
  150. package/schemas/budget-verdict.schema.json +115 -0
  151. package/schemas/causal-run.schema.json +279 -0
  152. package/schemas/comparison.schema.json +196 -0
  153. package/schemas/health.schema.json +108 -0
  154. package/schemas/live-proof-set.schema.json +195 -0
  155. package/schemas/live-proof.schema.json +413 -0
  156. package/schemas/manifest.schema.json +204 -0
  157. package/schemas/metrics.schema.json +137 -0
  158. package/schemas/project-validation.schema.json +343 -0
  159. package/schemas/runner-capabilities.schema.json +217 -0
  160. package/schemas/scenario.schema.json +400 -0
  161. package/schemas/verdict.schema.json +88 -0
  162. package/templates/evidence-provider.json +83 -0
  163. package/templates/gitignore-snippet +9 -0
  164. package/templates/integration-readme.md +125 -0
  165. package/templates/mobile-scenario.json +133 -0
  166. package/templates/package-scripts.json +32 -0
  167. package/templates/primary-runner.json +19 -0
  168. package/templates/project.config.json +37 -0
  169. package/templates/scripts/asl-capture-accessibility-provider.mjs +112 -0
  170. package/templates/scripts/asl-capture-profiler-provider.mjs +127 -0
@@ -0,0 +1,413 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://agent-scenario-loop.dev/schemas/live-proof.schema.json",
4
+ "title": "Agent Scenario Loop Live Proof",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "schemaVersion",
9
+ "platform",
10
+ "runId",
11
+ "status",
12
+ "outputDir",
13
+ "preflight",
14
+ "profiles",
15
+ "comparisons",
16
+ "comparisonCounts",
17
+ "comparisonStatus",
18
+ "nextAction",
19
+ "summary"
20
+ ],
21
+ "properties": {
22
+ "schemaVersion": {
23
+ "type": "string",
24
+ "pattern": "^1\\.0\\.0$"
25
+ },
26
+ "platform": {
27
+ "type": "string",
28
+ "enum": ["android", "ios"]
29
+ },
30
+ "runId": {
31
+ "type": "string"
32
+ },
33
+ "status": {
34
+ "type": "string",
35
+ "enum": ["passed", "failed"]
36
+ },
37
+ "outputDir": {
38
+ "type": "string"
39
+ },
40
+ "preflight": {
41
+ "$ref": "#/$defs/runPointer"
42
+ },
43
+ "profiles": {
44
+ "type": "array",
45
+ "items": {
46
+ "$ref": "#/$defs/profilePointer"
47
+ }
48
+ },
49
+ "interactionProofs": {
50
+ "type": "array",
51
+ "items": {
52
+ "$ref": "#/$defs/interactionProofPointer"
53
+ }
54
+ },
55
+ "skippedInteractionProofs": {
56
+ "type": "array",
57
+ "items": {
58
+ "$ref": "#/$defs/skippedInteractionProofPointer"
59
+ }
60
+ },
61
+ "comparisons": {
62
+ "type": "array",
63
+ "items": {
64
+ "$ref": "#/$defs/comparisonPointer"
65
+ }
66
+ },
67
+ "comparisonCounts": {
68
+ "$ref": "#/$defs/comparisonCounts"
69
+ },
70
+ "comparisonStatus": {
71
+ "type": "string",
72
+ "enum": ["baseline_missing", "improved", "inconclusive", "mixed", "not_compared", "regressed", "unchanged"]
73
+ },
74
+ "nextAction": {
75
+ "$ref": "#/$defs/nextAction"
76
+ },
77
+ "summary": {
78
+ "type": "string"
79
+ }
80
+ },
81
+ "$defs": {
82
+ "runPointer": {
83
+ "type": "object",
84
+ "additionalProperties": false,
85
+ "required": ["runId", "runDir", "summaryPath", "healthStatus", "verdictStatus"],
86
+ "properties": {
87
+ "runId": {
88
+ "type": "string"
89
+ },
90
+ "runDir": {
91
+ "type": "string"
92
+ },
93
+ "summaryPath": {
94
+ "type": "string"
95
+ },
96
+ "healthStatus": {
97
+ "type": "string",
98
+ "enum": ["passed", "failed", "partial"]
99
+ },
100
+ "verdictStatus": {
101
+ "type": "string",
102
+ "enum": ["passed", "failed", "inconclusive", "not_evaluated"]
103
+ }
104
+ }
105
+ },
106
+ "profilePointer": {
107
+ "type": "object",
108
+ "additionalProperties": false,
109
+ "required": ["label", "scenarioId", "runId", "runDir", "summaryPath", "healthStatus", "verdictStatus"],
110
+ "properties": {
111
+ "label": {
112
+ "type": "string"
113
+ },
114
+ "scenarioId": {
115
+ "type": "string"
116
+ },
117
+ "runId": {
118
+ "type": "string"
119
+ },
120
+ "runDir": {
121
+ "type": "string"
122
+ },
123
+ "summaryPath": {
124
+ "type": "string"
125
+ },
126
+ "healthStatus": {
127
+ "type": "string",
128
+ "enum": ["passed", "failed", "partial"]
129
+ },
130
+ "verdictStatus": {
131
+ "type": "string",
132
+ "enum": ["passed", "failed", "inconclusive", "not_evaluated"]
133
+ }
134
+ }
135
+ },
136
+ "interactionProofPointer": {
137
+ "type": "object",
138
+ "additionalProperties": false,
139
+ "required": ["label", "runnerId", "scenarioId", "runId", "runDir", "summaryPath", "healthStatus", "verdictStatus"],
140
+ "properties": {
141
+ "label": {
142
+ "type": "string"
143
+ },
144
+ "runnerId": {
145
+ "type": "string"
146
+ },
147
+ "scenarioId": {
148
+ "type": "string"
149
+ },
150
+ "runId": {
151
+ "type": "string"
152
+ },
153
+ "runDir": {
154
+ "type": "string"
155
+ },
156
+ "summaryPath": {
157
+ "type": "string"
158
+ },
159
+ "healthStatus": {
160
+ "type": "string",
161
+ "enum": ["passed", "failed", "partial"]
162
+ },
163
+ "verdictStatus": {
164
+ "type": "string",
165
+ "enum": ["passed", "failed", "inconclusive", "not_evaluated"]
166
+ },
167
+ "captures": {
168
+ "type": "object",
169
+ "additionalProperties": false,
170
+ "required": ["screenshots"],
171
+ "properties": {
172
+ "screenshots": {
173
+ "type": "array",
174
+ "items": {
175
+ "type": "string",
176
+ "minLength": 1
177
+ }
178
+ }
179
+ }
180
+ },
181
+ "warnings": {
182
+ "$ref": "#/$defs/interactionProofWarnings"
183
+ }
184
+ }
185
+ },
186
+ "interactionProofWarnings": {
187
+ "type": "object",
188
+ "additionalProperties": false,
189
+ "required": ["count", "checks"],
190
+ "properties": {
191
+ "count": {
192
+ "type": "integer",
193
+ "minimum": 1
194
+ },
195
+ "checks": {
196
+ "type": "array",
197
+ "minItems": 1,
198
+ "items": {
199
+ "$ref": "#/$defs/interactionProofWarning"
200
+ }
201
+ }
202
+ }
203
+ },
204
+ "interactionProofWarning": {
205
+ "type": "object",
206
+ "additionalProperties": false,
207
+ "required": ["name", "code", "message"],
208
+ "properties": {
209
+ "name": {
210
+ "type": "string"
211
+ },
212
+ "code": {
213
+ "type": "string"
214
+ },
215
+ "message": {
216
+ "type": "string"
217
+ },
218
+ "nextAction": {
219
+ "$ref": "#/$defs/skippedInteractionProofNextAction"
220
+ }
221
+ }
222
+ },
223
+ "skippedInteractionProofPointer": {
224
+ "type": "object",
225
+ "additionalProperties": false,
226
+ "required": ["label", "runnerId", "scenarioId", "runId", "reason", "nextAction"],
227
+ "properties": {
228
+ "label": {
229
+ "type": "string"
230
+ },
231
+ "runnerId": {
232
+ "type": "string"
233
+ },
234
+ "scenarioId": {
235
+ "type": "string"
236
+ },
237
+ "runId": {
238
+ "type": "string"
239
+ },
240
+ "reason": {
241
+ "type": "string"
242
+ },
243
+ "nextAction": {
244
+ "$ref": "#/$defs/skippedInteractionProofNextAction"
245
+ }
246
+ }
247
+ },
248
+ "skippedInteractionProofNextAction": {
249
+ "type": "object",
250
+ "additionalProperties": false,
251
+ "required": ["code", "summary"],
252
+ "properties": {
253
+ "code": {
254
+ "type": "string"
255
+ },
256
+ "summary": {
257
+ "type": "string"
258
+ }
259
+ }
260
+ },
261
+ "comparisonPointer": {
262
+ "type": "object",
263
+ "additionalProperties": false,
264
+ "required": [
265
+ "label",
266
+ "scenarioId",
267
+ "runId",
268
+ "status",
269
+ "baselineDir",
270
+ "comparisonDir",
271
+ "summaryPath",
272
+ "reason"
273
+ ],
274
+ "properties": {
275
+ "label": {
276
+ "type": "string"
277
+ },
278
+ "scenarioId": {
279
+ "type": "string"
280
+ },
281
+ "runId": {
282
+ "type": "string"
283
+ },
284
+ "status": {
285
+ "type": "string",
286
+ "enum": ["better", "worse", "unchanged", "mixed", "inconclusive", "skipped"]
287
+ },
288
+ "baselineDir": {
289
+ "type": ["string", "null"]
290
+ },
291
+ "comparisonDir": {
292
+ "type": ["string", "null"]
293
+ },
294
+ "summaryPath": {
295
+ "type": ["string", "null"]
296
+ },
297
+ "reason": {
298
+ "type": ["string", "null"]
299
+ },
300
+ "metricSummary": {
301
+ "$ref": "#/$defs/comparisonMetricSummary"
302
+ }
303
+ }
304
+ },
305
+ "comparisonMetricSummary": {
306
+ "type": "object",
307
+ "additionalProperties": false,
308
+ "required": ["counts", "notableMetrics"],
309
+ "properties": {
310
+ "counts": {
311
+ "type": "object",
312
+ "additionalProperties": false,
313
+ "required": ["better", "worse", "unchanged", "inconclusive"],
314
+ "properties": {
315
+ "better": {
316
+ "type": "integer",
317
+ "minimum": 0
318
+ },
319
+ "worse": {
320
+ "type": "integer",
321
+ "minimum": 0
322
+ },
323
+ "unchanged": {
324
+ "type": "integer",
325
+ "minimum": 0
326
+ },
327
+ "inconclusive": {
328
+ "type": "integer",
329
+ "minimum": 0
330
+ }
331
+ }
332
+ },
333
+ "notableMetrics": {
334
+ "type": "array",
335
+ "items": {
336
+ "$ref": "#/$defs/comparisonMetricHighlight"
337
+ }
338
+ }
339
+ }
340
+ },
341
+ "comparisonMetricHighlight": {
342
+ "type": "object",
343
+ "additionalProperties": false,
344
+ "required": ["name", "status", "unit", "baseline", "current", "delta"],
345
+ "properties": {
346
+ "name": {
347
+ "type": "string"
348
+ },
349
+ "status": {
350
+ "type": "string",
351
+ "enum": ["better", "worse", "inconclusive"]
352
+ },
353
+ "unit": {
354
+ "type": "string"
355
+ },
356
+ "baseline": {
357
+ "type": ["number", "integer", "boolean", "null"]
358
+ },
359
+ "current": {
360
+ "type": ["number", "integer", "boolean", "null"]
361
+ },
362
+ "delta": {
363
+ "type": ["number", "integer", "null"]
364
+ }
365
+ }
366
+ },
367
+ "comparisonCounts": {
368
+ "type": "object",
369
+ "additionalProperties": false,
370
+ "required": ["better", "worse", "unchanged", "mixed", "inconclusive", "skipped"],
371
+ "properties": {
372
+ "better": {
373
+ "type": "integer",
374
+ "minimum": 0
375
+ },
376
+ "worse": {
377
+ "type": "integer",
378
+ "minimum": 0
379
+ },
380
+ "unchanged": {
381
+ "type": "integer",
382
+ "minimum": 0
383
+ },
384
+ "mixed": {
385
+ "type": "integer",
386
+ "minimum": 0
387
+ },
388
+ "inconclusive": {
389
+ "type": "integer",
390
+ "minimum": 0
391
+ },
392
+ "skipped": {
393
+ "type": "integer",
394
+ "minimum": 0
395
+ }
396
+ }
397
+ },
398
+ "nextAction": {
399
+ "type": "object",
400
+ "additionalProperties": false,
401
+ "required": ["code", "summary"],
402
+ "properties": {
403
+ "code": {
404
+ "type": "string",
405
+ "enum": ["establish_baseline", "inspect_failed_run", "inspect_inconclusive", "inspect_mixed", "inspect_regressions", "inspect_summary"]
406
+ },
407
+ "summary": {
408
+ "type": "string"
409
+ }
410
+ }
411
+ }
412
+ }
413
+ }
@@ -0,0 +1,204 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://agent-scenario-loop.dev/schemas/manifest.schema.json",
4
+ "title": "Agent Scenario Loop Run Manifest",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "scenario",
9
+ "runId",
10
+ "platform",
11
+ "status",
12
+ "startedAt",
13
+ "endedAt",
14
+ "durationMs",
15
+ "interactionDriver",
16
+ "simulator",
17
+ "bundleId",
18
+ "gitSha",
19
+ "toolVersions",
20
+ "artifacts",
21
+ "failureReason"
22
+ ],
23
+ "properties": {
24
+ "scenario": {
25
+ "type": "string"
26
+ },
27
+ "scenarioHash": {
28
+ "type": "string",
29
+ "pattern": "^[a-f0-9]{64}$"
30
+ },
31
+ "runId": {
32
+ "type": "string"
33
+ },
34
+ "platform": {
35
+ "type": "string",
36
+ "enum": ["ios", "android"]
37
+ },
38
+ "status": {
39
+ "type": "string",
40
+ "enum": ["passed", "failed"]
41
+ },
42
+ "startedAt": {
43
+ "type": "string"
44
+ },
45
+ "endedAt": {
46
+ "type": "string"
47
+ },
48
+ "durationMs": {
49
+ "type": "number",
50
+ "minimum": 0
51
+ },
52
+ "interactionDriver": {
53
+ "type": "string"
54
+ },
55
+ "comparisonLane": {
56
+ "type": "string"
57
+ },
58
+ "simulator": {
59
+ "type": "object",
60
+ "additionalProperties": false,
61
+ "required": ["name", "udid"],
62
+ "properties": {
63
+ "name": {
64
+ "type": "string"
65
+ },
66
+ "udid": {
67
+ "type": "string"
68
+ }
69
+ }
70
+ },
71
+ "bundleId": {
72
+ "type": "string"
73
+ },
74
+ "gitSha": {
75
+ "type": "string"
76
+ },
77
+ "toolVersions": {
78
+ "type": "object",
79
+ "additionalProperties": {
80
+ "type": "string"
81
+ }
82
+ },
83
+ "artifacts": {
84
+ "type": "object",
85
+ "additionalProperties": false,
86
+ "required": ["causalRun", "budgetVerdict", "manifest", "metrics", "summary", "scenario", "raw", "captures", "signals"],
87
+ "properties": {
88
+ "causalRun": {
89
+ "type": "string"
90
+ },
91
+ "budgetVerdict": {
92
+ "type": "string"
93
+ },
94
+ "manifest": {
95
+ "type": "string"
96
+ },
97
+ "metrics": {
98
+ "type": "string"
99
+ },
100
+ "summary": {
101
+ "type": "string"
102
+ },
103
+ "scenario": {
104
+ "type": "string"
105
+ },
106
+ "raw": {
107
+ "type": "object",
108
+ "additionalProperties": false,
109
+ "required": ["interactionLog", "deviceLog"],
110
+ "properties": {
111
+ "interactionLog": {
112
+ "type": "string"
113
+ },
114
+ "deviceLog": {
115
+ "type": "string"
116
+ }
117
+ }
118
+ },
119
+ "captures": {
120
+ "type": "object",
121
+ "additionalProperties": false,
122
+ "required": ["video", "uiTree"],
123
+ "properties": {
124
+ "video": {
125
+ "type": "string"
126
+ },
127
+ "uiTree": {
128
+ "type": "string"
129
+ },
130
+ "screenshots": {
131
+ "type": "array",
132
+ "items": {
133
+ "type": "string"
134
+ }
135
+ }
136
+ }
137
+ },
138
+ "signals": {
139
+ "type": "object",
140
+ "additionalProperties": false,
141
+ "required": ["js", "memory", "network"],
142
+ "properties": {
143
+ "js": {
144
+ "type": "array",
145
+ "items": {
146
+ "type": "string"
147
+ }
148
+ },
149
+ "memory": {
150
+ "type": "array",
151
+ "items": {
152
+ "type": "string"
153
+ }
154
+ },
155
+ "network": {
156
+ "type": "array",
157
+ "items": {
158
+ "type": "string"
159
+ }
160
+ }
161
+ }
162
+ },
163
+ "evidenceAttachments": {
164
+ "type": "array",
165
+ "uniqueItems": true,
166
+ "items": {
167
+ "type": "object",
168
+ "additionalProperties": false,
169
+ "required": ["channel", "kind", "path", "sha256", "sizeBytes", "sourceFileName"],
170
+ "properties": {
171
+ "channel": {
172
+ "type": "string",
173
+ "enum": ["capture", "provider", "signal"]
174
+ },
175
+ "kind": {
176
+ "type": "string",
177
+ "enum": ["accessibility", "js", "logs", "memory", "network", "profiler", "screenshot", "uiTree", "video"]
178
+ },
179
+ "path": {
180
+ "type": "string",
181
+ "minLength": 1
182
+ },
183
+ "sha256": {
184
+ "type": "string",
185
+ "pattern": "^[a-f0-9]{64}$"
186
+ },
187
+ "sizeBytes": {
188
+ "type": "integer",
189
+ "minimum": 0
190
+ },
191
+ "sourceFileName": {
192
+ "type": "string",
193
+ "minLength": 1
194
+ }
195
+ }
196
+ }
197
+ }
198
+ }
199
+ },
200
+ "failureReason": {
201
+ "type": ["string", "null"]
202
+ }
203
+ }
204
+ }