# Kernel Panic — Gameplay and Balance Analysis
Source audit date: 2026-10-22. Scope: the current local working tree, including pre-existing changes, not an assumed release or clean Git commit. This is a source-derived technical reference, not a rebalance proposal or measured win-rate study. No gameplay, configuration, asset, save, or RNG files were changed for this audit.
## 1. Executive Summary
- **4 playable distro definitions:** Arch, Ubuntu, Fedora, Mint. Another **7 distro identities** are mentioned in the language catalog but have no playable definition.
- **12 language enum/catalog entries:** C, C++, Rust, Python, JavaScript, TypeScript, Haskell, Assembly, Java, Go, Ruby, PHP. **5 have actual cards and starter decks:** C, Rust, Python, JavaScript, Java.
- **45 card definitions:** 15 language starter definitions, 20 playable distro-exclusive definitions, 9 shop/run-only definitions, and 1 unplayable token. All have ID-based handlers. Only **43 definitions are correctly referenced by the serialized CardDatabase**, including the token.
- **41 packages:** 12 one-star, 12 two-star, 9 three-star, 4 four-star, 4 five-star. All are registered. Two have no implemented effect; two more omit an advertised secondary effect. Normal implemented gacha only supplies 3–5-star packages.
- **13 enemy archetypes**, including 4 elites. Initial enemy count reaches 5 at wave 7; initial health increases by 1 per wave. Generic wave-based attack growth constants are not used by the active enemy implementation.
- Gentoo is **not implemented**. Haskell has an enum/catalog entry and a LIFO container, but **no cards, starter deck, multiplier, or working combat evaluation path**.
- Starting deck: choose **4 distinct cards from a distro's 5 playable exclusives**, then choose **2 distinct unlocked languages**, each adding its exact 4-card starter deck: **12 cards**. Recommended languages are not mandatory.
- Important scaling already exists: Arch's uncapped btw stacks, Java's run-persistent JIT discount, Fedora V3's persistent per-card magnitude growth, DNF's accumulating flat-effect bonus, and uncapped repository stat growth.
- Do not use UI descriptions alone as balance truth. Major differences include double-applied flat/magnitude bonuses, Mint's undocumented defensive-card restriction, Ubuntu's automatic tie selection, upgrade effects persisting across waves, no-op package levels, and delayed effects carrying into subsequent waves.
### Terminology and evidence
**Uptime** = health; **Shield** absorbs ordinary damage; **Cycles** pay card costs; **RAM** limits cards held (Java costs 2 RAM, other cards 1). **Bits** are temporary run/shop money; **Bandwidth**, **Entropy**, **Commits**, **Cache**, and per-distro **Merges** are persistent progression currencies.
A **turn/exchange** here means Allocate → Execute → Interpret → EnemyProcess → GarbageCollection. A **wave** is one encounter, potentially several exchanges. A **run** spans waves. Source identifiers containing “Combat” sometimes actually survive an entire run; this report uses observed reset boundaries.
“Confirmed” means established from source/serialized assets, not necessarily reproduced interactively. “Risk” means an interaction or consequence requiring a targeted runtime test or design decision. All calculations state assumptions. No runtime combat simulation, build, or Unity test run was performed during this read-only audit.
## 2. Project Architecture
### Runtime ownership and data flow
| System | Actual implementation and responsibility |
|---|---|
| Framework | C# on Unity **6000.4.8f1**; UI Toolkit controllers with UXML/USS, not a browser framework. Unity coroutines sequence combat. |
| Authored identity/data | ScriptableObjects under Assets/Data; CardDefinition, DistroDefinition, PassiveDefinition, LanguageDeckDefinition, PackageDefinition. YAML assets carry stats, costs, text, references, and package effect enums. |
| Run setup | MainMenuController.BootSelectedPackage (line 1916) validates loadout/languages and passes choices through RunContext.Set. |
| Scene handoff | RunContext.TryCreateRunConfig (39), PendingRun.CreateRunConfig (99): copies selected exclusives and language starter quantities into RunConfig. Seed is Environment.TickCount on normal setup. |
| Run state | RunManager.StartRun (69): RunDeck CardInstances, current wave, Bits, run stat bonuses, offers, accrued meta rewards. |
| Combat authority | CombatManager.StartCombat/PlayCard (115/219); mutable CombatantState, enemy list, hand/deck, queue, stack, delayed effect list, phase machine. |
| Per-card state | CardInstance: definition reference, permanent/temporary cost deltas, magnitude, draw rider, upgrade level, queue count, corruption/lock, target references. |
| Effect dispatch | CardEffectFactory.CreateEffects in Combat/CardEffects.cs (979). Serialized effects take precedence if usable; **all 45 assets have empty effects lists**, so the ID switch is the real implementation. |
| Effects | ICardEffect.Execute(CombatContext); mostly reusable handlers configured by per-ID switches, with several specific handlers for unique mechanics. |
| Damage | DamagePipeline.DealDamage (78), with CombatManager.ResolveDamageResistance (2585) for Rootkit. CardEffects adds card-level bonuses, spill, Rust shield, recoil. |
| Status | StatusEffectController.Apply/Tick/Merge/ResolveTick: code-defined status descriptors and mutable StatusInstances. |
| Scheduler | InterpreterQueue FIFO; LazyStack LIFO scaffold; Native effects execute directly in CombatManager. No functional goroutine system. |
| Enemies | EnemyArchetypeCatalog in Combat/EnemyArchetype.cs, EnemyInstance.PickNextIntent, CombatManager.ExecuteEnemyIntent. EnemyDefinition assets are not the encounter authority. |
| Repository | RunManager.GenerateRepositoryOffers/BuildCardOfferPool/BuyOffer. RewardService.GeneratePostWaveChoices is an unused skip-only scaffold. |
| Meta progression | PlayerCollection, CardLoadout, PackageLoadout, VersionUpgrader, PackageUpgrader, PackageScrapper. |
| Gacha | GachaService generates tier/type rewards and pays costs; PullResolver grants distro ownership/merges; GamblingSceneController.ResolvePull resolves package identities, grants inventory, and saves before reveal. |
| Persistence | SaveService writes Unity JsonUtility JSON to Application.persistentDataPath/kernel-panic-save.json. SaveData normalizes/migrates ownership and currency fields. |
| Presentation/events | Core/GameEvents.cs static events, CombatManager.StateChanged/CombatLog; CombatSceneController, ExecutionTrackView, EnemyProcessPresentation; GachaRevealView consumes completed results. UIPreferences stores UI preferences separately. |
The active path is: setup → RunConfig → RunManager → CombatManager → effect handlers → DamagePipeline/status/deck mutations → events/UI; permanent kills grant Bits; complete waves open repository and accrue meta currencies; run exit settles those currencies once.
### Data-driven boundaries
Cards are **hybrid**, not freely composable data-only content: costs, rarity, language, track, flags, and text are data; actual effects, targeting requirements, Fedora eligibility, and enhanced descriptions are hardcoded ID switches. CardEffectDefinition is an abstract extension point, not an authored library of existing effects.
Passives are text assets, but trigger logic is hardcoded by distro ID in CombatManager/DamagePipeline. Adding a passive asset alone does nothing. Package effects use a single off-distro and a single on-distro PackageEffectData record; the current shape cannot encode several arbitrary independent effects without a composite handler.
### RNG and persistence boundaries
Combat RandomRoll uses System.Random, seeded at boot from RunConfig.RunSeed. Draw shuffles use RollContext.None. Mint only changes rolls with Mint's combat state as source. Repository offers and package identity selection use UnityEngine.Random; GachaService has its own System.Random. **The displayed combat seed does not reproduce the entire metagame/repository.**
SaveData persists owned distro IDs/versions/merges, package IDs/levels, per-distro package slots, currencies, banner counters/guarantees, last loadout, and best wave. It does **not** serialize the live run, hand, queues, temporary card upgrades, or pending delayed effects. Package duplicates normalize to one highest-level instance, with migration compensation handled by menu bootstrap. Save writes are direct File.WriteAllText, not a transactional multi-file database. No live user save was inspected or changed.
## 3. Complete Distro Database
Rarity is **not a DistroDefinition field**: GachaService.GetDistroStars (670) and CollectionScreenController.GetDistroStars (743) independently classify ID arch as 5-star and everything else as 4-star.
| ID / name | Stars | V1 release | Recommended languages | Base Uptime | RAM | Cycles/turn | Starting structure |
|---|---:|---|---|---:|---:|---:|---|
| arch / Arch | 5 | 2024.01 | C / Rust | 50 | 6 | 4 | 4 of 5 exclusives + two 4-card language decks |
| ubuntu / Ubuntu | 4 | 20.04 | Python / JavaScript | 60 | 5 | 4 | Same, 12 total |
| fedora / Fedora | 4 | 38 | Rust / Java | 55 | 6 | 3 | Same, 12 total; Java occupies 2 RAM/card |
| mint / Mint | 4 | 21 | Python / JavaScript | 65 | 5 | 3 | Same, 12 total; defensive card restriction below |
Sources: Assets/Data/Distros/{Arch,Ubuntu,Fedora,Mint}.asset, fields from line 15 onward. Initial Shield is 0 before packages; no additional base-stat attributes are authored. Version upgrades do not directly change these base stats.
### Acquisition and availability
At first launch the player chooses Ubuntu, Fedora, or Mint at V1. All four install-media distros are then added to the banner pool. The two unchosen starters become the beginner banner's 20th/40th-pull guarantees. Arch is not a starter; it is the current only 5-star distro, available through gacha, beginner pull 50, or a standard selector. No combat-wave distro unlock exists.
Owning a distro unlocks languages through LanguageUnlock's catalog mapping, not its version. Every run may choose any two unlocked languages; it is not restricted to the selected distro's advertised pair. Exclusive starting cards require owning that distro, but reward/generation pools do not consistently enforce exclusivity.
### Defined names without playable definitions
| Catalog-only ID / display | Referenced languages | Actual implementation |
|---|---|---|
| gentoo / Gentoo | Haskell, Assembly | No DistroDefinition, stats, rarity mapping, passive handler, release table, exclusives, or acquisition path. Proposed 5-star rarity is a request, not current data. |
| nixos / NixOS | Haskell, Go | Not implemented |
| templeos / TempleOS | C, Assembly | Not implemented |
| kali / Kali | Python, Ruby | Not implemented |
| endeavouros / EndeavourOS | JavaScript, Ruby | Not implemented |
| debian / Debian | Java, PHP | Not implemented |
| cachyos / CachyOS | Go, PHP | Not implemented |
Stats, versions, costs, starting cards, and passives for these seven: **Not found**. Supporting-distro text is not evidence of hidden playable units.
### Source-derived playstyles, not rankings
- **Arch:** low initial health but 4 cycles/6 RAM; C spill and high crit chance give immediate group-clearing pressure. Every paid/accepted play adds btw before effects, so free utility improves later C/Rust attacks. Rust overkill shields mitigate C self-damage; Wiki repairs corruption. V1/V2 scaling resets each exchange, V5/systemd scales across the wave without a stack cap. Draw scarcity, corruption, C recoil, and low HP constrain early safety; rolling-release saves provide protection, not full healing.
- **Ubuntu:** 4 cycles with only 5 RAM. Apt adds hand throughput after the opening exchange, while cheap queue cards stage draw/defense and JS supplies immediate damage. Snap pollutes the deck; full RAM can waste passive/draw/generation. V4 cost reductions accumulate within a wave; do-release-upgrade improves retained run cards, making later waves more efficient. No direct passive damage or healing.
- **Fedora:** native Rust provides overkill defense; Java gives initially expensive, RAM-heavy attacks that become free with JIT. Eligible attacks get a discount/multiplier but can fail completely. V3 grows the first qualifying successful card each turn indefinitely across the run; V5/DNF offers two normal eligible bonuses. Only 3 base cycles, 2-RAM Java cards, and crash outcomes constrain early turns. Deferred Python cards do not qualify for ordinary Bleeding Edge.
- **Mint:** 65 HP and deterministic maxima favor JS ranges; no crits or damage multipliers. V2 strengthens both fixed and random effect values, including draw/shield where applicable. Cinnamon, Update Manager, and Timeshift provide own-card defense/delayed payoff. Only 3 cycles/5 RAM, delayed restoration cannot rescue an already defeated player, and non-Mint defensive cards are blocked. Generic healing/stat purchases and packages use other paths and are not uniformly blocked. No innate per-round growing counter.
## 4. Distro Passives and Version Upgrades
All releases are cumulative thresholds, V1–V5. Costs are **per-distro Merges**, paid for the next version only: V2 50, V3 120, V4 250, V5 500; total V1→V5 **920**. Ownership required, no skipping versions, maximum V5. Duplicate pulls grant Merges rather than automatically increasing version. Sources: Meta/GachaTuning.cs, VersionUpgrader.TryUpgrade, DistroVersionCatalog.GetEffectSummary; actual behavior in CombatManager.
### Arch — I use Arch, btw
Passive ID: arch_i_use_arch_btw. Exact asset rules:
> Each card played adds 1 btw until end of turn. C and Rust damage gains +1 per btw. Once per wave, lethal uptime sets Arch to 1 instead and clears btw.
Accepted plays increment btw before resolving, including utility and plays that later crash. Invalid/unpaid actions do not. C/Rust requests get a flat stack bonus before multipliers/crit, not all effects. No cap. Reset at GarbageCollection unless V5/on-Arch systemd; always reset at wave start. Lethal recovery is inside DamagePipeline after shield/HP subtraction and before DamageDealt/defeat processing.
| Version / release | Cost | Actual change |
|---|---:|---|
| V1 / 2024.01 | Initial acquisition | +1 damage per btw for C/Rust; one lethal recovery per wave to 1 HP; clear btw on save. |
| V2 / 2024.06 | 50 | C/Rust flat bonus becomes +2 per btw. |
| V3 / 2024.12 | 120 | makepkg's own coefficient becomes **4** instead of **3**, in addition to the V2 pipeline bonus. Catalog says “x3 instead of x2”; stale. |
| V4 / 2025.06 | 250 | Each lethal save also directly adds 15 Shield and 2 current Cycles. |
| V5 / 2025.12 | 500 | btw persists through exchanges within a wave; two lethal saves per wave. |
makepkg before other bonuses/crit: V1 **7+4b**, V2 **7+5b**, V3+ **7+6b**, where b includes playing makepkg itself. The extra coefficient is not a replacement for the universal C/Rust btw addition.
### Ubuntu — sudo apt update
Passive ID: ubuntu_apt_update. Exact asset rules:
> at the start of each turn, look at the top 2 cards of your draw pile and add the cheaper one to your hand (you choose ties).
Actual: Allocate, after cycle/package/status work, before the normal draw; only if at least 1 RAM is free. DeckController.TryDrawCheapestFromTop compares static GetCardCost, **not** Java/package/Fedora effective cost. It automatically chooses the topmost cheapest card on a tie; there is no choice callback. Other inspected cards stay in order. If the pile is nonempty but contains fewer than lookCount, it does not refill from discard to complete the peek. Java can still fail to fit when only 1 RAM is available.
| Version / release | Cost | Actual change |
|---|---:|---|
| V1 / 20.04 | Initial | Peek top 2; add cheapest if it fits. Opening draw usually fills RAM before this runs. |
| V2 / 21.04 | 50 | Peek top 3. |
| V3 / 22.04 | 120 | ask ubuntu base draw becomes 3, only when played as Ubuntu. |
| V4 / 23.04 | 250 | Each chosen card gets TemporaryCostDelta -= 1. Text says “this turn”; reset occurs only next wave, so repeated staging can accumulate discounts. |
| V5 / 24.04 | 500 | After a non-crashing PlayCard, empty hand triggers one draw attempt up to RAM. Flag resets at boot, **once per run**, not each wave. |
### Fedora — Bleeding Edge
Passive ID: fedora_bleeding_edge. Exact asset rules:
> the first card you play each turn costs 1 less and deals +50%, but may crash (do nothing). crash chance rises each turn it doesn't happen and resets when it does.
Actual: first **eligible native damaging** card(s), not literal first play. Eligibility is a hardcoded list; Consult the Wiki qualifies only when no broken hand card exists, and dnf autoremove only when junk exists. Discount is -1, clamped to zero. Each eligible bonus rolls independently: starts **5%**, increases **2.5 percentage points per non-crash**, capped at **90%**, resets to 5% on crash. Counter persists across waves. Roll is integer 1..1000 against RoundToInt(chance*10). Crash consumes card/cost and counts as a play/JIT/telemetry but skips effects, riders, and post-play package hooks.
| Version / release | Cost | Actual change |
|---|---:|---|
| V1 / 38 | Initial | One normal eligible bonus/turn; 150% damage multiplier. |
| V2 / 39 | 50 | Multiplier 175%. |
| V3 / 40 | 120 | First eligible bonus of turn, if successful: that CardInstance gains +1 MagnitudeBonus before its effect, or +2 if a rawhide charge was consumed. Persists across waves; no growth cap and no repository upgrade-level increase. |
| V4 / 41 | 250 | Crash refunds/grants 1 Cycle. |
| V5 / 42 | 500 | Two normal eligible bonuses/turn, each rolling crash independently. V3 growth still only on first eligible bonus. |
Rawhide draws and adds one bonus charge. It applies to the next **eligible** card and can survive turn/wave boundaries, despite “next card this turn” text. It can also enable the bonus on a non-Fedora owner of this reward card; multiplier selection then uses that run's distro version. DNF on Fedora sets the normal limit to 2, not 3 with V5. SELinux's crash-immunity hook exists but that non-damaging card is already absent from the eligible whitelist.
### Mint — It Just Works
Passive ID: mint_it_just_works. Exact asset rules:
> mint's random values always resolve at maximum. in exchange, mint cannot crit and ignores damage multipliers -- her numbers are always the ceiling, never above it.
Actual: ForceMaxRolls makes source-aware random ranges return their maximum, disables crit, and IgnoreDamageMultipliers skips both damage multipliers. typeof explicitly treats this as success. C recoil and Rust overflow checks therefore never trigger for Mint (their success tests require a low roll). It also biases random card/language/index selection to the final index; shuffles/enemies/repository use other contexts and remain random.
**Undocumented restriction:** CanPlayerReceiveCardBuff/Shield/Heal rejects cards not in Mint's own exclusive-card list. borrow, non-Mint Rust overkill, minimal install Shield, and unattended-upgrades Shield/status are blocked. Draw, cycles, cleanse, package grants, and SELinux mitigation charges do not all use that gate. CanPlayerReceiveCardHeal is an unused hook for card healing, not a universal health interceptor.
| Version / release | Cost | Actual change |
|---|---:|---|
| V1 / 21 | Initial | Force maximum rolls; no crits/multipliers; defensive-card restriction above. |
| V2 / 21.2 | 50 | FlatEffectBonus = 2. Applied to many numerical effects, including both random range endpoints, draw and status stacks, not only “fixed values.” Some wrappers apply it twice. |
| V3 / 21.3 | 120 | Timeshift card restore target snapshot+2, capped at max HP, **only if current HP is below original snapshot**. |
| V4 / 22 | 250 | Sets AllowFlatDamageBuffs=true, but no consuming check was found. Flat JS/btw additions already work at earlier versions. No distinct implemented V4 damage behavior. |
| V5 / 22.1 | 500 | Timeshift card restore target full HP, still requires current HP below original snapshot. |
Timeshift card is not the 5-star Timeshift package. The package intercepts a DamageDealt event once per wave and can prevent defeat; the card checks later and cannot restore an already defeated player.
## 5. Programming Language Mechanics
Numeric IDs are the Language enum's serialized values. Catalog descriptions below are condensed from the source, not assumed functionality.
| ID / enum / display | Catalog identity / advertised track | Implementation and availability |
|---|---|---|
| 0 / C / C | bare metal; Native | Fully playable: 8 definitions, 4-card starter. Immediate damage; 50% crit, spill, recoil/corruption. Unlock Arch (TempleOS only a catalog reference). |
| 1 / CPlusPlus / C++ | template arsenal; Native | Planned upgraded-C setup/payoff. **0 cards/decks. LanguageUnlock always false.** Upgrading C does not change language. |
| 2 / Rust / Rust | safe systems; Native | Fully playable: 8 definitions, 4-card starter. Immediate damage, overkill Shield, extremely rare overflow. Unlock Arch/Fedora. |
| 3 / Python / Python | queued scripts; InterpreterQueue | Playable: 13 definitions including 1 Native token, 12 queue cards; 4-card starter. FIFO before enemies; draw, AoE, repeat, snapshots. Two shop cards unregistered. Unlock Ubuntu/Mint (Kali absent). |
| 4 / JavaScript / JavaScript | runtime chaos; Native | Fully playable: 10 definitions, 4-card starter. Ranges, chance damage, multi-hit, copying, hand upgrades. Unlock Ubuntu/Mint (EndeavourOS absent). |
| 5 / TypeScript / TypeScript | typed runtime; Native | Planned steadier JS branch. **0 cards/decks; unlock always false** even after JS upgrade. |
| 6 / Haskell / Haskell | lazy proofs; LazyStack | Partially scaffolded container only; 0 cards/decks; no multiplication/evaluation effects. Locked because Gentoo/NixOS do not exist. |
| 7 / Assembly / Assembly | raw opcodes; Native | Planned precision/shield-bypass language; 0 cards/decks; Gentoo/TempleOS absent. |
| 8 / Java / Java | warming vm; Native | Fully playable: 6 definitions, 4-card starter. 2 RAM/card, spill, global Java JIT. Unlock Fedora (Debian absent). |
| 9 / Go / Go | small services; Native | Planned dependable native/service utility. **No goroutine track/mechanics**, no cards/deck; CachyOS/NixOS absent. |
| 10 / Ruby / Ruby | sharp scripts; InterpreterQueue | Planned queued combo language; 0 cards/decks; Kali/EndeavourOS absent. |
| 11 / Php / PHP | legacy glue; InterpreterQueue | Planned queued clutter/legacy utility; 0 cards/decks; Debian/CachyOS absent. |
### Implemented language rules
- **C:** ordinary positive damage can crit at 50%, critical multiplier 1.5 rounded upward. Overkill spills into enemy-list order. On a C card's C damage, one recoil roll per CombatContext after damage/spill: normally 20%, true self-damage 3, corrupt a random nonbroken hand card. free() additionally draws 2 on recoil; kernel_exploit uses 50%/8. Other language damage does not inherit C recoil merely because the player is Arch.
- **Rust:** normal crit 25%; overkill becomes Shield, no normal spill. DealDamageEffect rolls **1 in 10,000,000 (0.00001%) per target** for overflow, substitutes int.MaxValue (2,147,483,647), skips crit/multipliers, logs the larger unsigned-64 limit. Catalog claims 0.001% and an unsigned-64 value: both misleading. Mint never hits the low-roll overflow.
- **Python:** cost paid and hand RAM freed immediately; effects occur FIFO in Interpret. Drawn cards cannot be played in that phase, so queued draw generally prepares the next exchange. Queue multipliers are not inherent to the language; zip creates two-repeat charges, list.append has its own per-card queue-growth counter.
- **JavaScript:** inclusive uniform integer damage ranges except typeof's 75% success. Each hit/target rolls independently. Default crit 25%; Mint gets maximum range/success but no crit. Copy/upgrade effects are their own handlers, not universal JS rules.
- **Java:** every accepted Java play increments one shared counter, including rawhide and crashed cards. Later Java costs subtract that counter; it is not per-card. The current card pays before its increment. Counter cools by exactly **1 when continuing to the next wave**, not to zero. first-to-package adds another fixed -1 for the current turn. All Java cards take 2 RAM, even 0-cycle rawhide; Java damage spills but has no C recoil. Normal crit 25%.
- **Other languages:** default DamagePipeline would use 25% crit if an effect requested crit, but this is infrastructure behavior, not evidence of playable cards.
Track comes from CardDefinition.ResolutionTrack, not automatically from LanguageCatalog. No universal “off-recommended-language” cost penalty is implemented. DependencyError's intended cost rule is a TODO.
## 6. Complete Card Database
### Reading the effects accurately
All values below are **implemented base effects**, before external modifiers unless explicitly shown.
- F = max(0, Source.FlatEffectBonus); M = max(0, card.MagnitudeBonus); A(x)=x+F+M.
- D(x) means DealDamageEffect starting with x: adds F+M, then language flat additions, damage multipliers, crit, resistance, Shield/HP. A random D(lo..hi) adds F+M to both endpoints before rolling.
- Damage language equals the table language. C/Java spill and Rust overkill rules apply to D effects. C damage also uses the recoil profile above.
- Cost is authored CycleCost, not current discounted cost. “N” = Native, “Q” = InterpreterQueue. No defined card uses LazyStack.
- “Start” is copies in that language's starter deck; “0/1 chosen” means a distro-exclusive can occupy one of the four selected slots. All shop/token cards start at 0.
- Role labels are **analytical tags**, not a supported card-category enum. Actual flags are DistroExclusive, IsToken, IsRunOnly; RequiresSystem entries are descriptive metadata, not enforced prerequisites.
- All UpgradeTarget references are null. No authored upgraded definitions or evolved-language variants exist. Generic runtime upgrades apply as described in section 8.
- Multi-effect cards check win/loss between effects. An enemy death may still have pending visual/orphan/revival work, so a “kill” does not always mean later effects are skipped.
### Registration warning
Assets/Data/Cards/CardDatabase.asset has 45 slots but two point to **LanguageDeckDefinition assets rather than CardDefinitions**:
- GUID a7d50000000000000000000000000001 resolves to PythonDeck.asset.
- GUID a7d50000000000000000000000000002 resolves to JavaScriptDeck.asset.
- ListAppend.asset's actual GUID is e2fc224a340bd6d48b68d8c5dfb0bba1.
- AsyncDef.asset's actual GUID is 02413866d208b2641af7c74b88d1eac4.
Thus list.append() and async def have definitions/handlers but no normal registered repository path in this on-disk configuration. The database's 43 valid card references include the token, leaving 42 valid non-token reward candidates before language filtering. The five-deck LanguageDeckDatabase itself **is present and correctly references its deck assets**. This is a serialized-reference audit, not a claim about an unsaved editor object's live state.
### C — 8 definitions
| ID / name | Role | Cost | Rarity / track | Start / availability | Exact effect | Conditions / implementation notes |
|---|---|---:|---|---|---|---|
| lang_c_pointer
pointer | Combo damage | 1 | Common / N | 1 / starter, repository, eligible generation | D(9), or D(15) when previous played card language was C; C spill/recoil. | Previous accepted play, across exchanges within the same wave; current card excluded. |
| arch_pacman_syu
pacman -Syu | Damage | 1 | Rare / N | 0/1 chosen / arch exclusive; also language repository | D(14); C spill/recoil. | No special extra condition. |
| lang_c_malloc
malloc() | Damage | 1 | Common / N | 2 / starter, repository, eligible generation | D(12); C spill/recoil. | None; 20% true self-damage 3 and corruption. |
| lang_c_printf
printf() | Damage | 0 | Common / N | 1 / starter, repository, eligible generation | D(7); C spill/recoil. | Same C recoil; free to play. |
| shop_c_free
free() | Damage / conditional draw | 2 | Common / N | 0 / repository only | D(18); C spill. On 20% recoil: true self-damage 3, corruption, draw 2. | Recoil draw uses DrawCards directly, not F/M scaling; shop-only. |
| shop_c_sizeof
sizeof() | Hand scaling | 1 | Rare / N | 0 / repository only | D(5×number of C cards still in hand); C spill/recoil. | Played sizeof is already removed. Zero base can still gain F/M/btw; recoil only if incoming damage positive. |
| arch_makepkg
makepkg | Stack scaling | 2 | Rare / N | 0/1 chosen / arch exclusive; also language repository | D(7 + b×k), k=3 normally, 4 on Arch V3+; then ordinary C btw bonus also applies. | b=current btw after this play. Normal C spill/recoil. |
| shop_c_kernel_exploit
kernel_exploit | True damage | 3 | Rare / N | 0 / repository only | D(36), bypass Shield, spill likewise bypasses Shield; 50% recoil for 8 true self-damage + corruption. | True damage still receives Rootkit resistance; shop-only. |
### Rust — 8 definitions
| ID / name | Role | Cost | Rarity / track | Start / availability | Exact effect | Conditions / implementation notes |
|---|---|---:|---|---|---|---|
| fedora_dnf_autoremove
dnf autoremove | Conditional damage / exhaust | 1 | Common / N | 0/1 chosen / fedora exclusive; also language repository | If junk exists: D(7+F+M), thus raw damage 7+2F+2M, then exhaust first junk and gain 1+M Cycles; Rust rules. | No junk means no damage/effect. Junk = token, broken, or matching junk/NOP/broken ID/name text; locked alone not junk. |
| lang_rs_unwrap
unwrap() | Damage / draw | 1 | Common / N | 1 / starter, repository, eligible generation | D(9), Rust overkill-to-Shield; then draw A(1). | Separate effects; draw can be skipped after a confirmed combat-ending result. |
| lang_rs_fn_main
fn main() | Damage / overkill defense | 1 | Common / N | 2 / starter, repository, eligible generation | D(6); Rust overflow chance and overkill-to-Shield. | Cannot miss normally; can still crash under Fedora. |
| arch_minimal_install
minimal install | Exhaust / resources | 1 | Rare / N | 0/1 chosen / arch exclusive; also language repository | Exhaust first up to 2 hand cards; per card, 3 Shield and 1 Cycle. Each exhaust triggers package hooks. | Not player-selected; quantities ignore F/M. Mint blocks the 3-per-card Shield but not cycles/package triggers. |
| arch_aur_helper
AUR helper | Generate | 1 | Rare / N | 0/1 chosen / arch exclusive; also language repository | Choose C or Rust 50:50, then uniformly choose a Common eligible definition; generate one 0-cycle copy. | No run-only/token; can generate other distros' Commons. Hand RAM required. Cost delta persists this wave, not merely this turn. |
| fedora_selinux
SELinux enforcing | Mitigation | 2 | Rare / N | 0/1 chosen / fedora exclusive; also language repository | Add 2+M charges: halve qualifying incoming Attack or DRM Special hit using ceil(damage/2). | No F scaling. Memory Leak StatusAttack and DOT bypass this hook; charges reset wave. |
| arch_consult_wiki
Consult the Wiki | Repair / alternate damage | 0 | Common / N | 0/1 chosen / arch exclusive; also language repository | Repair first broken hand card and request exactly 1 draw; otherwise D(6) Rust damage. | Repair draw ignores F/M despite scaled description. Damage branch uses normal Rust rules. |
| lang_rs_borrow
borrow | Shield | 0 | Common / N | 1 / starter, repository, eligible generation | Gain A(5) Shield. | Mint blocks this non-Mint card's Shield. |
### Python — 13 definitions
| ID / name | Role | Cost | Rarity / track | Start / availability | Exact effect | Conditions / implementation notes |
|---|---|---:|---|---|---|---|
| mint_update_manager
update manager | AoE / delayed repeat | 1 | Rare / Q | 0/1 chosen / mint exclusive; also language repository | Immediate D(5+F+M), thus raw 5+2F+2M per enemy. Schedule stored amount 5+F+M for a later all-enemy Python damage request. | Repeat after 2 GarbageCollections; stored amount does not get F/M added again, but current pipeline multipliers/resistance/crit apply. Each zip repeat schedules another delayed entry. |
| mint_timeshift
timeshift snapshot | Delayed restore | 1 | Rare / Q | 0/1 chosen / mint exclusive; also language repository | Snapshot current HP at resolution. After 2 GarbageCollections, restore only if still alive and below original snapshot. | Base target snapshot; Mint V3 target min(maxHP,snapshot+2), V5 full. F/M do nothing; each repeat makes another entry. |
| shop_py_zip
zip() | Queue modifier | 1 | Rare / Q | 0 / repository only | Add 2+M repeat charges; each next dequeued card consumes one to execute its effect list twice. | No F scaling. Queue riders/discard occur once per dequeued card, not per repeat; charges can carry between turns/waves. |
| lang_py_for_loop
for loop | Queued AoE | 1 | Common / Q | 1 / starter, repository, eligible generation | D(2) to each living enemy at resolution, independent crit per target. | Uses current enemy list rather than fixed AoE snapshot. |
| lang_py_print
print() | Queued damage | 0 | Common / Q | 2 / starter, repository, eligible generation | D(3) on queue resolution. | No mandatory targeting prompt for this ID; snapshots selected target or first living enemy; retargets if needed. |
| lang_py_import_antigravity
import antigravity | Queued draw | 1 | Common / Q | 1 / starter, repository, eligible generation | Draw A(2). | RAM-capped; cards arrive during Interpret. |
| ubuntu_ask_ubuntu
ask ubuntu | Queued draw | 0 | Common / Q | 0/1 chosen / ubuntu exclusive; also language repository | Draw A(2), or A(3) on Ubuntu V3+. | RAM-capped; no requirement to be Ubuntu for ordinary draw. |
| shop_py_async_def
async def | Queued draw / resource | 1 | Rare / Q | 0 / defined; unregistered | Draw A(2), then add 1+M Cycles next Allocate. | Cycle amount excludes F. Definition exists but missing from CardDatabase. |
| ubuntu_apt_install
sudo apt install | Queued generation | 1 | Common / Q | 0/1 chosen / ubuntu exclusive; also language repository | Generate one random Common Python card, temporary cost set to zero. | Eligible pool excludes tokens/run-only, not distro exclusives; can generate itself. Hand capacity applies. |
| shop_py_list_append
list.append() | Queued scaling | 1 | Rare / Q | 0 / defined; unregistered | D(4+max(0,QueuePlayCount−1)). | Counter increments when this instance is queued, not on repeats; resets wave. Definition exists, but missing from CardDatabase (see registration warning). |
| mint_cinnamon
cinnamon | Shield / draw | 0 | Common / Q | 0/1 chosen / mint exclusive; also language repository | Gain A(3) Shield, then draw A(1). | Native owner Mint permits its own Shield. Non-Mint also receives both normally. |
| ubuntu_unattended_upgrades
unattended-upgrades | Shield / duration | 1 | Common / Q | 0/1 chosen / ubuntu exclusive; also language repository | Immediate A(4) Shield; apply beneficial UnattendedUpgrades with A(4) stacks and duration 2, skip next matching tick. | Normally 3 grants total: current Interpret, then next two GarbageCollections. Reapplication merges duration and skip flag; see status rules. Mint blocks both components. |
| ubuntu_pro_trial
ubuntu pro trial | Token / obstruction | 0 | Common / N | 0 / snap-generated token only | Unplayable, 1 RAM, no executable effect. | Created by snap install. No explicit end-combat Exhaust call found; removed when wave deck/hand are rebuilt from RunDeck. Can be exhausted by cleanup cards. |
### JavaScript — 10 definitions
| ID / name | Role | Cost | Rarity / track | Start / availability | Exact effect | Conditions / implementation notes |
|---|---|---:|---|---|---|---|
| lang_js_typeof
typeof | Chance damage | 1 | Common / N | 1 / starter, repository, eligible generation | 75%: raw A(8); 25%: raw 0; then pipeline JS additions/multipliers/crit. | Mint forces success. JS flat package bonus can make the nominal failure deal damage. |
| mint_nemo
nemo | Conditional multi-hit | 0 | Common / N | 0/1 chosen / mint exclusive; also language repository | One D(6), or two if player Shield>0 at resolution. | Condition evaluated once; same target; normal JS modifiers. Text says Mint, but any owner with Shield qualifies. |
| shop_js_spread
spread ... | Copy | 1 | Rare / N | 0 / repository only | Copy first lowest-effective-cost remaining hand card with its mutable state. | Copies upgrades, temporary discounts, riders, queue count, broken/locked flags and targets. Requires enough RAM; no F/M gain. Copy is not added to persistent RunDeck. |
| mint_fix_broken
apt --fix-broken | Damage / cleanse | 1 | Common / N | 0/1 chosen / mint exclusive; also language repository | D(8), then cleanse ALL harmful player statuses. | Does not repair broken cards. Asset says one debuff; code removes all. Non-Mint owners still use ordinary crit/multiplier rules. |
| shop_js_promise_all
Promise.all() | Multi-hit | 2 | Rare / N | 0 / repository only | Three separate D(uniform integer 4..10) effects, same captured target. | Each hit independently rolls/gets F+M/crit; dead target is skipped rather than retargeted between those hits. |
| lang_js_console_log
console.log() | Random damage | 0 | Common / N | 2 / starter, repository, eligible generation | D(uniform integer 3..9). | Mint uses 9+F+M before JS flat addition. |
| lang_js_fetch
fetch() | Random damage | 1 | Common / N | 1 / starter, repository, eligible generation | D(uniform integer 5..13). | Mint uses 13+F+M. |
| shop_js_math_random
Math.random() | Random damage | 1 | Rare / N | 0 / repository only | D(uniform integer 2..20). | Mint uses 20+F+M; shop-only. |
| ubuntu_snap_install
snap install | Random damage / pollution | 0 | Common / N | 0/1 chosen / ubuntu exclusive; also language repository | D(uniform integer 6..14), then shuffle one ubuntu_pro_trial into draw pile. | Token creation/shuffle is a separate effect and can be skipped after a confirmed end condition. No extra token count from F/M. |
| ubuntu_do_release_upgrade
do-release-upgrade | Upgrade | 2 | Rare / N | 0/1 chosen / ubuntu exclusive; also language repository | Uniform count 1+F+M .. 3+F+M; choose distinct random remaining hand cards with UpgradeLevel==0, call Upgrade(). | Mint chooses maximum count/final index. Can include token/broken cards. Each successful target gets -1 cost if eligible and +1 magnitude; level becomes 2 or 3; persistent on RunDeck instances. |
### Java — 6 definitions
| ID / name | Role | Cost | Rarity / track | Start / availability | Exact effect | Conditions / implementation notes |
|---|---|---:|---|---|---|---|
| fedora_dnf_update
dnf update | Damage | 2 | Common / N | 0/1 chosen / fedora exclusive; also language repository | D(9), Java spill. | 2 RAM; global JIT, not a separate discount implementation. |
| lang_java_new_object
new Object() | Damage | 1 | Common / N | 1 / starter, repository, eligible generation | D(3), Java spill. | 2 RAM; global JIT. |
| lang_java_public_static_main
public static void main | Damage | 3 | Common / N | 2 / starter, repository, eligible generation | D(7), Java spill. | 2 RAM; global JIT. |
| lang_java_system_out_println
System.out.println | Damage | 2 | Common / N | 1 / starter, repository, eligible generation | D(5), Java spill. | 2 RAM; global JIT. |
| fedora_first_to_package
first-to-package | Damage / discount | 1 | Common / N | 0/1 chosen / fedora exclusive; also language repository | D(7+F+M), thus raw 7+2F+2M; then Java cost discount +1 this turn. | Java spill, 2 RAM; normal JIT increment is additional. Temporary discount ignores F/M. |
| fedora_rawhide
rawhide | Draw / empower | 0 | Rare / N | 0/1 chosen / fedora exclusive; also language repository | Draw A(2); add exactly 1 rawhide bonus charge. | 2 RAM. Next eligible native damaging card gets -1, bonus damage, and crash risk. Charge not confined to current turn. |
### Effect implementation coverage and exceptions
All 45 IDs occur in CardEffectFactory.CreateEffects; actual classes are in Assets/Scripts/Combat/CardEffects.cs. No healing-number card or damage-over-time attack card is currently authored: Timeshift is a snapshot restore; harmful Memory Leak is applied by an enemy. No card voluntarily discards a selectable hand card; ordinary plays discard after resolution, while minimal install/autoremove exhaust.
Magnitude upgrades are additive **per affected quantity**, not “+2 damage only”: unwrap increases damage and draw; cinnamon increases Shield and draw; unattended-upgrades increases immediate Shield and future status stacks; async increases draw and delayed Cycles; zip increases the number of repeated cards. Fixed repeat count for Promise.all/nemo, generation count, minimal install values, Timeshift snapshot, rawhide charge count, and first-to-package's discount do not increase. Upgrade descriptions are not a reliable substitute for these handlers.
FirstCardShieldEffect and OverkillToShieldDamageEffect exist as reusable classes but have no current ID binding. No serialized concrete effect assets were found. NoOpCardEffect is the token/unknown-ID fallback.
Source anchors: CardEffects.cs DealDamageEffect 8; ShieldEffect 171; ChanceDamageEffect 218; QueuedGrowthDamageEffect 253; PreviousLanguageDamageEffect 272; BtwScaledDamageEffect 295; MinimalInstallEffect 345; ConsultWikiEffect 391; DrawEffect 466; UpgradeHandCardsEffect 595; FirstToPackageEffect 772; DnfAutoremoveEffect 789; UpdateManagerEffect 859; SegfaultRecoil 924; CardEffectFactory 977 (CreateEffects 979); UpgradeMath 1190. Class names take precedence if later edits shift lines.
## 7. Starting Deck Compositions
### Exact language starters
Each of the five LanguageDeckDefinition assets has 3 entries totaling 4 cards. These quantities were resolved through each asset GUID, not inferred from names.
| Language | Exact composition | Total | Sum of printed costs | Mean printed cost |
|---|---|---:|---:|---:|
| C | 2× malloc() [lang_c_malloc]; 1× printf() [lang_c_printf]; 1× pointer [lang_c_pointer] | 4 | 3 | 0.75 |
| Rust | 2× fn main() [lang_rs_fn_main]; 1× unwrap() [lang_rs_unwrap]; 1× borrow [lang_rs_borrow] | 4 | 3 | 0.75 |
| Python | 2× print() [lang_py_print]; 1× import antigravity [lang_py_import_antigravity]; 1× for loop [lang_py_for_loop] | 4 | 2 | 0.50 |
| JavaScript | 2× console.log() [lang_js_console_log]; 1× fetch() [lang_js_fetch]; 1× typeof [lang_js_typeof] | 4 | 2 | 0.50 |
| Java | 2× public static void main [lang_java_public_static_main]; 1× System.out.println [lang_java_system_out_println]; 1× new Object() [lang_java_new_object] | 4 | 9 | 2.25 |
C++, TypeScript, Haskell, Assembly, Go, Ruby, PHP starter decks: **Not implemented**, not zero-cost empty decks offered to players.
### Exclusive starting choices
Each listed playable exclusive is **one copy if selected, zero otherwise**. Select exactly four distinct definitions; no fixed universal four-card selection is imposed. Ownership grants access to the distro's exclusive choices, not separate card gacha rolls.
| Distro | Five selectable cards |
|---|---|
| Arch | arch_pacman_syu; arch_consult_wiki; arch_makepkg; arch_aur_helper; arch_minimal_install |
| Ubuntu | ubuntu_ask_ubuntu; ubuntu_apt_install; ubuntu_snap_install; ubuntu_do_release_upgrade; ubuntu_unattended_upgrades |
| Fedora | fedora_dnf_update; fedora_dnf_autoremove; fedora_first_to_package; fedora_rawhide; fedora_selinux |
| Mint | mint_fix_broken; mint_update_manager; mint_cinnamon; mint_nemo; mint_timeshift |
Ubuntu's exclusive reference array also includes ubuntu_pro_trial, but its token flag excludes it from loadout selection. No sixth playable Ubuntu exclusive exists. A distro-exclusive card is not reward-only; all 20 can be chosen at start, and all also leak into matching-language repository pools.
Final assembly: MainMenuController requires 4 chosen cards and 2 selected languages; CardLoadout prevents duplicates/token/run-only cards. RunContext adds the four chosen definitions, then every primary deck entry Count times, then every secondary entry Count times. RunManager creates separate CardInstances and excludes IsRunOnly definitions from initial deck construction. It does not remove an exclusive simply because its language differs from the two selected languages.
Normal final deck size is **12**; repository purchases/removal later change it without a maximum (minimum removal limit 1 card). Java's 2 RAM affects hand occupancy, not deck size. The editor-only no-RunContext fallback chooses Ubuntu's first four non-token/non-run-only exclusives and Python/JS. That fallback is not the normal player selection rule.
Sources: Meta/CardLoadout.cs:26; Run/RunContext.cs:99; Run/RunManager.cs:292; UI/MainMenuController.cs:1852,1880,1916; UI/CombatSceneController.cs:269.
## 8. Repository Rewards and Card Upgrades
### Card offer construction
The active repository is RunManager, not RewardService's obsolete skip-only contract.
- Generate 5 offers, at most 80 attempts; rejected duplicate/sold offers can leave fewer than 5.
- Raw branch probabilities per attempt: **45% new card, 30% individual-card upgrade, 25% stat upgrade**. If no upgrade target remains, that branch becomes a stat offer.
- For each chosen run language, add each of its 3 starter definitions **three times**, ignoring starter copy counts. Then add every valid, non-token matching-language CardDatabase definition once.
- Consequently each starter definition has weight **4**, every other valid candidate weight **1**. There is **no explicit Common/Rare/Epic/Legendary weight table**.
- Distro ownership, selected distro, and DistroExclusive are not checked. The filter is the two chosen run languages, **not necessarily the distro's recommended languages**.
- shop_py_list_append and shop_py_async_def are absent due to the serialized registration issue, despite being implemented. The remaining seven run-only shop definitions are eligible.
- No wave-number gating, guaranteed rarity, or authored Haskell reward pool exists.
- One visit cannot offer the same new-card definition twice; purchasing it blocks its key for rerolls in that visit. Later visits can add further copies. Different upgrade types for the same instance can coexist.
- Selection uses UnityEngine.Random, not the seeded combat RNG.
Before duplicate-offer rejection, per-language pool weights are C **17**, Rust **17**, Python **19**, JavaScript **19**, Java **15**. Example recommended pairs: Arch 34 total weight, Ubuntu/Mint 38, Fedora 32. These count current valid asset references, not the intended missing two Python cards.
### Prices and deck maintenance
| Purchase/action | Bits | Exact result |
|---|---:|---|
| Registered ordinary/starter/exclusive card | 2 | Add a fresh CardInstance to RunDeck |
| IsRunOnly shop card | 3 | Add to RunDeck for this run; not permitted in initial setup |
| CostDown upgrade | 2 | PermanentCostDelta -= 1 if static cost currently positive |
| MagnitudeUp upgrade | 2 | MagnitudeBonus += **2** |
| DrawRider upgrade | 2 | DrawRider += 1, requested after normal resolution |
| MaxCycles stat | 3 | MaxCycles/current Cycles +1; run bonus persists |
| MaxUptime stat | 3 | MaxHP += ceil(current MaxHP×20%); **does not heal current HP** |
| Heal stat | 3 | Heal ceil(MaxHP×30%), capped at MaxHP |
| RAM stat | 3 | RAM +1; rebuilt HandController reflects capacity next wave |
| Remove card | 1 | Remove selected instance; cannot reduce RunDeck below 1 |
| Reroll | 1,2,3,… | Cost rises by 1 each reroll; resets each repository visit |
There is no cap on run stat upgrades. Repeated +20% max-HP upgrades compound (with upward integer rounding). Purchases affect the particular instance; other copies are unchanged.
### Upgrade limits and quirks
Repository candidate rule: UpgradeLevel < 3. Each successful cost/magnitude/rider application increments UpgradeLevel by 1. On an ordinary untouched card this allows three offers, e.g. total +6 magnitude, three draw riders, or mixed changes. CostDown becomes MagnitudeUp if static cost is already zero when generating the offer. Java JIT is not included in that check, so a cost upgrade may be offered for an effectively free Java card.
**do-release-upgrade is different:** CardInstance.Upgrade requires level 0, sets level to 1, then calls cost upgrade (-1) and magnitude upgrade (+1), each of which increments the level. Result is **level 3 if cost reduction succeeds, level 2 otherwise**, not one simple upgrade level. It cannot subsequently be used on that card again. Fedora's combat growth changes magnitude without incrementing level.
PermanentCostDelta, MagnitudeBonus, DrawRider, and UpgradeLevel are not cleared by ResetCombatState. Therefore “this combat” hand upgrades and Fedora growth persist across waves for existing RunDeck instances. Generated/copied temporary instances disappear at wave reconstruction; upgrading those does not add them to RunDeck.
The BuyOffer path does not recheck CanReceiveRepositoryUpgrade. If several pre-generated upgrade offers target the same nearly-capped instance, buying them may push it above level 3. This is a source-confirmed missing guard, with the multi-offer scenario not runtime-tested here.
Source anchors: RunManager.cs:310–424,470–525; CombatTuning.cs:24–52; CardInstance.cs:29–89,143; CardEffects.cs UpgradeHandCardsEffect; CombatManager.ResolveCardRiders (1807).
## 9. Combat Formulas and Turn Structure
### Exact normal phase order
1. **Run boot:** seed RandomRoll; initialize player using base+Kernel-package+run stats, version state and package JS flat bonus. Reset run-scoped counters/delayed effects.
2. **Wave start:** preserve/clamp HP on later waves; reset Shield, statuses, incoming-halving charges; apply version/package state; reset wave/card counters and Arch saves. Rebuild/shuffle deck from RunDeck; restore exhausted permanent cards, discard transient generated cards; clear InterpreterQueue. Spawn enemies, RAM pressure, intents. Request min(5,RAM) opening cards, then wave-start packages.
3. **Allocate:** revive pending zombies; unlock locked hand cards; set Cycles=MaxCycles; reset turn counters/Java turn discount/first-shield flag; increment wave turn number; turn-start packages; consume next-turn Cycle bonus; tick player start-of-turn statuses; check loss; Ubuntu peek; draw 1 except the first Allocate after opening draw.
4. **Execute:** player selects/plays cards. Invalid cards/cost/target reject before payment. Accepted card leaves hand, pays current cost, increments play/btw/JIT/telemetry counters, snapshots targets; Fedora crash/bonus; resolve Native or enqueue deferred card; post-play packages and empty-hand refill.
5. **Interpret:** dequeue FIFO; consume a repeat charge if present; execute effect list once/twice with target validation each repeat; rider once, discard once, resolved event once. Check termination during processing.
6. **EnemyProcess:** snapshot actor order (race-pair randomization); each living actor ticks start statuses, telegraphs, executes intent, performs split if any, increments TurnsAlive. Pick next intents after all actors; reset zombie lethal markers.
7. **GarbageCollection:** tick player end statuses, process delayed effects, check win/loss, reset Arch btw if applicable. **No ordinary hand discard, Shield decay, or temporary-cost reset.**
8. Next Allocate, unless combat ended/paused. Permanent enemy exit grants Bits; orphan/death visuals/spawns must finish before wave clearance. WaveCleared advances RunManager's wave counter and opens repository. Continue starts that next wave and cools Java JIT by 1.
Death visuals have completion acknowledgment and a 2400 ms fallback, with additional spawn beats. They are not reward generation. Reduced motion skips ordinary pacing waits but retains shorter death/spawn beats. Existing phase/death coroutine interaction needs care when adding callbacks; do not use UI animation timing to count Gentoo rounds.
### Damage pipeline order
For normal DealDamageEffect:
1. Form base quantity, including card-specific conditions/growth.
2. Add **F+M** to each range endpoint; roll inclusive integer range if needed.
3. Rust special overflow can substitute int.MaxValue.
4. DamagePipeline clamps request amount to at least 0.
5. If ApplySourceModifiers: add JS flat package damage for JavaScript; add btw×per-stack for C/Rust.
6. Unless Mint or int.MaxValue: **RoundToInt(amount × DamageMultiplierPercent/100 × CurrentCardDamageMultiplierPercent/100)**.
7. If crit permitted, positive, not int.MaxValue, and not Mint: C 50%, all others 25%; critical amount **ceil(amount×1.5)**.
8. ResistanceResolver: masked Rootkit with another living enemy takes **max(1,ceil(amount×0.10))** for positive damage. True damage does not bypass this.
9. Unless TrueDamage, Shield absorbs min(Shield,amount). Remaining HP damage is min(currentHP,remaining). Clamp HP to 0.
10. Apply Arch lethal recovery.
11. Raise DamageDealt; synchronous package Timeshift/zombie listeners can alter the state.
12. If HP still <=0 and not already marked defeated, mark defeated and emit CombatantDefeated.
No general min-1 floor exists except positive masked-Rootkit reduction. Zero attacks may become positive through flat additions. No elemental weakness/resistance table is active despite EnemyDefinition fields/TODOs.
**DamageResult semantics:** IncomingAmount is damage after source modifiers/resistance; FinalAmount is Shield damage + actual HP lost, clipped by available capacity. AbsorbedAmount is **unused excess/overkill**, not Shield absorbed. Consumers must use ShieldDamage for shield absorption. Arch recovery and package restore happen after the HP-loss amount is calculated.
### Flat/multiplicative examples
- Arch V1 plays malloc first: btw becomes 1; raw 12+1=13; ordinary hit 13, critical ceil(19.5)=20. Mean incoming damage before defenses = 0.5×13+0.5×20 = **16.5**, excluding recoil/kill aftermath.
- Arch V3 at b=4 plays makepkg as the fourth card: base 7+4×4=23; pipeline +4×2=8; **31**, critical **47**, before package multipliers.
- Fedora V2 eligible fn main, no other bonuses: RoundToInt(6×1.75)=**10**, critical **15** if it does not crash. Crash probability depends on prior bonus history, not a constant long-run 5%.
- Mint V2 Update Manager: immediate **5+2+2=9** per target, later stored repeat **5+2=7** per target, no crit. A magnitude upgrade of +2 makes these **13** and **9**, respectively.
- A non-Mint JS card with raw 8 and Cinnamon off-distro +2: 10 before multipliers, critical 15. A failed typeof with that package starts at 0 then becomes 2 and can crit.
### Spill, recoil, and defense
C/Java compute overkill as max(0, IncomingAmount − pre-hit HP − pre-hit Shield), omitting Shield for true damage. Remaining damage goes through living enemies in list order, without another source bonus/crit but **with each target's resistance again**. It is not an AoE card or freely distributed damage. Rust uses the same excess amount as a Shield grant, subject to Mint's card gate and first-Shield package bonus.
Shield persists until consumed/wave reset. There is no cap; ordinary ShieldEffect adds F+M and may receive the first-Shield bonus. UnattendedUpgrades ticks add Shield directly, bypassing GrantPlayerShield's first-Shield bonus. Arch's save also adds Shield directly. SELinux halves qualifying incoming attacks **rounded up**, consumes one charge per qualifying attack (even zero damage), and does not handle StatusAttack/DOT.
Healing: no generic implemented heal card. Repository Heal, Timeshift snapshot, package threshold restore, and Arch recovery are separate mutations. Maximum HP normally comes from base, Kernel package, and purchased run bonuses. No end-wave full heal exists.
### Costs, cards, and draw economy
Static card cost = max(0, base+PermanentCostDelta+TemporaryCostDelta). Subtract Java global JIT and turn discount for Java, then package cost rules; clamp to zero; then eligible Fedora discount -1 and clamp again. No upper Cycle cap on effect grants; MaxCycles is the refresh target, not a hard current-resource ceiling. Excess unspent Cycles disappear at next refresh.
Opening draw requests min(5,RAM) **cards**, but each Java card occupies 2 RAM. HandController rejects cards that do not fit, so fewer than 5 can be held. DrawEffect requests at most RemainingRam cards; rejected Java cards are returned to draw pile **top** (AddToDrawPile appends, Draw takes last), not discarded. Other sequenced draws can request more than available room, then return rejected cards. No minimum refill: MinimumHandFloor=0.
Played cards are normally discarded after resolution; discard reshuffles when the draw pile is empty. Cards currently resolving/queued are not yet in discard. Exhaust lasts the current wave; RunDeck reconstructs every wave. No automatic discard of the remaining hand at turn end. Corruption lasts until Wiki/cleanup/wave reset; lock expires at Allocate or costs 1 Cycle to manually remove. Token cards clog hand until cleanup/wave reset.
### Status database (all seven registered types)
| Status | Merge rule | Timing / exact effect | Availability/limitations |
|---|---|---|---|
| MemoryLeak | Intensity: add stacks; duration max(old,new), -1 permanent | Start: deal stacks ordinary, noncrit C damage, through DamagePipeline | Enemy leak applies 1 stack, duration 3, skipNextTick=true. Original source retained/updated; source modifiers still enabled. |
| Segfault | Unique: existing stacks/duration not changed | Start: lose 1 current Cycle, min 0 | Enemy segfault death applies duration -1 and immediately corrupts a hand card; C recoil corrupts but does not apply this status. |
| RaceCondition | Refresh: max stacks, replace duration | No tick; DealDamageEffect shuffles multi-target order | No current card/enemy applies this status. Race-pair enemy mechanic is separate. With no matching tick, duration does not decay naturally. |
| Deprecated | Duration: max stacks, add durations | Start: Shield -1, min 0 | Registered, no current content applier found. |
| DependencyError | Unique | No tick/effect | Off-support cost connection TODO; no current applier. |
| Deadlock | Duration | No tick/effect | Goroutine freezing TODO; no current applier. |
| UnattendedUpgrades | Duration: max stacks, add durations | End: directly add stacks Shield | Card applies duration 2 and skips current end tick. Reapplication extends duration, not additive per-tick strength. |
Every applied status has at least 1 stack; durations min 1 except -1 infinite. SkipNextTick is OR-merged, and skips both effect and duration decay. **A Memory Leak enemy applying every exchange repeatedly re-arms skipNextTick before each subsequent player tick, delaying DOT until applications stop.** This follows directly from phase order and Merge, and is materially different from “takes damage each turn.” Repeated unattended-upgrades also postpones recurring ticks while still granting its immediate Shield. Status types with TickTiming.None never naturally decrement through the normal Start/End tick calls.
Sources: DamagePipeline.cs:78–211; CardEffects.cs:30–167,475; CombatManager.cs:219,384,737,801,845,876,927,2572,2617; StatusEffectController.cs:14–209; DeckController.cs:44,74,155; HandController.cs:26–70.
## 10. Execution Scheduler
| Track | Entry and cost | Resolution | Snapshot / persistence | Limits |
|---|---|---|---|---|
| Native | Paid/removed during PlayCard | Immediately in Execute via ExecuteCardEffects | Targets captured at play; source state live | No queue. Multiple effects sequential. |
| InterpreterQueue / FIFO | Paid now; MarkQueued increments instance count; enqueue | Interpret after player ends turn, before enemies | Target references snapshot; dead single target falls back to first living. AoE reads living enemies at resolution. F/M/current stats read at resolution, **no amount/multiplier snapshot**. Queue cleared on new wave. | No explicit queue count cap; hand/cost/draw indirectly constrain. |
| LazyStack / LIFO | Paid now; pushed, view inserts at index 0 | **No combat evaluator calls it.** ForceEvaluate/TryPop only raise resolving/resolved events, no effects/discard/rider handling | No multiplier/amount snapshot; Count and Card list exist. No Clear method/reset integration. | No cap or Haskell-only count. Not functional playable content. |
| Goroutines | Not implemented | No track enum, runtime container, ticks, cards, or execution | UI placeholder is not authoritative gameplay | Not implemented |
InterpreterQueue.Resolve itself is also an event-only scaffold; the working route is CombatManager.InterpretQueueSequenced using TryDequeue + ExecuteCardEffects. Do not call Resolve expecting it to apply cards. NativeTrack.Enqueue is an event wrapper, not the normal native execution path.
zip consumes a charge **when each card is dequeued**, then performs its whole effect list twice. It does not replay CardPlayed, re-pay costs, increment QueuePlayCount, or run post-play package triggers twice. Riders/discard run once afterward. If a repeated zip resolves, it adds repeat charges on both evaluations, but each dequeued card still executes at most twice. No current handler enqueues a new card automatically during Interpret; generated/drawn cards enter hand.
### Worked FIFO timeline
Assume sufficient cycles and no combat termination. Play zip, print(), for loop, then a native console.log():
1. Queue contains [zip, print, for loop]; console.log deals damage immediately.
2. End turn → zip dequeues once; adds 2 repeat charges.
3. print dequeues, consumes one charge, deals 3 twice (each hit may crit), then discards once.
4. for loop dequeues, consumes the last charge, deals 2 to every living enemy twice, then discards once.
5. Enemies act, then status/delayed end effects.
If print kills its target, the second queued evaluation can retarget because targets are resolved again per repeat. This differs from Promise.all's three effects using one CombatContext. Killing the last permanent enemy stops further progression only after relevant death/spawn/revival state is resolved.
Update Manager/Timeshift use a **separate delayed-effect list**, not LazyStack. New entries start with 2 GarbageCollections remaining. The current exchange's GarbageCollection decrements to 1; next exchange's decrements to 0 and fires. List iterates backward (newest due entry first), not FIFO. Update stores a number; Timeshift stores HP. Entries are cleared at run boot, **not at ordinary wave start**, so unresolved entries can affect the next wave. Queue repeat charges, rawhide charges, and next-turn Cycle bonuses similarly are not wave-cleared.
Native/queue effects can stop on defeat/completion; there is no authored cancel/interrupt card. Corruption/locks are checked before play, not a separate cancellation rule for pending operations. A future lazy implementation must explicitly handle disposal, target death, repeat semantics, and wave boundaries.
Sources: Combat/InterpreterQueue.cs; LazyStack.cs; NativeTrack.cs; CombatManager.cs:328,485,522,699,737,845,1843,2617; Core/ResolutionTrack.cs.
## 11. Enemy and Wave Scaling
### Complete active enemy database
HP below is the archetype's inclusive base range; initial-wave spawns add wave−1. No enemy has intrinsic crit; intent DamageRequests use canCrit=false. All current intent damage languages are C, but enemy hits do **not** use card-level C recoil/spill.
| ID / name | Base HP | Intent / damage | Special behavior | Availability |
|---|---:|---|---|---|
| zombie_process / Zombie Process | 6–10 | Attack 2–3 | One pending revival to ceil(maxHP/2), unless reaped; final death leaves one Orphan | Wave 1+ |
| memory_leak / Memory Leak | 4–7 | StatusAttack 1–2 initially; +1 to range per survived action, capped 4–5; adds 1 MemoryLeak, duration 3, skip next tick | Growth is TurnsAlive, not wave-based; DOT timing caveat above | Wave 1+ |
| fork_bomb / Fork Bomb | 3–5 | Attack 1–2 | After its action, spawn a copy at ceil(parent MaxHP/2), min 1, while living Fork Bomb count<5. Final death leaves Orphan | Wave 2+ |
| firewalld / firewalld | 5–8 | Random pool: 2 entries Shield 3–5, 1 entry Attack 0–1 | Shield self and immediate adjacent living entries. 2/3 defend, 1/3 poke | Wave 2+ |
| daemon / Daemon | 10–14 | Attack 6–8 | Elite; hides intent until a positive actual hit (Shield damage counts), then remains revealed | Wave 5+, elite pool and ordinary late pool |
| cron_job / Cron Job | 6–9 | Two countdown actions, then Attack 10–12; repeat | Countdown 2→1→0→attack→2. Countdown special logs TODO but decrement still works | Wave 4+ pool |
| orphan_process / Orphan Process | 2–4 | Attack 1–2 | No further death spawn/revival | Death-spawned by zombie/fork; no wave HP bonus |
| segfault / Segfault | 2–4 | Special countdown 2 actions then self-destruct | On permanent death apply Segfault -1-cycle status indefinitely and corrupt random hand card. Authored 2–3 attack is normally unreachable because second countdown kills it | Wave 3+ |
| race_condition / Race Condition | 5–7 each | Attack 2–3; +2 while partner lives; survivor gets +1 enrage | Spawns linked pair; randomizes their action order. Pair bonus disappears on partner death; survivor's range becomes 3–4 rather than linked 4–5 | Wave 4+ with room for two; otherwise replaced by Segfault |
| rootkit / Rootkit | 14–18 | Attack 1–2 | While any other living enemy remains, incoming positive damage becomes ceil(10%), min 1; all damage types including true | Wave 5+; normal structural path limits to one |
| kernel_panic / Kernel Panic | 25–30 | Attack 5–7 | Elite; -2 player RAM per living instance, capacity floor 1. Existing over-cap hand is not forcibly discarded | Elite pool wave 5+ |
| telemetry_collector / Telemetry Collector | 20–25 | Attack 2–3 + telemetry stacks | Elite; every accepted player play adds 1 stack/current intent damage, including crashed plays; no cap | Elite pool wave 5+ |
| drm_guardian / DRM Guardian | 25–30 | Special hit 4–6 plus lock random nonbroken/unlocked hand card | Elite; lock removed next Allocate or manual 1-Cycle unlock. Special attack passes SELinux mitigation | Elite pool wave 5+ |
Zombie rules: on lethal HP damage compute HP immediately before hit; if HasRevived, LethalHitThisTurn, or pre-hit HP <= ceil(MaxHP×30%), mark Reaped permanently. Otherwise mark pending revival at 0 HP; revive next Allocate. DamagePipeline may subsequently mark IsDefeated while pending; the current CheckWin explicitly excludes pending revival from completion, and removal skips it. **No Bits for temporary zero HP.** Permanent zombie/fork and each orphan each grant a Bit.
Fork copies use parent MaxHP/2 and do not receive an additional wave bonus; splitting can recur and original parent is not halved. The five-Fork cap is not a total-enemy cap. Enemy actor list is snapshotted, so new split copies do not act in that same pass. Death spawns are queued and their intentions materialize before normal continuation.
### Wave generator
Initial count = clamp(2 + floor((wave−1)/2), 2, 5):
| Waves | Initial slots |
|---|---:|
| 1–2 | 2 |
| 3–4 | 3 |
| 5–6 | 4 |
| 7 onward | 5 |
Initial HP = uniform integer archetype base + max(0,wave−1). At wave 5 one elite is guaranteed; later waves have 35% chance for the dedicated elite slot. Elite choice uniform among Daemon, Kernel Panic, Telemetry Collector, DRM Guardian. The chance roll is consumed even for guaranteed wave 5. When dedicated elite is present it occupies slot 0.
Ordinary pool:
- W1: zombie, memory leak.
- W2: add fork bomb, firewalld.
- W3: add segfault.
- W4: add cron job, race condition.
- W5+: zombie, memory leak, fork bomb, firewalld, daemon, cron job, segfault, race condition, rootkit.
Overrides when slots are processed: slot 0 is Rootkit on odd wave>=5, otherwise firewalld on even waves or zombie on odd waves; **dedicated elite skips this override by occupying slot 0**. Slot 1 on wave>=2 is race condition if divisible by 4, else fork bomb if divisible by 3, otherwise memory leak. Other slots roll the pool. Race consumes two slots when possible; lone race becomes Segfault. A second Rootkit is replaced with firewalld or fork/memory fallback. Since Daemon is also in the late ordinary pool, the “single elite” comment does not guarantee only one elite-class actor.
No boss-wave system, authored encounter assets, finite winning wave, or global enemy attack-by-wave formula is connected. CombatTuning.BaseEnemyAttack/EnemyAttackGrowthEveryWaves/EnemySlotAttackVariance/BaseEnemyUptimeMin/Max are legacy scaffold constants, not the active archetype tuning.
### Wave duration and rewards: calculations, not simulation
A universal “ordinary wave lasts N rounds” cannot be established without a policy, loadout, draw order, packages, RNG, and version. No such measured duration data was found. Useful exact bounds/examples:
- Wave 1 guarantees at least one zombie. Second slot can be zombie or memory leak, not always leak.
- One zombie + one leak has 10–17 initial HP; add 2–4 HP for the orphan = **12–21** effective HP if zombie is reaped without reviving; add 3–5 revival HP if it revives. Two zombies plus orphans require **16–28** HP before optional 6–10 total revival HP. Shield and damage overlap are excluded.
- A hypothetical 8-HP zombie has reap threshold 3. Hits 6 then 2 can finish it in one Execute without revival (then kill its orphan); a single lethal hit from 8 instead schedules revival to 4 next Allocate. More burst does not automatically shorten that lifecycle.
- C malloc's 12 base damage can defeat typical early enemies and spill, but its zombie target can revive. Python for loop supplies only 2 per enemy per evaluation. Thus the same initial HP total is not enough to predict round count.
- Wave 1 permanent kills normally award **3 Bits** (zombie+leak+orphan) or **4 Bits** (two zombies+two orphans), not a flat “wave 1” payout. Reviving a zombie adds no extra Bit. Wave clear adds **10 Bandwidth**, no Entropy.
- Clearing wave w accrues Bandwidth **10+5(w−1)** and Entropy **3 if w>=5, else 0**. Through n cleared waves: Bandwidth **5n(n+3)/2**; Entropy **3×max(0,n−4)**. Through wave 5: 100 Bandwidth, 3 Entropy. Bits are per permanent kill and vary with spawns; reset at run end.
- Meta rewards settle once on run end/scene disable through CombatSceneController.SettleRunRewardsIfNeeded, not directly into the wallet after every wave. Best wave records current/reached wave, which already advanced after clearance.
Sources: EnemyArchetype.cs:74–249; EnemyInstance.cs:66–243; CombatManager.cs:1533,1587,1924,2240–2649; RunManager.cs:253–289; UI/CombatSceneController.cs:1043.
## 12. Equipment and Package Database
### Common equipment/level rules
41 definitions are correctly referenced by Assets/Data/Packages/PackageDatabase.asset. Slots: Kernel (enum 0), Runtime (1), Daemon (2). Equip **at most one per slot, three total**, with matching slot and owned package ID. The same owned type can be assigned to several distros' saved loadouts; no “busy on another distro” restriction. Existing slot must be cleared before replacing with a different item. UI only exposes owned distro contexts, though PackageLoadout itself checks package ownership rather than distro ownership.
Packages are unique per ID in collection. Pulling an owned package automatically grants Cache rather than a second copy or level; current level is unchanged. Runtime PackageInstance captures its meta level for the run. On-distro means exact IntendedDistroId match; every other distro gets off-distro effect, not a disabled item.
All packages have **L=0..5**. For MaxUptime, per-level increase is max(1,ceil(baseAmount×0.5)); TurnStartGenerateLanguageCard (AUR) has zero increase; every other non-None kind gets Amount+1/level. Thresholds/booleans do not scale. Several consumers ignore Amount, so paid levels can give no benefit.
| Next level | Cache cost | Bandwidth cost | Cumulative Cache / Bandwidth |
|---|---:|---:|---|
| L1 | 10 | 20 | 10 / 20 |
| L2 | 25 | 50 | 35 / 70 |
| L3 | 50 | 100 | 85 / 170 |
| L4 | 90 | 180 | 175 / 350 |
| L5 | 150 | 300 | 325 / 650 |
Costs identical for all rarities; RarityCostMultiplier=1 and rarity argument does not affect it. Insufficient either currency rejects purchase. Purge requires unequipped on **all** distros and refunds 100% invested Cache/Bandwidth plus rarity base Cache.
| Stars | Definitions | Duplicate / base purge Cache |
|---|---:|---:|
| 1 | 12 | 5 |
| 2 | 12 | 12 |
| 3 | 9 | 30 |
| 4 | 4 | 80 |
| 5 | 4 | 200 |
Normal implemented pulls only generate stars 3,4,5; no current earning route for the 24 one-/two-star definitions was found beyond pre-existing/legacy/test inventory. They are included below because definitions and effects exist.
### Kernel packages
| ID / name | Stars | Intended distro | L0 implemented effect | Level formula / L5 | Restrictions / discrepancies |
|---|---:|---|---|---|---|
| pkg_coreutils
coreutils | 1 | None | Max HP +2 | 2+L = 7 at L5 | No distro condition. |
| pkg_glibc
glibc | 1 | None | Max HP +2 | 2+L = 7 | Identical mechanics to coreutils. |
| pkg_openssl
openssl | 1 | None | Max HP +1 | 1+L = 6 | Advertised +1 wave-start Shield is NOT encoded or implemented. |
| pkg_zlib
zlib | 1 | None | Wave-start Shield +3 | 3+L = 8 | After opening draw; GrantPlayerShield path. |
| pkg_ext4
ext4 | 2 | None | Max HP +4 | 4+2L = 14 | No distro condition. |
| pkg_htop
htop | 2 | None | Max HP +5 | 5+3L = 20 | No distro condition; same rarity/slot as weaker ext4. |
| pkg_ntp
ntp | 2 | None | Max HP +3 | 3+2L = 13 | Advertised +2 Shield on first turn of each wave is NOT encoded. |
| pkg_swapfile
swapfile | 2 | None | Max RAM +1 | 1+L = 6 | Hand capacity, not extra draw. |
| pkg_lvm
lvm | 3 | None | Max HP +8 | 8+4L = 28 | No distro condition. |
| pkg_systemd_core
systemd-core | 3 | None | Max Cycles +1 | 1+L = 6 | Mechanically identical to zram. |
| pkg_zram
zram | 3 | None | Max Cycles +1 | 1+L = 6 | Adds to each turn's refresh target. |
| pkg_mint_timeshift
Timeshift | 5 | mint | Once/wave, on HP damage falling below threshold, restore HP to ceil(MaxHP×threshold): 30% off-distro; 50% on Mint and cleanse all harmful statuses. | Threshold unchanged at every level; Amount 0→5 is unused | Can rescue lethal damage before defeat check. No trigger from shield-only damage. Does not undo card corruption. Separate from Timeshift card. |
### Runtime packages
| ID / name | Stars | Intended distro | L0 implemented effect | Level formula / L5 | Restrictions / discrepancies |
|---|---:|---|---|---|---|
| pkg_curl
curl | 1 | None | Request 1 extra card at each wave start | 1+L = 6 | After normal opening hand; may have no RAM room. |
| pkg_less
less | 1 | None | Not implemented: effect Kind=None | No effect at all levels | Description promises first drawn card free once per wave. |
| pkg_nano
nano | 1 | None | First accepted card of wave costs 1 less | 1+L = 6 reduction | Any language; min cost 0. |
| pkg_wget
wget | 1 | None | Request 1 extra card at first wave start only | 1+L = 6 | Only first wave, after opening hand; not a recurring per-turn bonus. |
| pkg_git
git | 2 | None | First accepted card of wave costs 1 less | 1+L = 6 reduction | Same effect as nano despite higher rarity. |
| pkg_make
make | 2 | None | After first successful Native play, add F+=3; subsequent effects (not just damage) benefit until wave reset | 3+L = 8 added F | Trigger flag only boot-reset: actually once in first wave/run, not each wave. Already-resolved first Native card does NOT receive this increase. |
| pkg_rsync
rsync | 2 | None | Request 1 extra card at each wave start | 1+L = 6 | Same effect as curl despite higher rarity. |
| pkg_vim
vim | 2 | None | First accepted card of each turn costs 1 less | 1+L = 6 reduction | Threshold remains first 1 card. |
| pkg_apt_fast
apt-fast | 3 | None | First Allocate each wave: +1 current Cycle | 1+L = 6 | Above normal refreshed MaxCycles; next turn resets. |
| pkg_ccache
ccache | 3 | None | Every 4th accepted card of wave costs 0 | No improvement: threshold fixed 4; Amount unused | Counter includes all languages and crashed plays. |
| pkg_docker
docker | 3 | None | Generate one Common card of one of selected run languages at 0 cost each wave start | Always one card; scaled Amount unused | After opening hand; RAM can block. 'Basic' is Common non-token/non-run-only, not strictly starter or selected distro. |
| pkg_aur
AUR | 4 | arch | Start each turn: one random C/Rust eligible card. Off-distro Common only, no discount; on Arch any rarity, cost −1 | No scaling (amount-per-level=0) | All levels identical. Excludes run-only/token but not exclusives. Only Common/Rare actually exist. Discount persists in that generated instance across the wave. |
| pkg_mint_cinnamon
Cinnamon | 4 | mint | JS flat damage +2 off-distro / +3 Mint | 2+L / 3+L = 7 / 8 | Added once per JS DamageRequest before multipliers/crit, even nominal typeof failure. Works on Mint before V4. |
| pkg_ubuntu_snap_store
Snap Store | 4 | ubuntu | First 1 card/turn off-distro, first 2 on Ubuntu: cost −1 | Reduction 1+L = 6; count stays 1/2 | Shared ordinary cost-rule path. |
| pkg_fedora_dnf
DNF | 5 | fedora | After first successful play each turn F+=2, accumulating within wave; on Fedora normal eligible bonus limit becomes 2 | Added F=2+L = 7; limit remains 2 | F boosts draw/shield/status as well as damage. First Native play resolves before this grant; first queued play resolves after it. Crash skips the hook. Resets F each wave. |
### Daemon packages
| ID / name | Stars | Intended distro | L0 implemented effect | Level formula / L5 | Restrictions / discrepancies |
|---|---:|---|---|---|---|
| pkg_cron
cron | 1 | None | Every 3rd Allocate in wave: Shield +2 | 2+L = 7 | Turn count resets wave; package Shield permitted on Mint. |
| pkg_dbus
dbus | 1 | None | After first queued card play: Shield +2 | 2+L = 7 | Flag only boot-reset: once/run rather than advertised once/wave. |
| pkg_syslog
syslog | 1 | None | Per card exhausted: Shield +1 | 1+L = 6 | Triggers from explicit cleanup handlers, not generic end-wave disappearance. |
| pkg_udev
udev | 1 | None | Every 4th Allocate in wave: request 1 draw | 1+L = 6 | RAM-capped; may overlap other sequenced draws. |
| pkg_firewalld
firewalld | 2 | None | Not implemented: effect Kind=None | No effect at all levels | Description promises reducing first debuff by 1 stack each wave. |
| pkg_logrotate
logrotate | 2 | None | Per card exhausted: Shield +1 | 1+L = 6 | Same as syslog despite higher rarity. |
| pkg_polkit
polkit | 2 | None | First positive GrantPlayerShield each turn gets +2 | 2+L = 7 | Does not intercept direct Shield additions/status ticks. Initial wave-start grant can also consume flag before first Allocate resets it. |
| pkg_sshd
sshd | 2 | None | Every 3rd Allocate in wave: Shield +3 | 3+L = 8 | Same trigger as cron, higher base. |
| pkg_auditd
auditd | 3 | None | At each Allocate, if no harmful statuses: Shield +3 | 3+L = 8 | Checked before status tick/expiration; harmful status due to expire still prevents this grant. |
| pkg_nginx
nginx | 3 | None | Every 3rd accepted card of wave costs 0 | No improvement: threshold fixed 3; Amount unused | Different slot from ccache; free-cost conditions can combine. |
| pkg_systemd_timer
systemd-timer | 3 | None | After every 3rd successful card play in wave: current Cycles +1 | 1+L = 6 | Post-play hook; crashes count toward index but skip the grant. |
| pkg_fedora_selinux
SELinux | 4 | fedora | First positive GrantPlayerShield per turn: +3 off-distro / +5 Fedora | 3+L / 5+L = 8 / 10 | Same hook as polkit; does not halve attacks (that is the SELinux card). |
| pkg_systemd
systemd | 5 | arch | First C card each turn: current-card damage multiplier 150%; on Arch btw persists throughout wave | 150+L percent = 155% at L5 | Only +1 percentage point/level, not +50% each level. Multiplies with Fedora. Mint ignores multiplier. First successful C marker is updated after resolution; a crash does not consume that marker. |
| pkg_ubuntu_apt
apt | 5 | ubuntu | On exactly the 3rd successful card play of turn: generate one Common selected-language card at 0 cost; on Ubuntu refund 1 Cycle | Always 1 card/1 refund; scaled Amount unused | Not on 6th/9th play. Refund can occur even when hand capacity prevents generation. Costs stay zero for wave. |
### Ordering and stacking
Kernel max-stat bonuses are computed by RunManager before constructing the player. Distro version flags/F are then initialized, package JS flat damage is added, and wave/turn/card triggers occur at their listed times. Cost reductions from different slots are iterated and can combine; JS flat effects are summed. Many trigger queries use HasPackageEffect and return the **first** matching effect rather than summing arbitrary duplicate kinds. Existing slot rules prevent most same-kind duplication, but future packages must not assume generic stacking.
Shield-trigger bonuses apply after a card's F/M calculation. Rust converts fully modified overkill into Shield, then first-Shield bonus can add more. DNF's F is available to later queue resolution and affects multiple sub-effects; systemd is a separate damage multiplier, not F. Mint rejects many card grants but not package grants. These are especially important constraints for Gentoo/Haskell: DNF, zram/systemd-core, swapfile, systemd-timer, auditd, Timeshift, apt, and repeat/draw upgrades can greatly extend setup turns and amplify broad effect scaling.
### Gacha and acquisition economy
Source: Meta/GachaService.cs:12–32,311–370,449–673; Meta/PullResolver.cs:73–128; UI/GamblingSceneController.cs:57–203.
- Standard pull: 1 Commit / ten-pull 10. Beginner: single 1 / ten-pull **8**, maximum **50 actual rewards**. Entropy alternative is **100 per Commit-equivalent**; payment is one selected source rather than a free extra reward.
- Default SaveData gives **10,000 Root Credits** (TestRootCreditsBalance), not earned balance. Exchange is 1 Root Credit→1 Entropy; no further real-money payment implementation was analyzed/found in the grant path. Defaults for Commits/Entropy are otherwise zero. Current user's save balance is deliberately not part of this audit.
- First roll 5-star: base **0.8%**. Consecutive non-five-star counter gives 5-star pull number n=counter+1. n<66: 0.008; n>=66: min(1,0.008+0.07×(n−65)); n>=80: guaranteed. Thus pull 66 is 7.8%, 79 is 98.8%, 80 guaranteed.
- If not five-star, four-star branch has **7% conditional chance**, guaranteed when four-star pity counter>=9. Both higher tiers reset four-star pity; non-five-star advances five-star pity. “Every 10” means at least four-star, not a distro guarantee.
- For a 4-/5-star ordinary reward, 50% distro / 50% package; unavailable distro tier falls back to package. Eligible distro chosen uniformly. Package identity is selected uniformly among registered packages of that star tier with UnityEngine.Random.
- Away from pity/guarantees: 5-star 0.8%; 4-star 0.992×0.07 = **6.944%**; 3-star package **92.256%**. Arch unconditional probability 0.4%; each of the three 4-star distros approximately **1.157333%**. These are per-roll base rates, not long-run rates including pity.
- Beginner pull 20/40 overrides ordinary generation with the saved remaining starter IDs (fallback eligible 4-star distro); those pulls advance five-star pity but reset four-star pity. Pull 50 guarantees a 5-star distro if present (currently Arch) and resets pity.
- Standard grants one selectable 5-star distro **or equipment** choice per 200 pulls, tracked by selectors claimed; current only character choice is Arch.
- Limited banner helper tracks 1/3 standard-pool outcome and next featured guarantee, but the actual GamblingSceneController rejects unsupported banners. Limited/event full pull implementation: **Not implemented**.
- New distro: V1 ownership, appropriate languages unlocked, 0 duplicate Merges. Duplicate: **50 Merges** on that unit; at V5 base×1.5 = **75**; matching focus ID adds **25 after overflow** (50/75/75/100 for ordinary/focused/max/focused-max). No automatic version increase, no duplicate Bandwidth.
- Package duplicate: 30/80/200 Cache for actually pulled 3/4/5 stars; no multiple awards from the reveal. ResolvePull pays/generates/resolves/grants/saves, then returns CompletedGachaPull. Reveal UI does not reroll or transact.
- Save format contains counters/ownership, not full historical roll records. Completed recent results are transient GachaPullContext data; do not assume a permanent per-pull audit trail.
Sources for package mechanics: Data/PackageDefinition.cs:15–50,151–191; Meta/PackageTuning.cs; PackageUpgrader; PackageScrapper; PackageLoadout; CombatManager.cs:1175–1531; RunManager.CalculatePackageStatImpact (194). Each asset path is indexed in section 18.
## 13. Numerical Balance Comparison
### Distro comparison at base version, before equipment
All start with the same 4 chosen exclusive + 8 language-card structure; pair shown is recommended, not mandatory.
| Distro | Stars | HP / RAM / Cycles | Passive / primary offense | Primary defense | Main constraint | Scaling potential |
|---|---:|---|---|---|---|---|
| Arch | 5 | 50 / 6 / 4 | btw +1 per played card to C/Rust; C spill/50% crit | Rust overkill and one lethal save/wave | Lowest base HP, recoil/corruption, card supply | Linear per play inside turn; V5/systemd across wave, uncapped. makepkg compounds same stack twice by separate additions |
| Ubuntu | 4 | 60 / 5 / 4 | Apt additional draw, cheap Python/JS | unattended-upgrades and flexible hand supply | RAM and queued timing; Snap pollution | Run-persistent hand upgrades, V4 accumulating temporary discounts; no innate damage counter |
| Fedora | 4 | 55 / 6 / 3 | First eligible native attack ×1.5 and −1 cost | Rust excess Shield, SELinux charges | Crash risk and heavy Java RAM/startup | V3 per-instance +1/+2 magnitude across run, Java JIT; no hard growth cap |
| Mint | 4 | 65 / 5 / 3 | Maximum random outcomes, no crit/mult | Highest base HP; own Cinnamon/Timeshift | Low resources; nonexclusive defense blocked | V2 flat +2 and strong JS maximum hits; no increasing passive counter; generic package/run scaling still applies |
Higher distro rarity does not imply higher HP or Cycle count: 5-star Arch has the **lowest HP** and ties Ubuntu's 4 Cycles. All four share the same version-cost schedule and 5 playable exclusives.
### Authored card economy
Means below count distinct authored definitions, not probability of drawing them. This includes the 2 unregistered Python shop definitions. Free counts exclude the unplayable token. “Draw” includes conditional draw; “AoE” means explicit all-enemy damage, not spill. “Intrinsic scaling” means an effect amount tied to hand/stack/requeue state, excluding ordinary conditions, upgrades and universal Java JIT.
| Language | Definitions | Sum printed costs | Mean cost (all definitions) | Mean excluding token | Free playable | Draw definitions | AoE | Intrinsic scaling | Deferred cards |
|---|---:|---:|---:|---:|---:|---:|---:|---:|---:|
| C | 8 | 11 | 1.3750 | 1.3750 | 1 | 1 | 0 | 2 | 0 |
| Rust | 8 | 7 | 0.8750 | 0.8750 | 2 | 2 | 0 | 0 | 0 |
| Python | 13 | 9 | 0.6923 | 0.7500 | 3 | 4 | 2 | 1 | 12 |
| JavaScript | 10 | 9 | 0.9000 | 0.9000 | 3 | 0 | 0 | 0 | 0 |
| Java | 6 | 9 | 1.5000 | 1.5000 | 1 | 1 | 0 | 0 | 0 |
Totals: **45** definitions, sum costs **45**, mean **1.0000** including token / **1.0227** over 44 playable definitions; **10** free playable cards; **8** draw definitions (2 conditional); **2** explicit AoEs; **3** intrinsic scaling definitions; **12** deferred cards. Of those deferred cards, only 10 are correctly registered due to list.append/async references.
Draw sources: C free() on recoil; Rust unwrap + Wiki repair branch; Python import antigravity, ask ubuntu, cinnamon, async def; Java rawhide. Explicit AoEs: for loop, update manager. Intrinsic scaling: makepkg, sizeof, list.append. do-release-upgrade is a fourth **upgrade-engine** card, not intrinsic self-scaling; all six Java definitions benefit from global JIT. The other seven languages have **0 authored cards**, so means are **not applicable**, not 0-cycle power benchmarks.
Card rarities: **28 Common**, **17 Rare**, **0 Epic**, **0 Legendary**. Excluding token: 27 Common/17 Rare. Rarity is metadata/availability, not a universal multiplier or upgrade cap.
### Comparable damage and Shield averages
F=M=0; no distro/package bonuses, crit, resistance, or overkill. Averages exclude nondamaging cards rather than giving them artificial 0 damage. No single pooled language DPS average is meaningful.
| Language | Comparable fixed single-target quantities included | Mean / denominator | Separately treated effects |
|---|---|---:|---|
| C | malloc 12, printf 7, pacman 14, free 18, kernel_exploit 36 | 87/5 = **17.4** | Mix spans costs 0–3 and one true-damage card; not damage-per-cycle. pointer 9/15 conditional; makepkg stack-based; sizeof hand-based excluded. |
| Rust | fn main 6, unwrap 9 | 15/2 = **7.5** | Wiki 6 conditional, autoremove 7 conditional excluded. Overkill defense not counted as damage. |
| Python | print 3 | 3/1 = **3.0** | list.append 4 initially then growing; AoE initial quantities 2 and 5 average **3.5 per target over 2 cards**, delayed repeat separate. |
| JavaScript | apt --fix-broken 8; first hit of nemo 6 | 14/2 = **7.0** | Nemo optional second hit excluded. Uniform cards console/fetch/math/snap have means 6/9/11/10: **9.0 over those 4**. typeof expected raw 6; Promise full three hits expected raw 21 if target survives. |
| Java | main 7, println 5, object 3, first-to-package 7, dnf update 9 | 31/5 = **6.2** | Cost falls with JIT; first-to-package doubles F/M when nonzero. |
Explicit unconditional initial Shield: Rust borrow **5** (1 definition); Python cinnamon **3** and unattended **4**, mean **3.5** (2 definitions). Other languages: **no unconditional explicit Shield card**. Minimal install grants 3 per exhausted card, 0/3/6; Rust excess Shield depends on target capacity; neither is averaged into guaranteed Shield. Unattended baseline total can be 12 over 3 grants if no wave end/reapplication interference. SELinux is damage mitigation, not Shield.
Illustrative expected damage including ordinary 25% crit (ceil rounding), no Mint/other bonuses: console.log **6.821429**, fetch **10.194444**, Math.random **12.434211**, snap install **11.305556**, typeof **6.75**. Promise.all full three surviving-target hits: **23.785714**. These are enumerations of finite uniform ranges, not measured encounter damage; early target death and overkill change useful output. For fixed odd values the expectation is not exactly base×1.125 due to ceil.
### Power benchmarks for future design
| Benchmark | Existing source-supported examples / limits |
|---|---|
| 0-cycle damage | print 3 delayed; console.log 3–9 native; printf 7 native + C risk; nemo 6 or 12 with Shield; snap 6–14 plus token drawback |
| 1-cycle damage | fn main 6 + overkill defense; unwrap 9 + draw 1; malloc 12 + C risk; pointer 9/15; fetch 5–13; pacman 14 exclusive; Math.random 2–20 |
| 2-cycle damage | free 18 + recoil draw; Promise 12–30 total across 3 hits; makepkg 7+stack terms (not a flat 2-cycle benchmark) |
| 3-cycle outlier | kernel_exploit 36 true damage, C 50% crit, 50% recoil 8. Java main 7 costs 3 only cold; cost can reach 0. |
| Shield economy | borrow 5 for 0; cinnamon 3+draw1 for 0 delayed; unattended 4 now+4+4 for 1 delayed; minimal install up to6 and refund2 for1 with 2 exhausted cards |
| Draw economy | ask ubuntu 2 for0 Q (3 on Ubuntu V3); import 2 for1 Q; rawhide 2 for0 Native but 2 RAM; unwrap damage9+draw1 for1 |
| AoE | for loop 2/target for1 Q; update manager5/target now+5 later for1 Q without F/M, with double-bonus wrapper and next-wave carry caveats |
| Round/play scaling | Arch +1/+2 C/Rust damage per play; Fedora V3 +1/+2 persistent magnitude on first successful eligible play; DNF +2..7 F per first successful play/turn |
| Resource scaling | zram/systemd-core up to +6 MaxCycles; swapfile up to +6 RAM; systemd-timer up to +6 Cycles every third successful play |
| Late-wave output | No fixed maximum: Arch b, Fedora M, Java JIT, DNF F, shop max stats, copies, and repeat charges are uncapped. Report formulas/state, not one invented late-game DPS number. |
Example late-wave formula, not a typical run: Arch V3 at b=10, M=0, no F, makepkg raw 7+6×10=67; on-systemd first C at L0 gives RoundToInt(67×1.5)=100; crit=150. How often that state is reached is not measured.
### Rarity interpretation
Rare cards tend toward unusual payoff (makepkg, repeats, copying, snapshots), but several Common exclusives have stronger immediate economies than Common starters. A 4-star distro can have a more favorable stat than the 5-star. Equipment rarity influences duplicate Cache and effects, **not upgrade price**. Identical low-tier packages and no-op levels mean star count is not a reliable numeric power curve. New content should be compared against working effects, not expected genre conventions.
## 14. Existing Balance Risks
### Confirmed source/asset discrepancies
| Finding | Evidence / consequence |
|---|---|
| Two reward cards unregistered | CardDatabase GUIDs reference Python/JS deck assets in the two relevant slots; list.append and async def cannot normally appear. This reduces the actual Python reward pool. |
| Double bonuses | FirstToPackageEffect, DnfAutoremoveEffect, UpdateManagerEffect pre-add F/M then call DealDamageEffect which adds them again. Upgrade/distro/package effects are stronger than descriptions. |
| Mint defensive restriction absent from passive copy | CombatManager.CanPlayerReceiveCardBuff blocks non-Mint exclusive Shield/beneficial self-status; weakens otherwise attractive Rust/Python pairings. |
| Mint V4 inert distinction | AllowFlatDamageBuffs only written, not read; earlier Mint versions already accept pipeline flat damage. |
| Mint V2 broader than advertised | FlatEffectBonus applies random endpoints, draws and statuses, not just fixed numbers. |
| Ubuntu tie choice absent | DeckController auto-selects topmost cheapest; UI receives a notification, not a decision opportunity. |
| Temporary cost deltas last wave | Ubuntu V4, AUR helper/package, generated zero-cost cards do not clear cost deltas at turn end. |
| Version growth/hand upgrades persist run | Magnitude/PermanentCostDelta survive wave ResetCombatState; “this combat” copy can understate duration. |
| Upgrade level increments 2–3 in one Upgrade() | Set=1 then increment in two sub-methods; affects later repo eligibility. |
| Stale offer cap guard absent | BuyOffer→ApplyCardUpgrade never rechecks level<3. |
| Arch V3 summary stale | Catalog x3 instead of x2; code coefficient x4 instead of x3, plus universal btw bonus. |
| Fedora applies to eligible native attacks, not literal first card | Whitelist/eligibility checks; risk increases per non-crash bonus, not merely per elapsed turn. |
| Rawhide persists and crosses distro boundaries | Charge reset only boot; any owner can use it; non-Fedora version can choose 175% multiplier. |
| Rust overflow probability/value discrepancy | 1/10,000,000 not 0.001%; int.MaxValue actual damage, unsigned-64 max only log text. |
| apt --fix-broken removes all harmful statuses | CleanseHarmful, not one; it does not fix IsBroken hand cards. |
| Wiki scaled draw text wrong | Repair branch requests fixed DrawCards(1), ignoring magnitude shown by formatter. |
| make/dbus “each wave” flags reset only at boot | make buffs later effects in first wave only; dbus triggers once/run. |
| Less/firewalld package inactive | Kind=None; spending levels cannot activate the promised effects. |
| OpenSSL/ntp missing secondary Shield | Single serialized effect is MaxUptime; no ID hook adds promised Shield. |
| No-op package levels | AUR explicitly zero scaling; ccache/nginx/docker/apt/Timeshift consumers ignore scaled Amount. |
| DNF buff is global F, not damage-only | Can scale draw, Shield, upgrade count, status; queued first card benefits while native first card already resolved. |
| Status skip flag postpones repeated DOT | MemoryLeak continuously reapplies skipNextTick; normal loop postpones tick until applications cease. |
| SELinux does not cover all damage | StatusAttack and DOT skip half-charge mitigation. |
| Pending effects cross waves | Delayed list/queue repeat/next-cycle/rawhide flags not cleared by StartWaveSequenced. |
| LazyStack is not a functional evaluator | ForceEvaluate only emits events; no effects, disposal, cap, snapshot, or clear. |
| Language affinity placeholders | DependencyError, Deadlock, C++/TS unlocks, EnemyDefinition language defenses are not connected. |
| “Exclusive” reward leakage | Repository and Common generation do not filter DistroExclusive/ownership. |
| Generic attack growth unused | Active archetypes do not consult legacy attack growth constants, while player stat/upgrades keep scaling. |
| Daemon can bypass single-elite expectation | Present in ordinary W5+ pool as well as dedicated elite slot. |
| DRM lock timing weakens its stated threat | Locks applied after player phase, automatically unlocked at next Allocate, normally before another playable turn. Manual unlock is rarely relevant in ordinary flow. |
| Token end-combat exhaustion is implicit disappearance | No actual exhaust event; reset discards transient token state rather than triggering exhaust packages. |
The earlier wave-completion issue is **not reported as unfixed**: current CheckWin contains a pending-revival guard. Bits are tied to permanent removal, not simply reaching 0 HP or the WaveCleared event.
### Source-derived exploit constructions and unbounded interactions
These are not measured win-rate claims or executed reproduction tests.
1. **Zero-cost native draw cycle.** A run reduced to two rawhide instances can alternate them: current card leaves hand; draw finds the other in discard; current is discarded after effect. After setup, each 0-cost play retrieves the other. Java 2 RAM is affordable with base RAM, rawhide is not Fedora-crash eligible, and it does not exhaust. No turn play cap exists. This can generate unbounded rawhide charges; Arch also gains unbounded btw, telemetry enemies gain unbounded attack, and systemd-timer can generate unbounded Cycles. Acquiring a second rawhide and deck removal are allowed by existing repository rules.
2. **Free card + draw rider engine.** Two free native cards with draw riders can similarly cycle via discard while generating their effects. Repeated borrow can accumulate Shield without enemy turns (non-Mint); this requires upgrade/purchase setup, not a guaranteed opening deck. Coroutine draw timing should be runtime-tested, but no resource/exhaust limiter appears in source.
3. **DNF and stalling.** +2..7 F per turn is uncapped and broad. Scaling draw/Shield plus existing persistent Shield may outpace non-growing enemies; Memory Leak/Telemetry impose different pressures. Do not apply another global multiplier assuming F only affects damage.
4. **Arch/Systemd and copied upgrades.** Uncapped btw and magnitude can combine with multiplier and crit; spread copies accumulated upgrades/queue state. Generated cards can be recycled within a wave. Integer overflows are a theoretical late/loop risk; arithmetic is int, not arbitrary precision.
5. **Fork/orphan Bit farming.** Keeping a parent alive while destroying children allows recurring spawn/kill income; live-Fork cap limits simultaneous population, not cumulative rewards. Survival cost and RNG matter; no profitable-farm simulation was run.
6. **zip amplification.** Repeated zip adds more future charges, and repeated Update Manager creates multiple delayed entries. Current fixed two-evaluation rule is finite per dequeue, but a future recursively evaluating lazy card could remove that protection.
7. **Snapshot/repeat double application.** Update Manager already snapshots F/M once, doubles them on its first hit, then uses current pipeline bonuses later. Generalizing this pattern could accidentally snapshot and reapply Compilation or Haskell multipliers.
8. **Pacing/coroutine sensitivity.** Some draw riders/package draws StartCoroutine without awaiting completion; visual exit drains can advance phases. Rapid interactions/reduced-motion/wave transitions require runtime tests for any new side effects. This audit does not assert a specific race was reproduced.
### Dominance and economy inconsistencies
- ask ubuntu and import antigravity are both Python queued Common draw2, but ask costs0 vs1 (and V3 improves further). Because repo exclusivity is not enforced, the exclusive availability distinction does not always protect the starter.
- Same-effect pairs: coreutils/glibc; zram/systemd-core; nano/git; curl/rsync; syslog/logrotate. Some differ in rarity but not working effect.
- htop (same 2-star Kernel) gives more HP than ext4; ntp's missing Shield leaves it weaker on both base and high-level HP than htop.
- ccache versus nginx is **not** strict dominance because they occupy different slots. C versus Rust damage is **not** strict dominance because recoil/crit/spill/Shield differ.
- Upgrades costing 2 Bits can add +2 to every hit and every draw/Shield quantity; multi-hit/dual-effect cards gain more than a one-number attack. Low-tier rarity does not constrain these gains.
- No 1-/2-star normal acquisition, no Haskell cards, and two invalid Python registry slots mean catalog counts overstate immediately obtainable content.
## 15. Gentoo Integration Requirements
Gentoo's proposed 5-star rarity, compilation passive, numerical stats, five cards, versions, caps, and values are **Not implemented**. The following identifies extension points, not code changes or approved balance numbers.
| Desired capability | Existing hook / requirement |
|---|---|
| Real playable identity | Add DistroDefinition/passive/card assets and database refs; LanguageCatalog already names gentoo for Haskell/Assembly. Starter/banner pools explicitly whitelist existing IDs. |
| 5-star acquisition | Current GetDistroStars hardcodes only arch in GachaService and collection UI. A Gentoo asset alone would be treated as 4-star and may not join banner pool. All rarity/pool consumers must be reconciled. |
| Wave reset | StartWaveSequenced (737) is the boundary for Compilation reset, not BootCombat (run). Counter should not persist via save/run card instances unless intentionally specified. |
| Increment after each round | GarbageCollect (927), after resolving status/delayed effects and checking termination, is the natural completed-exchange boundary. Define whether increment precedes/follows delayed effects; recommend next-exchange benefit rather than retroactively boosting the just-completed round. |
| Maximum level | No generic Compilation cap exists. Explicit clamp and initial value required. Choose whether first player turn is level 0 or1; do not reuse Arch stacks because trigger semantics differ. |
| Version changes | ApplyVersionState (1721), DistroVersionCatalog, GachaTuning/VersionUpgrader; existing generic version storage supports V1–V5, but numerical Gentoo behavior must be added explicitly. |
| Flat effect growth | FlatEffectBonus already reaches many handlers, but is shared with Mint/DNF/make and reset wholesale at wave start. A separate contribution/calculation is safer than repeatedly overwriting F. Audit double-scaling wrappers. |
| Percentage damage growth | DamageMultiplierPercent and CurrentCardDamageMultiplierPercent exist, but PlayCard resets both to100 and uses them for Fedora/systemd. A persistent Gentoo multiplier cannot simply be set there once. |
| Percentage all-effect growth | Not supported generically. Shield/draw/heal/cycles/status/generation do not use DamagePipeline multipliers. Requires explicitly typed effect magnitude policy. |
| Combat display | CombatSceneController host/status rendering, TerminalTheme, existing StateChanged/event layer. No Compilation readout exists; use authoritative state, not elapsed animation time. |
| Five exclusives | Existing selection expects 4 of5; adding five definitions does not mean five automatically enter deck. Must decide whether to preserve the 12-card rule (no change requested here). |
| Languages | Haskell/Assembly are both absent as playable decks. Gentoo cannot merely advertise them and expect a complete boot/repository experience. |
### Compatibility decisions that must be explicit
- **Crit:** should compilation be before crit like F, or an independent post-crit value? Current pipeline uses flat→multipliers→crit; adopting that path gives multiplicative interaction with existing crit.
- **C spill:** scale initial hit once; spill requests set ApplySourceModifiers=false. Applying Gentoo again on spill double-counts damage.
- **Rust:** increased initial damage also increases excess Shield. With a direct all-effect Shield multiplier, overkill must not accidentally be scaled a second time.
- **Shield:** direct grants, status ticks, Arch save, and package Shield use different paths. “All cards” is not “all health/defense events.”
- **Healing:** Timeshift restores a stored HP target, not a fixed heal quantity; multiplying snapshot values could exceed maximum or change its purpose. Card-heal permission hook is not a general heal system.
- **DOT/status:** scaling stacks and scaling each tick can double scale; MemoryLeak damage already uses source pipeline additions. Define source attribution/lifetime.
- **Multi-hit/AoE:** a +x flat effect gives +3x on Promise, +Nx across N AoE targets, whereas percentage scaling is proportional. Apply one consistent policy per hit, not once per event plus once per target.
- **Delayed effects:** choose enqueue snapshot versus resolution-time level, including waves. Current FIFO reads live F; Update Manager stores a partially scaled number. A new system must not silently mix both.
- **Repeated effects:** define whether each repeat gets the same captured Compilation level and whether repeats can increase it (the proposed round trigger suggests not).
- **Death/wave finish:** no increment merely because death animations finish or the repository rerenders. Round boundary must be once-only even with coroutines.
Critical balancing comparisons: Arch scales per play rather than round; Fedora scales individual cards across the run; DNF scales broad F per turn. Gentoo should have a distinct capped time horizon and not inherit these systems' uncapped cross-wave/duplicate behavior by accident.
## 16. Haskell Integration Requirements
### Present support matrix
| Proposed capability | Present? | Exact limitation / extension needed |
|---|---|---|
| Track identity / LIFO storage | Partial | ResolutionTrack.LazyStack=2; LazyStack stores CardInstances, index0 is top. |
| Count all pending cards | Yes | Count/Cards exposed. |
| Count pending Haskell only | Derivable | Filter Cards by Definition.Language; no dedicated count. Tracks are asset-selected, so do not assume every lazy card is Haskell. |
| Snapshot multiplier at enqueue | **No** | CardInstance has target references and state flags, no lazy multiplier/snapshot record. |
| Multiply all effects | **No** | Damage multipliers exist, but draw/Shield/status/cycle/restore/generation have separate handlers. |
| Pop one for real execution | Storage only | TryPop emits CardResolving; caller must execute effects, riders, disposal, termination. |
| Force stack evaluation | Event-only scaffold | ForceEvaluate loops pop/Resolved events, ignores CombatContext for actual effect processing. No gameplay caller found. |
| Stack manipulation | Minimal | Only push/pop/view; no chosen removal/reorder/duplicate API. |
| Repeated execution | Queue-only | zip's charges consumed by InterpretQueueSequenced, not lazy; no generic repeat policy. |
| Stack size cap | **No** | Unlimited storage; no cap constant. |
| Wave/run clearing | **No** | No LazyStack.Clear; Boot/StartWave do not rebuild/clear it. |
| Four-card starter | **No** | No Haskell LanguageDeckDefinition/cards. Existing system can add a four-copy deck once authored/registered. |
| Between-wave pool | **No Haskell candidates** | Generic language-filtered pool could support them, but requires correct CardDatabase refs and explicit starter/shop flags/weights. |
| Goroutines/concurrency | **No** | Not related to implemented Haskell LIFO scaffold. |
### Required semantic decisions before balancing cards
1. Decide whether counting occurs **before or after push**, counts Haskell only versus all lazy entries, and includes the trigger card. A rule such as 2^n is not currently in code.
2. Store immutable per-enqueue execution data with a stable identity; do not overload live shared Source multipliers or QueuePlayCount.
3. Define cap separately for pending count, snapshot multiplier, evaluations per action, and generated/repeated effects. Popping a snapshot must not recalculate it using the shrinking/growing live stack unless explicitly intended.
4. Define evaluator behavior when an effect pushes another lazy card or forces evaluation recursively. Current while-pop pattern could loop without a reentrancy guard/budget.
5. Decide what happens to an evaluator card itself: native forcing effect, pushed-then-forced, or special command. Avoid recursively replaying its own force trigger.
6. Repeats should execute one captured operation without paying again or emitting new CardPlayed, unless a real replay mechanic is explicitly specified. Existing queue repeats provide a useful partial precedent but not an implementation.
7. Treat draw, generated cards, copy, cost reduction, charge counts, status durations, HP snapshots, damage, and Shield as **different effect kinds**. Blindly multiplying everything gives both resource loops and unclear rounding.
8. Finish/discard/exhaust each operation exactly once. Handle target death/revival, combat loss, final wave kill, orphan spawns, and cancellation without dropping cards into limbo.
9. Clear/cancel/rebuild pending stack explicitly at wave/run boundaries, without replaying UI events or preserving old references into a new wave.
10. Pool/cost flags must distinguish Haskell starter cards from run-only rewards. Existing starter weight3+database1 means each starter definition gets4, independent of its two-copy quantity; use that actual rule for projections.
### Multiplication risk examples (hypothetical, not existing mechanics)
If an eventual rule used 2^n, n=5 gives32, n=10 gives1024, and signed 32-bit arithmetic cannot represent 2^31 as a positive int. That is a mathematical warning, **not a discovered Haskell rule**. A 3-damage card at ×32 already becomes96 before crit/Gentoo; an AoE hits each target; a draw2 effect at×32 requests64 and may chain if evaluation also replenishes the stack.
Compilation and Haskell multipliers must each apply **exactly once**. Prefer explicit original base, additive bonuses, captured multiplier, current allowed modifiers, then crit/resistance; do not call already-scaled wrappers that add F/M again. Snapshot tests must compare enqueue level versus later level and test repeated execution with the same snapshot.
No Haskell card IDs, names, costs, rarities, starter quantities, multiplication coefficients, or reward definitions were found. They must be designed; this report intentionally does not invent four starter/five Gentoo card mechanics.
## 17. Recommended Balance Constraints
These are recommendations for a future implementation, not current game rules or a claimed balanced Gentoo/Haskell kit.
1. **Establish a trusted baseline first.** Treat unregistered Python cards, duplicated bonuses, package no-op levels, status timing, and unclear combat-vs-wave resets as explicit known issues. Do not tune Gentoo around a textual value that is not what executes.
2. **Define scope per bonus.** Damage-only, card-effect-only, or all grants; additive versus percentage; current wave versus run. Use separate contributions so DNF/make do not overwrite or accidentally compound Compilation.
3. **Cap growing systems deliberately.** A Compilation level cap and a lazy multiplier cap must be gameplay constants, not just display limits. Use checked/wider intermediate arithmetic and safe saturation/validation before int damage.
4. **Do not multiply resources indiscriminately.** Damage/Shield are not comparable to draw/Cycles/force-evaluation count. Existing zero-cost draw loops show that RAM alone is not a sufficient action limiter.
5. **Budget by total useful output.** Include per-hit and per-target multiplication, crit, overkill defense/spill, repeat count, and delayed entries; 1 point of broad magnitude can improve several quantities simultaneously.
6. **Protect lifecycle boundaries.** One round-complete trigger, one enqueue snapshot, one disposal/grant, no animation-based updates. Decide whether queued effects vanish at wave end rather than accidentally leaking to the next wave.
7. **Preserve identity without assuming rarity multipliers.** Existing 5-star Arch is fragile and scales by plays. A 5-star Gentoo should not automatically receive every best base stat plus scaling. Compare cold first exchange, third exchange, capped exchange, and next-wave reset separately.
8. **Test both recommended and off-pair decks.** Any two globally unlocked languages can be selected, and current repository exclusives cross distro boundaries. Gentoo/Haskell interactions with Rust/C/Java/JS and foreign exclusives are real integration concerns.
9. **Test equipment extremes.** At minimum L0/L5 DNF, Timeshift, swapfile, zram, systemd-timer, apt, auditd; systemd with C; Cinnamon with JS. Different slots permit combinations; same-slot packages are alternatives.
10. **Build deterministic tests, not production-rate changes.** Assert enqueue counts/snapshots, FIFO/LIFO order, finite evaluation, one-time card disposal, no double award, target retargeting, zombie/reap/orphan lifecycle, turn/wave clears, version thresholds, and zero-cost draw loops.
11. **Measure, then recommend numerical values.** Record exact loadout, versions, package levels, upgrades, seed, decisions, turns, useful damage, Shield, HP loss, draws wasted by RAM, and recovery. The current source alone cannot establish a fair final Compilation cap/coefficient or Haskell multiplier.
Suggested future test matrix: base/max version; empty/one/full stack; evaluate card first/last; mixed language stack; repeat nested evaluator; multi-hit/AoE/true damage; death halfway through evaluation; pending zombie; next-wave transition before delayed effect; zero-cost copy/draw chain; reduced-motion and rapid input. These tests are recommendations and were **not executed in this audit**.
## 18. Source File Reference Index
Paths below are relative to repository root. Line numbers refer to the audited working tree and are navigation aids, not permanent API identifiers.
### Runtime and integration references
| Source | Relevant symbols / lines |
|---|---|
| ProjectSettings/ProjectVersion.txt | m_EditorVersion (Unity6000.4.8f1) |
| Packages/manifest.json | Unity package/framework dependencies |
| Assets/Scripts/Core/{Language,Rarity,ResolutionTrack,TurnPhase,StatusType}.cs | Serialized enum values and phase/track vocabulary |
| Assets/Scripts/Core/GameEvents.cs | CardPlayed, CardResolving/Resolved, DamageDealt, CombatantDefeated, status, WaveCleared, RunEnded |
| Assets/Scripts/Data/{CardDefinition,CardEffectDefinition,CardDatabase}.cs | Asset schema, abstract effect creation, ID lookup |
| Assets/Scripts/Data/{DistroDefinition,PassiveDefinition,DistroDatabase}.cs | Stats, exclusive references, passive text, distro lookup |
| Assets/Scripts/Data/LanguageCatalog.cs | All 12 entries and 11 distro references |
| Assets/Scripts/Data/{LanguageDeckDefinition,LanguageDeckDatabase}.cs | Entry Count and language lookup |
| Assets/Scripts/Data/PackageDefinition.cs | PackageEffectKind, EffectFor, PackageEffectScaling |
| Assets/Scripts/Data/{EnemyDefinition,StatusEffectDefinition}.cs | Authored extension schemas; not current enemy/status runtime catalog |
| Assets/Scripts/Combat/CombatManager.cs | PlayCard219; costs374/384; next-turn/repeats459/485; generated pool578; phase628; Boot699; StartWave737; Allocate801; Interpret845; enemies876; Garbage927 |
| Assets/Scripts/Combat/CombatManager.cs | Ubuntu1016/1045; Fedora1056/1161; Java1139; package hooks1175–1531; zombie1533/1587; Arch1610/1620; version1721; Mint gate1745 |
| Assets/Scripts/Combat/CombatManager.cs | ExecuteCardEffects1792; riders1807; target selection1817–1880; permanent death/Bits1924; spawn2240; enemy intent2410; mitigation2572; resistance2585; delayed2617; Timeshift2654; CheckWin2700 |
| Assets/Scripts/Combat/CardEffects.cs | Handler classes and ID dispatch; numeric source of truth for section6 |
| Assets/Scripts/Combat/{CardInstance,CombatantState,CombatContext}.cs | Mutable instance/state, reset boundaries, per-resolution context |
| Assets/Scripts/Combat/DamagePipeline.cs | DealDamage78; flat/mult/crit; Shield/HP; lethal recovery |
| Assets/Scripts/Combat/CombatTuning.cs | Draw/currency/stat constants, crash tuning, pacing values |
| Assets/Scripts/Combat/RandomRoll.cs | Seeded System.Random; inclusive bounds; Mint ForceMaxRolls |
| Assets/Scripts/Combat/{DeckController,HandController}.cs | Draw/discard/exhaust/shuffle; cheapest peek; RAM |
| Assets/Scripts/Combat/{InterpreterQueue,LazyStack,NativeTrack}.cs | Storage/event wrappers; actual execution must be in manager |
| Assets/Scripts/Combat/{EnemyArchetype,EnemyInstance,EnemyIntent}.cs | 13 archetypes, stateful intent selection and lifecycle |
| Assets/Scripts/Combat/{StatusEffectController,StatusInstance}.cs | Descriptor/merge/tick rules |
| Assets/Scripts/Run/RunContext.cs | PendingRun.CreateRunConfig99 / AddLanguageDeck107 |
| Assets/Scripts/Run/RunConfig.cs | Immutable run handoff, package snapshots, version clamp |
| Assets/Scripts/Run/RunManager.cs | Start69; Bits97; offers108/310; Buy135; Remove162; stats179/194; settlement240; WaveCleared253; pools378; upgrades470 |
| Assets/Scripts/Run/RepositoryOffer.cs | Offer kinds and upgrade/stat display metadata |
| Assets/Scripts/Run/RewardService.cs | Unused Skip-only scaffold, not actual repository |
| Assets/Scripts/Meta/{PlayerCollection,CardLoadout,LanguageUnlock}.cs | Ownership, 4-card selection, unlock gates |
| Assets/Scripts/Meta/{DistroVersionCatalog,VersionUpgrader,GachaTuning}.cs | All release labels/costs and per-unit upgrades |
| Assets/Scripts/Meta/{PackageLoadout,PackageTuning,PackageUpgrader,PackageScrapper}.cs | Slots, levels, costs, purge rules |
| Assets/Scripts/Meta/GachaService.cs | Tier/type probabilities, pity, guarantees, hardcoded distro stars670 |
| Assets/Scripts/Meta/{GachaBannerState,GachaPullContext,PullResolver}.cs | Banner persistence, transient completed pull, distro duplicate grants |
| Assets/Scripts/Meta/{EntropyWallet,SaveService}.cs | Wallet and JSON persistence/migrations/defaults |
| Assets/Scripts/UI/MainMenuController.cs | Starter grant831; run languages1852; boot1916; meta load/save |
| Assets/Scripts/UI/StarterSelectionController.cs | Three free starter candidates |
| Assets/Scripts/UI/CombatSceneController.cs | Bootstrap253/269; generated pool173; repository overlay950; settlement1043; feedback/readouts |
| Assets/Scripts/UI/CollectionScreenController.cs | Independent distro rarity mapping743; equipment/version views |
| Assets/Scripts/UI/GamblingSceneController.cs | ResolvePull57; GrantRandomPackageByRarity171; save before reveal |
| Assets/Scripts/UI/{GachaScreenController,GachaRevealView}.cs | Pull navigation/reveal only; not combat/reward formulas |
| Assets/Scripts/UI/{UIPreferences,ExecutionTrackView,EnemyProcessPresentation,TerminalTheme}.cs | Reduced-motion/presentation state; not balance authority |
| Assets/Scenes/{MainMenuScene,GameScene}.unity | Serialized distro/card/package/language database references |
### Distro, passive, and starter assets
| Content | Source |
|---|---|
| Arch | Assets/Data/Distros/Arch.asset; Assets/Data/Passives/IUseArchBtw.asset |
| Ubuntu | Assets/Data/Distros/Ubuntu.asset; Assets/Data/Passives/AptUpdate.asset |
| Fedora | Assets/Data/Distros/Fedora.asset; Assets/Data/Passives/BleedingEdge.asset |
| Mint | Assets/Data/Distros/Mint.asset; Assets/Data/Passives/ItJustWorks.asset |
| Distro registry | Assets/Data/Distros/DistroDatabase.asset |
| Language starters | Assets/Data/Cards/Languages/CDeck.asset; RustDeck.asset; PythonDeck.asset; JavaScriptDeck.asset; JavaDeck.asset |
| Starter registry | Assets/Data/Cards/Languages/LanguageDeckDatabase.asset |
| Card registry | Assets/Data/Cards/CardDatabase.asset (two wrong-type references described in section6) |
| Equipment registry | Assets/Data/Packages/PackageDatabase.asset |
### Every card asset
| ID | Asset path |
|---|---|
| arch_aur_helper | Assets/Data/Cards/Arch/AurHelper.asset |
| arch_consult_wiki | Assets/Data/Cards/Arch/ConsultWiki.asset |
| arch_makepkg | Assets/Data/Cards/Arch/Makepkg.asset |
| arch_minimal_install | Assets/Data/Cards/Arch/MinimalInstall.asset |
| arch_pacman_syu | Assets/Data/Cards/Arch/PacmanSyu.asset |
| fedora_dnf_autoremove | Assets/Data/Cards/Fedora/BorrowChecker.asset |
| fedora_first_to_package | Assets/Data/Cards/Fedora/CargoBuildRelease.asset |
| fedora_dnf_update | Assets/Data/Cards/Fedora/DnfUpdate.asset |
| fedora_rawhide | Assets/Data/Cards/Fedora/Rawhide.asset |
| fedora_selinux | Assets/Data/Cards/Fedora/SELinuxEnforcing.asset |
| lang_c_malloc | Assets/Data/Cards/Languages/C/Malloc.asset |
| lang_c_pointer | Assets/Data/Cards/Languages/C/Pointer.asset |
| lang_c_printf | Assets/Data/Cards/Languages/C/Printf.asset |
| lang_java_new_object | Assets/Data/Cards/Languages/Java/JavaNewObject.asset |
| lang_java_public_static_main | Assets/Data/Cards/Languages/Java/JavaPublicStaticMain.asset |
| lang_java_system_out_println | Assets/Data/Cards/Languages/Java/JavaSystemOutPrintln.asset |
| lang_js_console_log | Assets/Data/Cards/Languages/JavaScript/JsConsoleLog.asset |
| lang_js_fetch | Assets/Data/Cards/Languages/JavaScript/JsFetch.asset |
| lang_js_typeof | Assets/Data/Cards/Languages/JavaScript/JsTypeof.asset |
| lang_py_for_loop | Assets/Data/Cards/Languages/Python/PyForLoop.asset |
| lang_py_import_antigravity | Assets/Data/Cards/Languages/Python/PyImportAntigravity.asset |
| lang_py_print | Assets/Data/Cards/Languages/Python/PyPrint.asset |
| lang_rs_borrow | Assets/Data/Cards/Languages/Rust/RsBorrow.asset |
| lang_rs_fn_main | Assets/Data/Cards/Languages/Rust/RsFnMain.asset |
| lang_rs_unwrap | Assets/Data/Cards/Languages/Rust/RsUnwrap.asset |
| mint_cinnamon | Assets/Data/Cards/Mint/Cinnamon.asset |
| mint_fix_broken | Assets/Data/Cards/Mint/FixBroken.asset |
| mint_nemo | Assets/Data/Cards/Mint/Nemo.asset |
| mint_timeshift | Assets/Data/Cards/Mint/TimeshiftSnapshot.asset |
| mint_update_manager | Assets/Data/Cards/Mint/UpdateManager.asset |
| shop_py_async_def | Assets/Data/Cards/Shop/AsyncDef.asset |
| shop_c_free | Assets/Data/Cards/Shop/Free.asset |
| shop_c_kernel_exploit | Assets/Data/Cards/Shop/KernelExploit.asset |
| shop_py_list_append | Assets/Data/Cards/Shop/ListAppend.asset |
| shop_js_math_random | Assets/Data/Cards/Shop/MathRandom.asset |
| shop_js_promise_all | Assets/Data/Cards/Shop/PromiseAll.asset |
| shop_c_sizeof | Assets/Data/Cards/Shop/Sizeof.asset |
| shop_js_spread | Assets/Data/Cards/Shop/Spread.asset |
| shop_py_zip | Assets/Data/Cards/Shop/Zip.asset |
| ubuntu_ask_ubuntu | Assets/Data/Cards/Ubuntu/AskUbuntu.asset |
| ubuntu_do_release_upgrade | Assets/Data/Cards/Ubuntu/DoReleaseUpgrade.asset |
| ubuntu_snap_install | Assets/Data/Cards/Ubuntu/SnapInstall.asset |
| ubuntu_apt_install | Assets/Data/Cards/Ubuntu/SudoAptInstall.asset |
| ubuntu_pro_trial | Assets/Data/Cards/Ubuntu/UbuntuProTrial.asset |
| ubuntu_unattended_upgrades | Assets/Data/Cards/Ubuntu/UnattendedUpgrades.asset |
### Every package asset
| ID | Asset path |
|---|---|
| pkg_ubuntu_apt | Assets/Data/Packages/Apt.asset |
| pkg_apt_fast | Assets/Data/Packages/AptFast.asset |
| pkg_auditd | Assets/Data/Packages/Auditd.asset |
| pkg_aur | Assets/Data/Packages/Aur.asset |
| pkg_ccache | Assets/Data/Packages/Ccache.asset |
| pkg_mint_cinnamon | Assets/Data/Packages/CinnamonPackage.asset |
| pkg_coreutils | Assets/Data/Packages/Coreutils.asset |
| pkg_cron | Assets/Data/Packages/Cron.asset |
| pkg_curl | Assets/Data/Packages/Curl.asset |
| pkg_dbus | Assets/Data/Packages/Dbus.asset |
| pkg_fedora_dnf | Assets/Data/Packages/DNF.asset |
| pkg_docker | Assets/Data/Packages/Docker.asset |
| pkg_ext4 | Assets/Data/Packages/Ext4.asset |
| pkg_firewalld | Assets/Data/Packages/Firewalld.asset |
| pkg_git | Assets/Data/Packages/Git.asset |
| pkg_glibc | Assets/Data/Packages/Glibc.asset |
| pkg_htop | Assets/Data/Packages/Htop.asset |
| pkg_less | Assets/Data/Packages/Less.asset |
| pkg_logrotate | Assets/Data/Packages/Logrotate.asset |
| pkg_lvm | Assets/Data/Packages/Lvm.asset |
| pkg_make | Assets/Data/Packages/Make.asset |
| pkg_nano | Assets/Data/Packages/Nano.asset |
| pkg_nginx | Assets/Data/Packages/Nginx.asset |
| pkg_ntp | Assets/Data/Packages/Ntp.asset |
| pkg_openssl | Assets/Data/Packages/OpenSSL.asset |
| pkg_polkit | Assets/Data/Packages/Polkit.asset |
| pkg_rsync | Assets/Data/Packages/Rsync.asset |
| pkg_fedora_selinux | Assets/Data/Packages/SELinuxPackage.asset |
| pkg_ubuntu_snap_store | Assets/Data/Packages/SnapStore.asset |
| pkg_sshd | Assets/Data/Packages/Sshd.asset |
| pkg_swapfile | Assets/Data/Packages/Swapfile.asset |
| pkg_syslog | Assets/Data/Packages/Syslog.asset |
| pkg_systemd | Assets/Data/Packages/Systemd.asset |
| pkg_systemd_core | Assets/Data/Packages/SystemdCore.asset |
| pkg_systemd_timer | Assets/Data/Packages/SystemdTimer.asset |
| pkg_mint_timeshift | Assets/Data/Packages/TimeshiftPackage.asset |
| pkg_udev | Assets/Data/Packages/Udev.asset |
| pkg_vim | Assets/Data/Packages/Vim.asset |
| pkg_wget | Assets/Data/Packages/Wget.asset |
| pkg_zlib | Assets/Data/Packages/Zlib.asset |
| pkg_zram | Assets/Data/Packages/Zram.asset |
### Verification and limitations
This report was assembled by reading gameplay/data/meta/UI integration source, tracing the ID handlers, enumerating ScriptableObject assets, resolving .meta GUID references, checking starter counts, and performing finite arithmetic calculations over the extracted data. No engine files, data assets, tests, settings, or saves were edited. Pre-existing local changes remain outside this report's scope.
Coverage checklist:
- 4 actual distro definitions and all 4 passive texts, all 20 version entries (including V1), all 20 selectable exclusives.
- All 12 enum/catalog languages; 5 actual starter decks with 4 copies each; 7 unavailable languages explicitly marked.
- 45 unique CardDefinition assets and their effects/costs/rarities/tracks/starting quantities/availability; all 45 handler IDs; 43 valid CardDatabase references plus 2 wrong-type references.
- 41 package definitions and registry entries, all slots/stars/level formulas/on-off distro differences, common prices and refunds.
- 13 active enemy archetypes; all status descriptors, turn/scheduler paths, damage/cost/reward formulas.
- Numerical means computed from distinct definitions with token/conditional/random exclusions disclosed.
- Existing EditMode test sources found: TerminalUiTests.cs, GachaRevealTests.cs, CombatPresentationTests.cs, WaveCompletionTests.cs. **Not run for this audit.** No build, lint, engine test, interactive playthrough, or balance simulation is claimed.
- Unknown/not implemented: Gentoo playable definition and complete kit; Haskell cards/multiplier/evaluator; other planned languages/distros; complete limited banner; active boss/encounter assets; empirical round counts/win rates.
- Static reasoning cannot establish unsaved in-memory editor state, current player inventory, all timing-dependent coroutine outcomes, or real encounter frequencies. Reported asset reference defects concern the on-disk project.
- Final integrity check: **449/449** baseline files under Assets/Scripts, Assets/Data, Assets/Tests, Packages, and ProjectSettings retained identical SHA-256 hashes; none were added or removed in those trees. All 45 card IDs and 41 package IDs are present in their detailed tables and source index; all 18 requested sections are present. Asset metadata scan found no duplicate GUIDs. Only this requested Markdown report was created; pre-existing changes were preserved.