[Phase 2.1] 5-Deck Validator (Creatures, Battlegear, Mugic, Locations, Attacks) #7

Open
opened 2026-11-17 06:12:14 +00:00 by john4064 · 0 comments
Owner

Goal

Implement pure 5-deck validation in chaotic_core for official 3v3 / 6v6 formats plus custom digital sandbox 1v1 mode per docs/CHAOTIC_RULES_AND_LORE.md.

Metadata

  • Phase / Step: Phase 2.1
  • Depends On: #4
  • Unlocks: #13, #26, #29
  • Target Crates / Paths: crates/chaotic_core/src/deck_validator.rs
  • Line Budget Plan: Production .rs <= 400 lines, test .rs <= 600 lines, mod.rs < 80 lines (AGENTS.md Section 2.3)

Acceptance Criteria

  • Validate format sizes: Creatures (1 sandbox / 3 / 6 official), 1-to-1 equipped Battlegear per Creature, Mugic (1 / 3 / 6), Locations (10), Attacks (20 totaling <= 20 Build Points).
  • Enforce Rule of 2 with Base-Name Equivalence across cards and Creature subtitles.
  • Enforce Unique Cross-Subtitle Override (if any version sharing a base_name is Unique, total count across all versions of that base_name must be <= 1).
  • Enforce Loyal (100% of Creatures match required Tribe) and global Legendary cap (max 1 Legendary card across all 5 decks combined).
  • Validate MugicCasterFilter reachability and reject UnverifiedQuarantine cards in official Ranked formats.
## Goal Implement pure 5-deck validation in `chaotic_core` for official `3v3` / `6v6` formats plus custom digital sandbox `1v1` mode per `docs/CHAOTIC_RULES_AND_LORE.md`. ## Metadata - **Phase / Step:** Phase 2.1 - **Depends On:** #4 - **Unlocks:** #13, #26, #29 - **Target Crates / Paths:** `crates/chaotic_core/src/deck_validator.rs` - **Line Budget Plan:** Production `.rs` <= 400 lines, test `.rs` <= 600 lines, `mod.rs` < 80 lines (`AGENTS.md` Section 2.3) ## Acceptance Criteria - [ ] Validate format sizes: Creatures (`1` sandbox / `3` / `6` official), 1-to-1 equipped Battlegear per Creature, Mugic (`1` / `3` / `6`), Locations (`10`), Attacks (`20` totaling `<= 20` Build Points). - [ ] Enforce **Rule of 2 with Base-Name Equivalence** across cards and Creature subtitles. - [ ] Enforce **`Unique` Cross-Subtitle Override** (if any version sharing a `base_name` is `Unique`, total count across all versions of that `base_name` must be `<= 1`). - [ ] Enforce **`Loyal`** (100% of Creatures match required Tribe) and global **`Legendary`** cap (max `1` Legendary card across all 5 decks combined). - [ ] Validate `MugicCasterFilter` reachability and reject `UnverifiedQuarantine` cards in official Ranked formats.
Sign in to join this conversation.
No description provided.