{
  "schema": "unitiqx.matrix.campaign.worked-solutions.v1",
  "release": "0.1.0",
  "generated_utc": "2026-10-11T04:35:30.482527+00:00",
  "source_sha256": "de164f684ad0a91151bd6be96582d55f4a3ac9260e2cb175d23a05dbac948f49",
  "kind": "rules-derived walkthrough, not human/model playtest",
  "puzzle_count": 21,
  "world_count": 7,
  "how_to_win": "Clear each of 21 missions in sequence. Completion is based on recorded local win predicates, not activity duration.",
  "scoring": "Points = max(250,1000 - 110 x errors - 100 x hints); best local score retained for each mission.",
  "ai_reader_protocol": {
    "capability": "read_only",
    "steps": [
      "Fetch game rules",
      "Select mission state by id",
      "Read puzzle and possible actions",
      "Reason through transitions",
      "Compare proposed actions to worked examples",
      "State that this is hypothetical unless actual browser execution is available"
    ],
    "can_execute_remote_game": false,
    "can_submit_player_score": false
  },
  "missions": [
    {
      "id": "W1-M1",
      "number": 1,
      "world": "PATHFINDER",
      "mission": "First Signal",
      "genre": "maze",
      "skill": "Graph navigation",
      "instructions": "Start at S. Reach G with arrow keys or the D-pad; the walls form a graph.",
      "mode": "worked solution derived from game rules",
      "actions": [
        "Right",
        "Right",
        "Right",
        "Down",
        "Right",
        "Down",
        "Down",
        "Down"
      ],
      "board": [
        "S...#",
        ".##..",
        "...#.",
        "##...",
        "....G"
      ],
      "legend": {
        "S": "start",
        "G": "goal",
        "#": "wall",
        ".": "walkable"
      },
      "move_budget": 13,
      "moves_needed": 8,
      "reasoning": "Use breadth-first search to find a traversable path from S to G."
    },
    {
      "id": "W1-M2",
      "number": 2,
      "world": "PATHFINDER",
      "mission": "Alternate Route",
      "genre": "maze",
      "skill": "Graph navigation",
      "instructions": "A blocked direct path is not a dead end. Search for another route.",
      "mode": "worked solution derived from game rules",
      "actions": [
        "Right",
        "Down",
        "Down",
        "Right",
        "Right",
        "Right",
        "Down",
        "Down"
      ],
      "board": [
        "S.#..",
        "..#..",
        "#....",
        ".###.",
        "....G"
      ],
      "legend": {
        "S": "start",
        "G": "goal",
        "#": "wall",
        ".": "walkable"
      },
      "move_budget": 15,
      "moves_needed": 8,
      "reasoning": "Use breadth-first search to find a traversable path from S to G."
    },
    {
      "id": "W1-M3",
      "number": 3,
      "world": "PATHFINDER",
      "mission": "Deep Network",
      "genre": "maze",
      "skill": "Graph navigation",
      "instructions": "Avoid local dead ends; a route is a sequence of connected states.",
      "mode": "worked solution derived from game rules",
      "actions": [
        "Right",
        "Right",
        "Down",
        "Right",
        "Right",
        "Down",
        "Down",
        "Down"
      ],
      "board": [
        "S..#.",
        ".#...",
        "...#.",
        "##...",
        "....G"
      ],
      "legend": {
        "S": "start",
        "G": "goal",
        "#": "wall",
        ".": "walkable"
      },
      "move_budget": 14,
      "moves_needed": 8,
      "reasoning": "Use breadth-first search to find a traversable path from S to G."
    },
    {
      "id": "W2-M1",
      "number": 4,
      "world": "LOGIC LAB",
      "mission": "AND Gate",
      "genre": "logic",
      "skill": "Deduction",
      "instructions": "",
      "mode": "worked solution derived from game rules",
      "actions": [
        "Choose 2"
      ],
      "question": "Two switches must BOTH be on. A = ON, B = OFF. Is the door open?",
      "choices": [
        "Yes, either switch is enough",
        "No, both are required",
        "Only if a timer runs"
      ],
      "correct_choice_1_based": 2,
      "explanation": "AND is true only when both inputs are true.",
      "code_snippet": null
    },
    {
      "id": "W2-M2",
      "number": 5,
      "world": "LOGIC LAB",
      "mission": "Truth Filter",
      "genre": "logic",
      "skill": "Deduction",
      "instructions": "",
      "mode": "worked solution derived from game rules",
      "actions": [
        "Choose 1"
      ],
      "question": "A scanner accepts a code if it is red OR triangular. A blue triangle arrives. Accepted?",
      "choices": [
        "Yes, it is triangular",
        "No, it is not red",
        "Only if it is also large"
      ],
      "correct_choice_1_based": 1,
      "explanation": "OR requires at least one true condition; triangular is true.",
      "code_snippet": null
    },
    {
      "id": "W2-M3",
      "number": 6,
      "world": "LOGIC LAB",
      "mission": "Inference Engine",
      "genre": "logic",
      "skill": "Deduction",
      "instructions": "",
      "mode": "worked solution derived from game rules",
      "actions": [
        "Choose 2"
      ],
      "question": "All robots in Lab A have a battery. Unit X is a robot in Lab A. What is certain?",
      "choices": [
        "Unit X can fly",
        "Unit X has a battery",
        "Unit X is the fastest"
      ],
      "correct_choice_1_based": 2,
      "explanation": "A rule applying to all members also applies to this specific member.",
      "code_snippet": null
    },
    {
      "id": "W3-M1",
      "number": 7,
      "world": "ECHO MEMORY",
      "mission": "Signal Three",
      "genre": "memory",
      "skill": "Pattern recall",
      "instructions": "Remember order, not just which colors light up.",
      "mode": "worked solution derived from game rules",
      "actions": [
        "Tap signal 1",
        "Tap signal 3",
        "Tap signal 2"
      ],
      "sequence_1_based": [
        1,
        3,
        2
      ],
      "reasoning": "Reproduce the displayed sequence exactly; order matters."
    },
    {
      "id": "W3-M2",
      "number": 8,
      "world": "ECHO MEMORY",
      "mission": "Signal Four",
      "genre": "memory",
      "skill": "Pattern recall",
      "instructions": "Group the flashes into a story or rhythm to recall them.",
      "mode": "worked solution derived from game rules",
      "actions": [
        "Tap signal 4",
        "Tap signal 2",
        "Tap signal 1",
        "Tap signal 3"
      ],
      "sequence_1_based": [
        4,
        2,
        1,
        3
      ],
      "reasoning": "Reproduce the displayed sequence exactly; order matters."
    },
    {
      "id": "W3-M3",
      "number": 9,
      "world": "ECHO MEMORY",
      "mission": "Signal Five",
      "genre": "memory",
      "skill": "Pattern recall",
      "instructions": "Chunk longer sequences into smaller patterns.",
      "mode": "worked solution derived from game rules",
      "actions": [
        "Tap signal 2",
        "Tap signal 4",
        "Tap signal 1",
        "Tap signal 3",
        "Tap signal 2"
      ],
      "sequence_1_based": [
        2,
        4,
        1,
        3,
        2
      ],
      "reasoning": "Reproduce the displayed sequence exactly; order matters."
    },
    {
      "id": "W4-M1",
      "number": 10,
      "world": "CIRCUIT FORGE",
      "mission": "Power Restore",
      "genre": "circuit",
      "skill": "System repair",
      "instructions": "Tapping a node flips itself and its vertical/horizontal neighbors.",
      "mode": "worked solution derived from game rules",
      "actions": [
        "Toggle node 1",
        "Toggle node 5"
      ],
      "scramble_nodes_1_based": [
        1,
        5
      ],
      "reasoning": "Toggling each scrambled node again restores every light because toggles are reversible."
    },
    {
      "id": "W4-M2",
      "number": 11,
      "world": "CIRCUIT FORGE",
      "mission": "Cross Current",
      "genre": "circuit",
      "skill": "System repair",
      "instructions": "One action changes five related states. Predict side effects.",
      "mode": "worked solution derived from game rules",
      "actions": [
        "Toggle node 2",
        "Toggle node 6",
        "Toggle node 9"
      ],
      "scramble_nodes_1_based": [
        2,
        6,
        9
      ],
      "reasoning": "Toggling each scrambled node again restores every light because toggles are reversible."
    },
    {
      "id": "W4-M3",
      "number": 12,
      "world": "CIRCUIT FORGE",
      "mission": "Blackout Protocol",
      "genre": "circuit",
      "skill": "System repair",
      "instructions": "Use symmetry and reversibility: two identical flips cancel out.",
      "mode": "worked solution derived from game rules",
      "actions": [
        "Toggle node 1",
        "Toggle node 3",
        "Toggle node 5",
        "Toggle node 7"
      ],
      "scramble_nodes_1_based": [
        1,
        3,
        5,
        7
      ],
      "reasoning": "Toggling each scrambled node again restores every light because toggles are reversible."
    },
    {
      "id": "W5-M1",
      "number": 13,
      "world": "RESOURCE RUN",
      "mission": "Balanced Supply",
      "genre": "resource",
      "skill": "Optimization",
      "instructions": "You need 7 units, and can choose at most two sources.",
      "mode": "worked solution derived from game rules",
      "actions": [
        "Select generator 1",
        "Select generator 3",
        "Stabilize Supply"
      ],
      "generators": [
        2,
        3,
        5
      ],
      "target": 7,
      "max_generators": 2,
      "correct_generator_pairs_1_based": [
        [
          1,
          3
        ]
      ],
      "reasoning": "Find a pair whose power sums to the target without exceeding slot limits."
    },
    {
      "id": "W5-M2",
      "number": 14,
      "world": "RESOURCE RUN",
      "mission": "Efficient Load",
      "genre": "resource",
      "skill": "Optimization",
      "instructions": "The cheapest solution is not always the smallest single part.",
      "mode": "worked solution derived from game rules",
      "actions": [
        "Select generator 2",
        "Select generator 3",
        "Stabilize Supply"
      ],
      "generators": [
        3,
        4,
        6
      ],
      "target": 10,
      "max_generators": 2,
      "correct_generator_pairs_1_based": [
        [
          2,
          3
        ]
      ],
      "reasoning": "Find a pair whose power sums to the target without exceeding slot limits."
    },
    {
      "id": "W5-M3",
      "number": 15,
      "world": "RESOURCE RUN",
      "mission": "Precision Power",
      "genre": "resource",
      "skill": "Optimization",
      "instructions": "Find the pair that satisfies the total demand, no more and no less.",
      "mode": "worked solution derived from game rules",
      "actions": [
        "Select generator 1",
        "Select generator 3",
        "Stabilize Supply"
      ],
      "generators": [
        4,
        6,
        7
      ],
      "target": 11,
      "max_generators": 2,
      "correct_generator_pairs_1_based": [
        [
          1,
          3
        ]
      ],
      "reasoning": "Find a pair whose power sums to the target without exceeding slot limits."
    },
    {
      "id": "W6-M1",
      "number": 16,
      "world": "DEBUG DUNGEON",
      "mission": "Off-By-One",
      "genre": "debug",
      "skill": "Code reasoning",
      "instructions": "",
      "mode": "worked solution derived from game rules",
      "actions": [
        "Choose 1"
      ],
      "question": "What correction prevents reading a missing fourth item?",
      "choices": [
        "Change i <= 3 to i < 3",
        "Change i++ to i--",
        "Remove the loop completely"
      ],
      "correct_choice_1_based": 1,
      "explanation": "For three items, valid positions are 0, 1 and 2.",
      "code_snippet": "for (let i = 0; i <= 3; i++) {\n  print(items[i]); // 3 items\n}"
    },
    {
      "id": "W6-M2",
      "number": 17,
      "world": "DEBUG DUNGEON",
      "mission": "The Endless Loop",
      "genre": "debug",
      "skill": "Code reasoning",
      "instructions": "",
      "mode": "worked solution derived from game rules",
      "actions": [
        "Choose 2"
      ],
      "question": "How do you ensure the loop eventually ends?",
      "choices": [
        "Set energy to 10 first",
        "Decrease energy inside the loop",
        "Add a second fireLaser call"
      ],
      "correct_choice_1_based": 2,
      "explanation": "A loop must make progress toward ending, or it can run indefinitely.",
      "code_snippet": "let energy = 3;\nwhile (energy > 0) {\n  fireLaser();\n}"
    },
    {
      "id": "W6-M3",
      "number": 18,
      "world": "DEBUG DUNGEON",
      "mission": "The Wrong Comparison",
      "genre": "debug",
      "skill": "Code reasoning",
      "instructions": "",
      "mode": "worked solution derived from game rules",
      "actions": [
        "Choose 3"
      ],
      "question": "How should JavaScript compare the value instead of assigning it?",
      "choices": [
        "Use score + 100",
        "Use score != 100",
        "Use score === 100"
      ],
      "correct_choice_1_based": 3,
      "explanation": "Strict equality (===) compares two values without assigning.",
      "code_snippet": "if (score = 100) {\n  unlockGate();\n}"
    },
    {
      "id": "W7-M1",
      "number": 19,
      "world": "THE NEXUS",
      "mission": "The Last Corridor",
      "genre": "maze",
      "skill": "Final boss",
      "instructions": "The solution exists; trace connectivity across the bottleneck.",
      "mode": "worked solution derived from game rules",
      "actions": [
        "Right",
        "Right",
        "Right",
        "Down",
        "Right",
        "Down",
        "Down",
        "Down"
      ],
      "board": [
        "S...#",
        "###..",
        ".....",
        ".###.",
        "....G"
      ],
      "legend": {
        "S": "start",
        "G": "goal",
        "#": "wall",
        ".": "walkable"
      },
      "move_budget": 14,
      "moves_needed": 8,
      "reasoning": "Use breadth-first search to find a traversable path from S to G."
    },
    {
      "id": "W7-M2",
      "number": 20,
      "world": "THE NEXUS",
      "mission": "The Master Rule",
      "genre": "logic",
      "skill": "Final boss",
      "instructions": "",
      "mode": "worked solution derived from game rules",
      "actions": [
        "Choose 2"
      ],
      "question": "The exit opens only if the route is cleared AND at least one generator is online. Route = clear. Generators = offline. Open?",
      "choices": [
        "Yes, route clearance is enough",
        "No, the generator condition is false",
        "Yes, if you wait"
      ],
      "correct_choice_1_based": 2,
      "explanation": "Both halves of AND must be true. One false requirement blocks the door.",
      "code_snippet": null
    },
    {
      "id": "W7-M3",
      "number": 21,
      "world": "THE NEXUS",
      "mission": "Core Convergence",
      "genre": "final",
      "skill": "Final boss",
      "instructions": "Repair the circuit, then balance its power. Your entire training comes together.",
      "mode": "worked solution derived from game rules",
      "actions": [
        "Toggle circuit node 2",
        "Toggle circuit node 5",
        "Toggle circuit node 8",
        "Select 5-unit generator",
        "Select 7-unit generator",
        "Restore the Nexus"
      ],
      "reasoning": "Restore the 3x3 light grid, then produce exactly 12 energy units from two generators."
    }
  ]
}
