LibProfessionDB

Library for WoW profession skills for use in other AddOns.
Back to Files

ProfessionDB-v1.10.1

File nameProfessionDB-ProfessionDB-v1.10.1.zip
Uploader
PmptastyPmptasty
Uploaded
Nov 16, 2026
Downloads
7.2K
Size
5.6 MB
Flavors
RetailMoP ClassicClassic TBCClassicForever
File ID
9653856
Type
R
Release
Supported game versions
  • 12.1.5
  • 12.1.0
  • 12.0.7
  • 12.0.5
  • 5.5.4
  • 4.4.2
  • 3.4.5
  • 2.5.6
  • 1.60.1
  • 1.15.9

What's new

Changelog

[v1.10.1] (2026-11-16) - Newest game builds everywhere, Retail patch 12.1.5, more WoW Forever trainer levels and vendors, and recipe scrolls that really are scrolls

No API change; LibStub MINOR stays at 14.

Teaching items were sometimes the recipe's product, not its scroll (2026-11-16)

  • build-recipe-items.py took any item that CASTS a profession spell as the scroll that teaches it. Its "direct ItemEffect" match accepted every ItemEffect whose SpellID is a craft spell, whatever the TriggerType. An on-use item (TriggerType 0) that casts the craft is its product, so GetRecipeItem handed consumers an enchant scroll ("Enchant Bracer - Minor Health", the result of enchanting onto vellum), an engineering device (Mechanical Dragonling, Hand-Mounted Pyro Rocket), or on MoP the Fire Spirit for Skinning's Release Spirit, which tripped the builder's own "Skinning has no craft scrolls" check. A direct match now needs TriggerType 6 (learn), read through the new pdb_common.item_effect_rows on both DB2 schemas.
  • Teaching items per flavour, before -> after: Vanilla 1,074 -> 1,074, TBC 1,453 -> 1,450, Wrath 2,026 -> 1,924, Cata 2,520 -> 2,385, MoP 3,026 -> 2,892, Forever 1,889 -> 1,832, Retail 5,799 -> 5,474. Where a real formula exists it now wins (MoP 104338 -> Formula 84560, was enchant scroll 74700); otherwise the recipe gets a synthetic scroll like any other trainer-taught recipe.
  • Pinned in Tests/shippeddata_spec.lua against the shipped MoP and Forever files.

DBC builds moved to wago's newest (2026-11-16)

check-build-pins.py found four pins behind wago.tools. Each was moved alone, after --locales confirmed the new build serves every locale complete, regenerated through build_authoritative_data.py, build-acquire-methods.py and build-recipe-items.py, and validated with the full suite before the next.

Flavour From To Data change
Vanilla 1.15.9.69722 1.15.9.70576 none (build stamps only)
TBC 2.5.6.69795 2.5.6.70577 none (build stamps only)
MoP 5.5.4.69934 5.5.4.70631 none (build stamps only)
Retail 12.1.0.69933 12.1.5.70783 patch 12.1.5: 10,716 -> 10,738 recipes
  • Retail TOC gains Interface 120105 (12.1.5), read from installed Retail addons and confirmed against the live source tree at 12.1.5 (70783). VersionCheck-1.0, a hard dependency, lists 120105 from VersionCheck-v1.5.6 (released 2026-11-16).
  • Wrath, Cata and Forever were already on their newest builds.
  • New desk tools: pdb-check-pins (the pin report) and pdb-check-locales (the per-locale completeness scan), both read-only.

Forever: a second live TOGTools capture (2026-11-15)

  • Trainer skill levels: 101 -> 134 spells in tools/forever_trainer_ranks.json, merged from the operator's _forever_ TOGTools capture (build 1.60.1.70938, Araglas: Alchemy, Tailoring, Cooking trainers) with profcapture.py --merge. The _core tree was regenerated with pdb-build-core Forever.
    • 17 spells shipped a Vanilla-borrowed requiredSkill that Forever's own trainers contradict and now carry Forever's: mostly lower (3755 Linen Bag 45 -> 5, 2402 Woolen Cape 75 -> 55), one higher (8776 Linen Belt 10 -> 15).
    • 7 Forever-only spells had no requiredSkill at all and now carry one (1229705, 1230564, 1249630, 1249633, 1263425 and others). On 1229705 (Herbalism) the orange tier anchors to it, 1 -> 20.
  • A hand override no longer outranks Forever's own trainer. manual_skill_overrides.json was verified on Classic clients; spell 2329 (Elixir of Lion's Strength on Vanilla, Elixir of Minor Strength on Forever) is auto-granted at 1 there, but Forever's trainer teaches it at 15. build_authoritative_data.py now drops an override for a branch flavour when that flavour's captured trainer rank exists.
  • Two Forever recipe vendors added: Gloria Femmel (Lakeshire, Smoked Sagefish and Sagefish Delight) and Jillian Tanner (Stormwind Old Town, two medium armor kit patterns), both selling for gold. They are in tools/forever_vendor_recipes.json; Data/Forever/_core/VendorSources.lua is regenerated from it by the new desk tool pdb-build-vendors.
  • Left as designed: Novice Arcanist's Sash and Novice Ardent's Sash (1257368, 1257369) keep requiredSkill 50 from their recipe scroll although the trainer teaches them at 35; the builder ranks the scroll above the trainer.

[v1.10.0] (2026-11-14) - WoW Forever's Merchant's Favor recipe vendors, with prices; Herbalism and Skinning recipes on Forever and Retail

Library MINOR 13 -> 14. The new professions read through the existing calls, with profession ids 182 (Herbalism) and 393 (Skinning). Vendor prices and factions are new API.

API (MINOR 14)

  • New: vendor prices and factions.
    • lib:GetVendorCost(spellID, npcID) returns a fresh list of price parts: {currencyID, amount}, {itemID, amount} or {copper}.
    • lib:GetSourceFaction(npcID) returns "Alliance", "Horde" or nil.
    • GetRecipeSources vendor entries now carry faction and cost; trainer entries carry faction only.
    • Loaders: LoadVendorCosts, LoadSourceFactions.
    • A currency's localized name comes from C_CurrencyInfo.GetCurrencyInfo on the client. The library ships only the id (Merchant's Favor is 3402).

Forever recipe vendors

  • New: Data/Forever/_core/VendorSources.lua. It holds the seven Azeroth Commerce Authority recipe vendors: Alynsia, Nina Surefire, Kalsey Sanden, Daniel Stitchsong, Mivin Shadowweave, Fritz Fizzle and Stondry Darkhammer (all Alliance). Together they sell 314 recipes, each with its Merchant's Favor price, from the operator's live TOGTools capture (contract c36b29e174c9).
    • These are Forever's own sources, merged into the borrowed Vanilla set. A spell whose sources were borrowed still reads IsBorrowed(id, "sources") == "Vanilla"; an entry carrying a cost is the Forever-seen one.
    • Items map to spells through the client's full ItemEffect link, not RecipeItems' one-item-per-spell choice. Six of Alynsia's formulas are a second item teaching a spell an older formula already teaches; all 314 items map.
    • Durotar Supply and Logistics (Horde) is not captured yet.
  • New tooling. tools/profcapture.py --merge folds vendor visits into tools/forever_vendor_recipes.json as well as trainer ranks. Each vendor's stock is its latest visit. tools/build-vendor-sources.py <Version> emits the Lua file.

Data

  • New: Herbalism and Skinning data files. build_authoritative_data.py had left both professions out of PROF_FILES, on the grounds that they are gathering-only. That holds on every Classic flavour, but WoW Forever teaches camp recipes on both, so TOGProfessionMaster could not list them (contract c36b29e174c9). Forever now ships Herbalism (Incense Candle, Greenhouse, Seed Hybridizer) and Skinning (Camp Chair, Field Guide, Trapper's Workbench). All six come from Forever's own SkillLineAbility and are taught by its Blueprint items. Forever loads 2517 recipes, up from 2511.
  • clean_recipes' reagents-or-scroll filter decides per flavour. Vanilla, TBC, Wrath and Cata emit no file for either profession. Retail emits its real Herbalism and Skinning crafts.
  • Fixed: Mists shipped "Release Spirit" (spell 110955) as a recipe in nine profession files. It is the use-effect of item 74622, which "permanently increase[s] your skill in any primary professions you have trained". So it is a skill-up consumable, not a craft. Its SkillLineAbility row on every profession and its teaching item got it past clean_recipes. It is now in BUILD_EXCLUDED_SPELLS["MoP"]. With it gone, Mists Herbalism and Skinning are empty and ship no file.
  • Gardening (1278062), Tanning (1278068) and Bait and Tackle (1278067) are not separate skill lines. In Forever's SkillLineAbility they are ability rows on Herbalism, Skinning and Fishing (AcquireMethod 2). They have no reagents and no teaching item, so they are filtered out as non-recipes, the same way Smelting is handled.
  • Changed: Forever trainer skill levels from a second TOGTools capture. The capture was taken on Forever build 1.60.1.70938. It saw 80 shipped recipes on trainers. 40 of those disagreed with the shipped requiredSkill, mostly Leatherworking and First Aid, which Forever teaches 5-25 points lower than Vanilla. The shipped values were Vanilla's borrowed numbers. tools/forever_trainer_ranks.json grows from 42 to 100 spells, and re-running the capture report now shows 0 disagreements. Only Data/Forever/_core/{Leatherworking,Firstaid}.lua changed.
  • Fixed: Forever was built from the beta client, not the live one. pdb_common.WAGO_BRANCH["Forever"] pointed at wago's wow_classic_beta. The live WoW Forever client is wago product wowf, and both carry 1.60.1.x builds. The pin moves from 1.60.1.69977 (beta) to 1.60.1.70938 (live, 2026-11-13), the build the operator's live capture reports. Every generated Forever file was rebuilt on it. The recipe count stays 2517, and check-build-pins.py --stamps finds no disagreeing stamp.
  • The Herbalism/Skinning regenerate changed no existing data file. ProfessionDB_Camelot.toc, ProfessionDB_Mists.toc and ProfessionDB_Mainline.toc each gain 26 lines (core plus 12 locales, for two professions).

Why the vendors needed a live capture

  • No client table names them. Neither wowf 1.60.1.70938 nor the beta build has them: CollectableSourceVendor* hold appearances and housing decor only, and the client Creature table has 190 rows, none of these vendors.
  • The emulator world databases carry no Forever NPCs.
  • TOGTools v0.15.0 (capture schema 2, contract 691922944994) records each item's currency cost, and the operator walked the vendors with it.

Dev tooling

  • tools/profcapture.py reads TOGTools capture schema 2. A vendor item now carries its costs ({value, currencyName} for a currency such as Merchant's Favor, {value, link} for an item) and the vendor's faction. A record with no schema field reads as schema 1. A record newer than the reader knows is refused rather than half-read. Before this, SCHEMA was defined but never checked. The self-test now runs 31 checks, up from 28.

[v1.9.2] (2026-11-14) - Recipe colour tiers no longer turn green one band early

Library MINOR unchanged (13); no API change. Every Data/<game>/_core tree was regenerated: 72 profession files across all seven flavours, changing only difficulty[2] and difficulty[3] (Lua 1-based yellow and green).

Data

  • Fixed: on every recipe outside the placeholder-1 correction, yellow and green were set one band too low. The default path in build_authoritative_data.py treated SkillLineAbility.TrivialSkillLineRankLow as the GREEN threshold and put yellow halfway between the learn level and that value. But TrivialSkillLineRankLow is where a recipe turns YELLOW, and green is the midpoint between it and TrivialSkillLineRankHigh. That is the mapping the placeholder-1 correction in the same file already used (verified vs WoWhead). Example: Light Armor Kit (2152) shipped {1, 15, 30, 60}, so TOGProfessionMaster drew it green from 30. The operator, at Leatherworking 41, saw it still yellow in game. It now ships {1, 30, 45, 60}, and Light Leather (2881) ships {1, 20, 30, 40} (peer review ad4946159b0a, raised by TOGProfessionMaster).
  • The placeholder-1 correction now reads TrivialLow from difficulty[1] (Python, 0-based), where the default path puts it now. Those recipes come out unchanged. The never-descend and collapsed-yellow guards are unchanged.
  • Tests/shippeddata_spec.lua pins Light Armor Kit to the value seen in game.

Bootstrap

  • ProfessionDB.lua: host:GetName became host.GetName, since it never used self. Its header comment no longer calls VersionCheck-1.0 optional or Classic-only. It is a required dependency in every TOC, and VersionCheck's own TOC lists Retail and Forever. .luacheckrc adds CreateFrame to read_globals.

Dev tooling

  • wow-version-replication.ps1 now also replicates into _forever_, WoW Forever's own install folder. It keeps a target when the version folder exists, rather than its Interface\AddOns folder. A fresh install has no AddOns folder yet, so the old test skipped it silently.
  • Lint-only cleanups in tools/ (att_extract_phase.py, build-acquire-methods.py, count_trainer_only.py, port_pm_data.py, verify_pm_port.py, wago_probe.py): unused imports and variables removed, placeholder-free f-strings made plain, and broad except clauses annotated with why they are broad. No behaviour change.

[v1.9.1] (2026-10-07) - Retail recipes carry the item they craft, Forever gains 12 trainer skill levels

Library MINOR unchanged (13); no API change. Data/Retail/_core WAS regenerated (ten profession files and RecipeItems.lua), and so was Data/Forever/_core (trainer ranks, below). Every other tree was rebuilt and came out byte-identical.

Data

  • Fixed: 2,447 Retail recipes shipped with no craftedItemId. The builder read a craft's product only from SpellEffect Effect 24 (CREATE_ITEM). Dragonflight-onward crafts use Effect 288 (CRAFT_ITEM) instead: their EffectItemType is 0 and EffectMiscValue_0 points at a CraftingData row, whose CraftedItemID is the product. Example: spell 1229652, Blood Knight's Mercy, goes through CraftingData 2741 to item 237848. Before this fix the recipe carried only its plans (itemId 267281), so TOGProfessionMaster drew the row white instead of the item's quality (inbox thread 3ff92175).
  • New pdb_common.craft_item_by_spell does the 288 → CraftingData hop, used by both build_authoritative_data.py and build-recipe-items.py. When a CraftingData row has CraftedItemID 0, it takes the base-tier item from CraftingDataItemQuality (the lowest row ID). An Effect 24 row still wins. The two tables are fetched only for a build that has Effect 288 rows, and of the pinned builds only Retail's has any. It raises an error rather than emitting nothing if every 288 spell fails to resolve.
  • Tests/shippeddata_spec.lua pins Blood Knight's Mercy against the shipped Retail file.
  • Forever: 12 more trainer requiredSkill values from a live capture, taken from the operator's 2026-10-07 TOGTools Profession Capture (Forever builds up to 1.60.1.70245). tools/forever_trainer_ranks.json went from 30 to 42 spells, mostly Mining smelts (Smelt Tin 3304 at 65 through Smelt Thorium 16153 at 250), and Data/Forever/_core was regenerated. These are Forever's own ranks, so they replace the borrowed Vanilla value for those spells. The capture's recipe-source walk still answered 0 of 2,511, so Forever still has no unobtainable-recipe exclusions (TOGTools thread c934e6aa).
  • tools/profcapture.py reports each profession-window read's libProfessionID / libRecipes. TOGTools v0.10.2 records these when it asks this library for the open profession's unlearned recipes. libRecipes = 0 is printed as an EMPTY READ, so a window that got no recipes from the library is not mistaken for the client withholding source text. The script's self-test covers it.

[v1.9.0] (2026-10-04) - Retail support, Forever borrows what it lacks and flags it, Vanilla trainer recipes get their skill, content phases stop leaking out of TBC

Library MINOR 12 -> 13. Data/ WAS regenerated: a new Data/Retail tree, and every _core tree except TBC (phase lines, plus trainer requiredSkill in Vanilla and Forever, below).

Library

  • GetGameVersion answers "Retail" for Interface 100000 and up (live 12.1.0 is 120100). 60000-99999 stays "Unknown". Operator, 2026-10-04: "we also need to sensure PDB supports all WoW versions, classic, anniversary, MoP, Retail and Forever."
  • New skillLine core field and GetSkillLine(profId, recipeId), Retail only. Retail runs a separate skill line per expansion under each profession (Khaz Algar Blacksmithing 2872 under 164), so a recipe's requiredSkill and difficulty cannot be read without it. Absent on every Classic flavour.
  • New borrowed-value flags: LoadBorrowed(field, fromGame, ids), IsBorrowed(spellID, field), GetBorrowed(spellID). A flavour with no source of its own for a value ships another flavour's value for the same spell and says so, so a consumer can mark it unconfirmed. Fields: requiredSkill, sources, hidden. Operator, 2026-10-04: "i'd rather have a complete data source for most of the functionality and just flag the data we don't have until we can get it".
  • Fixed: Search results dropped skillLine, requiredSpec, teaches and phase (peer review 4e462d75 F4). Its hit was a hand-written field list; it is now built from CORE_FIELDS, the list LoadCore and Get already use, so a new core field cannot be left out again. Its comment now says hits share the database's tables and are read-only.
  • Specs: 9 new (flavour detection for Retail and the 60000-99999 gap, the borrowed flags, GetSkillLine, Search carrying every core field). Library coverage 417/417 (430/430 with ProfessionDB.lua).

Data

  • New Data/Retail tree and ProfessionDB_Mainline.toc from the live client's DBC, wago build 12.1.0.69933: 10,669 recipes across 11 professions (Retail has no First Aid), 12 locales, RecipeItems (5,774 of 11,769 recipes have a teaching item) and AcquireMethods (305 non-zero). No trainer requiredSkill, Sources or HiddenRecipes: no emulator, AllTheThings install or donor models Retail, so those are absent (unknown). Ace3 and VersionCheck-1.0 are installed on the Retail client, and VersionCheck's own TOC lists 120100.
  • Retail reagents come from the crafting-slot tables. Modern recipes keep only a recraft cost in SpellReagents; the real list is ModifiedCraftingSpellSlot -> ModifiedCraftingReagentSlot -> MCRSlotXMCRCategory -> CraftingReagentQuality (build_authoritative_data.mcr_reagents_by_spell). A slot is required when ReagentType is 1 or Flags has bit 4; each ships its base-quality item. Checked against Wowhead for two recipes: Algari Competitor's Plate Breastplate (438914: Core Alloy x2, Ironclaw Alloy x6, Competitor's Heraldry x5) and Wild Experimentation (427174: Coreway Catalyst x2). Not verified across every slot.
  • The Classic hand-set requiredSkill overrides no longer reach Retail. They are Classic-scale numbers (a TBC flask at 375), and Retail rescales each expansion line (Outland Alchemy runs 1-75 there).
  • Fixed: phase shipped on every tree, not just TBC. The ATT phase map is TBC Anniversary's content phases, and _load_phase_map's comment said only TBC gets one, but clean_recipes applied it to every build: Vanilla carried 15 phase tags, Wrath 209, and Cata, Mists and Forever some too, so a consumer filtering by content phase could hide those recipes on the wrong client. Now only the TBC tree takes it (PHASE_GAMES). Vanilla, Wrath, Cata, Mists and Forever _core were regenerated one at a time; each diff is phase lines only (git diff -I phase empty), and TBC regenerated byte-identical. A new spec fails if any non-TBC tree ships a phase.
  • Forever borrows Vanilla's values where it has none, and flags them. pdb_common.BRANCH_DONOR = {Forever: Vanilla}. The core builder falls back to Vanilla's trainer requiredSkill (after Forever's own manual, scroll and captured-trainer tiers) and emits LoadBorrowed("requiredSkill", "Vanilla", ...). With the learn-spell fix below, Vanilla's trainer source covers 473 of the shared spells. A donor rank is not borrowed when this build's own orange tier is above 1 and higher than it (peer review 9d73103a F1): Forever's Copper Chain Pants is orange at 40 while Vanilla's trainer says 1, so the record ships requiredSkill absent and stays anchored by Forever's own tiers. This also drops a few genuine values (one game's MinSkillLineRank can sit above its trainer rank), which leaves them unknown rather than contradicted. A borrowed requiredSkill never re-derives the difficulty tiers (peer review 4e462d75 F2): it is Vanilla's number against Forever's own trivial ranks, and anchoring Forever's Runed Copper Bracers {1,45,90,115} on Vanilla's 90 gave {90,96,102,115}, a curve neither game has. So for consumers the unanchored-tiers rule is now "requiredSkill absent or borrowed, and difficulty[1] == 1"; shippeddata_spec asserts it that way. build_authoritative_sources.py now writes Forever Sources.lua/SourceNames.lua for the spells Forever shares with Vanilla, and build-hidden-recipes.py Forever writes Vanilla's never-implemented list kept to Forever's spells, each flagged. Generated: Forever Sources covers 1,170 of 1,551 recipes and HiddenRecipes flags 23; the other flavours' Sources/SourceNames regenerated byte-identical. The Forever TOC now lists HiddenRecipes.lua, Sources.lua and SourceNames.lua, and a new hiddenrecipes_spec block checks Forever hides exactly the Vanilla-hidden spells it ships, each flagged borrowed.
  • The 2026-10-04 Forever walk's trainer ranks are merged (tools/forever_trainer_ranks.json, 30 spells) and Forever's _core rebuilt. They take priority over the borrowed values and often disagree with them: Copper Chain Belt 30 (Vanilla 35), spell 3116 40 (Vanilla 65), Copper Chain Pants 15 (Vanilla 1).
  • extract_emulator_trainers._prepare_trinity_cata imported py7zr before checking the tables were already extracted, so the sources build failed on a machine without it even with every table cached. The import now sits after that check.
  • Fixed: Vanilla trainer-taught recipes shipped with no requiredSkill. CMaNGOS Classic's npc_trainer lists the trainer's LEARN spell, not the craft (blacksmith 1241 teaches 2743, whose SpellEffect Effect=36 row grants Copper Chain Pants 2662), so the 472 trainer ranks it yields were keyed by spells no recipe carries. The builder now follows that hop (resolve_learn_spell_ranks, sharing learns_from_spell_effects with the recipe-scroll chain): 473 Vanilla crafts gained requiredSkill (Copper Chain Pants 1, Copper Chain Belt 35), and recipes whose orange tier was the DBC placeholder 1 now anchor on it (Runed Copper Bracers {90,115,127,140}). The donor is resolved through the donor's own SpellEffect: Forever's DBC lacks most of Vanilla's learn spells, and through it the hop found 73. TBC, Wrath, Cata and Mists regenerated unchanged.
  • ProfessionDB_Mainline.toc declares 120005, 120007 and 120100, matching VersionCheck-1.0's list (peer review 4e462d75 F5), so a 12.0.5 or 12.0.7 client does not flag the library out of date. Not checked whether a Retail client loads a TOC above its own interface.
  • ProfessionDB_Camelot.toc's comment no longer says nothing is borrowed from Classic (peer review 4e462d75 F6).
  • MANUAL_EXCLUDED_SPELLS on Retail checked, no change (self-audit 4e462d75 F1). It drops 818 Basic Campfire, 12900 Mobile Alarm and 19106 Onyxia Scale Breastplate from Retail, and Wowhead (Retail) lists 12900 and 19106 as "not in game". clean_recipes now logs the excluded ids, not just a count.

Tools and dev sync

  • wow-version-replication.ps1 now also copies into _retail_.
  • v1.4.1 and older moved to a new CHANGELOG_ARCHIVE.md, whole and unedited, with a pointer at the bottom of this file: the changelog had reached 115,981 characters against the 120,000 ceiling for a GitHub release body.
  • .pkgmeta comments removed (operator rule: no comments in the file the packager parses). The ignore: entries are unchanged.
  • wow-version-replication.ps1 now copies into _classic_beta_, the WoW Forever install (Interface 16001, ProfessionDB_Camelot.toc + Data\Forever). Before this, the watcher never copied the Forever tree into the Forever client, so it could not be tested there. Other fleet replicators (ItemDB, QuestDB, Dibs) already target this folder.
  • wow-version-replication.ps1 Sync-File no longer deletes replicas of a file the source still has (peer review thread a7c434f3, from TOGProfessionMaster). A Deleted for a path that Test-Path finds again is treated as Changed. Our watcher polls and already checks before raising Deleted, so the exposure was an editor's save-by-replace landing between the two checks; TOGProfessionMaster's event-driven copy lost a live file from every replica this way.
  • WoW Forever gets a trainer tier from real Forever trainers. The builder gave Forever no trainer requiredSkill at all, because no emulator models it. tools/build_authoritative_data.py now reads tools/forever_trainer_ranks.json as Forever's trainer tier, in the same priority slot the emulator SQL fills for Classic (manual > scroll > trainer). The file is generated, never hand-edited: tools/profcapture.py --merge-trainer-ranks folds a TOGTools Profession Capture into it. Each walk covers only the trainers its walker reached, so the file accumulates, and on any disagreement the lowest rank wins (the emulator tier's rule for duplicate rows). The path and loader live once in pdb_common (capture_trainer_ranks_path, load_capture_trainer_ranks). The first walk (2026-10-04) holds 27 ranks from three apprentice trainers; merging it and regenerating Data/Forever/_core waits on approval of the pdb-profcapture-merge desk tool.
  • profcapture.py no longer calls a silent walk a never-obtainable signal when it is not one. The first Forever walk got source text for 0 of 2,511 recipes, including recipes the same capture saw a trainer teach. The report now says such a walk carries no signal. It flags the silence as evidence only when the client answered for some recipes and no silent recipe is trainer-taught. Raised with TOGTools (contract c934e6aa). Self-test is 27/27 and is now a declared desk suite (profcapture selftest).
  • Tests/wowapi pin moved af2ed57 -> 496da46 (harness thread bfadeb8c: Mainline is now Interface 120100). No Adoption-log entry in that range needs an addon-side change, and no spec asserts 110200; the whole suite passes 191/191 at the new pin. Retail = 120100 was also added to this repo's own Tests/env_pdb.lua builds table.
  • Tests/wowapi pin moved 27e8850 -> af2ed57 (Writ peer-review thread e3031c41: the old pin predated the harness's BASELINE.tsv, so writ's spec-shape lint reported 25 findings inside the harness). No Adoption-log entry in that range needed an addon-side change; whole suite 184 passed, 0 failed, and the spec-shape check is now clean.
  • TOC brand-colour request (DeltaSync thread adfb0ff7): checked, nothing to change -- all six TOCs already carry |cffFF8000Lib: ProfessionDB|r with a closed grey version tag and ## Category: Library.

[v1.8.0] (2026-09-25) - WoW Forever gets its own data tree, top-ups merge, peer review moves to the writ inbox, and every Classic tree is re-stamped

Library MINOR 11 -> 12. Three public behaviours changed, so a same-MINOR copy must not be allowed to shadow this one. Data/ WAS regenerated: every Classic _core tree one flavour at a time (Vanilla, TBC, Wrath, Cata, Mists), each diffed before the next, plus a new Data/Forever tree.

Data

  • Classic _core trees regenerated. Outside 12 Alchemy recipes the diff is header-only: each file now credits tools/build_authoritative_data.py and carries a -- build <id> stamp. Every per-file recipe count is unchanged.
  • The 12 TBC transmutes/flasks (28580-28591) now require 375, not 385/390, in TBC, Wrath, Cata and Mists. Their tiers follow: TBC transmutes 28580-28585 375/385/392/400 (was 385/388/392/400), TBC flasks 28586-28591 375/390/397/405 (was 390/393/397/405); Wrath/Cata/Mists 375/376/377/380 (was a flat 385/385/385/385, the TBC-only override clamped above those trees' own TrivialHigh of 380). Derived by the existing pattern-recipe tier rule.
  • Vanilla and TBC AcquireMethods.lua regenerated at the current pins (peer review finding 12). Only the stamp line changed: the data had been right and the stamps stale.
  • New Data/Forever tree from Forever's own DBC (1.60.1.69977): 2,511 recipes across 10 professions, 12 locales, RecipeItems (1,859 of 2,664 recipes have a teaching item) and AcquireMethods. No HiddenRecipes, Sources or trainer-derived requiredSkill: none of those sources carry Forever data.
  • MoP pin bumped 5.5.3.67509 -> 5.5.4.69934 (tools/pdb_common.py), the first 5.5.4 build check-build-pins.py --locales MoP reports complete for every locale. Data/Mists regenerated through all three builders (core + names, RecipeItems, AcquireMethods), each diffed: stamp lines only. Recipe counts (5,302 core, every locale), teaching items (3,026 of 5,456) and acquisition flags (62) are unchanged; RecipeScrollPrefixes.lua byte-identical.
  • Vanilla pin bumped 1.15.9.69109 -> 1.15.9.69722, alone and after MoP, once check-build-pins.py --locales Vanilla reported it complete for every locale. Same three builders, same result: stamp lines only. 1,565 recipes (core and every locale), 1,074 of 1,645 with a teaching item, 28 acquisition flags, prefixes byte-identical.
  • TBC pin bumped 2.5.6.69110 -> 2.5.6.69795, alone and after Vanilla validated, once check-build-pins.py --locales TBC reported it complete for every locale. Stamp lines only: 2,170 recipes (core and every locale), 1,453 of 2,267 with a teaching item, 35 acquisition flags, prefixes byte-identical. Wrath and Cata were reported current by the 2026-09-23 pin check and were not re-swept here.

Tools

  • New tools/profcapture.py: reads a TOGTools Profession Capture and reports it against a shipped tree (default Forever). Forever has no emulator or AllTheThings data, so which recipes a player can obtain, and what trainers ask for them, can only come from a live client. At the operator's direction (2026-09-24) that capture is TOGTools' job (contract e2868011, TOGTools v0.9.0, schema 1); a walker visits trainers and recipe vendors and the SavedVariables come back here. Per shipped recipe the report lists trainer / vendor / drop / known evidence, recipes with none, spells the capture saw that the tree lacks, and trainer skill ranks that disagree with requiredSkill. It writes nothing under Data/. It carries its own strict Lua-literal reader, because port_pm_data.py's regex comment strip is unsafe on SavedVariables full of names. It also reads TOGTools' NPC-free recipe-source walk (profCapture.walk, Forever/Retail only), which asks the client for the source text the Professions window shows under an unlearned recipe. That text is client-built and localized, so it is split into Label: value lines with colour codes removed, and the labels are reported verbatim instead of being given meanings here. A walked, unlearned recipe with no source text at all is reported separately as the strongest never-obtainable signal. --selftest passes 19 of 19. Its readers agree with core_recipe_ids on Forever (2,510 recipes, 1,859 teaching items) and Vanilla. Not yet run on a real capture: none exists yet.
  • Tested and ruled out: TOGTools' Item DB walk as evidence of obtainability. In both Era walks, the teaching items of all 27 AllTheThings never-implemented Vanilla recipes resolve on the server exactly as real ones do.

Changed (library)

  • LoadCore / LoadNames MERGE instead of replace. Only the fields a call supplies are written, driven by one CORE_FIELDS list that LoadRecipes also loops. The header always promised that other addons could "contribute / top-up" recipes; the old code blanked every field a top-up omitted and left a present-but-hollow recipe. Peer review finding 13, plus a follow-up that removed a second hand-written copy of the field list.
  • GetGameVersion can answer "Forever" or "Unknown". Interface 16001 exactly is "Forever", tested before the Vanilla branch; any other 16000-19999 client, and anything at 60000+ (Mists is now bounded), is "Unknown" and loads no data (IsReady() false) instead of Era's or Mists' recipes as its own. Peer review finding 16 and thread 3900ffe9.
  • LoadSources counts true totals across a merge and copies instead of adopting. An untruncated contribution was dropped from .total (3 + {2, n=100} reported 100, not 103), and the first caller's array was appended into by later merges. Peer review findings 14 and 15.

New

  • ProfessionDB_Camelot.toc (WoW Forever, Interface 16001) loads the library and the Data/Forever tree, so an addon that hard-depends on ProfessionDB is no longer refused on Forever (Dibs was) and gets real data.
  • A spec compiles every data file every TOC lists. Only Vanilla/TBC files were ever executed by the suite; the first Forever build shipped a koKR Enchanting file with a raw newline inside a name string (spell 8694), which this caught. lua_value now escapes \n and \r. Every Classic file compiled, so no released data was affected.

Changed (pipeline, tools/)

  • WoW Forever is a branch flavour (pdb_common.BRANCH_BUILDS, pin 1.60.1.69977, wago branch wow_classic_beta), kept off the Classic expansion axis: no emulator trainer tier, no emulator Sources, not part of merge_expansions. Those ship as visible gaps rather than borrowed Classic data.
  • Both DB2 schemas are read. pdb_common.item_effect_pairs joins Forever's ItemXItemEffect where Classic has ItemEffect.ParentItemID, and spell_effect_base_die translates Forever's EffectBasePointsF. On Vanilla's cache both return exactly what the old reads did (16,944 pairs; 0 of 40,250 SpellEffect rows differ).
  • 12 TBC Alchemy overrides 385/390 -> 375 (28580-28591). The old values were the DBC trivial column, above TBC's 375 cap; Wrath, Cata and Mists all carry 375 in that column, and warcraft.wiki.gg reads 375 for all twelve. manual_skill_overrides.json now documents every source label in use.
  • SHORT_ROW_RATIO 0.80 -> 0.95, measured. 201 legitimate same-expansion pairs bottom out at 99.3%; known short exports sit at 19-56%.
  • The builder now stamps every _core file with its build, and check-build-pins.py --stamps checks every stamped file, not just RecipeItems.lua (peer review findings 11 and 12). It never prints an all-clear while files went unchecked, and a branch flavour with no tree is reported rather than failing the run (peer review thread 3de6a4bd).
  • --builds <one flavour> no longer overwrites recipe_items_map.json, which the sources builder reads for every expansion; it is written only when the whole Classic axis was built.
  • build-recipe-items.py's "gathering lines have no scrolls" check is Classic-only. Forever teaches housing blueprints on Herbalism and Skinning ("Blueprint: Greenhouse", "Blueprint: Field Guide"), so the join is right.

Changed (process)

  • Peer review, harness contracts and dependency contracts moved to the writ inbox. docs/AUDIT.md, Tests/HARNESS_CONTRACT.md and docs/DEPENDENCY_CONTRACTS.md were imported and removed; git history keeps every committed line. The audit board's rounds 24-25 were never committed and survive as inbox threads only.
  • Suite 169 -> 184 specs, 0 failed. The unanchored-tiers rule and the compile-every-listed-file spec both walk six trees now, ProfessionDB_Camelot.toc included.

Documentation

  • README and CurseForge page brought up to the v1.8.0 tree. Forever added wherever the flavours are listed, with what it lacks (sources, never-implemented list, trainer requiredSkill) stated beside it; the build-pin table and the CurseForge build list now read Vanilla 1.15.9.69722, TBC 2.5.6.69795, Mists 5.5.4.69934; the "Mists is deliberately behind" paragraph is rewritten as history; the build-stamp paragraph no longer claims only RecipeItems.lua is stamped. Measured off the Forever tree for the unanchored-tiers table: 614 unanchored, 14 absent-but-anchored, 26 with requiredSkill exactly 1 (totals now 61 and 218). Forever scroll coverage 1,859 / 2,664 (69.8%), 3 rank books, from its RecipeItems.lua header.
  • CurseForge v1.8.0 notes grouped under New / Changed / Fixed, with the fix: prefixes dropped, and the Vanilla/TBC/Mists build moves added.

[v1.7.0] (2026-08-20) - Trainer requirements are scoped per expansion, scroll prefixes ship their sample count, and Vanilla stops borrowing a later expansion's numbers

This entry started as tooling-only and did not stay that way. An earlier draft of this paragraph said "nothing in this entry changes a single byte that reaches a player", which was true when it held only the harness pin and the replication script. It is now false, and the correction is the headline: Data/ is rewritten across all five expansions and the library gains a public API return.

MINOR, not PATCH, and the deciding facts rather than the feeling: GetRecipeScrollPrefix returns a second value and LibProfessionDB-1.0 is at MINOR 11, which this project bumps only when the public API changes; a new loader, LoadRecipeScrollPrefixSamples, ships new data in all 60 locale files (12 locales x 5 games); and a new TBC trainer source was added to the pipeline. All of it is backwards-compatible -- GetRecipeScrollPrefix's first return is unchanged, so no existing call site moves -- but additive is not corrective.

Read Changed (shipped data) before upgrading if you consume this library. Vanilla requiredSkill coverage drops about 25% on purpose, and docs/DEPENDENCY_CONTRACTS.md section 6 carries the consumer rule that goes with it.

Fixed

  • wow-version-replication.ps1 was replicating Tests/, docs/ and tools/ into the _classic_ and _anniversary_ installs on every sync, while reporting those exclusions as loaded. Convert-GlobToRegex compiled a folder entry to ^Tests$, which matches a FILE literally named Tests and nothing else. It could never have worked: $isDir was set from a trailing backslash, and a trailing slash is exactly what the BigWigs packager forbids (release.sh's parse_ignore() trims a trailing /*, not a bare /, so Tests/ would compile to Tests//* and match nothing), so a correct .pkgmeta can never set that flag. Fixed by promoting $isDir when a wildcard-free entry resolves to a real directory under $Source, the idiom already in AceCommQueue-1.0:125-130. The wildcard exclusion is load-bearing: Test-Path would glob a pattern and could promote an unrelated directory.

    This stopped being cosmetic when Tests/wowapi grew mcp/ (a Python tree) and conformance/ (a loadable addon with its own .toc), because a sync then installed a second addon into the other flavour installs. Raised as docs/AUDIT.md finding 2 and answered there. The .pkgmeta itself was already correct, so the released zip was never affected.

  • The same script replicated every dotfile it had not been told about by name. The always-skip list was five explicit patterns covering .git, .gitignore, .gitattributes and .gitmodules -- i.e. exactly the dotfiles somebody had enumerated. -DryRun showed .busted, .luacheckrc, .luarc.json, .markdownlint.json, .markdownlintignore, .github\workflows\release.yml and .vscode\tasks.json all copying. This one cannot be delegated to .pkgmeta: the packager prunes dotfiles unconditionally in copy_directory_tree() (-name ".*" -prune), so a dot entry in an ignore: list is a no-op there and nobody writes one -- which makes this script the only place the rule can live. Replaced the enumeration with the general component rule '(^|\\)\.'. It is load-bearing rather than tidy: .git in these repos is a one-line gitdir pointer file (the real git dir lives outside the WoW tree), so replicating it aimed the copy at the wrong repository.

    Found by the -DryRun run that was verifying the fix above, not by reading. It is the third instance of one species in this repo, after finding 1 (a guard that could not fail the way the incident failed) and finding 2 (an exclusion that could not match the thing it named): a mechanism that reports success while doing nothing, made invisible by a startup banner that prints a count of rules parsed and reads as coverage.

Changed

  • Tests/wowapi pin moved 59c4280 -> 27e8850, 86 commits. Suite 103 passed, 0 failed, 0 pending before and after; verify-addons 150/150 files, verify-widgets 27/27, verify-libs 8/8 with LibProfessionDB-1.0 reporting 51 methods. Nothing in those 86 commits reached this library, and that is recorded rather than left as silence: the Adoption log carries several entries warning a consumer's suite may go red (UnitName/UnitClass answering per token, SetCVar firing CVAR_UPDATE, ColorPickerFrame copying its info, GetTexCoord returning eight values, UIDropDownMenu_Initialize running its initialiser, Settings category ID becoming a number, the drag/resize model), and none of them touched us because LibProfessionDB-1.0 reads GetBuildInfo and GetLocale at load and no client API after. A green suite here really is a no-op.

Documentation

  • AttachExternalRecipeInfo was documented in README.md and on the CurseForge page for three releases and HAS NEVER EXISTED IN THIS LIBRARY. Both references are removed. A consumer following the documentation gets attempt to call a nil value (method 'AttachExternalRecipeInfo'), which is the worst grade of documentation defect -- not vague, not out of date, just describing a method that is not there.

    How it happened, because the mechanism is reusable: when the recipe-scroll API moved here from LibItemDB-1.0 in v1.5.0, the delivery note in docs/DEPENDENCY_CONTRACTS.md listed this method as having "came with the rest, on your reasoning -- it is keyed by spell and draws a recipe tooltip, and reads no item data at all." The reasoning was sound and the method was never written. The README was updated from the migration PLAN rather than from the migrated CODE, and every later edit inherited the row without re-checking it. Verified now with git log -S AttachExternalRecipeInfo -- LibProfessionDB-1.0.lua, which returns no commit at all.

    ItemDB and TOGProfessionMaster are told, in an appended note in docs/DEPENDENCY_CONTRACTS.md under the original delivery. If either is feature-detecting with if DB.AttachExternalRecipeInfo then it has been silently taking the false branch since v1.5.0 and needs nothing; a direct call has been erroring.

  • LoadRecipeScrollPrefixSamples is documented. v1.7.0 added a third loader reading <locale>/RecipeScrollPrefixes.lua, and the README's ingestion table listed only two. The same section warns that "a parse anchored to the file rather than the loader will sweep unrelated tables together -- the mistake two independent scripts have already made here", and the count in that warning was itself now wrong. Both the table and the count are corrected.

  • Four stale figures corrected, each re-measured against the tree rather than carried forward. These are the sort of number that goes wrong silently, because nothing recomputes a sentence:

    Claim Was Is Where it was checked
    Vanilla scroll coverage 1,073 (65.2%) 1,074 (65.3%) Data/Vanilla/_core/RecipeItems.lua:8
    Vanilla synthetic descriptors 572 571 same header
    Vanilla never-implemented, shipped 21 25 Data/Vanilla/_core/HiddenRecipes.lua:8
    Data/*/itIT/ files 63 62 counted off disk

    The first two moved in this release -- the is_obsolete fix gave one more recipe a real teaching item, so it left the synthetic set. The third has been wrong since v1.6.0, when the extractor fix raised it from 21 to 25 and the README was not followed through. The generators write their own counts into each data file's header, which is why three of the four were checkable in one read: prefer the header to the prose.

  • The esES/esMX scroll-prefix note was internally contradictory and is now measured. It read "esES ships only 2 of 9 ... esMX has all 8" -- nine and eight in one sentence. Measured on Vanilla: enUS derives 9, esMX 8, esES 2. esMX is missing Mining (186), which is the same profession whose enUS prefix rests on a single scroll -- so the locale gap and the sample-count feature are the same underlying thinness, and the README now says so.

  • The CurseForge page no longer lists Italian as a supported language. It sat in a flat list of locales "-- every official WoW locale", which reads as a promise to an Italian player. Italian is a Retail locale, cannot load on any flavour this library ships, and the text inside those files is English. It now has its own entry saying exactly that, rather than being quietly counted.

  • The CurseForge HTML is now PARSED rather than read. Every review of that file to date checked it by eye or by grep, and a pre-release review nearly filed a false finding when its own output escaping manufactured a malformed <\code> tag that was not in the file. It parses clean: every tag balanced, every entity defined.

  • docs/AUDIT.md: finding 2 answered FIXED in place, with the dry-run evidence both before and after. Its Status row could not be updated -- the enforced append-only law refuses both a rewrite and the documented strike-in-place shape when the target is a table cell -- so state is carried in an appended ## Status update section instead, per the harness's own 2026-08-14 instruction.

  • Tests/HARNESS_CONTRACT.md: records the new pin (the Pin: line in the header is append-only and stale), and opens one contract on the contradiction above, where two protocol documents tell ~20 consumers to do something the law refuses.

  • Both files gained a charset-ok declaration. They are developer threads that ship no text to the client, they are append-only in both directions, and each side quotes the other verbatim -- so neither side may normalise the other's punctuation, and without the declaration the charset law blocks every future response that has to quote an existing line.

  • Get-PkgmetaIgnores silently repaired input the packager breaks on, so the dry run could not fail on the one .pkgmeta defect that ships an empty zip. wow-version-replication.ps1:140-166. The parser stripped trailing comments before reading a list item; the BigWigs packager does not. On - "*.ps1" # glob, release.sh's yaml_listitem() removes the opening quote and finds no closing one, the stray quote breaks the eval in copy_directory_tree, the destination lands empty, every file is copied nowhere, and the packager still exits 0 and uploads a ~108-byte archive. Because -DryRun is now the acceptance test for the two exclusion fixes above, the one check that most needed to fail on that file could not: a green dry run would have been produced by the exact .pkgmeta that ships an empty release.

    Now it warns instead of repairing -- the script's job is to agree with the packager, not to be kinder than it -- and the inline strip is anchored to a whitespace-preceded #, since # is a legal filename character.

    Closing it introduced a regression in the same function, which is also fixed. Anchoring the strip meant a column-zero whole-line comment inside the ignore: block no longer blanked; it survived as # ... and the next test read it as a new top-level YAML key, terminating the block and discarding every entry after it. So a fix aimed at one report-success-while-doing-nothing mechanism briefly installed another one, three lines away. Comment lines are now skipped outright before anything else looks at them. Our .pkgmeta keeps its comments above ignore: and would not have hit it.

    Verified: the parser still loads the same eight globs, no warning fires on the real file, and WOULD for Tests|docs|tools and for any dot component are both still 0. The guard itself is proven at the predicate level over seven cases, including - "weird#name.lua" surviving intact. It was not driven end to end from a genuinely broken .pkgmeta: a repo law refuses to write one, detecting the same empty-zip shape. Raised as docs/AUDIT.md finding 3.

Fixed (data pipeline)

  • Trainer skill requirements were held in ONE flat map across every emulator source, so whichever source sat last in the list silently rewrote every other expansion's shipped data. extract_all_skill_ranks in tools/extract_emulator_trainers.py returned a single {spellId: rank} dict built across all four world DBs, licensed by a comment at build_authoritative_data.py:187-189 reading "the data is build-agnostic (trainers are server-side, not per-client-build)". That premise is false, and the sources themselves are the disproof: cmangos_classic teaches Smelt Silver at 65 and cmangos_tbc at 75. "Not derived from a client build" does not imply "the same in every expansion". A flat map physically cannot hold two answers, so every build read whichever one was written last -- the cross-expansion merge that build_authoritative_data.py:1528 states in as many words does not happen: "Not merged across expansions -- each game folder is that build's point-in-time set." Two comments in one file asserting opposite things about whether expansion matters.

    A second precedence rule was broken by the same mechanism, and nothing asserted it: the function's own docstring said "SOURCES is ordered oldest -> newest ... so a straight overwrite as we iterate gives the right precedence", and cmangos_tbc had been appended to the end of SOURCES. The oldest non-vanilla source was overwriting the two newest. A precedence policy expressed as list order is a policy an append can void.

    Fixed by keying the map by expansion: extract_all_skill_ranks now returns {expansion: {spellId: rank}}, and skill_ranks_for_expansion() flattens it for one target build under one written rule -- a build takes trainer values from its own expansion or any older one, never a newer one; within that set the newest wins. EXPANSION_ORDER is the single place the axis is written down, so SOURCES order is now decorative and cannot express a precedence. extract_recipes_for_build resolves its EXPANSION_BUILDS label once at the top (it had been resolving it 200 lines later for BUILD_EXCLUDED_SPELLS) and passes it down. The false comment is replaced by its disproof, and the stale "AzerothCore Wrath + TrinityCore Cata" note in the requiredSkill priority chain now names all four sources.

    Duplicate rows for one spell within a single source now take the LOWEST rank and every disagreement is printed, replacing a dict assignment that made the shipped value depend on row order. requiredSkill answers "what skill do I need to learn this", so if any trainer teaches it at 310 the answer is 310. There are seven, all in cmangos_tbc, and six were unknown: spells 10548 (230/235), 10619 (225/255), 19047 (230/250), 19058 (230/250), 26926 (5/20), 29557 (310/315), 34983 (350/360).

    This closes an open item that had two wrong hypotheses attached to it. Four Data/Mists/_core/ files -- Blacksmithing, Engineering, Jewelcrafting, Mining -- had been diverging from their committed state at an unchanged DBC pin, and had been blamed first on the is_obsolete fix changing a teaching-item tie-break and then on a stale builder. Both were wrong. It was the flat map, and scoping it reverted all four to byte-identical without anything else being touched. Raised and answered as docs/AUDIT.md rounds 7 and 8.

  • The fix above shipped with the flat map still live for one expansion, because two lists had to agree and nothing checked that they did. skill_ranks_for_expansion fell back to "use every source" for a label it did not recognise -- which is the flat merged map, restored -- and EXPANSION_ORDER ended in "mists" while pdb_common.EXPANSION_BUILDS calls that expansion MoP (only its Data folder is named Mists). So the MoP tree never recognised its own label and took the fallback for the whole of the change that was meant to remove it. A fix for "a rule living in the incidental agreement of two things", carrying a rule living in the incidental agreement of two things.

    Data consequence: zero, and structurally rather than by luck. With the label corrected the tree regenerates byte-identical. Scoped, MoP takes vanilla -> tbc -> wrath -> cata, there being no MoP trainer source; unscoped it took those same four plus a "mists" key nothing ever wrote to. The newest expansion is precisely where "everything" and "everything not newer than me" coincide, so the defect could not show itself in the output of the only tree it reached. Measured after the fix rather than predicted before it.

    Closed three ways, all of which were needed: EXPANSION_ORDER now spells the label "mop" under a comment saying so is load-bearing; skill_ranks_for_expansion raises on an unrecognised label instead of merging; and build_authoritative_data.py asserts at import that every EXPANSION_BUILDS label lowercases into EXPANSION_ORDER. That assertion is what found this -- it failed on its first run with ['MoP']. Raised as docs/AUDIT.md round 10 finding 2.

  • Five pipeline guards were written in a construct Python is allowed to delete. python -O and PYTHONOPTIMIZE=1 strip assert statements outright, so each of these stopped existing on an environment variable with no code change: the ascending-major ordering check in extract_emulator_trainers.py, the EXPANSION_ORDER derivation guard in build_authoritative_data.py, and the three partition guards in build-recipe-items.py that assert no spell is in both the real and synthetic scroll tables, none is in neither, and no skill-rank book is given a synthetic scroll.

    The last three are the serious half: they protect shipped data integrity and fail quietly. All five are now if not <cond>: raise ValueError(...), which no interpreter flag removes. Lua assert in Tests/ is untouched and correct -- the busted runner has no -O and Lua's assert is an ordinary function call.

    Measured rather than accepted from the language spec: under -O, assert [5,4,3,2,1] == sorted(...) passes silently; the replacement raises under both plain python and python -O when fed a reversed EXPANSION_BUILDS. That red-test also closes a guard that had been reported twice as undriven -- converting it is what produced a failure path worth driving. docs/AUDIT.md round 14 finding 5.

  • extract_recipes_for_build no longer defaults an unknown build to its own build-id string. The label lookup ended , build), and a build-id can never be an expansion label -- so any build absent from EXPANSION_BUILDS would have carried that string into the trainer lookup and taken an unscoped map for its whole tree, as well as silently missing BUILD_EXCLUDED_SPELLS. There is no correct answer for a build with no pin, so it raises.

  • The trainer-extraction failure message promised a fallback the code refuses. It said "trainer-taught requiredSkill will fall back to SLA heuristic". It does not: the priority chain is manual or scroll or trainer, so with no trainer data the value is None and the field is omitted -- and the chain rejects the SLA fallback precisely because it masks the gap. Post-388 that was actively misleading: an operator expecting heuristic values would get omissions plus placeholder difficulty tiers. It now says what happens, calls the result a bad build that must not ship, and points at docs/DEPENDENCY_CONTRACTS.md §6. docs/AUDIT.md round 10 finding 3.

  • The obsolete-item filter matched the ordinary English word "Old", so a real recipe scroll was thrown away and replaced with a fabricated one. tools/build-recipe-items.py skipped any item whose name matched (^|\W)(ZZOLD|OLD|TEST|DEPRECATED|\[PH\]|PH\b|UNUSED) before the teaching-item join ran. OLD had no right anchor, so item 234255 "Recipe: Flask of the Old Gods" was discarded as a Blizzard dev leftover. With no item left teaching craft 1213548, the builder fell through to the synthetic path and shipped a made-up scroll for a recipe whose real scroll exists -- breaking the invariant that a recipe answers GetRecipeItem or GetSyntheticRecipeScroll and never the wrong one.

    Traced end to end on the cached build 1.15.8.67156 rather than inferred: SkillLineAbility puts craft 1213548 on skill line 171, ItemEffect gives item 234255 the spell 1213550, SpellEffect gives 1213550 an Effect 36 granting 1213548, and ItemSparse names 234255. Every input the join needs was present; the filter ran first.

    The interesting half is that the correct rule already existed in the same folder. tools/build_authoritative_data.py anchored it as \bOLD$ -- trailing marker only -- under a comment reading "Conservative on purpose: matches must be word-boundary or unique-bracket forms so the filter never eats a legitimate item." Two implementations of one rule, drifted, one wrong. The bad copy's own comment claimed "Same intent as the obsolete filter in the other build-*.py scripts", which was false and read as a reason not to check.

    Fixed by removing the duplicate rather than patching it: the predicate is now is_obsolete_item_name / OBSOLETE_NAME_PATTERNS in tools/pdb_common.py, carrying the careful version verbatim, and both builders import it. Verified by running it: "Recipe: Flask of the Old Gods" is no longer obsolete while "Pattern: Double-stitched Leather Gloves OLD", "ZZOLD Design: ..." and "59 TEST ..." still are. Measured blast radius on Vanilla is exactly two matching scroll names, one of each kind, so the live cost was one recipe -- but the pattern was a standing trap for any future item named with "Old", "Test" or "Unused" as an ordinary word.

    Found by ItemDB, who declined to accept "build drift" for a row that looked missing and asked for it to be checked. Answered in full in docs/DEPENDENCY_CONTRACTS.md.

    Regenerated, and the whole five-expansion diff is two lines in one file:

    +[1213548]=234255            (into LoadRecipeItems)
    -[1213548]={171,233965}      (out of LoadSyntheticRecipes)
    

    Vanilla real count 1073 -> 1074, synthetic 572 -> 571, partition assertion still passing at 1645 of 1645. TBC, Wrath, Cata and Mists regenerated byte-identical. That is better evidence than the fix itself: it shows the corrected filter changed exactly the one thing it was meant to.

  • The stale DBC build pins are bumped, ONE AT A TIME with the diff read between each. Vanilla 1.15.8.67156 -> 1.15.9.69109, TBC 2.5.5.67511 -> 2.5.6.69110, MoP 5.5.3.67509 -> 5.5.4.69383. Wrath and Cata were already current. Each bump re-fetches that expansion's DBC CSVs and regenerates it through both builders -- build_authoritative_data.py for the cores and 12 locales of names, then build-recipe-items.py.

    --builds <label> is safe to use for one expansion at a time, and that was checked rather than assumed: the spec-lock map at build_authoritative_data.py:1497 iterates EXPANSION_BUILDS in full regardless of the filter, so restricting the emit does not shrink the union it is built from.

    CORRECTED BEFORE RELEASE -- the paragraph that stood here was wrong. It presented a table of changed skill values as "the drift between the two builds" and called them Blizzard tuning passes. They are not build drift at all. Every one of those values comes from the TBC emulator trainer source added in this same release (see below); measured afterwards, cmangos_tbc_npc_trainer_template.sql contains all of them and cmangos_classic_* contains none:

    recipe shipped regenerates in the new TBC trainer source
    Smelt Silver (2658) 65 75 75
    Smelt Bronze (2659) 50 65 65
    Smelt Tin (3304) 50 65 65
    Engineering (12895) 205 200 200
    Jewelcrafting (31048/31049) 305 310 310

    The reasoning that produced the wrong answer is worth more than the correction, because it looked like evidence: the changes were argued to be genuine because requiredSkill and difficulty[1] moved TOGETHER. That coherence is manufactured -- the builder derives the difficulty tiers from requiredSkill at build_authoritative_data.py:848-856. Two fields moving together says nothing whatever about where the value came from, and it was used as the main argument.

    The pin bumps themselves stand; what was wrong was the claim about which changes they caused. Partition assertions unchanged on both (Vanilla 1074+571=1645, TBC 1453+814=2267), suite green throughout, and the whole change set is raised for review in docs/AUDIT.md round 7.

    Vanilla's was a restoration, not a move: its shipped tree had already been generated at 1.15.9.69109 and only the pin had been left behind. It also closes the standing "build drift" disagreement with ItemDB, who were on 1.15.9 while we were pinned to 1.15.8.

  • MoP's bump was attempted, FAILED VALIDATION, and is reverted -- and the pipeline now refuses the failure instead of shipping it. With MoP at 5.5.4.69383, Data/Mists/zhCN/RecipeScrollPrefixes.lua silently lost two professions -- Jewelcrafting and Inscription, 10 down to 8. Every count and assertion still passed: partition 3026+2430=5456, 5,302 cores, suite green. The file even wrote "8 professions" in its own header, so it read as a legitimate locale difference between builds.

    wago's 5.5.4 zhCN and zhTW ItemSparse exports are incomplete at source, and the items that vote for those prefixes were in the missing 80%. Probed rather than assumed: the response is Transfer-Encoding: chunked with no Content-Length, ends cleanly on a complete CSV row, and returns exactly 5,981,882 bytes / 17,021 rows on every fetch -- against 88,671 for zhCN on 5.5.3 and 88,753 for enUS on 5.5.4. Deterministic, so not a timeout and not a cut stream. SkillLineAbility has 621 Inscription rows on both builds, so nothing about the game changed, only what arrived.

    MoP is reverted to 5.5.3.67509 and regenerated from its intact caches; zhCN is back to 10 professions.

    wago_text now refuses a short export rather than caching it. The check is the row count against the same table and locale on another build of the same expansion -- and same-expansion is load-bearing, since Vanilla's ItemSparse is legitimately ~26% of MoP's and a sweep that ignored it produced 163 suspects of which 162 were noise. Nothing is written on failure, so a re-run retries the fetch rather than reusing a bad file, and a first-ever fetch with no sibling to compare against is allowed through rather than blocked.

    The Content-Length check added alongside it is nearly useless here and is labelled as such, because the first version of this entry claimed otherwise: wago sends no Content-Length on this endpoint, so it never fires. It is kept for other hosts. The row-count guard is what protects this pipeline.

  • tools/check-build-pins.py: how far each pinned DBC build has fallen behind its live branch, on demand. Measured 2026-08-20 before the bumps above -- three of five were behind and two current:

    pinned newest live branch
    Vanilla 1.15.8.67156 1.15.9.69109 wow_classic_era 3 behind
    TBC 2.5.5.67511 2.5.6.69110 wow_anniversary 9 behind
    Wrath 3.4.5.63697 3.4.5.63697 wow_classic current
    Cata 4.4.2.60895 4.4.2.60895 wow_classic current
    MoP 5.5.3.67509 5.5.4.69383 wow_classic 14 behind

    The branch is now pinned per expansion in pdb_common.WAGO_BRANCH and must never be inferred from the version major. Finding "the newest build for this expansion" by matching on major produced two false positives, one of them badly wrong: wow_classic_titan 3.80.2 is Titan Reforged, a different product that answers to "3." and reads as a 14-build-newer Wrath, and wow_classic_era_ptr additionally carries 10.1 retail builds, so "newest matching major" there is not an answer at all. TBC lives on wow_anniversary, not on wow_classic_era; Wrath, Cata and MoP share wow_classic, which carries 5.5 / 4.4 / 3.4 / 2.5 / 1.13 side by side and so still needs a major filter on top of the branch.

    The tool exits 1 when any pin is behind, 0 when all are current, and 2 when wago could not be reached -- a checker that could not look must not report a pass. Read a non-zero exit as a question rather than a verdict: bumping a pin regenerates every file for that expansion through both builders across 12 locales and changes what players receive.

  • The pinned Vanilla wago build is OLDER than the build the shipped data was last generated from, and the regeneration is what surfaced it. The header stamp went backwards -- client build 1.15.9.69109 -> client build 1.15.8.67156 -- so a previous generation used a newer build than pdb_common.EXPANSION_BUILDS pins, and the pin was never moved. This is exactly the "build drift" ItemDB raised and I twice set aside as not worth chasing; they are on 1.15.9 and we are pinned to 1.15.8. Content cost today is zero -- a full regeneration at 1.15.8 changed one row, so the two builds agree on everything else this builder emits. The pin is deliberately not bumped: doing so regenerates all five expansions against newer DBC for a genuinely large diff, which wants its own pass rather than riding along with a one-row fix. On the repo todo list.

Documented (locales)

  • itIT cannot load on any Classic client, and is now labelled FORWARD-LOOKING instead of being described as correct. Italian is a Retail WoW locale and is not offered on any Classic flavour: the original Mists of Pandaria shipped fully localised in Italian in 2012 and MoP Classic did not, which separates "the content was never localised" from "the Classic pipeline does not ship Italian" -- it is the latter. Every data file opens with a GetLocale() guard and this library ships no Retail flavour, so the 63 Data/*/itIT/ files can never execute for a player.

    They are kept deliberately, not by inertia: Blizzard is being actively petitioned for Italian on Classic, the files are already correct and current, and re-adding after a delete costs a full regeneration. The note now carries the drop trigger -- if the package ever needs trimming this is the first thing to go, with the exact steps -- because "forward-looking" is otherwise how dead weight becomes permanent.

    Two wrong justifications preceded this and both are recorded in pdb_common.py above the right one, because the failure is more instructive than the answer. The first inferred what the client holds from an absence in a third-party export. The second said it did not matter either way -- sound reasoning that dodged the question instead of answering it, and that is what stopped anyone searching: once a question is moot you no longer need the answer, so you stop looking. The answer was one web search away. docs/AUDIT.md rounds 17-18.

Changed (build pins)

  • MoP pin bumped 5.5.3.67509 -> 5.5.4.69032. The builder fetched and cached the new build's tables and emitted a Mists tree identical to the old one. That sentence is phrased around the RUN rather than the OUTPUT on purpose, and the reason is worth keeping: on this tree a zero-diff is unfalsifiable. _core files carry no build stamp, so a correct rebuild and a silently-skipped rebuild produce byte-identical output and no artefact in the repo distinguishes them. "The files are identical" therefore cannot be wrong in any observable way, while "the builder fetched 5.5.4.69032__* and wrote them to the cache" can be -- so that is the claim being made. Raised as docs/AUDIT.md round 17.

    With that caveat stated: no shipped byte changed. Worth saying plainly, because "14 builds behind" sounded like a content gap and was not. The bump is hygiene -- it puts the pin on the era the client is actually in, so the next cross-repo comparison with LibItemDB starts from a shared build instead of rediscovering the difference.

  • It was pinned to 69032 rather than the newest 69383, and that is deliberate. wago serves individual (build, locale) exports independently, and a build being newer says nothing about whether it is fully served:

    build zhCN zhTW
    5.5.4.69383 (newest) short, 17,020 recs short, 50,141
    5.5.4.69155 complete short, 7,360
    5.5.4.69078 not tested short, 4,370
    5.5.4.69032 complete complete

    zhTW is the binding constraint and it is not monotonic -- it is worse on two older builds than on the newest -- so "wait until wago fixes it" was never going to terminate. A pin is only worth what you can generate from it, so the newest FULLY-SERVED build beats the newest build.

    This corrects the previous note in pdb_common.py, which said the exports were "incomplete at source". That claimed the gap was in Blizzard's data; it is not, and one fetch disproved it. The old comment is left standing in the file as the record of what was believed and what overturned it.

  • CORRECTION, and it reverses the two bullets above: 5.5.4.69032 IS NOT FULLY SERVED, the bump is REVERTED, and MoP stays on 5.5.3.67509. Both bullets are left standing because the reasoning in them is the thing that failed, and it failed in a way worth being able to read back.

    The regeneration was re-run and _assert_not_short refused the first locale it fetched: ItemSparse at 5.5.4.69032 for deDE returns 26,451 rows against 88,754 on 69383 -- 30%. Not zhCN. Not zhTW. A locale nobody had looked at.

    The defect was the method, not the tool. The table above sweeps exactly two locales, on the reasoning that zhTW was the worst case and therefore decisive. That reasoning can prove a build serves zhTW; it cannot prove a build serves deDE, and nothing had asked. check-build-pins.py --locales already scans all eleven non-mirrored locales -- the shortcut was taken by hand, outside the tool, because a full sweep is slow. A completeness claim built from a sampled subset is not a completeness claim, and "the binding constraint" was only ever the binding constraint among the locales fetched.

    What this leaves behind is a MIXED-BUILD TREE, which is why it is a revert rather than a note. pdb_common said 5.5.4.69032 while Data/Mists/_core/RecipeItems.lua was stamped 5.5.3.67509 -- the pin described a build the data had never been generated from. This repo's own record calls that outcome worse than a consistent old pin. Reverting makes the pin true and changes no shipped byte: re-running build-recipe-items.py Mists at 5.5.3.67509 completes and emits RecipeItems.lua byte-identical to what is committed.

    It also retires the zero-diff caveat above, in the worst way. Round 17 flagged that a zero-diff on this tree is unfalsifiable, because _core files carry no build stamp and a correct rebuild is indistinguishable from a skipped one. RecipeItems.lua does carry a stamp, and it read 5.5.3.67509 the whole time -- so the run described as "fetched and cached the new build's tables" cannot have reached the emit, because the deDE fetch fails before it. The stamp was sitting in the repo, unread, saying the bump had not happened.

  • check-build-pins.py now asks the mixed-build question too, offline, and it runs BEFORE the network call. The check above was done by hand. Doing it by hand is how it went unasked for a day, so it is a tool now:

    python tools/check-build-pins.py --stamps   # offline, no network
    python tools/check-build-pins.py            # both checks
    

    It compares every pin against the client build stamp in that expansion's Data/<game>/_core/RecipeItems.lua header and reports MIXED BUILD when they disagree. The two checks fail in opposite directions, which is why both exist: a stale pin ships consistent data describing an older client, which is a question; a mixed build ships data from a build the pin does not name, which means nothing in the repo describes what players receive.

    The ordering is load-bearing. The offline half runs first and its verdict is printed even on the wago unreachable exit-2 path, because a failed bump and a wago outage arrive together far more often than either arrives alone -- that is exactly the situation that produced this defect. A mixed-build result also decides the exit code, so a stale-pin 1 cannot mask it.

    RED-TESTED, not assumed. Re-pinning MoP to 5.5.4.69032 makes it exit 1 naming MoP and both builds; reverting makes it exit 0. A missing or unreadable stamp is a failure rather than a skip, on the same rule that a checker which could not look must not report a pass.

  • The full eleven-locale sweep then ran, and MoP stays on 5.5.3.67509 because NO 5.5.4 build serves every locale. This is the measurement the pin should have rested on in the first place:

    build short locales count
    5.5.4.69383 (newest) zhCN, zhTW 2
    5.5.4.69155 ruRU, zhTW 2
    5.5.4.69078 deDE, esES, esMX, frFR, itIT, ruRU, zhTW 7
    5.5.4.69032 deDE, esMX, itIT, koKR 4

    69032 does serve zhCN and zhTW in full, so the two-locale table further up is accurate. It is simply the one pair of the eleven that made a build with four short locales look like the right answer.

    Which way to look next, flagged as a hypothesis rather than a finding: the two oldest builds scanned score worst (7 and 4) and the newest scores joint-best (2), so wago's exports appear to fill in over time rather than rot. If that holds, scanning further back is wasted effort and the move is to re-run the sweep once wago publishes a build newer than 69383. Not proven -- 69155 also scores 2, so the trend is not clean.

    _assert_not_short would refuse any of these anyway, so a premature bump fails the build rather than silently shipping a locale with entries missing. That guard is what turned this from a shipped defect into a caught one.

  • wago.tools returns intermittent 504s on large exports -- two separate fetches hit one during this work, and the regeneration failed twice before succeeding, once on the very last locale. Retry rather than concluding anything from a single failure. Cached tables make a retry cheap: the third attempt only had to fetch what the second had not.

Changed (shipped data)

  • Vanilla requiredSkill coverage drops about 25%, and that is the intended outcome of the trainer-map fix above rather than a side effect of it. The Data/Vanilla/_core/ tree goes from roughly 1,551 requiredSkill values to 1,163 across nine professions. Those ~388 recipes were taking their value from AzerothCore Wrath or TrinityCore Cata -- exactly the cross-expansion merge the fix removes. cmangos_classic yields 472 spells against AzerothCore's 1,549, so Vanilla has the thinnest same-era trainer source and pays the most for scoping.

    Checked as a design cost and not a parse bug before shipping it: cmangos_tbc runs the identical flat parser and yields 791 precisely because a TBC world DB legitimately carries both eras' trainer rows, and most Vanilla requiredSkill values come from the recipe-scroll tier (ItemSparse), not the trainer tier.

    The gap is shipped rather than the estimate because this file's own priority chain has said so since long before the question came up (:825-835): a missing requiredSkill ships as absent so the gap stays visible, and shipping a heuristic "masks the data gap and produces a false sense of accuracy". A Wrath trainer row standing in for a Vanilla one is a heuristic. There is no rule that keeps the coverage and also fixes Smelt Silver -- cmangos_classic has no row for Smelt Silver, Smelt Bronze, Smelt Tin or Engineering 12895, so any newer-source fallback reintroduces the defect exactly.

    The consumer note covers the tiers as well as the field, and that second half was nearly missed. Removing a requiredSkill does not only blank a field -- it moves the recipe into the unanchored set, where difficulty[1] is a DBC placeholder of 1 rather than a real orange threshold. About 93% of the 388 land there (Vanilla carried ~1,551 requiredSkill values across 1,565 recipes, so at most ~14 were unanchored before; it is 373 now, so at least 359 moved). A consumer told only "render - instead of 0" would do exactly that and then print 1 as the threshold beside it -- a made-up number, in the release that makes the rule matter most. Everything written was true; the omission was the defect. docs/AUDIT.md round 21.

    Full blast radius, measured by regenerating all five _core trees rather than sampled: Vanilla nine professions (values removed); TBC Engineering, Jewelcrafting, Leatherworking, Mining, RecipeItems; Wrath Engineering, Inscription, Jewelcrafting, Mining; Cata unchanged; Mists unchanged, with the four diverging files reverted. Consumers notified in docs/DEPENDENCY_CONTRACTS.md §6 before release, not after.

Documented (consumer rule)

  • When a recipe's crafting tiers are meaningless, that is now detectable from the shipped data alone -- and the obvious one-field version of the rule is wrong in both directions. A recipe's orange tier is a placeholder exactly when requiredSkill is ABSENT, AND difficulty[1] == 1. It is the conjunction; neither condition alone will do.

    difficulty[1] has two writers, which is what breaks the single-field readings: the placeholder correction at build_authoritative_data.py:892, and the [min_rank, ...] construction 60 lines above it that takes the DBC's MinSkillLineRank directly. Measured across all five shipped trees rather than argued:

    • requiredSkill absent but difficulty[1] > 1 -- 29 Vanilla, 18 Mists. Anchored by a real MinSkillLineRank; perfectly good data. A rule keyed on "requiredSkill is absent" discards 47 correct thresholds.
    • requiredSkill present and == 1 with difficulty[1] == 1 -- 192 across all trees, every one carrying requiredSkill exactly 1. Apprentice recipes genuinely learnable at skill 1 and genuinely orange from 1. A rule keyed on "difficulty[1] == 1" condemns 192 correct ones.

    Population of the real unanchored set: Vanilla 373, TBC 3, Wrath 245, Cata 284, Mists 824. Wrath, Cata and Mists were already carrying theirs before any change this week -- only Vanilla's is new, and it is the same population as the 388 above.

    Written in two places on purpose, as a comment at build_authoritative_data.py:892 and in docs/DEPENDENCY_CONTRACTS.md §6, with the caveat that the rule holds only while those two remain the sole writers -- a third anchoring route would silently invalidate it while consumers kept applying it. That is the same species as the SOURCES-order defect fixed above: a rule living in an incidental property of the data rather than in code.

    DECIDED: no schema change. The two candidates were omitting difficulty when the orange tier is a placeholder, or shipping an explicit unanchored flag. Omitting is wrong -- only tier 1 is unanchored, while tiers 2-4 come from real TrivialSkillLineRankLow/High, so it discards three good values to hide one bad one. A flag is redundant -- it would make every consumer learn a new field for something the two existing fields already determine. The one real argument for a flag was robustness, since a documented rule can go stale; that is answered below by enforcement rather than by schema.

  • The unanchored-tiers rule is now ENFORCED against the shipped tree, not just documented -- Tests/shippeddata_spec.lua, five specs, suite 164 -> 169. It walks all five game trees through their own TOCs and classifies every recipe, then asserts the invariant the contract rests on: no recipe ever ships difficulty[1] == 1 alongside a requiredSkill above 1. A third anchoring route, or a change to the correction's gate, turns the suite red instead of turning the contract into a lie.

    Two of the five specs pin the counter-example classes deliberately, and they are load-bearing rather than decoration: one asserts that recipes exist with requiredSkill absent and difficulty[1] > 1, the other that recipes exist with requiredSkill == 1 and difficulty[1] == 1. Each disproves one of the two tempting one-field restatements of the rule -- both of which were proposed during review and measured down. If either class ever empties, the conjunction has collapsed into a single condition and the contract should be simplified deliberately rather than by drift.

    Red-tested, not assumed green: injecting a fabricated requiredSkill on one spell failed the invariant spec naming the recipe and all five expansions it appears in. A corpus assertion (> 10000 recipes classified) guards the whole block against passing vacuously, and the TOC map asserts all five flavours were visited. Coverage unchanged at 417/417.

Added (API)

  • GetRecipeScrollPrefix now returns the SAMPLE COUNT as a second value, at LibProfessionDB-1.0 MINOR 11.

    local prefix, samples = DB:GetRecipeScrollPrefix(186)   --> "Manual: ", 1
    local prefix          = DB:GetRecipeScrollPrefix(186)   --> "Manual: "  (unchanged)
    

    The prefix is a majority vote over real scroll names, and Mining's whole vote is one scroll -- so "Manual: Smelt Truesilver" is rendered for 22 synthetic descriptors on the strength of a single sample, while Blacksmithing's "Plans: " is derived from 224. That is not wrong, and suppressing a low-sample prefix would cost those 22 a usable header. The defect was that a consumer could not tell the two apart, so it had no basis on which to prefer its own heading. A threshold decides that for everyone, once, invisibly; a count lets each consumer decide and can be ignored for free.

    First return unchanged and first, so no existing call site moves. A nil prefix keeps a nil count, never 0 -- "no prefix" and "a prefix from no samples" must stay distinguishable, and the second is not a state that can exist. The count is also nil for data generated before this shipped, which reads correctly as unknown rather than as zero.

    Shipped as a second loader, LoadRecipeScrollPrefixSamples, riding in the same per-locale RecipeScrollPrefixes.lua: the existing prefix table keeps its shape, so an older data file still loads and no consumer branches on a union type. Regenerated across five expansions and 24 locales. Ten new specs; coverage back to 100% (417/417).

    Requested by ItemDB on 2026-08-06 with "your call once you own it", and unanswered until now. Their instinct is what shipped -- the only thing that changed is where the number lives: in the data, rather than in a build report a human reads once.

  • Iterate()'s full walk now guards on the table it is about to index rather than on its sibling key. Same loop, same behaviour, both paths still specced -- but guarding pid while indexing slot left the language server unable to narrow the type and reporting a possible nil index forever.

Added (data pipeline)

  • tools/check-build-pins.py --locales <expansion> -- find a build whose every locale export is actually complete. Written because a wrong diagnosis produced a wrong recommendation: the MoP pin bump was reported as blocked on wago's exports being "incomplete at source", which asserts the gap is in Blizzard's data. It is not. Measured: zhCN is short on 5.5.4.69383 and complete on 5.5.4.69155, while zhTW is short on both and worse on the latter. Individual (build, locale) exports fail independently, so the question is not "is wago fixed yet" but "which build is fully served" -- a bounded search rather than an open-ended wait, and this answers it.

    It streams with an early exit, and the exit helps the SHORT case rather than the complete one -- a distinction worth stating because getting it backwards is what made three scans time out. Ids ascend in the export, so a high id only appears near the end (zhCN at 5.5.4.69155 reached id 100,011 at row 82,483 of 88,671, 93% of a 33 MB body), which means proving a locale complete costs almost the whole download. What the gate genuinely buys is the reverse: a short export is a clean contiguous prefix of the id space, so it is small and rejected fast. The practical consequence is to check the locale most likely to be short first.

    The gate is derived from enUS on the same build, never hard-coded -- a literal would silently become wrong for another expansion, which is the exact class of defect this file's own header already warns about.

    HTTP Range would make the whole thing trivial and wago does not support it. Since ids ascend, the last row carries the max id, so a tail read would answer completeness in one small request. Measured: Range: bytes=-4096 returns HTTP 200 with the entire 32,875,405-byte body, not a 206 -- the responses are chunked with no Content-Length. Recorded so nobody re-derives it.

    --start-at skips builds already measured, because each one costs a full enUS download for the reference alone. enGB is not fetched at all: it mirrors enUS, so checking it would measure the same export twice and report a locale that is never downloaded.

  • A TBC trainer source, which did not exist. tools/emulator_data/ carried cmangos-classic (Vanilla), azerothcore (Wrath) and TrinityCore (Cata) and nothing for TBC, so TBC was the one expansion where trainer-taught recipes had no authoritative requiredSkill source at all -- which is the structural reason hand-curated overrides were reached for there. tools/extract_emulator_trainers.py gains a cmangos_tbc source over cmangos/tbc-db, and the CMaNGOS prep is now parameterised by repo rather than copied, on the same reasoning as the is_obsolete fix above: a second near-identical implementation is how the first pair came to disagree. Run: 18 MB dump, npc_trainer + npc_trainer_template extracted, 5,908 trainer rows parsed.

    Also fetched SkillRaceClassInfo for 2.5.5.67511 (TBC Alchemy is SkillTierID 41). Recorded so nobody retries it: SkillTiers is not on wago.tools at all -- it 404s on all five pinned builds and wago's own /db2 index lists only SkillLine, SkillLineAbility, SkillLineXTraitTree, SkillRaceClassInfo, TradeSkillCategory and TradeSkillItem. The tier's max-skill value is not obtainable from that source under any table name.

    Why this went in now. I had answered a consumer's question with "cannot be measured from this repo" because the cache held no SkillTiers -- mistaking the absence of a file in a cache for the absence of the data. A cache holds what was fetched, not what exists. The answer is withdrawn in docs/AUDIT.md along with what the measurements actually showed: TBC's own SkillLineAbility gives the twelve disputed Alchemy recipes TrivialSkillLineRankLow of exactly 385 and 390 -- the same numbers as the overrides, and the same column build_authoritative_data.py:825-832 explicitly refuses to use as a requirement.

Added (tests)

  • Tests/query_spec.lua and Tests/bootstrap_spec.lua: 51 new specs, and line coverage goes from 78.68% to 100%. Suite 154 passed, 0 failed, 0 pending; LibProfessionDB-1.0.lua 395/395 and ProfessionDB.lua 13/13.

    The uncovered block was not an odd corner -- it was the surface consumers actually call. Search, Iterate, IterateEnchants, EnchantsForSlot, the lazy enchant-index build and all ten field getters had never executed under test, and ProfessionDB.lua was at 0/13: the bootstrap, its PLAYER_LOGIN frame and the VersionCheck-1.0 host had never run at all.

    Specced for the properties that fail silently rather than for the line count: every getter answering nil for an unknown recipe and an unloaded profession; the enchant index picking up recipes, enchants and names loaded after it was first built (driven from outside, so a fifth loader that forgot to invalidate fails here rather than passing a code read); Search treating its query as literal text and not a Lua pattern; Iterate() skipping an empty profession instead of stopping at it, which is reachable because LoadCore(profId, {}) creates the slot; and both sides of every feature-detect in the bootstrap, including the bare-global GetAddOnMetadata branch that no client running this suite would take and the three ways VersionCheck can be absent.

    Iterator assertions sort or count rather than indexing a position, since next order is not stable, and the getter loops assert their own iteration count so an empty case table cannot report a pass having checked nothing.

Known, and not fixed here

  • Line coverage is 78.68% (321/408), not 100%. ProfessionDB.lua is 0/13 -- the bootstrap, its PLAYER_LOGIN frame and the VersionCheck-1.0 host have never executed under test -- and LibProfessionDB-1.0.lua is 321/395, with the uncovered block being precisely the surface consumers call: Search, Iterate, IterateEnchants, GetEnchantsForSlot, the enchant index build, and the ten one-line getters at :646-687. This corroborates the reviewer's own round-1 "Not covered" list rather than contradicting it. On the repo todo list; not attempted in this change.

    Superseded later in this same unreleased entry -- see "Added (tests)" above. Coverage is now 417/417, 100.00%, across both files. The paragraph is left standing rather than rewritten because it records what was true when the gap was found.

  • _core files carry NO BUILD STAMP, and that is a PROVENANCE gap rather than a tidiness one. "Which DBC build generated this file?" is answerable only from RecipeItems.lua; every _core/<Profession>.lua is silent. It is what makes the MoP zero-diff above unverifiable -- a correct rebuild and a skipped one are indistinguishable in the output. Not fixed here because emitting a stamp rewrites every _core file across five expansions and this release is already 97 paths, but recorded at its real severity: after two days spent on build provenance, this is the artefact that would have answered most of the questions. docs/AUDIT.md round 17.

    Related and smaller: every _core header still credits "the TOGProfessionMaster authoritative-data pipeline", which moved into this repo in v1.6.0. Same reason for deferring, same file set.

  • A recipe with no requiredSkill ships difficulty[1] = 1, which is a wrong number rather than a visible gap -- and the trainer-map fix above gives that behaviour 388 more recipes in the Vanilla tree. The tier correction at build_authoritative_data.py:858 is gated if difficulty[0] <= 1 and required_skill and required_skill > 1, so with no requiredSkill the guard fails and difficulty[0] keeps the DBC placeholder 1. Concretely, Vanilla Cooking spell 6499 goes from {50, 90, 110, 130} to {1, 45, 90, 130}. An orange threshold of 1 is not an omitted field a consumer can render as "-"; it is a number a player reads and acts on, so the gap-is-visible argument that justifies dropping the 388 does not extend to it. The behaviour predates this change -- every recipe with no requiredSkill was already doing it -- but the larger population is this change's doing. Deliberately not fixed here: the honest remedy is either to omit difficulty entirely when difficulty[0] is the placeholder, or to ship a flag marking the tiers unanchored, and both are shipped-schema decisions with consumers on the other end (TOGProfessionMaster reads difficulty). Raised in docs/AUDIT.md and flagged to consumers in docs/DEPENDENCY_CONTRACTS.md §6.

    Superseded within this entry -- the deferral was wrong and the review said so. Shipping the removal while filing the placeholder as a follow-up trades a possibly-wrong requiredSkill for a definitely-wrong difficulty[1], 388 times, using the very argument that rules the trade out: the change that makes a value absent must not arrive before the code that handles absence. The precondition is now met without the schema decision, because the signal is already in the shipped data -- see "Documented (consumer rule)" below. The schema question (omit difficulty, or add an explicit flag) stays a genuine follow-up rather than a gate.

  • The per-locale name/effect files were not regenerated with the _core tree. The rebuild ran --core-only, which is correct for a change that touches only locale-independent fields and avoids refetching twelve locales' ItemSparse -- but it means the Data/<game>/<locale>/ files have not been re-verified against the new _core. The suite's shipped-data specs pass against the stitched view, which is evidence but not the same as a rebuild.

    CLOSED, by running it rather than reasoning about it. A full rebuild (no --core-only) across all five games and twelve locales -- 202,560 name entries -- produced a diff byte-identical to the --core-only run: not one Data/<game>/<locale>/<Profession>.lua changed. That is the expected result and now a measured one, because the trainer-map fix touches only requiredSkill and difficulty, which are _core fields, while name and effect come from SpellName and SpellItemEnchantment. --core-only was the right call and the tree is consistent.

    The run also cleared the standing worry about the short MoP exports: at the current pins (5.5.3.67509) _assert_not_short did not fire, and Data/Mists/zhCN/ and Data/Mists/zhTW/RecipeScrollPrefixes.lua both carry all 10 professions including 755 (Jewelcrafting) and 773 (Inscription).

Older versions (v1.0.0 to v1.6.0) are in CHANGELOG_ARCHIVE.md.