← Back to Catalog
🧙‍♂️
QUEST

Monster Breach

Build real Data Pipelines to cleanse corrupted crystals and defeat the Corruption Horde!

Difficulty ⭐⭐⭐ Advanced
Deploy Time ~5 min
Complete Time ~60 min
Status ✅ Ready · v1.0.0

📋 Overview

Welcome, Data Engineer! The realm of Fabricia is under attack. The Corruption Horde is trying to destroy the sacred data flows that power the kingdom.

Your mission: build data pipelines to transport precious Data Crystals from source to destination, while defending against waves of data corruption monsters!

Each level teaches you a new Pipeline Activity. Master them all to face the Final Boss: The Corruption King and save Fabricia!

🚀 Quick Start

Install the game into your own Fabric workspace, then open the MonsterBreach_Judge notebook and start the campaign.

from fabric_arcade import arcade

arcade.install("monster-breach")

Enjoying the quest? ⭐ Star the repo to support Fabric Arcade!

🧩 How You Play (Real Fabric, Not a Simulation)

Monster Breach is a learning quest: you build real Fabric Data Pipelines to defeat monsters. Every level follows the same loop:

  1. 📖 Read the briefing in the MonsterBreach_Judge notebook (e.g. "The Null Bug invaded the mines — build a Copy Activity that filters non-null CrystalId").
  2. 🔧 Open the matching empty pipeline in Fabric (e.g. Lvl01_CopyQuest) and assemble it in the UI.
  3. ▶️ Run the pipeline from the Fabric UI.
  4. ⚖️ Back in the notebook, run judge.check_level(1) — the judge compares your output to the expected oracle dataset and emits a LevelComplete or LevelFailed event to the Eventhouse.
  5. 📊 The MonsterBreach_Dashboard notebook updates live with boss HP, crystals saved, and the leaderboard.

📦 What Gets Installed in Your Workspace

arcade.install("monster-breach") deploys:

🎮 Gameplay

┌─────────────────────────────────────────────────────────────────┐
│                                                                  │
│   💎 SOURCE                                     🏆 DESTINATION   │
│      │                                               ▲          │
│      ▼                                               │          │
│   ┌──────┐    ┌──────┐    ┌──────┐    ┌──────┐    ┌──────┐     │
│   │COPY  │───▶│FILTER│───▶│TRANS │───▶│LOOKUP│───▶│ LOAD │     │
│   │  📦  │    │  🔍  │    │  ⚙️  │    │  📖  │    │  📥  │     │
│   └──────┘    └──────┘    └──────┘    └──────┘    └──────┘     │
│                    │            │                               │
│                    │            │                               │
│              🐛 NULL BUG    👻 DUPLICATE                       │
│               attacking!       GHOST!                           │
│                                                                  │
│   ❤️❤️❤️  Lives: 3        💎 Crystals: 847/1000                 │
│   ⚡ 12    Pipeline Power   🏆 Level 4: Transform Temple        │
│                                                                  │
└─────────────────────────────────────────────────────────────────┘

🔧 Pipeline Activities (Your Tools)

Build your pipeline by placing activities. Each has a unique power:

📦
Copy Activity
Extract data from source
🔍
Filter Activity
Remove invalid rows
⚙️
Dataflow Activity
Transform data
📖
Lookup Activity
Enrich with reference data
🔄
ForEach Activity
Process multiple batches
❓
If Condition
Branch based on logic
🔀
Switch Activity
Multiple path routing
🛡️
Retry Policy
Auto-recover from errors

🐉 The Corruption Horde (Enemies)

Four monsters guard the crystal mines — each corrupts the data in two ways. Defeat them in order, then face the Corruption King:

🐛
Null Bug
Level 1 · Copy Quest
Attack
Devours CrystalIds (NULLs) and scorches the type metadata: Weight and Purity arrive as text ("85%").
Counter
Copy Activity + schema cast: drop NULL ids, cast Weight, parse Purity.
👻
Duplicate Ghost
Level 2 · Filter Fortress
Attack
Echoes each crystal as identical copies, while the Latency Demon mixes in stale IngestDate batches.
Counter
Dataflow: keep the latest batch (max IngestDate) + Distinct.
🎭
Branch Mimic
Level 3 · Branch Lair
Attack
Disguises corrupted crystals as valid and grades them A/B/C/F.
Counter
If Condition on Status + Switch on Grade (keep Valid & Grade ≠ F).
🌀
Loop Wraith
Level 4 · ForEach Reef
Attack
Scatters crystals across five mines with under-weight readings — each mine has its OWN minimum weight.
Counter
ForEach mine with parameters + Retry, using mine_thresholds.

🗺️ Campaign: 5 Levels

Level 1 · 🐛 Null Bug
Copy Quest
Copy Activity + schema cast: drop NULL ids and fix text-typed Weight/Purity → player_lvl01
Level 2 · 👻 Duplicate Ghost
Filter Fortress
Distinct + latest batch: remove identical copies and keep only the newest IngestDate → player_lvl02
Level 3 · 🎭 Branch Mimic
Branch Lair
If Condition + Switch: keep only Status = Valid and Grade ≠ F → player_lvl03
Level 4 · 🌀 Loop Wraith
ForEach Reef
ForEach + parameters + Retry: keep each crystal above its own mine's MinWeight → player_lvl04
Level 5 · 👑 Corruption King
Boss Battle
Mega-pipeline: chain every technique to cleanse all defects at once → player_boss

👑 Final Challenge: The Corruption King

👑
THE CORRUPTION KING
Lord of Data Chaos • Final Boss • Level 5
10,000
HP
5
Phases
ALL
Monster Types
∞
Corruption Power

💀 Attack Pattern

  • Phase 1: Null Storm
    Spawns waves of Null Bugs from all directions. Must filter constantly!
  • Phase 2: Schema Shift
    Changes your pipeline schema every 30 seconds. Adapt or die!
  • Phase 3: Infinite Recursion
    Creates loop dependencies. Break the cycle with proper ForEach limits!
  • Phase 4: Total Corruption
    ALL monster types attack simultaneously. Use everything you've learned!
  • Phase 5: King's Wrath
    Disables random activities. Build redundant pipelines to survive!

🛡️ How to Defeat

You must build a Master Pipeline that combines ALL activities you've learned:

SOURCE → COPY → FILTER → DATAFLOW → FOREACH ─┬─→ IF TRUE  → LOOKUP → SINK
                                              │
                                              └─→ IF FALSE → RETRY  → SINK

+ Error Handling on EVERY activity
+ Retry Policy: 3 attempts, exponential backoff
+ Timeout: 30 seconds per activity
+ Parallel execution where safe

🏆 Defeat the King to earn the title: Master Data Engineer

📊 Telemetry Events → Eventhouse

Every action generates real-time events for analytics:

PipelineStarted ActivityPlaced ActivityConnected CrystalProcessed MonsterSpawned MonsterDefeated DataCorrupted PipelineFailed LevelCompleted BossPhaseStarted BossDefeated GameCompleted

🔧 Workloads

Data Pipeline Real-Time Intelligence

📦 Fabric Items Deployed

🏠 Lakehouse MonsterBreach_LH
⚡ Eventhouse MonsterBreach_EH · BattleEvents
📓 Notebook MonsterBreach_Seed
⚖️ Notebook MonsterBreach_Judge
📊 Notebook MonsterBreach_Dashboard
🛠️ Data Pipelines 4 levels + BossBattle_CorruptionKing

🎓 What You'll Learn

SkillFabric FeatureLevel
Copy data between sourcesCopy Activity⭐
Filter and clean dataFilter Activity⭐
Transform with DataflowDataflow Gen2⭐⭐
Enrich with lookupsLookup Activity⭐⭐
Parallel processingForEach Activity⭐⭐
Conditional logicIf Condition / Switch⭐⭐⭐
Error handlingRetry Policy / On Failure⭐⭐⭐
Pipeline orchestrationExecute Pipeline⭐⭐⭐

🎯 Scenarios

ETL/ELT Data Orchestration Error Handling Data Quality

🎮 Played it? Tell me!

Tried this game in your Fabric workspace? Share how it went, leave a comment, or report a 🐛 bug — your feedback shapes the next level.