@threenative/playtest 0.2.0 → 0.3.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.
@@ -0,0 +1,1106 @@
1
+ import { PlaytestFramePhase, JsonValue, IPlaytestRenderChainObservation, IPlaytestSceneObservation, IPlaytestSceneNodesObservation, IPlaytestStartupTimeline } from './protocol.js';
2
+
3
+ type PlaytestTarget = "web" | "desktop" | "bevy";
4
+ type PlaytestInputDelivery = "deterministic" | "focused-dom";
5
+ interface IPlaytestViewport$1 {
6
+ height: number;
7
+ width: number;
8
+ }
9
+ interface IPlaytestPointer {
10
+ buttons?: number;
11
+ id: number;
12
+ x: number;
13
+ y: number;
14
+ }
15
+ interface IPlaytestWheel {
16
+ deltaX?: number;
17
+ deltaY: number;
18
+ }
19
+ type IPlaytestResourceWait = {
20
+ equals: unknown;
21
+ gte?: never;
22
+ id: string;
23
+ lte?: never;
24
+ path: string;
25
+ } | {
26
+ equals?: never;
27
+ gte: number;
28
+ id: string;
29
+ lte?: never;
30
+ path: string;
31
+ } | {
32
+ equals?: never;
33
+ gte?: never;
34
+ id: string;
35
+ lte: number;
36
+ path: string;
37
+ };
38
+ interface IPlaytestStep {
39
+ kind?: "aimAt" | "click" | "input" | "wait";
40
+ /** @deprecated Use holdTicks. Fixed-step bridges treat this as a tick alias. */
41
+ holdFrames?: number;
42
+ holdTicks?: number;
43
+ /** A viewport-pixel click target, resolved directly or from a registered entity's bounds. */
44
+ at?: IPlaytestClickTarget;
45
+ label?: string;
46
+ overlayMessage?: {
47
+ overlayId: string;
48
+ payload: unknown;
49
+ type: string;
50
+ };
51
+ pitch?: number;
52
+ pointerPosition?: {
53
+ buttons?: number;
54
+ x: number;
55
+ y: number;
56
+ };
57
+ /** The complete held-pointer set for this step, in arrival order. */
58
+ pointers?: readonly IPlaytestPointer[];
59
+ /** A string presses one key; an array describes the complete held-key set. */
60
+ press?: string | readonly string[];
61
+ release: boolean;
62
+ screenshot?: string;
63
+ /** Runner-native aim: yaw/pitch are computed from the sampled subject position. */
64
+ target?: IPlaytestAimTarget;
65
+ timeoutMs?: number;
66
+ /** @deprecated Use waitTicks. Fixed-step bridges treat this as a tick alias. */
67
+ waitFrames?: number;
68
+ waitForResource?: IPlaytestResourceWait;
69
+ waitTicks?: number;
70
+ /** A browser/native wheel sample; negative DOM deltaY is the conventional toward-user gesture. */
71
+ wheel?: IPlaytestWheel;
72
+ window?: {
73
+ height?: number;
74
+ operation: "minimize" | "resize" | "restore";
75
+ width?: number;
76
+ };
77
+ }
78
+ /** Where an aimAt step points: a world xz position or another registered entity. */
79
+ type IPlaytestAimTarget = {
80
+ entity: string;
81
+ } | {
82
+ x: number;
83
+ z: number;
84
+ };
85
+ type IPlaytestClickTarget = {
86
+ entity: string;
87
+ } | {
88
+ x: number;
89
+ y: number;
90
+ };
91
+ interface IPlaytestMovementAssertion {
92
+ axis?: string;
93
+ closesDistanceToPosition?: {
94
+ position: [number, number, number];
95
+ min: number;
96
+ };
97
+ entity?: string;
98
+ facesMovementWithinDegrees?: number;
99
+ minAxisDelta?: {
100
+ axis: string;
101
+ min: number;
102
+ };
103
+ minResolvedAxisDelta?: {
104
+ axis: string;
105
+ min: number;
106
+ };
107
+ maxTiltDegrees?: number;
108
+ minDistance?: number;
109
+ minVelocity?: number;
110
+ maxDistance?: number;
111
+ pathLength?: number;
112
+ notFacing?: {
113
+ entity: string;
114
+ minDegrees: number;
115
+ };
116
+ notFacingPosition?: {
117
+ position: [number, number, number];
118
+ minDegrees: number;
119
+ };
120
+ reachesPositionWithin?: {
121
+ atStep?: string;
122
+ position: [number, number, number];
123
+ maxDistance: number;
124
+ };
125
+ rotationChanged?: boolean;
126
+ }
127
+ interface IPlaytestCameraAssertion {
128
+ entity?: string;
129
+ follows?: string;
130
+ targetInViewport?: boolean;
131
+ within?: number;
132
+ }
133
+ interface IPlaytestPathAssertion {
134
+ atSteps?: Array<{
135
+ equals?: unknown;
136
+ label: string;
137
+ textIncludes?: string;
138
+ }>;
139
+ changed?: boolean;
140
+ equals?: unknown;
141
+ gte?: number;
142
+ id: string;
143
+ lte?: number;
144
+ allowTrivial?: string;
145
+ path?: string;
146
+ textIncludes?: string;
147
+ throughoutSteps?: boolean;
148
+ /** Require a DOM node to occupy pixels above the page at the sampled viewport centre. */
149
+ visible?: boolean;
150
+ }
151
+ interface IPlaytestResourcePathAlternative {
152
+ changed?: boolean;
153
+ equals?: unknown;
154
+ gte?: number;
155
+ lte?: number;
156
+ path: string;
157
+ textIncludes?: string;
158
+ }
159
+ interface IPlaytestResourcePathAssertion extends IPlaytestPathAssertion {
160
+ anyOf?: never;
161
+ }
162
+ interface IPlaytestResourceAnyOfAssertion {
163
+ anyOf: IPlaytestResourcePathAlternative[];
164
+ atSteps?: never;
165
+ changed?: never;
166
+ equals?: never;
167
+ gte?: never;
168
+ id: string;
169
+ lte?: never;
170
+ allowTrivial?: never;
171
+ path?: never;
172
+ textIncludes?: never;
173
+ throughoutSteps?: never;
174
+ }
175
+ type IPlaytestResourceAssertion = IPlaytestResourceAnyOfAssertion | IPlaytestResourcePathAssertion;
176
+ interface IPlaytestComponentAssertion extends Omit<IPlaytestPathAssertion, "id" | "textIncludes" | "throughoutSteps"> {
177
+ component: string;
178
+ entity: string;
179
+ }
180
+ interface IPlaytestContactAssertion {
181
+ atStep?: string;
182
+ entity?: string;
183
+ kind?: string;
184
+ maxCount?: number;
185
+ minCount?: number;
186
+ requiredOn?: PlaytestTarget[];
187
+ with?: string;
188
+ }
189
+ interface IPlaytestSignalAssertion {
190
+ atStep?: string;
191
+ entity?: string;
192
+ maxCount?: number;
193
+ minCount?: number;
194
+ name: string;
195
+ }
196
+ interface IPlaytestSettledAssertion {
197
+ atStep?: string;
198
+ allowTrivial?: string;
199
+ compareToStep?: string;
200
+ entity?: string;
201
+ minBodies?: number;
202
+ minMeanPoseDistance?: number;
203
+ requiredOn?: PlaytestTarget[];
204
+ }
205
+ interface IPlaytestOccludedAssertion {
206
+ allowTrivial?: string;
207
+ entity?: string;
208
+ target?: string;
209
+ }
210
+ interface IPlaytestOverlayNodeAssertion {
211
+ attribute?: string;
212
+ equals?: unknown;
213
+ overlayId: string;
214
+ selector: string;
215
+ textIncludes?: string;
216
+ visible?: boolean;
217
+ }
218
+ /**
219
+ * Bounds on the room the game is played in — what a screenshot would have shown, as numbers.
220
+ *
221
+ * Every member fails closed on an unobserved scene: a bridge that does not report `scene.observe`
222
+ * has not reported a well-lit one.
223
+ */
224
+ interface IPlaytestSceneAssertion {
225
+ allowTrivial?: string;
226
+ /** Fail when the camera's far plane cuts the scene it is pointed at. */
227
+ cameraClearsScene?: boolean;
228
+ /** Fail when a linear fog reaches full colour in front of the scene it is fogging. */
229
+ fogClearsScene?: boolean;
230
+ /** Fail when lit materials are mounted and no light in the scene is visible. */
231
+ litMaterialsAreLit?: boolean;
232
+ /** Floor on how many lights the renderer will actually see. */
233
+ minVisibleLights?: number;
234
+ }
235
+ /**
236
+ * Bounds on named nodes of the scene graph — the questions a screenshot gets taken for.
237
+ *
238
+ * `scene` bounds the room as a whole: is anything lit, does the fog clear the world. This bounds
239
+ * one object: is the crate where the game says it is, is it inside the camera's frustum, did its
240
+ * texture load, is the character's mesh actually visible once every ancestor's flag is taken into
241
+ * account. Each is a frame-destroying failure that leaves every count healthy.
242
+ *
243
+ * `select` is required and every other member is optional, but an assertion that sets only
244
+ * `select` throws at load: selecting nodes and bounding nothing is the vacuous pass this package
245
+ * refuses. Every bound fails closed — a run whose bridge reported no scene nodes has not reported
246
+ * a visible crate, it has reported nothing.
247
+ */
248
+ interface IPlaytestSceneNodesAssertion {
249
+ allowTrivial?: string;
250
+ /** Require every matched node to have at least one clip mounted, or none to. */
251
+ animated?: boolean;
252
+ /** Require every matched node's world bounds to intersect the active camera's frustum. */
253
+ inFrustum?: boolean;
254
+ /** Ceiling on how many nodes the selector may match. Zero asserts absence. */
255
+ maxCount?: number;
256
+ /** Floor on how many nodes the selector must match. Defaults to 1 when absent. */
257
+ minCount?: number;
258
+ /** Floor on the summed triangle count of every matched node. */
259
+ minTriangles?: number;
260
+ /** Which nodes to bound. A selector that matches fewer than `minCount` fails. */
261
+ select: IPlaytestSceneNodeSelectorSpec;
262
+ /** Require every bound texture slot on every matched node to carry pixels. */
263
+ texturesLoaded?: boolean;
264
+ /** Require every matched node to be visible with every ancestor visible too. */
265
+ visible?: boolean;
266
+ }
267
+ /**
268
+ * Which nodes an assertion is about. Every present field must match; an absent field does not
269
+ * filter. At least one field is required — a selector that filters nothing selects the whole
270
+ * scene graph and bounds nothing in particular.
271
+ */
272
+ interface IPlaytestSceneNodeSelectorSpec {
273
+ limit?: number;
274
+ name?: string;
275
+ nameContains?: string;
276
+ pathContains?: string;
277
+ type?: string;
278
+ }
279
+ /**
280
+ * "It happened **because** of that, and never before it."
281
+ *
282
+ * The one sentence a proof of a physics puzzle actually has to make, and the one this harness
283
+ * could not make. A run could already say *a contact happened* and *the state reads `won`*, and
284
+ * `atSteps` could order them at step boundaries — where a win arriving one tick after the contact
285
+ * and a win arriving 199 ticks later inside the same step are the same observation. That is the
286
+ * signature of a terminal state driven by a timer or a distance check that merely lands near a
287
+ * contact, and it is what a sealed proof exists to refuse.
288
+ *
289
+ * Both sides are tick-stamped by the producer. A run whose contacts or transitions carry no ticks
290
+ * fails closed and names which side was unstamped; it never falls back to step granularity, which
291
+ * is a different measurement wearing the same name.
292
+ */
293
+ interface IPlaytestCausedByAssertion {
294
+ allowTrivial?: string;
295
+ cause: IPlaytestCauseSpec;
296
+ effect: IPlaytestEffectSpec;
297
+ /**
298
+ * Fail when the effect is ever observed before the first matching cause. This is the frame-one
299
+ * fake win: a goal volume overlapping the floor reports `won` before anything touched it.
300
+ */
301
+ neverBefore?: boolean;
302
+ /** Ceiling on `effectTick - causeTick`. A win long after the contact was not caused by it. */
303
+ withinTicks?: number;
304
+ }
305
+ /** What must have happened first. */
306
+ interface IPlaytestCauseSpec {
307
+ contact?: {
308
+ entity: string;
309
+ kind?: string;
310
+ with: string;
311
+ };
312
+ /** A published value reaching a given value, named the same way an effect is. */
313
+ transition?: IPlaytestEffectSpec;
314
+ }
315
+ /** The published value whose change is being explained. */
316
+ interface IPlaytestEffectSpec {
317
+ /** `states.<entity>` or `state.<field>`, exactly as the transition log reports it. */
318
+ path: string;
319
+ /** The value the path must reach. */
320
+ becomes: boolean | number | string;
321
+ }
322
+ interface IPlaytestAnimationAssertion {
323
+ advancedFrames?: number;
324
+ allowTrivial?: string;
325
+ clip?: string;
326
+ entered?: boolean;
327
+ entity?: string;
328
+ finished?: boolean;
329
+ /**
330
+ * Ceiling on |feet − ground| / ground for the observed clip. A run whose producer reports no
331
+ * stride fails closed: the convention is on by default, so silence is a missing observation,
332
+ * not agreement.
333
+ */
334
+ maxFootSlide?: number;
335
+ /** Require the stride convention to be applied (`true`) or deliberately overridden (`false`). */
336
+ strideSynced?: boolean;
337
+ }
338
+ interface IPlaytestTagCountAssertion {
339
+ allowTrivial?: string;
340
+ count?: number;
341
+ gte?: number;
342
+ lte?: number;
343
+ tag: string;
344
+ }
345
+ interface IPlaytestStateAssertion {
346
+ allowTrivial?: string;
347
+ entity?: string;
348
+ equals: string;
349
+ }
350
+ interface IPlaytestVisibilityAssertion {
351
+ allowTrivial?: string;
352
+ entity?: string;
353
+ maxOffscreenRatio?: number;
354
+ minProjectedPixels?: number;
355
+ present?: boolean;
356
+ }
357
+ interface IPlaytestDiagnosticsAssertion {
358
+ noConsoleErrors?: boolean;
359
+ noNetworkErrors?: boolean;
360
+ noRuntimeDiagnostics?: boolean;
361
+ consoleErrorsOptOutReason?: string;
362
+ networkErrorsOptOutReason?: string;
363
+ runtimeDiagnosticsOptOutReason?: string;
364
+ runtimeReady?: boolean;
365
+ }
366
+ interface IPlaytestPerformanceAssertion {
367
+ maxDrawCalls?: number;
368
+ maxFrameMsP95?: number;
369
+ maxTriangles?: number;
370
+ /** Frame-budget floor: the median presented frame must sustain at least this many frames a second. */
371
+ minFps?: number;
372
+ /**
373
+ * Per-phase ceilings in milliseconds, nearest-rank p95 across the sampled frames. The phase
374
+ * names are the engine's frame-budget phases: hostGap, update, render, overlay, residual.
375
+ */
376
+ maxPhaseMsP95?: Readonly<Partial<Record<PlaytestFramePhase, number>>>;
377
+ }
378
+ interface IPlaytestRenderChainAssertion {
379
+ contributions?: {
380
+ graphOutputChanged: string[];
381
+ };
382
+ tier?: "high" | "medium" | "low" | "off";
383
+ stages?: {
384
+ includes?: string[];
385
+ excludes?: string[];
386
+ /** Ordered subsequence of applied stage ids, not necessarily the complete chain. */
387
+ order?: string[];
388
+ };
389
+ velocity?: {
390
+ maxRejectionFraction: number;
391
+ };
392
+ }
393
+ /** Ceilings on the application's startup milestones, in milliseconds since navigation. */
394
+ interface IPlaytestStartupAssertion {
395
+ /** The start scene's `enter()` returned: a controllable world exists. */
396
+ maxEnteredMs?: number;
397
+ /** First-use compilation settled or its budget expired. */
398
+ maxCompileSettledMs?: number;
399
+ /** `whenReady()` resolved: the world is safe to show. */
400
+ maxReadyMs?: number;
401
+ }
402
+ interface IPlaytestFramebufferCoverageAssertion {
403
+ backdrop: [number, number, number];
404
+ grid?: {
405
+ columns: number;
406
+ rows: number;
407
+ };
408
+ tolerance: number;
409
+ window: {
410
+ endStep: string;
411
+ startStep: string;
412
+ };
413
+ }
414
+ interface IPlaytestVisualRegionTarget {
415
+ id?: string;
416
+ selector?: string;
417
+ }
418
+ interface IPlaytestVisualRegionBounds {
419
+ height: number;
420
+ width: number;
421
+ x: number;
422
+ y: number;
423
+ }
424
+ interface IPlaytestVisualRegionThresholds {
425
+ maxDarkPixelRatio?: number;
426
+ maxLuminance?: number;
427
+ minDarkPixelRatio?: number;
428
+ minNonblankPixelRatio?: number;
429
+ }
430
+ interface IPlaytestVisualStaticRegion extends IPlaytestVisualRegionBounds, IPlaytestVisualRegionThresholds {
431
+ }
432
+ interface IPlaytestVisualElementRegion extends IPlaytestVisualRegionThresholds {
433
+ element: IPlaytestVisualRegionTarget;
434
+ }
435
+ type IPlaytestVisualRegion = IPlaytestVisualStaticRegion | IPlaytestVisualElementRegion;
436
+ interface IPlaytestVisualAssertion {
437
+ entityVisible?: {
438
+ entity: string;
439
+ minProjectedPixels: number;
440
+ throughoutFrames?: boolean;
441
+ };
442
+ frameDiff?: {
443
+ baselineImage?: string;
444
+ maxChangedPixelRatio?: number;
445
+ minChangedPixelRatio?: number;
446
+ };
447
+ region?: IPlaytestVisualRegion;
448
+ }
449
+ interface IPlaytestAerodynamicsAssertion {
450
+ controls?: Array<{
451
+ minAbs?: number;
452
+ sign: "negative" | "positive";
453
+ surface: string;
454
+ }>;
455
+ entity: string;
456
+ minForceSamples?: number;
457
+ torques?: Array<{
458
+ axis: "x" | "y" | "z";
459
+ label: string;
460
+ minAbs?: number;
461
+ relativeToLabel?: string;
462
+ sign: "negative" | "positive";
463
+ }>;
464
+ }
465
+ interface IPlaytestReachabilityAssertion {
466
+ artifact: string;
467
+ entities: string[];
468
+ /** Loaded from artifact by loadPlaytestScenario; not authored in scenario JSON. */
469
+ envelope?: {
470
+ fallDistanceToGround: number;
471
+ forwardReach: number;
472
+ maxRise: number;
473
+ };
474
+ }
475
+ interface IPlaytestWorldRuntimeAssertion {
476
+ agent: string;
477
+ core: string;
478
+ portable?: boolean;
479
+ randomState: number;
480
+ rapier: string | null;
481
+ step: number;
482
+ }
483
+ interface IPlaytestWorldAssertion {
484
+ runtime?: IPlaytestWorldRuntimeAssertion;
485
+ seed: number | null;
486
+ }
487
+ /**
488
+ * Thermal, power and battery state measured around the run itself. Its point is comparability:
489
+ * a run that started hot, or whose thermal status rose while it ran, is not evidence against a
490
+ * cool baseline, and this is how a scenario says so out loud.
491
+ */
492
+ interface IPlaytestDeviceMetricsAssertion {
493
+ /** Ceiling on the battery temperature climb from the first to the last sample, in °C. */
494
+ maxTemperatureRiseC?: number;
495
+ /** Ceiling on the highest Android thermal status observed during the run (0 is NONE). */
496
+ maxThermalStatus?: number;
497
+ /** Requires a run the harness judged comparable with a cool one. */
498
+ notThermallyConfounded?: boolean;
499
+ }
500
+ interface IPlaytestScenarioAssertions {
501
+ aerodynamics?: IPlaytestAerodynamicsAssertion[];
502
+ animation?: IPlaytestAnimationAssertion[];
503
+ camera?: IPlaytestCameraAssertion;
504
+ components?: IPlaytestComponentAssertion[];
505
+ contacts?: IPlaytestContactAssertion[];
506
+ deviceMetrics?: IPlaytestDeviceMetricsAssertion;
507
+ diagnostics?: IPlaytestDiagnosticsAssertion;
508
+ framebufferCoverage?: IPlaytestFramebufferCoverageAssertion;
509
+ hud?: IPlaytestPathAssertion[];
510
+ movement?: IPlaytestMovementAssertion;
511
+ occluded?: IPlaytestOccludedAssertion[];
512
+ overlayNodes?: IPlaytestOverlayNodeAssertion[];
513
+ parity?: IPlaytestParityAssertion;
514
+ performance?: IPlaytestPerformanceAssertion;
515
+ renderChain?: IPlaytestRenderChainAssertion;
516
+ reachability?: IPlaytestReachabilityAssertion;
517
+ resources?: IPlaytestResourceAssertion[];
518
+ settled?: IPlaytestSettledAssertion[];
519
+ signals?: IPlaytestSignalAssertion[];
520
+ scene?: IPlaytestSceneAssertion;
521
+ causedBy?: IPlaytestCausedByAssertion[];
522
+ sceneNodes?: IPlaytestSceneNodesAssertion[];
523
+ startup?: IPlaytestStartupAssertion;
524
+ states?: IPlaytestStateAssertion[];
525
+ tags?: IPlaytestTagCountAssertion[];
526
+ visibility?: IPlaytestVisibilityAssertion[];
527
+ visual?: IPlaytestVisualAssertion[];
528
+ world?: IPlaytestWorldAssertion;
529
+ }
530
+ interface IPlaytestParityConfig {
531
+ animation?: Array<{
532
+ clip?: string;
533
+ entity: string;
534
+ requiredOn?: PlaytestTarget[];
535
+ }>;
536
+ axisDelta?: Partial<Record<"x" | "y" | "z", number>>;
537
+ contacts?: {
538
+ minSharedCount?: number;
539
+ };
540
+ movementDistance?: {
541
+ maxDelta: number;
542
+ };
543
+ resources?: string[];
544
+ targets?: PlaytestTarget[];
545
+ }
546
+ /** What the parity reference's saved run report yielded, extracted at scenario load. */
547
+ interface IPlaytestParityReference {
548
+ /** Frames per second of the reference run: 1000 ÷ the median frame time of its series. */
549
+ fps: number;
550
+ /** Render-phase p95 of the reference run, when its series carries the phase split. */
551
+ renderP95?: number;
552
+ /** The device the reference run executed on, when it measured one. */
553
+ serial?: string;
554
+ /** The reference run's own thermal verdict, when it measured one. */
555
+ thermallyConfounded?: boolean;
556
+ }
557
+ /**
558
+ * PRD-222 Tier 2: the same scene on the same device, twice — once in the platform's browser,
559
+ * once on the native host. The assertion lives in the second run of the pair and names the
560
+ * first run's saved report.
561
+ *
562
+ * It proves what the artifacts can prove: the same device (both halves' `deviceMetrics.serial`),
563
+ * a thermally comparable pair, and the directed fps ratio. Which scene the reference ran is the
564
+ * pair protocol the operator owns — the report format carries no scene identity — so this
565
+ * assertion never claims it did.
566
+ */
567
+ interface IPlaytestParityAssertion {
568
+ /** Floor on nativeFps ÷ webFps. Tier 2's Floor is 0.85; Target 0.95. */
569
+ minFpsRatio: number;
570
+ /** Optional floor on the inverted render-phase p95 ratio; fails closed when either side's series lacks the split. */
571
+ minRenderParity?: number;
572
+ /** Path to the other half's saved run report JSON, resolved against the project. */
573
+ referenceReport: string;
574
+ /** Which side of the pair the reference report is; the directed ratio needs it. */
575
+ referenceSide: "browser" | "native";
576
+ /** Hydrated from the reference report at scenario load; never set by hand. */
577
+ reference?: IPlaytestParityReference;
578
+ }
579
+ interface IPlaytestArtifactRequest {
580
+ console?: boolean;
581
+ contactSheet?: boolean;
582
+ effectLog?: "focused" | boolean;
583
+ network?: boolean;
584
+ runtimeTrace?: boolean;
585
+ screenshots?: "before-after" | "after" | false;
586
+ }
587
+ interface IPlaytestSetupEntityTransform {
588
+ entity: string;
589
+ position?: [number, number, number];
590
+ rotation?: [number, number, number, number];
591
+ scale?: [number, number, number];
592
+ }
593
+ /** Overrides the subject player start. y is optional and preserves the game's own height when absent. */
594
+ interface IPlaytestSpawnRequest {
595
+ x: number;
596
+ y?: number;
597
+ z: number;
598
+ }
599
+ /** Overrides the subject player-start aim; both angles are radians (Three.js convention). */
600
+ interface IPlaytestAimRequest {
601
+ pitch: number;
602
+ yaw: number;
603
+ }
604
+ /**
605
+ * Places a named entity at an explicit world transform before input. Orientation comes
606
+ * from facing yaw or a lookAt point (never both); frozen delivers the placed-frozen
607
+ * marker the game reads to suppress physics motion — placement is data, not teleports.
608
+ */
609
+ interface IPlaytestPlaceRequest {
610
+ at: {
611
+ x: number;
612
+ y: number;
613
+ z: number;
614
+ };
615
+ entity: string;
616
+ facing?: {
617
+ yaw: number;
618
+ };
619
+ frozen?: boolean;
620
+ lookAt?: {
621
+ x: number;
622
+ y: number;
623
+ z: number;
624
+ };
625
+ }
626
+ interface IPlaytestSetupResource {
627
+ id: string;
628
+ path?: string;
629
+ value: unknown;
630
+ }
631
+ interface IPlaytestScenarioSetup {
632
+ aim?: IPlaytestAimRequest;
633
+ entities?: IPlaytestSetupEntityTransform[];
634
+ place?: IPlaytestPlaceRequest[];
635
+ resources?: IPlaytestSetupResource[];
636
+ spawn?: IPlaytestSpawnRequest;
637
+ }
638
+ interface IPlaytestScenario {
639
+ acceptanceId?: string;
640
+ artifacts?: IPlaytestArtifactRequest;
641
+ assert?: IPlaytestScenarioAssertions;
642
+ /** Test-only browser seam that makes the renderer's no-adapter boot path deterministic. */
643
+ bootFailure?: "renderer-no-adapter";
644
+ /**
645
+ * Wait for the application to finish its own startup before the first observation. Default
646
+ * true, because a fixed-step run otherwise observes a game that has not finished loading.
647
+ * Set false only when the launch *is* the subject — a loading-screen scenario has to be
648
+ * allowed to look at the loading screen.
649
+ */
650
+ awaitStartup?: boolean;
651
+ inputDelivery?: PlaytestInputDelivery;
652
+ name: string;
653
+ parity?: IPlaytestParityConfig;
654
+ schemaVersion: 1;
655
+ setup?: IPlaytestScenarioSetup;
656
+ sourcePath?: string;
657
+ steps: IPlaytestStep[];
658
+ subject?: string;
659
+ target: PlaytestTarget;
660
+ viewport: IPlaytestViewport$1;
661
+ warmupFrames: number;
662
+ }
663
+ interface IPlaytestScenarioDiagnostic {
664
+ code: "TN_PLAYTEST_SCENARIO_INVALID" | "TN_PLAYTEST_SCENARIO_NOT_FOUND" | "TN_PLAYTEST_SCENARIO_STEP_INVALID";
665
+ fix?: {
666
+ docs?: string;
667
+ instruction: string;
668
+ snippet?: string;
669
+ };
670
+ message: string;
671
+ severity: "error";
672
+ suggestion?: string;
673
+ }
674
+
675
+ /**
676
+ * Device thermal, power and battery state as a first-class measured observation.
677
+ *
678
+ * Why this exists, measured on 2026-08-24 against a physical Pixel 8: two cold-launch runs
679
+ * reported 44 s to first frame against a 14.7 s baseline, and the difference was attributed to a
680
+ * code change. It was not. The device had climbed to 43.2 °C at thermal status 2 while the
681
+ * baseline ran at 38.2 °C at status 0 — the run was throttled, and nothing in the playtest report
682
+ * said so. Every agent that needs this answer has been hand-rolling `adb shell dumpsys` for it.
683
+ *
684
+ * Two rules this module holds to:
685
+ *
686
+ * 1. **Never report a zero for something that was not measured.** A rail breakdown a device does
687
+ * not expose comes back `{ available: false, reason }`, never `0 mW`. Google's per-rail ODPM
688
+ * numbers exist on Pixel hardware and nowhere else.
689
+ * 2. **Never discard a confounded run's numbers, and never let it pass as comparable.** The
690
+ * samples are always reported; the verdict says whether the run may be compared with a cool
691
+ * one. A missing sample is a failure, not a skip.
692
+ *
693
+ * The parsers here read real `dumpsys` and `logcat` text. Captured samples of every format live in
694
+ * `__tests__/fixtures/device-metrics/`.
695
+ */
696
+ /** Battery temperature at or above which a run is treated as having started hot, in °C. */
697
+ declare const HOT_START_TEMPERATURE_C = 40;
698
+ /** How often the recorder samples while a scenario runs, in milliseconds. */
699
+ declare const DEVICE_METRICS_CADENCE_MS = 5000;
700
+ /** Ceiling on retained samples, so a long run cannot outgrow the bridge payload budget. */
701
+ declare const DEVICE_METRICS_MAX_SAMPLES = 240;
702
+ declare class DeviceMetricsError extends Error {
703
+ readonly code: string;
704
+ readonly observed: string;
705
+ constructor(code: string, detail: string, observed: string);
706
+ }
707
+ /** A reading that a given device may simply not expose. Absent means absent, never zero. */
708
+ type PlaytestDeviceMeasurement<T> = {
709
+ available: false;
710
+ reason: string;
711
+ } | {
712
+ available: true;
713
+ value: T;
714
+ };
715
+ interface IPlaytestDeviceBattery {
716
+ chargeCounterUah?: number;
717
+ charging: boolean;
718
+ levelPercent: number;
719
+ /** `dumpsys battery` status: 2 charging, 3 discharging, 4 not charging, 5 full. */
720
+ status: number;
721
+ temperatureC: number;
722
+ voltageMv?: number;
723
+ }
724
+ interface IPlaytestDeviceThermal {
725
+ sensors: Record<string, number>;
726
+ skinSensorName?: string;
727
+ skinTemperatureC: PlaytestDeviceMeasurement<number>;
728
+ status: number;
729
+ statusName: string;
730
+ }
731
+ type PlaytestDevicePowerRails = {
732
+ available: false;
733
+ reason: string;
734
+ } | {
735
+ at: string;
736
+ available: true;
737
+ rails: Record<string, number>;
738
+ totalMw: number;
739
+ windowMs: number;
740
+ };
741
+ interface IPlaytestDeviceMetricsSample {
742
+ /** Milliseconds since the recorder was created. */
743
+ at: number;
744
+ batteryLevelPercent: number;
745
+ batteryStatus: number;
746
+ batteryTemperatureC: number;
747
+ charging: boolean;
748
+ /** Negative is discharge, matching the sysfs sign convention. */
749
+ currentMa: PlaytestDeviceMeasurement<number>;
750
+ phase: "after" | "before" | "during";
751
+ powerRails: PlaytestDevicePowerRails;
752
+ skinTemperatureC: PlaytestDeviceMeasurement<number>;
753
+ thermalStatus: number;
754
+ thermalStatusName: string;
755
+ }
756
+ interface IPlaytestDeviceMetricsVerdict {
757
+ endTemperatureC: number | null;
758
+ endThermalStatus: number | null;
759
+ maxThermalStatus: number | null;
760
+ peakTemperatureC: number | null;
761
+ /**
762
+ * Whether a fresh per-rail power window was logged between the first and last sample. When it
763
+ * is false the rail figures describe a window that predates the run and are not attributable
764
+ * to it; `null` when the device exposes no rails at all.
765
+ */
766
+ powerRailWindowAdvanced: boolean | null;
767
+ /** Named codes: charging, hot-start, incomplete, thermal-status-rose, throttled-start. */
768
+ reasons: string[];
769
+ startTemperatureC: number | null;
770
+ startThermalStatus: number | null;
771
+ temperatureRiseC: number | null;
772
+ thermallyConfounded: boolean;
773
+ }
774
+ interface IPlaytestDeviceMetricsObservation {
775
+ available: boolean;
776
+ /** Probe failures, kept rather than dropped: an unexplained gap is itself the finding. */
777
+ errors: string[];
778
+ samples: IPlaytestDeviceMetricsSample[];
779
+ serial?: string;
780
+ source: string;
781
+ verdict: IPlaytestDeviceMetricsVerdict;
782
+ }
783
+ declare function parseDeviceBattery(output: string): IPlaytestDeviceBattery;
784
+ declare function parseDeviceThermal(output: string): IPlaytestDeviceThermal;
785
+ /**
786
+ * `/sys/class/power_supply/battery/current_now` in microamps. A device that does not expose the
787
+ * node answers with `cat`'s error text, which is unavailability, not a zero-current reading.
788
+ */
789
+ declare function parseDeviceCurrent(output: string): PlaytestDeviceMeasurement<number>;
790
+ /**
791
+ * Pixel's on-device power monitor writes a whole-rail breakdown to logcat once per ~60 s window,
792
+ * as `Power rails total power: 547.76 mW for 60014 ms` followed by `[RAIL: n mW]` groups. Devices
793
+ * without Google's ODPM hardware log nothing here, and must say so rather than report zeros.
794
+ */
795
+ declare function parseDevicePowerRails(output: string): PlaytestDevicePowerRails;
796
+ /**
797
+ * The thermal verdict. It never removes a number — a confounded run reports everything it
798
+ * measured — it only states whether this run may be compared with a cool one.
799
+ */
800
+ declare function summarizeDeviceMetrics(samples: readonly IPlaytestDeviceMetricsSample[]): IPlaytestDeviceMetricsVerdict;
801
+ interface IDeviceMetricsRecorderOptions {
802
+ adb(args: readonly string[]): Promise<string>;
803
+ cadenceMs?: number;
804
+ now?(): number;
805
+ serial?: string;
806
+ }
807
+ /**
808
+ * Samples the device around and during a run. The periodic sampler is wall-clock paced on
809
+ * purpose and deliberately reads nothing the scenario depends on: it observes the phone, it
810
+ * never advances or gates a tick, so scenario determinism is untouched.
811
+ */
812
+ declare class DeviceMetricsRecorder {
813
+ private readonly options;
814
+ private readonly errors;
815
+ private readonly samples;
816
+ private readonly startedAt;
817
+ private timer?;
818
+ constructor(options: IDeviceMetricsRecorderOptions);
819
+ sampleNow(phase: IPlaytestDeviceMetricsSample["phase"]): Promise<IPlaytestDeviceMetricsSample>;
820
+ /** Begins periodic `during` sampling. A periodic probe failure is recorded, never thrown away. */
821
+ start(): void;
822
+ stop(): void;
823
+ observation(): IPlaytestDeviceMetricsObservation;
824
+ private now;
825
+ private probe;
826
+ }
827
+
828
+ type PlaytestVec3 = [number, number, number];
829
+ /** One honest-reporting line: a placement/aim/spawn override the scenario requested. */
830
+ interface IPlaytestSetupRecord {
831
+ entity?: string;
832
+ kind: "aim" | "entities" | "place" | "resources" | "spawn";
833
+ value: JsonValue;
834
+ }
835
+ /**
836
+ * Requested overrides next to what actually applied; an unapplied request fails the run.
837
+ *
838
+ * `confirmedBy` says which of those two sentences the evidence supports. `read-back` means the
839
+ * bridge named the ids it applied and `applied` is that answer. `throw-contract` means the bridge
840
+ * resolved without naming anything, so the only evidence is that it did not throw — `applied`
841
+ * mirrors `requested` there, and the field is what stops the report reading as a confirmation it
842
+ * never received.
843
+ */
844
+ interface IPlaytestSetupApplication {
845
+ applied: IPlaytestSetupRecord[];
846
+ requested: IPlaytestSetupRecord[];
847
+ confirmedBy?: "read-back" | "throw-contract";
848
+ }
849
+ interface IPlaytestTransformSample {
850
+ frame: number;
851
+ position: PlaytestVec3;
852
+ rotation?: readonly [number, number, number, number];
853
+ tick: number;
854
+ }
855
+ interface IPlaytestFollowReport {
856
+ after?: IPlaytestTransformSample;
857
+ before?: IPlaytestTransformSample;
858
+ entity: string;
859
+ moved?: number;
860
+ separation?: number;
861
+ within: number;
862
+ }
863
+ interface IPlaytestDiagnosticsPolicy {
864
+ consoleErrorsOptOutReason?: string;
865
+ networkErrorsOptOutReason?: string;
866
+ noConsoleErrors: boolean;
867
+ noNetworkErrors: boolean;
868
+ noRuntimeDiagnostics: boolean;
869
+ runtimeReady?: boolean;
870
+ runtimeDiagnosticsOptOutReason?: string;
871
+ }
872
+ interface IPlaytestCaptureProvenance {
873
+ adapter: Record<string, string>;
874
+ browserArgs: readonly string[];
875
+ captureMethod: "page.screenshot";
876
+ rendererKind: "webgl" | "webgpu";
877
+ target: string;
878
+ viewport: IPlaytestViewport;
879
+ }
880
+ interface IPlaytestTrivialityOptOut {
881
+ id: string;
882
+ reason: string;
883
+ }
884
+ interface IPlaytestViewport {
885
+ height: number;
886
+ width: number;
887
+ }
888
+ interface IPlaytestReport {
889
+ after?: IPlaytestTransformSample;
890
+ assertionResults?: IPlaytestAssertionResult[];
891
+ before?: IPlaytestTransformSample;
892
+ capture?: IPlaytestCaptureProvenance;
893
+ diagnostics: IPlaytestDiagnostic[];
894
+ diagnosticsPolicy?: IPlaytestDiagnosticsPolicy;
895
+ distance: number;
896
+ effectLog?: unknown;
897
+ entity: string;
898
+ expectAxis?: string;
899
+ expectMoved: boolean;
900
+ follow?: IPlaytestFollowReport;
901
+ frames: number;
902
+ movementDelta?: PlaytestVec3;
903
+ observations?: IPlaytestObservations;
904
+ pathLength?: number;
905
+ setup?: IPlaytestSetupApplication;
906
+ /**
907
+ * The target the run executed on — `browser`, `android`, `desktop`, `ios`.
908
+ *
909
+ * Not the scenario file's `target` field, which the two differ from routinely:
910
+ * `examples/native-smoke/playtests/*.json` say `"target": "web"` and are driven with
911
+ * `--target android`. Evaluators that must know what the lane can observe read this one.
912
+ */
913
+ target?: string;
914
+ trivialityOptOuts: IPlaytestTrivialityOptOut[];
915
+ }
916
+
917
+ type Vec3 = [number, number, number];
918
+ interface IPlaytestDiagnostic {
919
+ artifactPath?: string;
920
+ code: string;
921
+ exportName?: string;
922
+ gate?: "waived-headless";
923
+ message: string;
924
+ modulePath?: string;
925
+ observedRuntimePath?: string;
926
+ path?: string;
927
+ resourceId?: string;
928
+ severity: "error" | "warning";
929
+ sourcePath?: string;
930
+ suggestion?: string;
931
+ systemId?: string;
932
+ }
933
+ interface IPlaytestAssertionResult {
934
+ details?: Record<string, unknown>;
935
+ id: string;
936
+ pass: boolean;
937
+ }
938
+ interface IPlaytestVisualElementRegionObservation {
939
+ assertionIndex: number;
940
+ bounds?: IPlaytestVisualRegionBounds;
941
+ darkPixelRatio?: number;
942
+ element: IPlaytestVisualRegionTarget;
943
+ nonblankPixelRatio?: number;
944
+ rendered: boolean;
945
+ }
946
+ interface IPlaytestObservations {
947
+ animation?: unknown;
948
+ components?: Record<string, Record<string, {
949
+ after?: unknown;
950
+ before?: unknown;
951
+ }>>;
952
+ componentSeries?: Array<{
953
+ label: string;
954
+ snapshots: Record<string, Record<string, unknown>>;
955
+ tick: number;
956
+ }>;
957
+ console: Array<{
958
+ source?: "browser-console" | "page-error" | "unhandled-rejection";
959
+ text: string;
960
+ type: string;
961
+ }>;
962
+ contacts?: unknown;
963
+ debugColliderCount?: number;
964
+ /** Host-measured device thermal, power and battery state; produced by the android target. */
965
+ deviceMetrics?: IPlaytestDeviceMetricsObservation;
966
+ effectLog?: unknown;
967
+ effectLogBefore?: unknown;
968
+ effectLogSeries?: Array<{
969
+ label: string;
970
+ snapshot: unknown;
971
+ tick: number;
972
+ }>;
973
+ entityTransforms?: Record<string, {
974
+ halfExtents?: Vec3;
975
+ position?: Vec3;
976
+ scale?: Vec3;
977
+ }>;
978
+ framebufferCoverage?: IPlaytestFramebufferCoverageObservation;
979
+ hud: Record<string, {
980
+ after?: unknown;
981
+ before?: unknown;
982
+ }>;
983
+ overlayNodes?: Record<string, {
984
+ after?: unknown;
985
+ before?: unknown;
986
+ }>;
987
+ network: Array<{
988
+ method: string;
989
+ url: string;
990
+ }>;
991
+ physicsDebug?: unknown;
992
+ physicsDebugBefore?: unknown;
993
+ physicsDebugSeries?: Array<{
994
+ label: string;
995
+ snapshot: unknown;
996
+ tick: number;
997
+ }>;
998
+ performanceSeries?: unknown[];
999
+ /** Bounded shader/pipeline creation capture from the engine's renderer boundary. */
1000
+ pipelineCensus?: JsonValue;
1001
+ renderChain?: IPlaytestRenderChainObservation;
1002
+ resources: Record<string, {
1003
+ after?: unknown;
1004
+ before?: unknown;
1005
+ }>;
1006
+ /** Lights, materials, fog, background, camera framing and world extent, as the bridge found them. */
1007
+ scene?: IPlaytestSceneObservation;
1008
+ sceneNodes?: IPlaytestSceneNodesObservation[];
1009
+ /** The startup observation the runner waited on, with the rule it resolved under. */
1010
+ startup?: {
1011
+ compileSettled?: boolean;
1012
+ phase: string;
1013
+ progress: number;
1014
+ rule?: string;
1015
+ timeline?: IPlaytestStartupTimeline;
1016
+ };
1017
+ resourceSeries?: Array<{
1018
+ label: string;
1019
+ snapshots: Record<string, unknown>;
1020
+ tick: number;
1021
+ }>;
1022
+ runtimeObservations?: unknown;
1023
+ runtimeDiagnostics?: unknown;
1024
+ runtimeDiagnosticsBefore?: unknown;
1025
+ signals?: unknown[];
1026
+ signalSeries?: Array<{
1027
+ label: string;
1028
+ signals: unknown[];
1029
+ tick: number;
1030
+ }>;
1031
+ visibility?: Record<string, unknown>;
1032
+ visual?: {
1033
+ captureFailure?: {
1034
+ code: "TN_CAPTURE_BLANK";
1035
+ label: string;
1036
+ reason: string;
1037
+ };
1038
+ changedPixelRatio?: number;
1039
+ comparisonSource?: string;
1040
+ elementRegions?: IPlaytestVisualElementRegionObservation[];
1041
+ nonblankRegions?: Array<{
1042
+ darkPixelRatio?: number;
1043
+ height: number;
1044
+ nonblankPixelRatio: number;
1045
+ width: number;
1046
+ x: number;
1047
+ y: number;
1048
+ }>;
1049
+ /** Visual frame observations only; performance samples live in performanceSeries. */
1050
+ runtimeDiagnosticsSeries?: unknown[];
1051
+ };
1052
+ }
1053
+ /**
1054
+ * The policy the evaluator actually applies, defaults included.
1055
+ *
1056
+ * `target` is the target the run *executed on*, not the scenario file's `target` field — the two
1057
+ * differ routinely, because `examples/native-smoke/playtests/*.json` say `"target": "web"` and are
1058
+ * driven with `--target android`.
1059
+ *
1060
+ * Why the target matters: the three channels default to on, and the evaluator applies that default
1061
+ * on every run. On a device lane the network observation is hardwired empty, so
1062
+ * `noNetworkErrors: true` was compared against an empty array and reported a passing row — a green
1063
+ * computed from evidence the target structurally cannot produce, which is the one thing this
1064
+ * harness exists not to do. The asymmetry was visible in the scenarios too: one that spelled out
1065
+ * `noNetworkErrors: true` failed honestly with `TN_PLAYTEST_UNSUPPORTED_ON_TARGET`, and the same
1066
+ * scenario with the field omitted passed.
1067
+ *
1068
+ * So on a network-blind target the default is **off, with the reason recorded in the policy the
1069
+ * report prints**. An explicit `true` is left exactly as written, because that is a scenario asking
1070
+ * for something the target cannot do, and the runner still fails it by name.
1071
+ */
1072
+ declare function resolveDiagnosticsPolicy(policy: IPlaytestDiagnosticsAssertion | undefined, target?: string): IPlaytestDiagnosticsPolicy;
1073
+ interface IPlaytestFramebufferCoverageObservation {
1074
+ boundarySource: "scenario-steps" | "video-backdrop-dominance";
1075
+ firstViolation?: {
1076
+ frameIndex: number;
1077
+ grid: {
1078
+ columns: number;
1079
+ rows: number;
1080
+ samples: Array<[number, number, number]>;
1081
+ };
1082
+ screenshotPath: string;
1083
+ };
1084
+ frameCount: number;
1085
+ unreadableReason?: string;
1086
+ windowCompleted: boolean;
1087
+ windowStarted: boolean;
1088
+ }
1089
+
1090
+ type PlaytestDiagnosticCode = "TN_PLAYTEST_BRIDGE_INCOMPATIBLE" | "TN_PLAYTEST_BRIDGE_CAPABILITY_UNKNOWN" | "TN_PLAYTEST_BRIDGE_MISSING" | "TN_PLAYTEST_BRIDGE_NOT_READY" | "TN_PLAYTEST_CAPTURE_PROVENANCE_MISSING" | "TN_PLAYTEST_CAPABILITY_MISSING" | "TN_PLAYTEST_DEVICE_FAILED" | "TN_PLAYTEST_HOST_EXITED" | "TN_PLAYTEST_MAILBOX_POLL_STALLED" | "TN_PLAYTEST_OBSERVATION_UNAVAILABLE" | "TN_PLAYTEST_OPERATION_TIMEOUT" | "TN_PLAYTEST_PAGE_CRASHED" | "TN_PLAYTEST_PAGE_NAVIGATED" | "TN_PLAYTEST_PAYLOAD_TOO_LARGE" | "TN_PLAYTEST_SERVER_FAILED" | "TN_PLAYTEST_SETUP_UNAPPLIED" | "TN_PLAYTEST_STARTUP_ABORTED" | "TN_PLAYTEST_STARTUP_HOST_EXITED" | "TN_PLAYTEST_STARTUP_NOT_READY" | "TN_PLAYTEST_UNSUPPORTED_ON_TARGET";
1091
+ interface IPlaytestProtocolDiagnostic {
1092
+ capability?: string;
1093
+ code: PlaytestDiagnosticCode;
1094
+ fix: {
1095
+ instruction: string;
1096
+ nextCommand?: string;
1097
+ };
1098
+ message: string;
1099
+ path?: string;
1100
+ severity: "error";
1101
+ }
1102
+ declare function playtestDiagnostic(code: PlaytestDiagnosticCode, message: string, instruction: string, details?: Pick<IPlaytestProtocolDiagnostic, "capability" | "path"> & {
1103
+ nextCommand?: string;
1104
+ }): IPlaytestProtocolDiagnostic;
1105
+
1106
+ export { type IPlaytestSetupRecord as A, type IPlaytestSignalAssertion as B, type IPlaytestStartupAssertion as C, DEVICE_METRICS_CADENCE_MS as D, type IPlaytestTrivialityOptOut as E, type IPlaytestVisualAssertion as F, type IPlaytestVisualElementRegion as G, HOT_START_TEMPERATURE_C as H, type IPlaytestStep as I, type IPlaytestVisualElementRegionObservation as J, type IPlaytestVisualRegion as K, type IPlaytestVisualRegionBounds as L, type IPlaytestVisualRegionTarget as M, type IPlaytestWheel as N, type IPlaytestWorldRuntimeAssertion as O, type PlaytestTarget as P, type PlaytestDeviceMeasurement as Q, type PlaytestDevicePowerRails as R, type PlaytestVec3 as S, parseDeviceBattery as T, parseDeviceCurrent as U, parseDevicePowerRails as V, parseDeviceThermal as W, playtestDiagnostic as X, resolveDiagnosticsPolicy as Y, summarizeDeviceMetrics as Z, type IPlaytestScenarioDiagnostic as a, type IPlaytestScenario as b, type IPlaytestReport as c, type IPlaytestAssertionResult as d, type IPlaytestDiagnostic as e, DEVICE_METRICS_MAX_SAMPLES as f, DeviceMetricsError as g, DeviceMetricsRecorder as h, type IPlaytestArtifactRequest as i, type IPlaytestCaptureProvenance as j, type IPlaytestDeviceBattery as k, type IPlaytestDeviceMetricsObservation as l, type IPlaytestDeviceMetricsSample as m, type IPlaytestDeviceMetricsVerdict as n, type IPlaytestDeviceThermal as o, type IPlaytestDiagnosticsPolicy as p, type IPlaytestFramebufferCoverageAssertion as q, type IPlaytestFramebufferCoverageObservation as r, type IPlaytestObservations as s, type IPlaytestPathAssertion as t, type IPlaytestPerformanceAssertion as u, type IPlaytestPointer as v, type IPlaytestProtocolDiagnostic as w, type IPlaytestRenderChainAssertion as x, type IPlaytestResourceWait as y, type IPlaytestSetupApplication as z };