File size: 22,285 Bytes
74343b5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
[
  {
    "id": "R1",
    "label": "R1",
    "preconditions": [
      {
        "type": "StatePredicate",
        "entity": "GameSession",
        "attribute": "phase",
        "operator": "==",
        "value": "RoundInteractive"
      },
      {
        "type": "StatePredicate",
        "entity": "OddSlot",
        "attribute": "oddSlot",
        "operator": "==",
        "value": {
          "kind": "opaque",
          "description": "patch slot targeted by the resolving input"
        }
      },
      {
        "type": "StatePredicate",
        "entity": "Timer",
        "attribute": "TIMER",
        "operator": "<",
        "value": 10
      }
    ],
    "trigger": {
      "type": "Event",
      "name": "OddPatchSelected"
    },
    "effects": [
      {
        "type": "StateUpdate",
        "entity": "Correct",
        "attribute": "correct",
        "operator": "INCREMENT",
        "value": 1
      },
      {
        "type": "StateUpdate",
        "entity": "Selection",
        "attribute": "selection",
        "operator": "SET",
        "value": {
          "expr": "current round timer (DBT-22)"
        }
      },
      {
        "type": "StateUpdate",
        "entity": "Tally",
        "attribute": "tally",
        "operator": "SET",
        "value": {
          "kind": "opaque",
          "description": "the outcome of the current round r is recorded once as correct: the round contributes exactly one outcome to the session tally, the per-round outcome that the HUD pip states and the fastest statistic read"
        }
      },
      {
        "type": "EventEmission",
        "name": "RoundResolvedCorrect"
      },
      {
        "type": "StateUpdate",
        "entity": "GameSession",
        "attribute": "phase",
        "operator": "SET",
        "value": "RoundFeedback"
      },
      {
        "type": "EventEmission",
        "name": "RoundResolved"
      }
    ],
    "provenance": {
      "mechanic": "R1",
      "gdd_quote": "| R1 | state = RoundInteractive AND input targets the **odd** patch | **Correct.** Record correct; selection time = current round timer (`DBT-22`); ✓ counter +1; play correct feedback (`RT-FEEDBACK` C1); go RoundFeedback. |",
      "precondition": "state = RoundInteractive AND input targets the **odd** patch. Does not cover a patch selection that arrives in the same frame in which the round timer reaches 10.00 s.",
      "action": "Apply R1 under the stated condition and trigger.",
      "expected": "**Correct.** Record correct; selection time = current round timer (`DBT-22`); ✓ counter +1; play correct feedback (`RT-FEEDBACK` C1); go RoundFeedback.",
      "evidence": "Correct, selection, tally, RoundResolvedCorrect, phase, and RoundResolved outputs.",
      "source": {
        "file": "gdds/small/odd_patch.md",
        "line_start": 142,
        "line_end": 142,
        "quote": "| R1 | state = RoundInteractive AND input targets the **odd** patch | **Correct.** Record correct; selection time = current round timer (`DBT-22`); ✓ counter +1; play correct feedback (`RT-FEEDBACK` C1); go RoundFeedback. |"
      }
    }
  },
  {
    "id": "R2",
    "label": "R2",
    "preconditions": [
      {
        "type": "StatePredicate",
        "entity": "GameSession",
        "attribute": "phase",
        "operator": "==",
        "value": "RoundInteractive"
      },
      {
        "type": "StatePredicate",
        "entity": "OddSlot",
        "attribute": "oddSlot",
        "operator": "!=",
        "value": {
          "kind": "opaque",
          "description": "patch slot targeted by the resolving input"
        }
      },
      {
        "type": "StatePredicate",
        "entity": "Timer",
        "attribute": "TIMER",
        "operator": "<",
        "value": 10
      }
    ],
    "trigger": {
      "type": "Event",
      "name": "TwinPatchSelected"
    },
    "effects": [
      {
        "type": "StateUpdate",
        "entity": "Errors",
        "attribute": "errors",
        "operator": "INCREMENT",
        "value": 1
      },
      {
        "type": "StateUpdate",
        "entity": "Selection",
        "attribute": "selection",
        "operator": "SET",
        "value": {
          "expr": "current round timer (DBT-22)"
        }
      },
      {
        "type": "StateUpdate",
        "entity": "Tally",
        "attribute": "tally",
        "operator": "SET",
        "value": {
          "kind": "opaque",
          "description": "the outcome of the current round r is recorded once as error: the round contributes exactly one outcome to the session tally, the per-round outcome that the HUD pip states and the fastest statistic read"
        }
      },
      {
        "type": "EventEmission",
        "name": "RoundResolvedError"
      },
      {
        "type": "StateUpdate",
        "entity": "GameSession",
        "attribute": "phase",
        "operator": "SET",
        "value": "RoundFeedback"
      },
      {
        "type": "EventEmission",
        "name": "RoundResolved"
      }
    ],
    "provenance": {
      "mechanic": "R2",
      "gdd_quote": "| R2 | state = RoundInteractive AND input targets a **twin** patch | **Error.** Record error; selection time = current round timer (`DBT-22`); ✗ counter +1; play error feedback (`RT-FEEDBACK` C2); go RoundFeedback. |",
      "precondition": "state = RoundInteractive AND input targets a **twin** patch. Does not cover a patch selection that arrives in the same frame in which the round timer reaches 10.00 s.",
      "action": "Apply R2 under the stated condition and trigger.",
      "expected": "**Error.** Record error; selection time = current round timer (`DBT-22`); ✗ counter +1; play error feedback (`RT-FEEDBACK` C2); go RoundFeedback.",
      "evidence": "Errors, selection, tally, RoundResolvedError, phase, and RoundResolved outputs.",
      "source": {
        "file": "gdds/small/odd_patch.md",
        "line_start": 143,
        "line_end": 143,
        "quote": "| R2 | state = RoundInteractive AND input targets a **twin** patch | **Error.** Record error; selection time = current round timer (`DBT-22`); ✗ counter +1; play error feedback (`RT-FEEDBACK` C2); go RoundFeedback. |"
      }
    }
  },
  {
    "id": "R4",
    "label": "R4",
    "preconditions": [
      {
        "type": "StatePredicate",
        "entity": "GameSession",
        "attribute": "phase",
        "operator": "==",
        "value": "RoundInteractive"
      },
      {
        "type": "StatePredicate",
        "entity": "Timer",
        "attribute": "TIMER",
        "operator": ">=",
        "value": 10
      },
      {
        "type": "StatePredicate",
        "entity": "Timer",
        "attribute": "TIMER",
        "operator": "==",
        "value": {
          "kind": "opaque",
          "description": "reached 10.00 s (DBT-16) in a frame in which no patch selection (an RT-CLICK R1 or R2 input) arrives; a selection arriving in that same frame is not covered"
        }
      }
    ],
    "trigger": {
      "type": "Event",
      "name": "RoundTimerExpired"
    },
    "effects": [
      {
        "type": "StateUpdate",
        "entity": "Errors",
        "attribute": "errors",
        "operator": "INCREMENT",
        "value": 1
      },
      {
        "type": "StateUpdate",
        "entity": "Selection",
        "attribute": "selection",
        "operator": "SET",
        "value": "DBT-16"
      },
      {
        "type": "StateUpdate",
        "entity": "Tally",
        "attribute": "tally",
        "operator": "SET",
        "value": {
          "kind": "opaque",
          "description": "the outcome of the current round r is recorded once as error: the round contributes exactly one outcome to the session tally, the per-round outcome that the HUD pip states and the fastest statistic read"
        }
      },
      {
        "type": "EventEmission",
        "name": "RoundResolvedError"
      },
      {
        "type": "StateUpdate",
        "entity": "GameSession",
        "attribute": "phase",
        "operator": "SET",
        "value": "RoundFeedback"
      },
      {
        "type": "EventEmission",
        "name": "RoundResolved"
      }
    ],
    "provenance": {
      "mechanic": "R4",
      "gdd_quote": "| R4 | state = RoundInteractive AND round timer reaches `DBT-16` (10.00 s) with no prior resolving input | **Error (timeout).** Record error; selection time = 10.00 s (`DBT-16`); ✗ counter +1; play error feedback on the whole board (`RT-FEEDBACK` C2, no single patch shaken); go RoundFeedback. |",
      "precondition": "state = RoundInteractive AND round timer reaches `DBT-16` (10.00 s) with no prior resolving input. Does not cover a patch selection that arrives in the same frame in which the round timer reaches 10.00 s.",
      "action": "Apply R4 under the stated condition and trigger.",
      "expected": "**Error (timeout).** Record error; selection time = 10.00 s (`DBT-16`); ✗ counter +1; play error feedback on the whole board (`RT-FEEDBACK` C2, no single patch shaken); go RoundFeedback.",
      "evidence": "Errors, selection, tally, RoundResolvedError, phase, and RoundResolved outputs.",
      "source": {
        "file": "gdds/small/odd_patch.md",
        "line_start": 145,
        "line_end": 145,
        "quote": "| R4 | state = RoundInteractive AND round timer reaches `DBT-16` (10.00 s) with no prior resolving input | **Error (timeout).** Record error; selection time = 10.00 s (`DBT-16`); ✗ counter +1; play error feedback on the whole board (`RT-FEEDBACK` C2, no single patch shaken); go RoundFeedback. |"
      }
    }
  },
  {
    "id": "C1",
    "label": "C1",
    "preconditions": [
      {
        "type": "StatePredicate",
        "entity": "Correct",
        "attribute": "correct",
        "operator": ">",
        "value": 0
      }
    ],
    "trigger": {
      "type": "Event",
      "name": "RoundResolvedCorrect"
    },
    "effects": [
      {
        "type": "EventEmission",
        "name": "CorrectPatchVfxPlayed"
      },
      {
        "type": "EventEmission",
        "name": "CorrectPickSoundPlayed"
      },
      {
        "type": "StateUpdate",
        "entity": "Pip",
        "attribute": "pip",
        "operator": "SET",
        "value": {
          "kind": "opaque",
          "description": "the current round's pip turns green with a ✓ (correct green #2FBF71, DBT-24)"
        }
      },
      {
        "type": "EventEmission",
        "name": "MusicBedDucked"
      }
    ],
    "provenance": {
      "mechanic": "C1",
      "gdd_quote": "| C1 | Round resolved **correct** (`RT-CLICK` R1) | Clicked patch plays *Correct* VFX (green ring + gold sparkle + 1.08 pulse); chime SFX; current pip → green ✓ (`DBT-24`); music bed ducks −6 dB for 0.30 s. |",
      "precondition": "Round resolved **correct** (`RT-CLICK` R1)",
      "action": "Apply C1 under the stated condition and trigger.",
      "expected": "Clicked patch plays *Correct* VFX (green ring + gold sparkle + 1.08 pulse); chime SFX; current pip → green ✓ (`DBT-24`); music bed ducks −6 dB for 0.30 s.",
      "evidence": "Correct VFX, CorrectPickSoundPlayed, pip, and music duck outputs.",
      "source": {
        "file": "gdds/small/odd_patch.md",
        "line_start": 154,
        "line_end": 154,
        "quote": "| C1 | Round resolved **correct** (`RT-CLICK` R1) | Clicked patch plays *Correct* VFX (green ring + gold sparkle + 1.08 pulse); chime SFX; current pip → green ✓ (`DBT-24`); music bed ducks −6 dB for 0.30 s. |"
      }
    }
  },
  {
    "id": "C2",
    "label": "C2",
    "preconditions": [
      {
        "type": "StatePredicate",
        "entity": "Errors",
        "attribute": "errors",
        "operator": ">",
        "value": 0
      }
    ],
    "trigger": {
      "type": "Event",
      "name": "RoundResolvedError"
    },
    "effects": [
      {
        "type": "EventEmission",
        "name": "ErrorFeedbackVfxPlayed"
      },
      {
        "type": "EventEmission",
        "name": "ErrorOrTimeoutSoundPlayed"
      },
      {
        "type": "StateUpdate",
        "entity": "Pip",
        "attribute": "pip",
        "operator": "SET",
        "value": {
          "kind": "opaque",
          "description": "the current round's pip turns red with a ✗ (error red #FF4D4D, DBT-24)"
        }
      },
      {
        "type": "EventEmission",
        "name": "OddPatchGoldOutlined"
      },
      {
        "type": "EventEmission",
        "name": "MusicBedDucked"
      }
    ],
    "provenance": {
      "mechanic": "C2",
      "gdd_quote": "| C2 | Round resolved **error** (`RT-CLICK` R2 or R4) | On R2 the clicked twin plays *Error* VFX (red flash + 10 px shake ×3); on R4 the whole board flashes red once; felt-thud+wub SFX; current pip → red ✗ (`DBT-24`); the odd patch is gold-outlined for the 0.30 s window to teach the answer. |",
      "precondition": "Round resolved **error** (`RT-CLICK` R2 or R4)",
      "action": "Apply C2 under the stated condition and trigger.",
      "expected": "On R2 the clicked twin plays *Error* VFX (red flash + 10 px shake ×3); on R4 the whole board flashes red once; felt-thud+wub SFX; current pip → red ✗ (`DBT-24`); the odd patch is gold-outlined for the 0.30 s window to teach the answer. the Gameplay bed ducks −6 dB for 0.30 s under correct/error SFX (`RT-FEEDBACK`). | Timeout (R4) | error thud + a soft descending \"time-out\" swish | ErrorFeedbackVfxPlayed is the case-dependent error VFX of this row: on R2 the clicked twin's red flash and 10 px horizontal shake for 3 oscillations, on R4 one red flash of the whole board with no single patch shaken. ErrorOrTimeoutSoundPlayed is the case-dependent error cue: on R2 the error pick sound, a muted felt thud with a short low sine wub; on R4 the timeout sound, the error thud with a soft descending time-out swish. Does not cover the low sine wub on an R4 timeout.",
      "evidence": "Error VFX, ErrorOrTimeoutSoundPlayed, pip, odd-patch gold outline, and music duck outputs.",
      "source": {
        "file": "gdds/small/odd_patch.md",
        "line_start": 155,
        "line_end": 155,
        "quote": "| C2 | Round resolved **error** (`RT-CLICK` R2 or R4) | On R2 the clicked twin plays *Error* VFX (red flash + 10 px shake ×3); on R4 the whole board flashes red once; felt-thud+wub SFX; current pip → red ✗ (`DBT-24`); the odd patch is gold-outlined for the 0.30 s window to teach the answer. |"
      }
    }
  },
  {
    "id": "T1",
    "label": "T1",
    "preconditions": [
      {
        "type": "StatePredicate",
        "entity": "GameSession",
        "attribute": "phase",
        "operator": "==",
        "value": "RoundInteractive"
      }
    ],
    "trigger": null,
    "effects": [
      {
        "type": "StateUpdate",
        "entity": "Timer",
        "attribute": "TIMER",
        "operator": "INCREMENT",
        "value": {
          "kind": "runtime",
          "source": "frameDelta"
        }
      },
      {
        "type": "StateUpdate",
        "entity": "Timer",
        "attribute": "display",
        "operator": "SET",
        "value": {
          "kind": "opaque",
          "description": "the HUD round timer readout shows the current value in seconds to 0.01 s, for example \"2.40 s\""
        }
      }
    ],
    "provenance": {
      "mechanic": "T1",
      "gdd_quote": "| T1 | state = RoundInteractive AND not Paused | Advances in real time (ms precision, `DBT-22`); HUD shows value to 0.01 s. |",
      "precondition": "state = RoundInteractive AND not Paused",
      "action": "Apply T1 under the stated condition and trigger.",
      "expected": "Advances in real time (ms precision, `DBT-22`); HUD shows value to 0.01 s.",
      "evidence": "Timer increment uses frameDelta; HUD timer readout to 0.01 s.",
      "source": {
        "file": "gdds/small/odd_patch.md",
        "line_start": 161,
        "line_end": 161,
        "quote": "| T1 | state = RoundInteractive AND not Paused | Advances in real time (ms precision, `DBT-22`); HUD shows value to 0.01 s. |"
      }
    }
  },
  {
    "id": "T2",
    "label": "T2",
    "preconditions": [
      {
        "type": "StatePredicate",
        "entity": "GameSession",
        "attribute": "phase",
        "operator": "==",
        "value": "Paused"
      }
    ],
    "trigger": null,
    "effects": [
      {
        "type": "StateUpdate",
        "entity": "Timer",
        "attribute": "TIMER",
        "operator": "SET",
        "value": {
          "expr": "timer"
        }
      }
    ],
    "provenance": {
      "mechanic": "T2",
      "gdd_quote": "| T2 | state = Paused | Frozen; retains value; resumes on Resume. |",
      "precondition": "state = Paused",
      "action": "Apply T2 under the stated condition and trigger.",
      "expected": "Frozen; retains value; resumes on Resume.",
      "evidence": "Timer retains its value.",
      "source": {
        "file": "gdds/small/odd_patch.md",
        "line_start": 162,
        "line_end": 162,
        "quote": "| T2 | state = Paused | Frozen; retains value; resumes on Resume. |"
      }
    }
  },
  {
    "id": "T3",
    "label": "T3",
    "preconditions": [
      {
        "type": "StatePredicate",
        "entity": "GameSession",
        "attribute": "phase",
        "operator": "IN",
        "value": [
          "Ready",
          "RoundReveal",
          "RoundFeedback",
          "RoundTransition",
          "Title",
          "Options",
          "Results"
        ]
      }
    ],
    "trigger": null,
    "effects": [
      {
        "type": "StateUpdate",
        "entity": "RoundTime",
        "attribute": "roundTime",
        "operator": "SET",
        "value": {
          "kind": "opaque",
          "description": "on the resolution of round r (the entry into RoundFeedback through RT-CLICK R1, R2 or R4) the round timer value at that moment is copied once into roundTime[r]; in every other frame of these states roundTime is unchanged"
        }
      },
      {
        "type": "StateUpdate",
        "entity": "Timer",
        "attribute": "TIMER",
        "operator": "SET",
        "value": {
          "kind": "opaque",
          "description": "0.00 on the frame RoundReveal is entered; in every other frame of these states the round timer keeps its value and does not advance"
        }
      }
    ],
    "provenance": {
      "mechanic": "T3",
      "gdd_quote": "| T3 | state ∈ {Ready, RoundReveal, RoundFeedback, RoundTransition, Title, Options, Results} | Not advancing. Timer is reset to 0.00 on entering RoundReveal and begins counting on entry to RoundInteractive. On resolution its value is copied to `roundTime[r]`. |",
      "precondition": "state ∈ {Ready, RoundReveal, RoundFeedback, RoundTransition, Title, Options, Results}",
      "action": "Apply T3 under the stated condition and trigger.",
      "expected": "Not advancing. Timer is reset to 0.00 on entering RoundReveal and begins counting on entry to RoundInteractive. On resolution its value is copied to `roundTime[r]`.",
      "evidence": "RoundTime copies Timer at the resolution; Timer becomes zero on entering RoundReveal and otherwise does not advance.",
      "source": {
        "file": "gdds/small/odd_patch.md",
        "line_start": 163,
        "line_end": 163,
        "quote": "| T3 | state ∈ {Ready, RoundReveal, RoundFeedback, RoundTransition, Title, Options, Results} | Not advancing. Timer is reset to 0.00 on entering RoundReveal and begins counting on entry to RoundInteractive. On resolution its value is copied to `roundTime[r]`. |"
      }
    }
  },
  {
    "id": "S1",
    "label": "S1",
    "preconditions": [
      {
        "type": "StatePredicate",
        "entity": "Index",
        "attribute": "index",
        "operator": "<",
        "value": 15
      }
    ],
    "trigger": {
      "type": "Event",
      "name": "RoundResolved"
    },
    "effects": [
      {
        "type": "StateUpdate",
        "entity": "Index",
        "attribute": "index",
        "operator": "INCREMENT",
        "value": 1
      },
      {
        "type": "StateUpdate",
        "entity": "GameSession",
        "attribute": "phase",
        "operator": "SET",
        "value": {
          "kind": "opaque",
          "description": "RoundTransition once RoundFeedback has lasted 0.30 s (DBT-13), then RoundReveal of the next round once RoundTransition has lasted 0.20 s (DBT-14); the round index +1 of this rule takes effect on that RoundReveal entry"
        }
      },
      {
        "type": "EventEmission",
        "name": "PatchDismissVfxPlayed"
      },
      {
        "type": "StateUpdate",
        "entity": "Puzzle",
        "attribute": "patches",
        "operator": "SET",
        "value": {
          "kind": "opaque",
          "description": "the next round's content (the five per-round fields baseColor, baseShape, oddTrait, oddValue and oddSlot of the round with the incremented index, and the trio built from them) is loaded for the RoundReveal that follows the 0.20 s RoundTransition (DBT-14)"
        }
      }
    ],
    "provenance": {
      "mechanic": "S1",
      "gdd_quote": "| S1 | Round resolved AND current round index < 15 | After RoundFeedback (0.30 s) → RoundTransition (0.20 s) → RoundReveal with round index +1. |",
      "precondition": "Round resolved AND current round index < 15",
      "action": "Apply S1 under the stated condition and trigger.",
      "expected": "After RoundFeedback (0.30 s) → RoundTransition (0.20 s) → RoundReveal with round index +1. | RoundTransition | timer ≥ 0.20 s (`DBT-14`) AND round index < 15 | RoundReveal | round index +1; load next round content. (`RT-SESSION` S1) | | 4 | RoundTransition | Current trio fades out; next round loads, or Results if this was round 15 (`RT-SESSION`). | 0.20 s (`DBT-14`) |",
      "evidence": "Index is incremented; phase moves through RoundTransition to RoundReveal; the current trio is dismissed and the next round content is loaded.",
      "source": {
        "file": "gdds/small/odd_patch.md",
        "line_start": 197,
        "line_end": 197,
        "quote": "| S1 | Round resolved AND current round index < 15 | After RoundFeedback (0.30 s) → RoundTransition (0.20 s) → RoundReveal with round index +1. |"
      }
    }
  }
]