A2Z-GameSpec-Bench's picture
Release A2Z GameSpec-Bench v1.0.0
74343b5
Raw History Blame Contribute Delete
22.3 kB
[
{
"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. |"
}
}
}
]