poe2brain 0.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (169) hide show
  1. poe2brain-0.2.1/.agents/mcp_config.json +13 -0
  2. poe2brain-0.2.1/.agents/skills/poe2brain/SKILL.md +132 -0
  3. poe2brain-0.2.1/.agents/skills/poe2brain/references/crafting-playbook.md +129 -0
  4. poe2brain-0.2.1/.agents/skills/poe2brain/references/filters-and-ninja.md +77 -0
  5. poe2brain-0.2.1/.agents/skills/poe2brain/references/mechanics-0.5.5.md +108 -0
  6. poe2brain-0.2.1/.agents/skills/poe2brain/references/pob2-workflows.md +93 -0
  7. poe2brain-0.2.1/.agents/skills/poe2brain/references/trade-economy.md +116 -0
  8. poe2brain-0.2.1/.devin/mcp_config.json +13 -0
  9. poe2brain-0.2.1/.github/pull_request_template.md +7 -0
  10. poe2brain-0.2.1/.github/workflows/ci.yml +41 -0
  11. poe2brain-0.2.1/.github/workflows/cla.yml +27 -0
  12. poe2brain-0.2.1/.github/workflows/mirror-gitcode.yml +54 -0
  13. poe2brain-0.2.1/.github/workflows/release.yml +105 -0
  14. poe2brain-0.2.1/.github/workflows/sync-build-index.yml +114 -0
  15. poe2brain-0.2.1/.gitignore +28 -0
  16. poe2brain-0.2.1/.mcp.json +13 -0
  17. poe2brain-0.2.1/AGENTS.md +68 -0
  18. poe2brain-0.2.1/ATTRIBUTION.md +26 -0
  19. poe2brain-0.2.1/CLA.md +41 -0
  20. poe2brain-0.2.1/CONTRIBUTING.md +36 -0
  21. poe2brain-0.2.1/LICENSE +674 -0
  22. poe2brain-0.2.1/PKG-INFO +373 -0
  23. poe2brain-0.2.1/README.md +353 -0
  24. poe2brain-0.2.1/README_ZH.md +305 -0
  25. poe2brain-0.2.1/benchmarks/README.md +96 -0
  26. poe2brain-0.2.1/benchmarks/__init__.py +3 -0
  27. poe2brain-0.2.1/benchmarks/fixed-budget-oracle.md +106 -0
  28. poe2brain-0.2.1/benchmarks/fixtures/amazon_ice_shot_0_5_5.xml +773 -0
  29. poe2brain-0.2.1/benchmarks/fixtures/automatic-upgrade-offers.json +1429 -0
  30. poe2brain-0.2.1/benchmarks/fixtures/broken_legacy.filter +7 -0
  31. poe2brain-0.2.1/benchmarks/fixtures/fixed-budget-oracle-offers.json +98 -0
  32. poe2brain-0.2.1/benchmarks/fixtures/triage_dump_0_5_5.txt +18 -0
  33. poe2brain-0.2.1/benchmarks/fixtures/zh_bow_0_5_5.txt +14 -0
  34. poe2brain-0.2.1/benchmarks/poe2_bench_0_5_5.json +1192 -0
  35. poe2brain-0.2.1/benchmarks/results/codex_0_5_5.json +1981 -0
  36. poe2brain-0.2.1/benchmarks/run_benchmark.py +368 -0
  37. poe2brain-0.2.1/benchmarks/scorer.py +320 -0
  38. poe2brain-0.2.1/data/ee2/LICENSE.Exiled-Exchange-2 +25 -0
  39. poe2brain-0.2.1/data/ee2/ee2_item_drop.json +1 -0
  40. poe2brain-0.2.1/data/ee2/ee2_items.ndjson +4063 -0
  41. poe2brain-0.2.1/data/ee2/ee2_manifest.json +16 -0
  42. poe2brain-0.2.1/data/ee2/ee2_remnants.json +1 -0
  43. poe2brain-0.2.1/data/ee2/ee2_stats.ndjson +2526 -0
  44. poe2brain-0.2.1/data/ee2/trade2_official_stats.json +1 -0
  45. poe2brain-0.2.1/data/filter/LICENSE.NeverSink +21 -0
  46. poe2brain-0.2.1/data/filter/LICENSE.filter-data +33 -0
  47. poe2brain-0.2.1/data/filter/item_classes_0.5.5.json +992 -0
  48. poe2brain-0.2.1/data/mechanics_facts.json +986 -0
  49. poe2brain-0.2.1/data/modsview_weights.json.gz +0 -0
  50. poe2brain-0.2.1/data/poe2_0.5.5.sqlite +0 -0
  51. poe2brain-0.2.1/data/weights_overrides.json +126 -0
  52. poe2brain-0.2.1/data/zh_localization_0.5.5.json.gz +0 -0
  53. poe2brain-0.2.1/docs/assets/hero-banner.svg +104 -0
  54. poe2brain-0.2.1/docs/zh/AGENT_SETUP.md +91 -0
  55. poe2brain-0.2.1/docs/zh/CN_FREE_SETUP.md +102 -0
  56. poe2brain-0.2.1/docs/zh/CN_REALM.md +48 -0
  57. poe2brain-0.2.1/docs/zh/PLAYBOOKS.md +136 -0
  58. poe2brain-0.2.1/docs/zh/QUICKSTART_WINDOWS.md +159 -0
  59. poe2brain-0.2.1/plugin.json +16 -0
  60. poe2brain-0.2.1/pyproject.toml +56 -0
  61. poe2brain-0.2.1/scripts/bootstrap_pob2.sh +167 -0
  62. poe2brain-0.2.1/scripts/install_cn.ps1 +260 -0
  63. poe2brain-0.2.1/scripts/sync_build_index.py +861 -0
  64. poe2brain-0.2.1/scripts/sync_build_names_zh.py +191 -0
  65. poe2brain-0.2.1/scripts/sync_gamedata.py +1511 -0
  66. poe2brain-0.2.1/src/poe2brain/__init__.py +10 -0
  67. poe2brain-0.2.1/src/poe2brain/cli.py +4467 -0
  68. poe2brain-0.2.1/src/poe2brain/config.py +211 -0
  69. poe2brain-0.2.1/src/poe2brain/crafting/__init__.py +63 -0
  70. poe2brain-0.2.1/src/poe2brain/crafting/planner.py +1378 -0
  71. poe2brain-0.2.1/src/poe2brain/crafting/pool.py +1903 -0
  72. poe2brain-0.2.1/src/poe2brain/crafting/profit.py +2661 -0
  73. poe2brain-0.2.1/src/poe2brain/filters/__init__.py +113 -0
  74. poe2brain-0.2.1/src/poe2brain/filters/generator.py +1792 -0
  75. poe2brain-0.2.1/src/poe2brain/filters/grammar.py +547 -0
  76. poe2brain-0.2.1/src/poe2brain/filters/neversink.py +1026 -0
  77. poe2brain-0.2.1/src/poe2brain/filters/preview.py +380 -0
  78. poe2brain-0.2.1/src/poe2brain/filters/soundpacks.py +964 -0
  79. poe2brain-0.2.1/src/poe2brain/filters/themes.py +2032 -0
  80. poe2brain-0.2.1/src/poe2brain/filters/validator.py +961 -0
  81. poe2brain-0.2.1/src/poe2brain/http.py +967 -0
  82. poe2brain-0.2.1/src/poe2brain/impersonate.py +128 -0
  83. poe2brain-0.2.1/src/poe2brain/knowledge/__init__.py +95 -0
  84. poe2brain-0.2.1/src/poe2brain/knowledge/db.py +151 -0
  85. poe2brain-0.2.1/src/poe2brain/knowledge/meta.py +1863 -0
  86. poe2brain-0.2.1/src/poe2brain/knowledge/service.py +2278 -0
  87. poe2brain-0.2.1/src/poe2brain/knowledge/waystone_regex.py +1769 -0
  88. poe2brain-0.2.1/src/poe2brain/knowledge/zh_aliases.py +850 -0
  89. poe2brain-0.2.1/src/poe2brain/mcp_server.py +3712 -0
  90. poe2brain-0.2.1/src/poe2brain/models/__init__.py +189 -0
  91. poe2brain-0.2.1/src/poe2brain/models/builds.py +701 -0
  92. poe2brain-0.2.1/src/poe2brain/models/common.py +74 -0
  93. poe2brain-0.2.1/src/poe2brain/models/crafting.py +84 -0
  94. poe2brain-0.2.1/src/poe2brain/models/filters.py +282 -0
  95. poe2brain-0.2.1/src/poe2brain/models/items.py +143 -0
  96. poe2brain-0.2.1/src/poe2brain/models/knowledge.py +69 -0
  97. poe2brain-0.2.1/src/poe2brain/models/ninja.py +221 -0
  98. poe2brain-0.2.1/src/poe2brain/models/trade.py +82 -0
  99. poe2brain-0.2.1/src/poe2brain/ninja/__init__.py +55 -0
  100. poe2brain-0.2.1/src/poe2brain/ninja/protobuf.py +348 -0
  101. poe2brain-0.2.1/src/poe2brain/ninja/service.py +2336 -0
  102. poe2brain-0.2.1/src/poe2brain/ninja/store.py +733 -0
  103. poe2brain-0.2.1/src/poe2brain/ninja/xml_inspector.py +688 -0
  104. poe2brain-0.2.1/src/poe2brain/pob/__init__.py +31 -0
  105. poe2brain-0.2.1/src/poe2brain/pob/bootstrap.py +485 -0
  106. poe2brain-0.2.1/src/poe2brain/pob/bridge.py +692 -0
  107. poe2brain-0.2.1/src/poe2brain/pob/budget.py +243 -0
  108. poe2brain-0.2.1/src/poe2brain/pob/cn.py +220 -0
  109. poe2brain-0.2.1/src/poe2brain/pob/daemon.py +286 -0
  110. poe2brain-0.2.1/src/poe2brain/pob/local_sync.py +212 -0
  111. poe2brain-0.2.1/src/poe2brain/pob/lua/pob2_bridge.lua +5048 -0
  112. poe2brain-0.2.1/src/poe2brain/pob/oauth.py +597 -0
  113. poe2brain-0.2.1/src/poe2brain/pob/service.py +4195 -0
  114. poe2brain-0.2.1/src/poe2brain/pob/win_luajit.py +141 -0
  115. poe2brain-0.2.1/src/poe2brain/setup_tools.py +1172 -0
  116. poe2brain-0.2.1/src/poe2brain/trade/__init__.py +119 -0
  117. poe2brain-0.2.1/src/poe2brain/trade/advisor.py +643 -0
  118. poe2brain-0.2.1/src/poe2brain/trade/arbitrage.py +2410 -0
  119. poe2brain-0.2.1/src/poe2brain/trade/budget_offers.py +255 -0
  120. poe2brain-0.2.1/src/poe2brain/trade/economy.py +2111 -0
  121. poe2brain-0.2.1/src/poe2brain/trade/ee2_bundle.py +313 -0
  122. poe2brain-0.2.1/src/poe2brain/trade/farming.py +796 -0
  123. poe2brain-0.2.1/src/poe2brain/trade/item_parser.py +1301 -0
  124. poe2brain-0.2.1/src/poe2brain/trade/stat_matcher.py +1217 -0
  125. poe2brain-0.2.1/src/poe2brain/trade/trade2_client.py +1295 -0
  126. poe2brain-0.2.1/src/poe2brain/trade/upgrade_queries.py +134 -0
  127. poe2brain-0.2.1/tests/conftest.py +53 -0
  128. poe2brain-0.2.1/tests/fixtures/LICENSE.pobr +21 -0
  129. poe2brain-0.2.1/tests/fixtures/sample_builds_0.5.5.json.gz +0 -0
  130. poe2brain-0.2.1/tests/test_arbitrage.py +1097 -0
  131. poe2brain-0.2.1/tests/test_benchmark.py +160 -0
  132. poe2brain-0.2.1/tests/test_browser_impersonation.py +296 -0
  133. poe2brain-0.2.1/tests/test_budget_search_snapshots.py +34 -0
  134. poe2brain-0.2.1/tests/test_build_names_zh.py +152 -0
  135. poe2brain-0.2.1/tests/test_cli_mcp.py +1782 -0
  136. poe2brain-0.2.1/tests/test_cn_equipment_source.py +71 -0
  137. poe2brain-0.2.1/tests/test_craft_profit.py +380 -0
  138. poe2brain-0.2.1/tests/test_crafting.py +484 -0
  139. poe2brain-0.2.1/tests/test_economy_trade2.py +1430 -0
  140. poe2brain-0.2.1/tests/test_farming_and_presets.py +375 -0
  141. poe2brain-0.2.1/tests/test_filters.py +533 -0
  142. poe2brain-0.2.1/tests/test_foundation.py +763 -0
  143. poe2brain-0.2.1/tests/test_game_realm.py +113 -0
  144. poe2brain-0.2.1/tests/test_item_parser_matcher.py +961 -0
  145. poe2brain-0.2.1/tests/test_journeys_builds.py +667 -0
  146. poe2brain-0.2.1/tests/test_journeys_community.py +345 -0
  147. poe2brain-0.2.1/tests/test_journeys_craft_trade.py +1040 -0
  148. poe2brain-0.2.1/tests/test_journeys_filters.py +659 -0
  149. poe2brain-0.2.1/tests/test_knowledge.py +363 -0
  150. poe2brain-0.2.1/tests/test_meta_ladder.py +497 -0
  151. poe2brain-0.2.1/tests/test_ninja.py +652 -0
  152. poe2brain-0.2.1/tests/test_pob.py +1312 -0
  153. poe2brain-0.2.1/tests/test_pob_attribute_reload.py +55 -0
  154. poe2brain-0.2.1/tests/test_pob_bridge.py +208 -0
  155. poe2brain-0.2.1/tests/test_pob_budget.py +342 -0
  156. poe2brain-0.2.1/tests/test_pob_budget_oracle.py +56 -0
  157. poe2brain-0.2.1/tests/test_pob_chakra.py +87 -0
  158. poe2brain-0.2.1/tests/test_pob_cross_build.py +166 -0
  159. poe2brain-0.2.1/tests/test_pob_granted_skill_import.py +87 -0
  160. poe2brain-0.2.1/tests/test_pob_oauth.py +286 -0
  161. poe2brain-0.2.1/tests/test_pob_planner_equipment.py +54 -0
  162. poe2brain-0.2.1/tests/test_pob_resource_lifecycle.py +363 -0
  163. poe2brain-0.2.1/tests/test_pob_rune_import.py +53 -0
  164. poe2brain-0.2.1/tests/test_setup_tools.py +391 -0
  165. poe2brain-0.2.1/tests/test_trade_resist_floors.py +87 -0
  166. poe2brain-0.2.1/tests/test_upgrade_queries.py +250 -0
  167. poe2brain-0.2.1/tests/test_ux_presets_enrichment.py +326 -0
  168. poe2brain-0.2.1/tests/test_windows_oauth_zh.py +252 -0
  169. poe2brain-0.2.1/uv.lock +929 -0
@@ -0,0 +1,13 @@
1
+ {
2
+ "mcpServers": {
3
+ "poe2brain": {
4
+ "command": "uv",
5
+ "args": [
6
+ "--directory",
7
+ "/Users/lfan/Project/poe2/poe2brain",
8
+ "run",
9
+ "poe2brain-mcp"
10
+ ]
11
+ }
12
+ }
13
+ }
@@ -0,0 +1,132 @@
1
+ ---
2
+ name: poe2brain
3
+ description: >-
4
+ Operate accurately in Path of Exile 2 (Patch 0.5.5 / Forbidden Rites) across
5
+ verified gamedata, 23 Ascendancies & live ladder meta, poe.ninja build discovery &
6
+ character import, headless Path of Building 2 (PoB2) build audits and upgrades, live
7
+ trade2, currency economy & arbitrage scanning, exact expected-cost / profit-ranked
8
+ crafting plans, and validated PoE2 loot filters with custom visual themes and audio
9
+ soundpacks. Activate whenever a prompt touches PoE2 builds, poe.ninja, classes,
10
+ ascendancies, ladder meta, PoB2 codes/URLs, skills, gems, passives, items, clipboard
11
+ price-checks, trade searches, currencies, arbitrage, omens, essences, desecration,
12
+ crafting, loot filters (.filter / NeverSink / FilterBlade), filter themes, or drop sounds.
13
+ ---
14
+
15
+ # PoE2Brain (`0.5.5` / `Forbidden Rites`)
16
+
17
+ Use `poe2brain` (`poe2` CLI `--json` and `poe2brain` MCP server) as the single source of truth for Path of Exile 2. Never rely on pretrained LLM memory for PoE2 mechanics, base types, support gem limits, currency ratios, or crafting levers.
18
+
19
+ ## Surface Routing: `poe2` CLI vs `poe2brain` MCP
20
+
21
+ Both surfaces call the same typed Python engine in the local `poe2brain` checkout.
22
+ - **In shell-capable coding harnesses (Antigravity, Claude Code, Codex, Devin):** Prefer `uv --directory <poe2brain-checkout> run poe2 ... --json` when batching calls, piping item text from files, or filtering large outputs with `jq`.
23
+ - **For single-turn lookups or chat-only harnesses:** Call the matching `poe2brain` MCP tool directly.
24
+ - Answer Chinese build questions in Chinese in either realm. Pass `lang="zh"` to build-reading MCP tools or use `--lang zh --json` on the CLI. Use the returned `names_zh` for skills, support gems, passives, classes and ascendancies. Keep the source spelling when a name has no verified Chinese equivalent. For an unresolved nickname, retain stated details such as socket count and ask for the in-game Ctrl+C item text.
25
+ - When a tool returns `BrowserVerificationRequired`, show the player its `browser_url` as a clickable link (or re-call with `open_browser=True` / CLI `--open-browser` when the player asks to pop open the browser directly). Ask them to complete the site's check there and paste the PoB export code, or the item text and asking price, back into the conversation. Resume with that input. On third-party build hosts (`poe.ninja`, `pobb.in`, `poe2db.tw`, `maxroll.gg`, `api.poe2scout.com`) the engine first retries Cloudflare-challenged responses through a `curl_cffi` Chrome-impersonated session automatically (disable via `POE2BRAIN_BROWSER_IMPERSONATION=0`); GGG hosts never use impersonation, so trade/OAuth challenges always surface this handoff.
26
+ - **First use & update check:** Read `poe2_status` (`poe2 version --json`). If `game_realm` is unset, ask the player to choose 国服 (`cn`) or 国际服 (`international`) and call `poe2_init`. If `update.patch_outdated` is `true`, warn the player immediately before quoting mechanics or build numbers that local gamedata targets an older PoE2 patch, and offer to run `update.upgrade_command` (or share `update.upgrade_command` + `update.mcp_reload_hint` in chat-only clients); if `update.update_available` and `update.should_notify` are `true`, briefly mention the update.
27
+ - **For 国服 / 腾讯服:** Choose the character import, filter and price sources documented in the [Tencent realm guide](../../../docs/zh/CN_REALM.md).
28
+
29
+ | Pillar | MCP Tool (`poe2brain`) | CLI Command (`uv --directory <poe2brain-checkout> run ...`) | Purpose & Typed Output |
30
+ | :--- | :--- | :--- | :--- |
31
+ | **Setup** | `poe2_init` | `poe2 init <realm> --json` | Save the player’s realm for the CLI and MCP. |
32
+ | **Health** | `poe2_status` | `poe2 version --json` | Verify patch (`0.5.5`), default league (`Forbidden Rites`), SQLite DB (`data/poe2_0.5.5.sqlite`), and headless PoB2 runtime (`~/.cache/poe2brain/pob2`). |
33
+ | **Knowledge** | `poe2_search_knowledge` | `poe2 wiki search "<query>" [--category <cat>] [--limit 12] --json` | FTS5 + exact search across 769 GGG `KeywordPopups`, 54 anti-hallucination rules, 1,711 gems, 443 uniques, 3,219 live bases, 313 augments, 293 crafting levers, and 882 runeforge recipes. |
34
+ | **Knowledge** | `poe2_explain_mechanic` | `poe2 wiki mechanic "<topic>" --json` | Authoritative `MechanicFact` (`poe1_trap`, `poe2_live_rule`, `formula_expr`) + official GGG keyword popups. |
35
+ | **Knowledge** | `poe2_inspect_gem` | `poe2 wiki gem "<name>" --json` | Active, Spirit, Meta, Tiered Support (`I`/`II`/`III`), and `lineage_support` (`max_copies_per_char=1`) gem stats and tag compatibility. |
36
+ | **Knowledge** | `poe2_inspect_base` | `poe2 wiki base "<name>" [--ilvl 82] --json` | Base properties, implicits, `poe2db_slug`, top `display_tier=1` affixes at `ilvl`, and automatic PoE1 / stale `Expert ` base-name correction. |
37
+ | **Knowledge** | `poe2_inspect_unique` | `poe2 wiki unique "<name>" --json` | Unique base type, implicits, explicits, and `is_chanceable` status. |
38
+ | **Knowledge** | `poe2_inspect_augment` | `poe2 wiki augment "<query>" --json` | Runes, Soul Cores, Azmeri Idols, Shaman Bonded bonuses, and Patch `0.5` Verisium Anvil / Kalguuran Remnant recipes. |
39
+ | **Knowledge** | `poe2_inspect_ascendancy` | `poe2 wiki ascendancy ["<name_or_class>"] [--class <cls>] --json` | List all 23 PoE2 `0.5.5` Ascendancies across 8 classes, or inspect full notables, multiple-choice nodes, `Abyssal Lich` inheritance, and PoE1/`1.0` trap errors. |
40
+ | **Knowledge** | `poe2_meta_ladder` | `poe2 wiki meta [--league "Forbidden Rites"] --json` | Live SC/HC/SSF/HCSSF ladder shares (`142k+` indexed characters), composite Ascendancy tier rankings, and liquid chase item / Lineage Support demand signals. |
41
+ | **Knowledge** | `poe2_waystone_regex` | `poe2 wiki regex [--slot <slot>] [--archetype <csv>] [--avoid <csv>] [--want <csv>] [--tablet-want <csv>] [--tablet-preset <p>] [--vendor-preset <p>] [--relic-preset <p>] [--min-waystone-drop 120] [--min-pack-size 20] [--item-text "<ctrl_c>"] --json` | Compile verified `<=50`-char PoE2 Stash/Vendor Search regexes (`brick_regex`, `safe_runnable_regex`, `juicing_regex`, `tablet_regex`, `vendor_regex`, `relic_regex`), auto-hydrating PoB2 `--slot` hazards + `0..6` mod -> `5..0` revive schedule. |
42
+ | **PoB2** | `poe2_pob_load` | `poe2 pob load <code_url_or_file> [--slot main] [--skill-group N] --json` | Load `eN...` share code, `poe.ninja` / `poe2db.tw` / `maxroll.gg` / `pobb.in` URL, PoB XML, or GGG `.build` JSON into named slot (`main`, `ref`, `candidate`) and return `BuildStats`. Match the player’s main skill in `skill_groups` and pass its group to recalculate. |
43
+ | **PoB2** | `poe2_pob_export` | `poe2 pob export --slot main --format code --json` | Return a share code to reopen the saved build in PoB2. Use `xml` for inspection or `ggg_json` for the game planner. |
44
+ | **PoB2** | `poe2_pob_stats` | `poe2 pob stats [--slot main] --json` | Extract `FullDPS`, `TotalEHP`, `Life`, `ES`, `Mana`, `Spirit`, resists, `chaos_immune`, Max Hits, `movement_speed_mod`, `movement_speed_while_using_skill`, `attack_cast_speed`, crit, `Block`, `Deflection`, `Evasion`, and `Armour`. |
45
+ | **PoB2** | `poe2_pob_audit` | `poe2 pob audit [<code_url_or_file>] [--slot main] --json` | **Dewatering & Weapon Swap audit**: strip PoB-warrior config inflation and return `DewateredAudit` (`raw_stats` vs `sustainable_pinnacle_stats`, `stripped_flags`, `skill_weapon_sets`, `unselected_quest_rewards`, `weapon_swap_audit`, `attribute_margins`, `bottlenecks`, and `hc_rip_risks`). |
46
+ | **PoB2** | `poe2_pob_compare` | `poe2 pob compare [--slot-a early] [--slot-b main] [--dewater] --json` | Diff two persisted PoB2 slots across DPS/EHP, added/removed Uniques & gear, skill/support links, keystones/notables, and exact `0.5.5` Gold respec cost (`BuildSlotComparison`). |
47
+ | **PoB2** | `poe2_pob_hc_audit` | `poe2 pob hc-audit [<code_url_or_file>] [--slot main] [--top-nodes 5] --json` | **HC Pinnacle Boss rip audit**: sustainable Phys/Ele/Chaos Max Hits, Bleed/Poison ES-bypass & Chaos `2x` ES checks, Charm audit, and top defensive EHP passive respecs + Gold cost (`HcRipAuditReport`). |
48
+ | **PoB2** | `poe2_pob_eval_item` | `poe2 pob eval-item --equip-slot "<slot>" --item-text "<text>" [--slot main] --json` | Non-destructive `GetMiscCalculator()` swap returning `ItemUpgradeDiff` (`full_dps_delta`, `total_ehp_delta`, `phys_max_hit_delta`, `spirit_unreserved_delta`, `resist_deltas`). |
49
+ | **PoB2** | `poe2_pob_stat_weights` | `poe2 pob weights --equip-slot "<slot>" [--objective balanced\|dps\|ehp] [--slot main] --json` | Compute exact marginal stat weights (`SlotStatWeights`, works on occupied or empty slots) and compile an unauthenticated-safe `trade2` `type: "count"` query (`trade2_weighted_filter`). |
50
+ | **PoB2** | `poe2_pob_suggest_nodes` | `poe2 pob nodes [--mode perPoint\|total\|anoint\|megalomaniac] [--slot main] [--top 10] --json` | Rank reachable passive notables (`perPoint`/`total`), Amulet Liquid Emotion anoints (`anoint`), or `Megalomaniac` 2–3 notable combos + clickable `trade2` search URL (`megalomaniac`). |
51
+ | **PoB2** | `poe2_pob_optimize_runes` | `poe2 pob runes [--slot main] [--objective balanced\|dps\|ehp\|spirit\|rarity] [--max-budget <ex>] --json` | Solve Armour/Weapon Rune & Soul Core **Resist Tetris** & socket optimization using SQLite `0.5.5` slot effects, live prices, and transactional PoB2 DPS/EHP/Resist verification (`RuneOptimizationReport`). |
52
+ | **PoB2** | `poe2_pob_calc_breakdown` | `poe2 pob calc-breakdown "<query>" [--slot main] [--skill-group <idx>] [--max-mods 40] --json` | Inspect exact PoB2 calculation formulas & `BASE`/`INC`/`MORE`/`FLAG` modifier provenance (`CalcBreakdownReport`) grouped by Item/Tree/Skill/Config source, catching wrong-`skillGroup` traps. |
53
+ | **PoB2** | `poe2_pob_supports` | `poe2 pob supports [--slot main] [--group <idx>] [--replace-slot <n>] [--replace-gem "<name>"] [--max-tier <1..5>] [--lineage/--no-lineage] [--top 15] --json` | Rank all compatible PoE2 `0.5.5` Support Gems (Tier `I`–`III` + Lineage) via `GetMiscCalculator()` with DPS/EHP deltas, Mana sustain, Spirit overflow, and cross-group Lineage `max_copies=1` conflict checks. |
54
+ | **PoB2** | `poe2_pob_radius_jewels` | `poe2 pob radius-jewels --jewel "<jewel>" [--slot main] [--stat FullDPS] [--max-dist 10] [--top 10] --json` | Rank sockets for Against the Darkness using its small radius and the returned example rolls. For Controlled Metamorphosis, compare projected passive allocations across the eight rings. |
55
+ | **PoB2** | `poe2_pob_what_if` | `poe2 pob what-if [--slot main] [--equip "Slot=TextOrPath"] [--edit-slot "<slot>" --add-mod "<line>" --remove-mod "<sub>" --set-quality 20] [--alloc-node <id>] [--dealloc-node <id>] [--config k=v] [--borrow-from <ref> --borrow-slot "<slot>"] [--scenario-matrix] [--apply] --json` | Transactional multi-change PoB2 hypothesis sandbox (`WhatIfReport`): test item edits, passive swaps, config overrides, or borrowed reference-build pieces with per-piece attribution, 3-scenario matrix, and automatic rollback unless `--apply` is passed. |
56
+ | **PoB2** | `poe2_pob_import_local` | `poe2 pob import-local [<name_or_path>] [--dir <builds_dir>] [--slot main] [--list] --json` | Discover or load saved local Path of Building (PoE2) `.xml` builds directly without OAuth (Windows/macOS/Linux Day-1 sync). |
57
+ | **PoB2** | `poe2_pob_import_character` | `poe2 pob import-character [<character_name>] [--realm poe2] [--slot main] [--list] --json` | Import a converted Tencent PoE2DB character page or PoB code. International users can list and import account characters via GGG OAuth. |
58
+ | **Economy** | `poe2_currency_price` | `poe2 econ price "<query>" [--league "Forbidden Rites"] --json` | Live `CurrencyQuote` normalized to `{exalted, chaos, divine}` (`Exalted = 1.0`) with 7d trend and `poe.ninja` exchange volume. |
59
+ | **Economy** | `poe2_market_scan` | `poe2 econ scan [--category <cat>] [--min-volume-divine 5.0] [--league "Forbidden Rites"] --json` | High-liquidity exchange movers, numeraire-normalized cross-source spreads, and high-value chanceable Uniques. |
60
+ | **Economy** | `poe2_boss_ev` | `poe2 econ bosses [--encounter <id>] [--league "Forbidden Rites"] --json` | Live Pinnacle Boss & Trial ticket costs vs chase unique drops (Arbiter, Xesht, Simulacrum, King in the Mists, Olroth, Sekhema/Zarokh, Trialmaster) with jackpot-to-ticket ratios and variable-roll warnings. |
61
+ | **Economy** | `poe2_farming_strategy` | `poe2 econ farming [--stage day1\|early\|mid\|endgame] [--budget 100\|5d] [--focus balanced\|steady\|jackpot\|speed] [--slot main] [--league "Forbidden Rites"] --json` | Rank Patch `0.5.5` league-start & Atlas farming loops (Fortress Rush, Expedition/Olroth, Ritual+Sacred Bloom Wildwood, Breach, Sekhema, Chaos Trials, Delirium, Boss Rush/Vaal Temple, Negative-IIR Bases) with live prices, Atlas Masters (`Jado`/`Hilda`/`Doryani`), Tablets, Waystone revives, IIR breakpoints, and optional PoB2 build-fit scoring. |
62
+ | **Economy** | `poe2_scan_arbitrage` | `poe2 econ arbitrage [--budget 500\|5d] [--gold <g>] [--ladder-target-divine <d>] [--min-volume-divine 2.0] [--live-books/--no-live-books] --json` | Executable `0.5.5` hideout conversions, Alva spreads, order books, `profit_ex_per_10k_gold`, trap warnings, or multi-rung capital & Gold compounding ladder (`CompoundingLadderReport`). |
63
+ | **Trade** | `poe2_parse_item` | `poe2 trade parse [--file <path> \| --text "<ctrl_c>"] --json` | Parse PoE2 `Ctrl+C` / `Ctrl+Alt+C` text into `ParsedItem` (Spirit, Catalyst quality, Rune/Gem sockets, Fractured, Desecrated, Sanctified, Waystone revives). |
64
+ | **Trade** | `poe2_price_check` | `poe2 trade check [--file <path> \| --text "<ctrl_c>"] [--include-whisper] [--league "Forbidden Rites"] --json` | 3-tier price check returning `PriceCheckResult`: defaults to real buyout pricing, deduplicates price-fixer accounts, and emits clickable `trade_url`. |
65
+ | **Trade** | `poe2_triage_dump` | `poe2 trade triage [--file <path> \| --text "<multi_item_dump>"] [--min-exalted 5.0] [--include-whisper] [--live-trade/--no-live-trade] --json` | Batch price-check & classify multi-item `Ctrl+C` dump tabs into `sell_instant`, `craft_finish_ev`, `high_variance_id_or_unveil`, and `salvage_or_vendor` (`DumpTriageReport`). |
66
+ | **Trade** | `poe2_find_upgrades` | `poe2 trade upgrades --equip-slot "<slot>" [--max-exalted 50] [--min-spirit 0] [--include-whisper] [--normalize-topoff/--no-normalize-topoff] [--slot main] --json` | Query `trade2` using PoB2 slot weights, evaluate both raw and bench-topped-off (`20%` Quality + Artificer sockets + Greater Runes on non-corrupted items) stats via `GetMiscCalculator()`, and rank by topped-off DPS/EHP & true all-in Exalted ROI. |
67
+ | **Trade** | `poe2_plan_upgrades` | `poe2 trade plan --budget 25 --budget 100 --equip-slot Gloves --equip-slot Boots --slot main --json` | Compare complete gear combinations at each Exalted budget. Supply a JSON offer array with `--offers` in either realm, or sample international buyouts using equipment slots. |
68
+ | **Crafting** | `poe2_craft_odds` | `poe2 craft odds --base "<base>" --ilvl 82 [--lever "<lever>"] [--target "<mod>"] [--omen "<omen>"] [--item-text "<ctrl_c>"] [--protect-existing/--no-protect-existing] --json` | Exact conditional mod-pool hit odds (`CraftActionEval`) honoring ilvl, `min_mod_level` floors, family/tag blocking, and mid-craft collateral brick protection (`protect_existing_targets=True`). |
69
+ | **Crafting** | `poe2_craft_plan` | `poe2 craft plan --base "<base>" --ilvl 82 --target "<mod>"... [--buy-exalted <p>] [--sims 3000] --json` | Optimal state-conditional crafting policy + Monte Carlo cost (`expected_cost_exalted`, `p50`/`p80`/`p95`) + `trade_vs_craft` recommendation. |
70
+ | **Crafting** | `poe2_scan_craft_profit` | `poe2 craft profit [--budget all\|low\|mid\|high] [--live-trade/--no-live-trade] [--league "Forbidden Rites"] --json` | Rank profitable `0.5.5` crafts across low/mid/high budgets with sanitized live inputs, `p50`/`p80` drawdowns, live `securable` exits, `competition_level`, and `niche_score`. |
71
+ | **Ninja** | `poe2_ninja_snapshots` | `poe2 ninja snapshots [--league "Forbidden Rites"] --json` | Live `poe.ninja` PoE2 `build-index-state` & `snapshot-versions` across SC/HC/SSF/HCSSF modes, character totals, class shares, and sorted time-machine labels. |
72
+ | **Ninja** | `poe2_ninja_search` | `poe2 ninja search [--preset sleeper\|zoom_mapper\|league_start\|boss_killer\|hc_tank] [--ascendancy <csv_or_!neg>] [--skill <sk>] [--unique <u_or_!neg>] [--sort dps\|ehp\|level\|es\|life\|sleeper\|mobility] --json` | Multi-facet `Forbidden Rites` `poe.ninja` build search with intent presets, `!Term` negation, pre-audited `dewatered_dps`, `movement_speed_mod`, `sleeper_score`, and SSF viability ranking. |
73
+ | **Ninja** | `poe2_ninja_character` | `poe2 ninja character <account_or_url> [--name <char>] [--league "Forbidden Rites"] [--timemachine <lbl>] [--probe-timeline] [--load-pob] [--slot main] [--audit] --json` | Fetch live `poe.ninja` character or PoB2 share URL, binary-search weekly time-machine stepping stones (`--probe-timeline`), or load + persist into PoB2 `--slot` and audit. |
74
+ | **Filter** | `poe2_filter_presets` | `poe2 filter presets --json` | List all 8 WCAG-verified visual theme presets, 6 strictness tiers, 6 custom soundpack styles + musical keys/scales, and local PoE2 filter directory (`detect_poe2_filter_dir()`). |
75
+ | **Filter** | `poe2_filter_restyle` | `poe2 filter restyle <source_path_or_neversink_strictness> [--base-only] [--theme <preset>] [--look "<theme/cvd/2am/sound prompt>"] [--pob <code>] [--slot <slot>] [--slots <s1,s2>] [--out <path>] [--preview-html <html_path>] [--install] --json` | Default recommendation for a new filter. Start from the player's file or NeverSink with `--base-only` to keep its priorities. |
76
+ | **Filter** | `poe2_filter_generate` | `poe2 filter generate [--strictness semi_strict] [--theme <id>] [--look "<theme/cvd/2am/sound prompt>"] [--pob <code>] [--slot <slot>] [--slots <s1,s2>] [--out <path>] [--preview-html <html_path>] [--install] --json` | Generate a native filter from scratch when requested. Compile a validated `0.5.5` `.filter` with live economy, solo/co-op `--slots` PoB2 context, inline `--look` theme/CVD/2am/sound intent parsing, `.wav`/`.mp3` soundpack, and HTML preview. |
77
+ | **Filter** | `poe2_filter_validate` | `poe2 filter validate <filter_file_or_text> [--sound-dir <dir>] --json` | Validate any `.filter` file or text against all 7 PoE2 `0.5.5` client-crash traps (`ItemClasses` ID vs Name, unknown/removed bases, `HasExplicitMod` spacing, `Continue`-last, `SetFontSize 18..45`, sound paths). |
78
+ | **Filter** | `poe2_filter_heal` | `poe2 filter heal <filter_file_or_text> [--out <path>] [--sound-dir <dir>] --json` | **Filter Doctor**: auto-heal broken PoE1 / PoE2 `0.1` `.filter` syntax (`MapTier -> WaystoneTier`, `Expert ` prefixes, singular classes, `SocketGroup`/`Scarab` pruning, `Continue` hoisting) to `0` errors (`FilterHealReport`). |
79
+
80
+ ## Mandatory Anti-Hallucination Guardrails (Zero Tolerance)
81
+
82
+ 1. **Never apply PoE1 or stale Patch `0.1` rules.** Before stating any mechanic or formula, call `poe2_explain_mechanic` or read [mechanics-0.5.5.md](references/mechanics-0.5.5.md):
83
+ - **Conversion scales post-conversion types ONLY** (2-step `Skill -> Gear/Tree`, zero PoE1 double-dipping; DoTs cannot convert).
84
+ - **Weapon/Armour Quality is `1% MORE` (multiplicative)**, not additive with local `% increased`. Attributes grant **0 per level** (`Str = +2 Life`, `Dex = +6 Accuracy`, `Int = +2 Mana`).
85
+ - **Support Gems (`0.3+`)**: Standard supports are Tiered (`I`/`II`/`III`) and **can be equipped on multiple skills** (max 1 per `SupportGemCategory` per skill). Only **Lineage Supports** (and persistent global Spirit supports) are capped at `1 per character`.
86
+ - **Defenses (`0.5.5`)**: Base passive Block cap is **`50%`** (NOT 75%). **Deflection** mitigates `40%` of hit/ailment damage independently of Evasion (`95%` cap). **Chaos deals `2x` damage to ES** (does NOT bypass ES), whereas **Bleeding AND Poison both bypass ES** directly to Life. **Grim Feast** is a Minion Revival skill (no longer doubles ES).
87
+ 2. **Exalted Orb (`1.0`) is the unit currency**, not Chaos (`1 Divine ≈ 450–465 Exalted`, `1 Chaos ≈ 36 Exalted` in `Forbidden Rites`). Never treat missing/unpriced crafting currencies as `0` cost.
88
+ 3. **Never hallucinate removed bases or crafting levers**:
89
+ - PoE1 bases (`Vaal Regalia`, `Hubris Circlet`, `Astral Plate`, `Stygian Vise`) and removed `0.1` `Expert ` prefixes (`Expert Hexer's Robe` -> `Hexer's Robe`) fail in `0.5.5` — validate every base with `poe2_inspect_base`.
90
+ - In-game PoE2 tooltips since `0.2.1` use **`Tier 1` (`display_tier = 1`) = BEST tier** (internal `.datc64` `internal_rank_asc = 1` is worst).
91
+ - Zero Scouring, Alteration, Fusing, Chromatic, Fossils, or Crafting Bench. **`Omen of Homogenising Exaltation` / `Coronation` (removed in `0.4`)** and **Recombinators (`Omen of Recombination`, phased out in `0.5`)** do NOT drop in `0.5.5`.
92
+ 4. **Never scrape dead/protected endpoints, emit unvalidated `.filter` syntax, or violate GGG ToS**:
93
+ - `poe.ninja`'s PoE2 `/stash/` endpoint returns `HTTP 404`, `/api/protected/poe2/builds/...` is Cloudflare-gated (`HTTP 403`), and `poe2scout.com/api` returns HTML — always use `poe2brain`'s verified clients (`api.poe2scout.com`, `poe.ninja/poe2/api/economy/exchange/current/overview`, `poe.ninja/poe2/pob/raw/overview/code`, and `pathofexile.com/api/trade2`).
94
+ - Never hand-emit raw PoE2 `.filter` rules without `poe2_filter_validate` (raw SQLite `item_class` IDs like `Body Armour`/`Warstaff`, stale `BaseType`s like `"Fist of Kalguur"`, or `HasExplicitMod >= 2` spaces crash PoE2 filter load!).
95
+ - Strictly read-only public APIs and clipboard text: never read `POESESSID`, inject game inputs, automate trade clicks, or send automated whispers.
96
+
97
+ ## Core Decision Playbooks
98
+
99
+ ### Playbook A: Meta/Ascendancy Selection, Build Audit, Progression Diff & HC Survival
100
+ Read [pob2-workflows.md](references/pob2-workflows.md) (and [mechanics-0.5.5.md](references/mechanics-0.5.5.md) when mechanics interact).
101
+ 1. **Verify Live Meta & Ascendancy Notables**: For *"best build / best ascendancy / SSF reroll"* prompts, call `poe2_meta_ladder` and `poe2_inspect_ascendancy` (all 23 PoE2 `0.5.5` Ascendancies; blocks PoE1/unreleased traps). For SSF chase drops (`Svalinn`, `Choir of the Storm`, `Rakiata's Flow`), run `poe2_ninja_search --ssf-viable --exclude-unique "Temporalis,Mageblood,Headhunter,Kalandra's Touch"` to isolate low-unique setups without T0 co-dependencies.
102
+ 2. **Load, Dewater & Diff Progression Slots**: Load `eN...` codes or `poe.ninja` characters into `main` (and early snapshots into `early` via `poe2_ninja_character --probe-timeline` -> `--timemachine <earliest> --load-pob --slot early`). Run `poe2_pob_audit` to strip PoB-warrior inflation, and run `poe2_pob_compare --slot-a early --slot-b main --dewater` for exact gear/skill/keystone diffs and `0.5.5` Gold respec cost (`1x` passive, `5x` Ascendancy; Orbs of Regret do not exist).
103
+ 3. **Run Hardcore / Pinnacle Rip Audits (`poe2_pob_hc_audit`)**: On HC or Pinnacle boss builds, call `poe2_pob_hc_audit` to verify sustainable Phys/Ele/Chaos Max Hits, catch lethal **non-CI Low-Life ES Bleed/Poison bypass** (`bleed_poison_es_bypass`) and **Chaos `2x` ES damage** (`chaos_2x_es_vulnerability`), check Belt Charms, and rank top defensive EHP passive respecs with exact Gold cost.
104
+ 4. **Optimize Tree, Radius Jewels, Gems, What-If Hypotheses & Gear Upgrades**: Run `poe2_pob_calc_breakdown` to explain where any stat (`FullDPS`, `ManaCost`, `EnergyShield`, `CritChance`) comes from (`BASE`/`INC`/`MORE`), `poe2_pob_suggest_nodes` (`perPoint`/`total`/`anoint`), `poe2_pob_radius_jewels` (`Controlled Metamorphosis` / `Against the Darkness` socket × ring placement), `poe2_pob_supports` (full `GetMiscCalculator()` Tier `I`–`III` + Lineage support ranking with Mana/Spirit/conflict checks), `poe2_pob_what_if` (transactional multi-change experiments & borrowed reference-slot attribution), and `poe2_pob_stat_weights` -> `poe2_find_upgrades` (with automatic `20%` Quality + Greater Rune top-off normalization on non-corrupted candidates).
105
+
106
+ ### Playbook B: Clipboard Item Price-Checking, Quad-Tab Triage & Budget Upgrade Hunting
107
+ Read [trade-economy.md](references/trade-economy.md).
108
+ 1. **Single Item vs Multi-Item Dump Triage**: Run `poe2_price_check` for a single item, or **`poe2_triage_dump` (`poe2 trade triage`)** on multi-item `Ctrl+C` pastes/files to split and classify mixed quad-tab dumps into `sell_instant` (Alva stackables / Instant Buyout), `craft_finish_ev` (open-affix fractured/T1 rares), `high_variance_id_or_unveil` (`Unidentified (Tier 3–5)` or unrevealed `Desecrated`), and `salvage_or_vendor`.
109
+ 2. `poe2_price_check` queries buyout listings by default and returns `fixer_warnings` when outliers distort the price range. Pass `--include-whisper` to include whisper listings.
110
+ 3. **Hunt Budget Upgrades**: When shopping for a slot upgrade, pass `--max-exalted <budget>` to `poe2_find_upgrades` so every candidate is evaluated inside headless PoB2 (`GetMiscCalculator()`) with automatic `+20%` quality + Greater Rune top-off rather than judged by eye.
111
+
112
+ 4. If a player gives only a character and a budget, load their build and inspect the main skill, equipped items and defensive constraints. Use the audit, the gear in `poe2_pob_export(format="xml")`, or compare a later snapshot running the same skill. Choose up to four plausible slots yourself. Run `poe2_plan_upgrades` with shared Exalted ceilings, using `dps` for effective DPS or `defence` for EHP. International players can use live `equip_slots`. For 国服, supply local offers. State the best combination found in the sample, its measured gains, listed prices and Gold fees. Refresh winning asks before quoting them as available. [Offer format and replay command](references/trade-economy.md#multi-slot-budget-plans)
113
+
114
+ ### Playbook C: Profitable Craft Discovery, Mid-Craft Rescue & Expected-Cost Crafting
115
+ Read [crafting-playbook.md](references/crafting-playbook.md).
116
+ 1. **Scan Profitable Crafts First**: When asked *"what craft is most profitable?"*, run `poe2_scan_craft_profit` (`--budget all|low|mid|high`) to rank deterministic & positive-EV crafts with sanitized live input costs, `p50`/`p80` drawdowns, live `trade2` `securable` `p10`/`median` exit prices, listing depth, and step-by-step recipes while flagging negative-EV traps.
117
+ 2. **Mid-Craft Bench Rescue (`poe2_craft_odds --protect-existing`)**: On partially finished high-value Rares (`--item-text`), `poe2_craft_odds` defaults to `protect_existing_targets=True` so `0%`-collateral moves (`Omen of Whittling` sniping lowest `required_level` non-fractured bricks, `Sinistral/Dextral Crystallisation`, `Omen of Light`) rank ahead of raw Chaos/swap moves that risk bricking finished T1 affixes.
118
+ 3. **Simulate Optimal `0.5.5` Policy & Tail Risk**: Anchor `buy_price_ex` via `poe2_price_check`, verify base/breakpoints via `poe2_inspect_base`, and run `poe2_craft_plan --base "<base>" --ilvl <ilvl> --target ... --buy-exalted <buy_price_ex> --sims 3000`. Recommend **Buy** when `buy_price_ex <= expected_cost_exalted` or bankroll cannot absorb `p80_cost_exalted`.
119
+
120
+ ### Playbook D: Arbitrage, Capital Compounding Ladder & `<=50c` Waystone Regex
121
+ Read [trade-economy.md](references/trade-economy.md) and [mechanics-0.5.5.md](references/mechanics-0.5.5.md).
122
+ 1. **Arbitrage & Broke-to-Rich Compounding Ladder (`poe2_scan_arbitrage`)**: Use `poe2 econ arbitrage --budget <amount> --gold <gold>` to rank hideout conversions and Alva spreads by ROI % and `profit_ex_per_10k_gold`. For small starting bankrolls + Gold caps, pass `--budget <ex> --gold <gold> --ladder-target-divine <divine>` (`starting_exalted`, `gold_budget`, `target_divine`) to build a multi-rung compounding plan that avoids `45k Gold/cycle` Exalted churn.
123
+ 2. **Enforce Gold-Tax & Liquidity Discipline**: Quote bulk flips in `Divine` or `Chaos`, never cross `/api/trade2/exchange` shark bids, and require liquid exchange depth on both legs.
124
+ 3. **Compile `<=50-Char` Waystone & Precursor Tablet Stash Regexes (`poe2_waystone_regex`)**: Run `poe2 wiki regex --slot main` to auto-detect CI / Archmage-MoM / Leech / Crit / Hybrid-ES build bricks and emit verified `<=50`-char `brick_regex`, `safe_runnable_regex` (`!"..."`), `juicing_regex`, and Map-Device `tablet_regex` alongside the `0..6` mod -> `5..0` revive schedule (`6 mods = 0 revives`).
125
+
126
+ ### Playbook E: `poe.ninja` Build Import -> Co-op / CVD / 2 AM Loot Filter Studio & Filter Doctor
127
+ Read [filters-and-ninja.md](references/filters-and-ninja.md) and [pob2-workflows.md](references/pob2-workflows.md).
128
+ 1. **Discover & Import `Forbidden Rites` Builds (`poe2_ninja_search` -> `poe2_ninja_character --load-pob`)**: Search leaderboards (`--ssf-viable` for SSF), probe time-machine history (`--probe-timeline`), and import solo or duo characters into named PoB2 slots (`--slot p1`, `--slot p2`).
129
+ 2. **Create a filter from a maintained base.** Recommend the player's existing PoE2 filter first, or NeverSink for PoE2 (`semi_strict` for a general starting point). Write a new file, e.g. `poe2 filter restyle semi_strict --base-only --out my.filter --json`, or pass the player's file as the source. On MCP use `poe2_filter_restyle(source="semi_strict", base_only=True, out_path="my.filter")`. The base supplies the priorities, colors and sounds. Describe the selected source and apply requested changes. Use native `poe2_filter_generate` when the player asks for a filter from scratch.
130
+ - For 国服, keep `--base-only` for a branch using the base's priorities. The validator uses the project's English patch data. Keep a player's localized original intact if it cannot be validated. For 国服, build-specific highlights can be added with `--slot main` or `--slots p1,p2`. With 国际服 selected, omit `--base-only` to also apply international league economy overrides.
131
+ - Use `--look` or `--theme` for requested style changes, `--cvd-safe deuteranopia|protanopia` for visual accessibility, and `--warm-night` / `--lowpass-hz` for audio adjustments.
132
+ 3. **Doctor Broken Legacy Filters (`poe2_filter_heal`) & Validate (`poe2_filter_validate`)**: When a user pastes a broken PoE1 or Patch `0.1` `.filter` (`MapTier`, `SocketGroup`, `Expert ` prefixes, singular `Class == "Body Armour"`, `HasExplicitMod >= 2`, `Continue` ordering), run **`poe2_filter_heal`** (`poe2 filter heal <file> --out <healed.filter>`) to repair it to `0` validation errors; pass `--install` only when explicitly requested.
@@ -0,0 +1,129 @@
1
+ # PoE2 Patch `0.5.5` Crafting Decision Tree & Playbook
2
+
3
+ All probabilities, expected Exalted costs, and profit rankings must be computed via `poe2_craft_odds`, `poe2_craft_plan`, and `poe2_scan_craft_profit` (`ModPoolEngine` + `CraftingPlanner` + `CraftProfitScanner` over `data/poe2_0.5.5.sqlite` + sanitized live `EconomyService` & `trade2` quotes). Never eyeball mod weights or apply PoE1 crafting steps.
4
+
5
+ ## 1. Non-Negotiable `0.5.5` Crafting Invariants
6
+
7
+ 1. **Zero PoE1 Reset Currencies**: There is **NO** Orb of Scouring, Orb of Alteration, Orb of Fusing, Chromatic Orb, Harvest Reforge, Fossil/Resonator, Eldritch Ichor/Ember, or Crafting Bench in Path of Exile 2. Once a Normal base becomes Magic/Rare, it stays Magic/Rare (failed items are salvaged, recomb-less vendored, or abandoned for a fresh base).
8
+ 2. **Removed Levers — NEVER Recommend in `Forbidden Rites`**:
9
+ - **`Omen of Homogenising Exaltation` & `Omen of Homogenising Coronation`**: **Removed from active drop pools in Patch `0.4`** (`is_active_drop_in_patch = 0`; legacy copies exist only on permanent `Standard`).
10
+ - **Expedition Recombinators / `Omen of Recombination`**: **Phased out in Patch `0.5`** (`is_active_drop_in_patch = 0`).
11
+ 3. **Tier Numbering Direction (`0.2.1+`)**:
12
+ - **`display_tier = 1` (`Tier 1`) is ALWAYS the BEST / highest tier** in-game and in `poe2brain` user outputs.
13
+ - Internal `.datc64` / RePoE `internal_rank_asc` counts upward from `1` (lowest ilvl) — never confuse internal rank `1` with `T1`!
14
+ 4. **Server-Side Weights & Dynamic Tag-Blocking**:
15
+ - GGG removed numerical spawn weights from `.datc64` client tables; `poe2_0.5.5.sqlite` joins community-verified `poe2db` `ModsView` weights (`1000`, `500`, `250`, `50`, etc.) onto `repoe-fork` affix families.
16
+ - **Dynamic Elemental Tag-Blocking (Wands/Staves/Sceptres)**: Certain affixes inject tags (`adds_tags_json`, e.g., rolling a `fire_Mod` or `+Level of Fire Spell Skills` dynamically blocks or re-weights competing `cold`/`lightning` `+Spell Skills` mods via `spawn_weights_json`). Always let `ModPoolEngine` compute conditional pool denominators after each rolled mod!
17
+ 5. **Never Price Missing Currencies at `0`**: `EconomyService.get_bulk_crafting_prices` returns `None` (unavailable) for unquoted ultra-rare currencies/essences rather than `0.0`, preventing the MDP solver from hallucinating "free" Mirror/Corrupted Essence steps.
18
+
19
+ ---
20
+
21
+ ## 2. Complete Patch `0.5.5` Crafting Lever Reference
22
+
23
+ ### A. Tiered Basic Orbs (`min_mod_level` Floors)
24
+ Higher-tier basic orbs truncate every affix tier with `required_level < floor` out of the eligible weight denominator — dramatically boosting `T1`–`T2` hit rates on ilvl `80–82` bases:
25
+
26
+ | Currency Family | Action | Basic Floor | **Greater** Floor | **Perfect** Floor |
27
+ | :--- | :--- | :---: | :---: | :---: |
28
+ | **Orb of Transmutation** | `Normal -> Magic` (`+1` mod) | `1` | **`55`** | **`70`** |
29
+ | **Orb of Augmentation** | `Magic (1 mod) -> Magic (2 mods)` | `1` | **`55`** | **`70`** |
30
+ | **Regal Orb** | `Magic -> Rare` (`+1` mod) | `1` | **`35`** | **`50`** |
31
+ | **Exalted Orb** | `Rare -> Rare` (`+1` mod, up to `3P/3S`) | `1` | **`35`** | **`50`** |
32
+ | **Chaos Orb** | `Rare -> Rare` (`-1` random mod, `+1` random mod) | `1` | **`35`** | **`50`** |
33
+
34
+ *(Orb of Alchemy upgrades `Normal -> 4-mod Rare`; Orb of Annulment removes `1` random non-fractured mod on Magic/Rare.)*
35
+
36
+ ### B. Essences & Patch `0.5` Verisium Alloys (Critical Distinction!)
37
+ Do **NOT** confuse PoE1 Essences (reroll whole Rare) with PoE2's two distinct Essence classes:
38
+ 1. **Lesser / Normal / Greater Essences** = **`Magic -> Rare` Upgrade** (acts like a **targeted Regal Orb**: keeps existing 1–2 Magic mods and adds **1 guaranteed mod** from the Essence's category/tier). Cannot be used on Rare items!
39
+ 2. **Perfect Essences (`19`), Corrupted Essences (`6`: *Delirium, Horror, Hysteria, Insanity, Breach, Essence of the Abyss*), and Patch `0.5` Verisium Alloys (`13`)** = **`Rare -> Rare` Targeted Swap** (**removes `1` random existing explicit mod and adds `1` guaranteed high-tier/exclusive mod**!).
40
+ - **Power Combo (`Sinistral / Dextral Crystallisation`)**: Activate **`Omen of Sinistral Crystallisation`** (forces removal of a **Prefix**) or **`Omen of Dextral Crystallisation`** (forces removal of a **Suffix**) before applying a Perfect Essence, Corrupted Essence, or Verisium Alloy! Example: if Suffixes are `3/3` finished (`+5 Lightning Skills`, `T1 Cast Speed`, `T1 Crit`), a Prefix-adding Perfect Essence + **`Sinistral Crystallisation`** removes a trash Prefix and adds a guaranteed `T1` Prefix with **`0%` risk to your finished Suffixes**!
41
+
42
+ ### C. Fracturing Orb (`1/4` Rule)
43
+ - Permanently locks **`1 / k`** random explicit modifier (turning it golden/immutable across Annuls, Chaos, Whittling, Crystallisation, and Desecration) on any Rare item with **`k >= 4` explicit modifiers**.
44
+ - **Optimal Rule**: Always fracture at **exactly `4` mods (`25.0%` hit probability)** — never slam to 5 (`20%`) or 6 (`16.7%`) mods before fracturing!
45
+
46
+ ### D. Ritual Crafting Omens (`0.5.5` Active Pool)
47
+ - **Prefix (`Sinistral`) / Suffix (`Dextral`) Targeting**:
48
+ - `Omen of Sinistral / Dextral Exaltation`: Next Exalt adds Prefix / Suffix.
49
+ - `Omen of Sinistral / Dextral Coronation`: Next Regal adds Prefix / Suffix.
50
+ - `Omen of Sinistral / Dextral Annulment`: Next Annul removes Prefix / Suffix.
51
+ - `Omen of Sinistral / Dextral Erasure`: Next Chaos **removes only** a Prefix / Suffix (note: the newly added mod can still roll either side unless the opposite side is already `3/3` full!).
52
+ - `Omen of Sinistral / Dextral Alchemy`: Next Alchemy guarantees max Prefixes (`3`) / max Suffixes (`3`).
53
+ - `Omen of Sinistral / Dextral Crystallisation`: Next Perfect/Corrupted Essence or Verisium Alloy **removes** a Prefix / Suffix.
54
+ - `Omen of Sinistral / Dextral Necromancy`: Next Abyssal Desecration adds a Desecrated Prefix / Suffix.
55
+ - **Multi-Roll & Catalyst Omens**:
56
+ - `Omen of Greater Exaltation` (`+2` mods on next Exalt) & `Omen of Greater Annulment` (`-2` mods on next Annul).
57
+ - `Omen of Catalysing Exaltation`: Consumes Jewellery/item Catalyst quality to weight the next Exalted Orb heavily toward the Catalyst's mod tag!
58
+ - **`Omen of Whittling` (Deterministic Low-ilvl Cleanup) & Mid-Craft Collateral Protection**:
59
+ - Next **Chaos Orb** (including Greater/Perfect Chaos!) **removes the non-fractured explicit modifier with the LOWEST `required_level`** instead of choosing randomly (fractured mods are ignored even if their `required_level` is lowest on the item).
60
+ - **Whittling & Collateral Safety Check (`poe2_craft_odds --protect-existing`)**: Inspect `ParsedMod.required_level` on **every** desired mod before using Whittling (if tied for lowest `required_level`, removal splits across tied mods!). When `--item-text` is supplied, `poe2_craft_odds` defaults to `protect_existing_targets=True`, sorting `0.0%`-collateral actions (`Whittling`, side-locked `Crystallisation`, `Omen of Light`) ahead of raw Chaos/swap actions that risk bricking finished T1 affixes.
61
+ - **Terminal Lock Finishers (Apply LAST Only)**:
62
+ - **`Omen of Sanctification` + Divine Orb**: Re-rolls & multiplies all explicit modifier values independently by **`[0.78, 1.22]`** (can push `+4` or `T1` rolls above normal caps!) and **Sanctifies (locks) the item** against all further modification (including Runes!).
63
+ - **`Omen of Corruption` + Vaal Orb**: Removes the "no change" Vaal outcome (forces implicit/socket/mod/brick outcome) and corrupts the item.
64
+
65
+ ### E. Abyssal Desecration (Well of Souls)
66
+ - **Bones by Base Class × Tier**:
67
+ - Class: **Jawbones** (Weapons & Quivers) | **Ribs** (Armour & Shields/Foci) | **Collarbones** (Amulets, Rings, Belts).
68
+ - Tier: **Gnawed** (`ilvl <= 64` items ONLY) | **Preserved** (any ilvl, `floor = 1`) | **Ancient** (any ilvl, **`min_mod_level = 40`** — always use Ancient on endgame crafts!).
69
+ - **Mechanics & Unveiling**:
70
+ - Maximum **`1` Desecrated mod** per item. Unveiling at the **Well of Souls** draws **3 distinct mod families without replacement** (hypergeometric 3-draw) and lets you pick the best.
71
+ - **`Omen of Abyssal Echoes`**: Grants **1 full reroll of all 3 unveil choices** at the Well of Souls (nearly doubling unveil hit odds!).
72
+ - **Abyssal Boss Omens (`Liege` / `Blackblooded` / `Sovereign`)**: Restrict or guarantee signature **Amanamu**, **Kurgal**, or **Ulaman** Desecrated modifier pools.
73
+ - **`Essence of the Abyss`** (`Rare -> Rare` remove-1 + add-1, combinable with `Sinistral / Dextral Crystallisation`): Places *Mark of the Abyssal Lord* on a 6-mod Rare item, which the next Desecration Bone **100% deterministically replaces** — acting as a targeted 6-mod replacement anchor without risking the other 5 affixes!
74
+ - **`Omen of Light` + Orb of Annulment**: **100% deterministically removes the Desecrated modifier** while leaving all 5 regular/fractured mods untouched — making the 6th-mod Desecration loop completely safe to repeat!
75
+
76
+ ---
77
+
78
+ ## 3. Standard `0.5.5` Endgame Crafting Decision Tree
79
+
80
+ When planning or explaining a craft (`poe2_craft_plan`), evaluate these six stages in order:
81
+
82
+ ```text
83
+ [Stage 0: Base & Trade Check]
84
+ ├─ Check finished item `securable` price on `trade2` (`buy_price_ex`)
85
+ ├─ Check `trade2` for pre-Fractured 1-mod Rare or 2-T1 Magic bases (often cheaper than self-fracturing!)
86
+ └─ Verify exact ilvl breakpoint via `poe2_inspect_base` (e.g. ilvl 81/82 for `+5 Spell Skills`, avoiding unneeded ilvl 82+ trash dilution if T1 unlocks at ilvl 78!)
87
+ │
88
+ ▼
89
+ [Stage 1: Magic 2-Mod Opener (Cheap Normal Bases)]
90
+ └─ `Perfect Orb of Transmutation` (floor=70) + `Perfect Orb of Augmentation` (floor=70)
91
+ └─ Miss? Discard base and buy fresh Normal base (costs pennies vs Annul/Chaos!)
92
+ │
93
+ ▼
94
+ [Stage 2: Rare 3-Mod Transition]
95
+ ├─ Target mod has a `Greater Essence`? -> Apply `Greater Essence` (100% guaranteed 3rd mod!)
96
+ └─ Otherwise -> `Perfect Regal Orb` (floor=50) [+ `Sinistral/Dextral Coronation` if side matters]
97
+ │
98
+ ▼
99
+ [Stage 3: 4-Mod Fracture Checkpoint (High-Budget / Rare T1 Target)]
100
+ └─ Slam 4th mod -> `Fracturing Orb` (`25%` lock on your hardest mod, e.g. `+5 Skills` or `T1 % Phys`)
101
+ │
102
+ ▼
103
+ [Stage 4: Finish 3 Prefixes OR 3 Suffixes + Clean Other Side]
104
+ ├─ Force guaranteed T1/exclusive mods via `Perfect Essence` / `Corrupted Essence` / `Verisium Alloy`
105
+ │ paired with `Sinistral` or `Dextral Crystallisation` (protects completed side 100%!)
106
+ ├─ Slam with `Greater/Perfect Exalted Orb` (floor 35/50) + `Sinistral/Dextral/Catalysing Exaltation`
107
+ └─ Strip low-`required_level` bricks deterministically with `Omen of Whittling` + `Perfect Chaos Orb` (floor=50)
108
+ │
109
+ ▼
110
+ [Stage 5: Deterministic 6th-Mod Abyssal Desecration]
111
+ ├─ Apply `Ancient Jawbone / Rib / Collarbone` (floor=40) + `Sinistral/Dextral Necromancy` [+ Boss Omen]
112
+ ├─ Unveil at Well of Souls with `Omen of Abyssal Echoes` (best of 3, rerollable once)
113
+ └─ Miss unveil? -> `Omen of Light` + `Orb of Annulment` (100% safe removal) -> repeat Stage 5!
114
+ │
115
+ ▼
116
+ [Stage 6: Socketables, Quality & Optional Lock Finisher]
117
+ ├─ Apply 20% Quality / Catalysts + socket Runes / Soul Cores / Idols (overwritable BEFORE lock!)
118
+ └─ Optional high-variance gamble ONLY at very end: `Omen of Sanctification` + Divine OR `Vaal Infuser` / `Omen of Corruption` + Vaal
119
+ ```
120
+
121
+ ---
122
+
123
+ ## 4. Profitable Craft Discovery & Sunk-Cost Discipline (`poe2_scan_craft_profit`)
124
+
125
+ When recommending crafts for profit (`poe2 craft profit --budget all|low|mid|high --json`):
126
+
127
+ 1. **Sunk-Cost Restart Rule**: Never burn `Chaos Orb` or `Omen of Sinistral/Dextral Erasure` on 0-hit Magic or unfractured partial Rare bases when buying a fresh Normal base + `Perfect Transmute / Greater Aug` is cheaper (`CraftingPlanner` enforces this automatically).
128
+ 2. **Deterministic Cross-Side `Crystallisation` Combos**: The highest risk-adjusted ROI crafts in `0.5.5` pad disposable prefixes/suffixes and force guaranteed `Perfect/Corrupted Essence` (*Horror, Hysteria, Breach, Sorcery*) or `Verisium Alloy` (*Swift, Transcendent, Sovereign, Celestial*) mods via `Omen of Sinistral / Dextral Crystallisation`, followed by guaranteed or 3-draw Abyssal Bone (`Jawbone` / `Rib` / `Collarbone` + `Liege` / `Blackblooded` + `Omen of Light`) finishers.
129
+ 3. **Verify `securable` Exit Depth & Sanitize Thin Quotes**: Always price exits against live `trade2` Instant Buyout (`securable` `p10` / `median`) and active listing count (`commoditized` generic 2-mod rares often sell below orb cost!), and reject `<0.08 Div`-volume exchange dust/RMT outliers (`build_sanitized_crafting_prices`).
@@ -0,0 +1,77 @@
1
+ # `poe.ninja` Build Intelligence & Agentic Loot Filter Studio (`0.5.5`)
2
+
3
+ `poe2brain` provides end-to-end Path of Exile 2 (`Patch 0.5.5` / `Forbidden Rites`) build discovery from `poe.ninja` (`poe2brain.ninja`) and a self-validating `.filter` compiler, WCAG visual theme composer, custom `.wav`/`.mp3` soundpack studio, and `NeverSink` auto-healer (`poe2brain.filters`).
4
+
5
+ ---
6
+
7
+ ## 1. `poe.ninja` PoE2 Builds & Multi-Site Character Import (`poe2 ninja ...`)
8
+
9
+ ### Clean Endpoint Architecture (Zero `403` Scraping)
10
+ - **Live League & Snapshot Telemetry (`poe2_ninja_snapshots`)**:
11
+ - Queries `GET https://poe.ninja/poe2/api/data/build-index-state` (`30m` TTL) + `GET https://poe.ninja/poe2/api/data/snapshot-versions?league=<slug>` (`15m` TTL) across all 4 modes: `Forbidden Rites`, `HC Forbidden Rites`, `SSF Forbidden Rites`, and `HC SSF Forbidden Rites` (note: `snapshotVersions` moved out of `index-state` in Nov 2026).
12
+ - **Multi-Facet Leaderboard Search (`poe2_ninja_search`)**:
13
+ - Combines live mode totals/class playrates with instant multi-facet filtering (`--class`, `--ascendancy`, `--skill`, `--support`, `--unique`, `--keystone`, `--weapon`, `--min-dps`, `--min-ehp`, `--sort dps|ehp|level|es|life|sleeper|mobility`) and `min`/`median`/`p90`/`max` stat distributions over the runtime SQLite `BuildStore` (`~/.cache/poe2brain/builds.sqlite`), synced via ETag from the daily GitHub Actions rolling `build-index` release (`poe2 ninja sync`) plus write-through caching on live imports.
14
+ - Pass `--ssf-viable` (`ssf_viable_first=True`), `--exclude-unique "Temporalis,Mageblood"`, and `--max-uniques <N>` to isolate SSF-achievable builds and surface T0 chase co-dependency warnings; pass `--refresh-live <N>` (`refresh_live_top`) when you want the top `N` matched characters live-refreshed via `poe.ninja`'s raw PoB endpoint.
15
+ - **Live Character, Time-Machine Timeline & Share-Link Import (`poe2_ninja_character` & `poe2_pob_load`)**:
16
+ - Fetches live `HTTP 200` `<PathOfBuilding2>` exports from `GET https://poe.ninja/poe2/pob/raw/overview/code?overview={snapshotName}&type=exp&account={acct}&name={char}[&timemachine={label}]` (`30m` disk cache, `1.0s` polite pacing on cache miss, nearest-available time-machine fallback when a character was created mid-league, and archived corpus fallback on `HTTP 404`).
17
+ - Pass `--probe-timeline` (`probe_timeline=True`) to binary-search chronological weekly milestones in `<= 7` probes (`CharacterTimelineReport`, pinpointing `earliest_available_label` and `latest_available_label`).
18
+ - Normalizes `Account#1234` -> `Account-1234` automatically and preserves UTF-8 CJK/Korean character names.
19
+ - Also resolves public PoB2 share links across **`poe.ninja/poe2/pob/<id>`**, **`poe2db.tw/pob/<id>`**, **`maxroll.gg/poe2/pob/<id>`**, and **`pobb.in/<id>`**.
20
+ - **Strict Boundary**: `NinjaBuildsService` refuses any `/api/protected/...` URL (`403` Cloudflare-gated internal endpoint).
21
+ - **Slot Persistence & Performance**:
22
+ - Passing `--load-pob --slot main` (`load_into_pob=True`) loads the character into `Pob2Bridge` in `~1s` **and** saves `~/.cache/poe2brain/pob_slots/main.xml`, so subsequent `poe2 pob audit --slot main`, `poe2 trade upgrades --slot main`, and `poe2 filter restyle semi_strict --slot main` commands immediately see the imported build.
23
+ - Keep `audit=False` during bulk inspection (`audit_build()` runs multi-pass `OnFrame` sweeps taking `~15–35s` on 12-skill builds); pass `--audit` (`audit=True`) when evaluating real Pinnacle Boss DPS/EHP.
24
+
25
+ ---
26
+
27
+ ## 2. PoE2 `0.5.5` `.filter` Grammar & 7 Fatal Client-Crash Traps (`poe2_filter_validate`)
28
+
29
+ Every `.filter` generated or restyled by `poe2brain` is verified by `FilterValidator` against `data/poe2_0.5.5.sqlite` + `data/filter/item_classes_0.5.5.json` (`0.5.5.10` `.datc64` `ItemClasses` & `BaseItemTypes`). Never hand-write raw `.filter` blocks without running `poe2_filter_validate`:
30
+
31
+ 1. **Trap #1 — Internal `.datc64` `item_class` IDs vs `.filter` `Class` Names**:
32
+ - SQLite `base_items.item_class` stores internal IDs (`Body Armour`, `Warstaff`, `SoulCore`, `TowerAugmentation`, `UtilityFlask`, `Map`). Emitting those raw strings crashes PoE2 filter load (`Invalid Class`).
33
+ - Always use `.filter` `ItemClasses.Name` (`"Body Armours"`, `"Quarterstaves"`, `"Augment"`, `"Tablet"`, `"Charms"`, `"Waystones"`), and never emit `Class` for empty-name `Meta Skill Gem` (`Cast on Shock` etc. must match by `BaseType ==`).
34
+ 2. **Trap #2 — Stale / Unknown `BaseType` or `Class` Aborts Entire Filter**:
35
+ - Any `BaseType` or `Class` matching `0` live `0.5.5` items aborts loading the entire `.filter` file. Notably, `NeverSink-Filter-for-PoE2` `0.10.4a` contains removed bases (`"Fist of Kalguur"`, `"Fragments of the Past"`) and misses `18` `0.5.5` keys/fragments (`"Zarokh's Reliquary Key: Temporalis"`, `"Origin Core"`, `"Origin Cradle"`, Calamity/Crisis Fragments). `NeverSinkAdapter` (`poe2_filter_restyle`) heals these automatically.
36
+ 3. **Trap #3 — `HasExplicitMod` Operator Whitespace**:
37
+ - PoE2 rejects spaces between operator and count: `HasExplicitMod >= 2 "Merciless"` **crashes**; always glue operator and count: `HasExplicitMod >=2 "Merciless"`.
38
+ 4. **Trap #4 — Statements After `Continue`**:
39
+ - `Continue` must be the final statement inside a `Show`/`Hide` block.
40
+ 5. **Trap #5 — Missing Non-Optional `CustomAlertSound` File**:
41
+ - Non-optional `CustomAlertSound "pack/s_plus.wav"` fails filter load if the audio file is missing from the PoE2 filter root, and absolute paths (`/Users/...`, `C:\...`) are rejected. `poe2brain` emits `PlayAlertSound` fallback + `CustomAlertSoundOptional "poe2brain_<pack>/<tier>.wav"` with relative forward-slash paths.
42
+ 6. **Trap #6 — PoE1-Only Conditions & Removed Currencies**:
43
+ - Block `SocketGroup`, `LinkedSockets`, `MapTier` (use `WaystoneTier 1..16`), `ShaperItem`, `ElderItem`, `SynthesisedItem`, `Replica`, and dormant/removed items (`Orb of Alteration`, `Orb of Scouring`, `* Fossil`, `* Scarab`, `Omen of Homogenising *`, `Recombinator`).
44
+ - Active PoE2 conditions include `WaystoneTier`, `UnidentifiedItemTier` (`1..5`), `Sockets` (`0..6` Rune/Augment socket count, e.g. `Sockets >= 2`), `TwiceCorrupted`, `IsVaalUnique`, `HasVaalUniqueMod`, and `SetFontSize 18..45`.
45
+ 7. **Trap #7 — Multi-Base Chase Unique Ambiguity**:
46
+ - Ground filters cannot distinguish `Temporalis` from a 1-Exalted unique on `Silk Robe` prior to identification (whereas `"Zarokh's Reliquary Key: Temporalis"` is an exact `BaseType`). Multi-unique bases (`Silk Robe`, `Stellar Amulet`, `Heavy Belt`, `Time-Lost Diamond`) are tiered by `max(price_ex)` across sharing uniques and **never hidden** even on `uber_strict`.
47
+
48
+ ---
49
+
50
+ ## 3. Creating a filter from an existing base
51
+
52
+ Start from the player's current PoE2 `.filter` or upstream NeverSink for PoE2. Keep a separate working copy so the original remains available for updates.
53
+
54
+ ```bash
55
+ poe2 filter restyle semi_strict --base-only --out my.filter --json
56
+ poe2 filter restyle my.filter --base-only --look "cyberpunk neon" --out my-neon.filter --json
57
+ ```
58
+
59
+ The base-only workflow keeps the source priorities and skips economy tier injection. Explicit build inputs can add build-specific highlights. A selected CN realm uses this workflow by default. The named NeverSink preset receives compatibility repairs against the current patch. A supplied file is validated before styling. If its localized rules fail validation, keep the original and report the diagnostic. For an international league build-and-economy overlay, omit `--base-only` and start each refresh from the upstream source.
60
+
61
+ ## 4. Visual Themes (`--theme` / `--look`) & Custom Soundpack Studio (`--sound-style`)
62
+
63
+ 1. **6 Strictness Tiers (`--strictness`)**:
64
+ - `soft` -> `regular` -> `semi_strict` (default endgame starter) -> `strict` -> `very_strict` -> `uber_strict`.
65
+ 2. **8 WCAG-Verified Visual Presets (`--theme`) + Natural-Language Composer (`--look`)**:
66
+ - Built-in presets: `forbidden_abyss` (signature `0.5.5` emerald/gold on obsidian-violet), `solaris_gold`, `vaal_blood`, `cyberpunk_neon`, `darkmode_obsidian` (zero-glare matte charcoal, no white backgrounds), `cobalt_arcane`, `zen_minimal`, and `colorblind_safe` (Okabe-Ito luminance + distinct minimap icon shapes per tier).
67
+ - Pass `--look "<prompt>"` and/or `--cvd-safe deuteranopia|protanopia|tritanopia` (`cvd_safe`) to compose a custom palette; `compose_theme` enforces monotonic `S+ >= S >= A >= B >= C >= D` font sizes (`18..45`), Viénot/Machado dichromacy CIELAB $\Delta E^*_{ab}$ separation with **10 unique minimap icon shapes** (zero `Red`/`Green` beam/icon conflicts), and `WCAG >= 4.5:1` (`>= 6.0:1` on `S+`/`S`).
68
+ - Pass `--slots p1,p2` (`slots` on MCP) to union multiple persisted PoB2 builds into one shared co-op party filter (`merge_build_filter_contexts`).
69
+ 3. **6 Custom Soundpack Styles (`--sound-style`), 2 AM Tinnitus-Safe Mode (`--warm-night`) & Custom Callouts (`--callout`)**:
70
+ - Pure-Python zero-dependency `44.1 kHz` `16-bit` stereo `.wav` polyphonic synthesizers (`--musical-key C..B`, `--scale lydian|major|minor|pentatonic|phrygian|dorian`): `celestial_chime`, `ritual_gong`, `cyber_synth`, `arcade_retro`, `zen_minimal`.
71
+ - Pass `--warm-night` (`warm_night_mode=True`) or `--lowpass-hz <hz>` to apply a 4th-order Butterworth IIR low-pass cascade (`-24 dB/oct`, `<1.5%` energy `>2.5 kHz`) while keeping distinct per-tier rhythmic pulse counts.
72
+ - Hybrid **`voice_callout`** (or per-tier `--callout tier="phrase"` / `custom_callouts` on MCP): mixes a `140ms` FM chime attack with auto-ducked spoken callouts (`127.0.0.1:18455/v1/audio/speech` -> macOS `say`+`afconvert` -> pure-Python formant fallback) + `.mp3` twin export when `ffmpeg` is installed.
73
+ 4. **Legacy `.filter` Doctor (`poe2_filter_heal`)**:
74
+ - Run `poe2 filter heal <broken.filter> [--out <healed.filter>] --json` (`heal_filter_text`) to auto-repair broken PoE1 / Patch `0.1` filters (`MapTier -> WaystoneTier`, `SocketGroup`/`LinkedSockets`/`Scarab` pruning, singular `Class == "Body Armour" -> "Body Armours"`, spaced/glued `Expert ` / `Advanced ` prefixes, `Dualstring Bow -> Gemini Bow`, `HasExplicitMod >= 2 -> >=2`, `SetFontSize` clamping, and `Continue` hoisting without truncating trailing actions) to `0` errors.
75
+ 5. **Preview & Local Installation Hygiene**:
76
+ - Always pass `--preview-html <path.html>` when designing a custom look/soundpack so the user gets a single-file Wraeclast ground-drop simulator with inline click-to-play audio.
77
+ - Local PoE2 filter root (`detect_poe2_filter_dir()`): `~/Library/Application Support/Path of Exile 2/` (macOS), `%USERPROFILE%\Documents\My Games\Path of Exile 2\` (Windows), or Proton `compatdata/2694490/.../Path of Exile 2/` (Linux). Never write into `onlinefilters/`, and only pass `--install` (`install=True`) when the user explicitly asks to install into their local PoE2 folder.
@@ -0,0 +1,108 @@
1
+ # Path of Exile 2 Patch `0.5.5` Mechanics & Anti-Hallucination Reference
2
+
3
+ Verified against client `4.5.4.3`, Path of Building 2 `v0.23.1` (`CalcOffence.lua`, `CalcDefence.lua`, tree `0_5`), and `repoe-fork/poe2` `keywords.min.json` (769 official GGG `KeywordPopups`). Query `poe2_explain_mechanic` (`poe2 wiki mechanic "<topic>" --json`) whenever an unlisted edge case arises.
4
+
5
+ ## 1. PoE1 / Stale-`0.1` Traps vs Patch `0.5.5` Ground Truth
6
+
7
+ | Topic | PoE1 / Stale `0.1` Hallucination (WRONG) | PoE2 Patch `0.5.5` Ground Truth (RIGHT) |
8
+ | :--- | :--- | :--- |
9
+ | **Damage Conversion** | Multi-step chain (`Phys -> Light -> Cold -> Fire`) double-dipping `% increased` at each stage | **2-step max (`Skill -> Gear/Tree`)**; scales **ONLY post-conversion damage types**; DoTs never convert |
10
+ | **Weapon / Armour Quality** | Additive with local `% increased Physical / Defences` | **`1% MORE` (multiplicative)** base damage / defence per `1%` Quality (up to `30%` via Vaal Infusers) |
11
+ | **Base Crit Damage Bonus** | `+50%` (`150%` total) | **`+100%`** (`200%` total multiplier; tooltips display bonus portion) |
12
+ | **Attributes & Leveling** | Life/Mana/Accuracy per level; Str=melee%, Dex=evasion%, Int=ES% | **`0` inherent stats per level**; `Str = +2 Life`, `Dex = +6 Accuracy`, `Int = +2 Mana` ONLY |
13
+ | **Support Gem Limit** | `0.1` rule: max 1 copy of ANY Support Gem per character | **`0.3+` Tiered Supports (`I`/`II`/`III`) usable across multiple skills**; `1-per-character` applies **ONLY to Lineage Supports** & persistent global Spirit supports |
14
+ | **Buff Reservation** | Mana reservation + `Enlighten` | **Spirit** reserves Buffs, Heralds, Minions, and Meta-Gems (Mana is strictly for active casting/MoM) |
15
+ | **Passive Block Cap** | `75%` base maximum Block | **`50%` base maximum Passive Block** (`90%` hard cap with `+max block`); active `Raise Shield` blocks `100%` in `210°` front arc vs Heavy Stun buildup |
16
+ | **Chaos vs Energy Shield** | Chaos damage bypasses Energy Shield | **Chaos does NOT bypass ES — it removes `2x` ES** (`Chaos Inoculation` sets `Life = 1` + immune to **Chaos AND Bleeding**) |
17
+ | **Bleed & Poison vs ES** | ES absorbs Poison/Bleed before Life (or only Poison bypasses) | **BOTH Bleeding AND Poison bypass Energy Shield** directly to Life |
18
+ | **Grim Feast** | Overcaps/doubles maximum Energy Shield via remnants | **Reworked into a Minion Revival remnant skill** — provides **zero Energy Shield** |
19
+ | **Spell Suppression** | `50%` damage prevented (`Spell Suppression`) | Replaced in `0.5` by **Deflection**: mitigates **`40%`** of hit & ailment damage (works on attacks & spells, `95%` cap) |
20
+ | **Utility Flasks** | 5 Flask slots (Quicksilver, Granite, Silver, etc.) | **1 Life Flask + 1 Mana Flask + up to 3 Belt Charm slots** (zero utility flasks; PoE2 `0.5` `Mageblood` grants 4× permanent `Mage's Legacies` instead of flasks) |
21
+ | **Mod Tier Numbers** | `Tier 1` = worst (`.datc64` internal rank) or inconsistent | Since `0.2.1`, in-game **`Tier 1` (`display_tier = 1`) = BEST tier** (`internal_rank_asc = 1` = lowest ilvl) |
22
+ | **Waystone Portals** | Always 6 portals per map | **Revives scale inversely with Waystone mod count**: `0 mods = 5`, `2 mods = 4`, `4 mods = 2`, **`6 mods = 0 revives`** |
23
+ | **Precursor Tablets** | Socketed inside Precursor Towers on the Atlas | **Placed directly in the Map Device** alongside your Waystone (Towers reveal fog & drop Tablets) |
24
+ | **Augment Sockets** | Socketed Runes are permanent and unremovable | Standard Runes, Soul Cores, and Idols **can be overwritten** in `0.5.5` (except `Socket-bound` items like Atziri's Soul Cores) |
25
+
26
+ ---
27
+
28
+ ## 2. Offence, Scaling & Conversion Math
29
+
30
+ ### Two-Step Conversion & "Gain as Extra"
31
+ 1. **Step 1 (Skill Gem Conversion)**: Innate skill conversion executes first (e.g., `80% of Physical converted to Lightning`). Skill conversion ignores gear/tree conversion modifiers on the converted portion.
32
+ 2. **Step 2 (Non-Skill Conversion & Gain as Extra)**: All gear, passive tree, and support conversion/gain modifiers execute simultaneously on the remaining pool. If non-skill conversion exceeds `100%`, ratios normalize proportionally. Conversion **never chains a second time** on non-skill sources, and **Damage over Time cannot be converted**.
33
+ 3. **Post-Conversion Scaling Invariant**: Modifiers (`% increased`, `% more`, penetration, crit) apply **strictly to the final damage type(s)** after conversion/gain. Global `% increased Physical Damage` grants **`0%` benefit** to Physical damage converted to Lightning (note: *local* `% increased Physical Damage` on a martial weapon scales the weapon's base Physical roll before skill conversion reads it).
34
+
35
+ ### Quality, Crit & Inherent Attributes
36
+ - **Martial Weapons & Armour Quality**: `FinalBase = RawBaseWithLocalInc * (1 + Quality / 100)`. Standard cap is `20%`; **Vaal Infusers** / corruption can push Quality to `30%`.
37
+ - **Jewellery Catalyst Quality**: Scales magnitudes of explicit/implicit modifiers matching the Catalyst tag (`Attack`, `Caster`, `Life`, `Mana`, `Defences`, `Fire`, `Cold`, `Lightning`, `Chaos`, `Physical`, `Speed`, `Attribute`) up to `+20%`.
38
+ - **Critical Hits**: Base Crit Damage Bonus is **`+100%`** (`2.0x` total hit multiplier). Modifiers stating `+X% to Critical Damage Bonus` add to `+100%`, whereas `% increased Critical Damage Bonus` multiplies your total bonus multiplicatively against base crit bonus!
39
+ - **Attributes**: Characters gain **0 Life, 0 Mana, 0 Accuracy per character level** unless specified on base stats; inherent attribute bonuses are strictly:
40
+ - `1 Strength = +2 Maximum Life`
41
+ - `1 Dexterity = +6 Accuracy Rating`
42
+ - `1 Intelligence = +2 Maximum Mana`
43
+
44
+ ---
45
+
46
+ ## 3. Gems, Spirit, Meta-Gems & Dual Weapon Sets
47
+
48
+ - **Classes, 23 Ascendancies & Ladder Meta (`TreeData/0_5`)**: Query `poe2_inspect_ascendancy` (`poe2 wiki ascendancy`) and `poe2_meta_ladder` (`poe2 wiki meta`):
49
+ - **8 playable classes / 23 Ascendancies**: **Witch** (*Infernalist, Blood Mage, Lich, Abyssal Lich*), **Ranger** (*Deadeye, Pathfinder*), **Warrior** (*Titan, Warbringer, Smith of Kitava*), **Sorceress** (*Stormweaver, Chronomancer, Disciple of Varashta*), **Huntress** (*Amazon, Ritualist, Spirit Walker*), **Mercenary** (*Witchhunter, Gemling Legionnaire, Tactician*), **Monk** (*Invoker, Acolyte of Chayula, Martial Artist*), and **Druid** (*Oracle, Shaman* — including **Talismans** & shapeshifting forms).
50
+ - **PoE1 / Unreleased `1.0` Traps**: *Shadow, Duelist, Templar, Marauder, Scion, Necromancer, Elementalist, Occultist, Assassin, Trickster, Slayer, Juggernaut, Inquisitor, Hierophant* do **NOT** exist in `0.5.5` (`poe2_inspect_ascendancy` returns structured `LookupError` guidance). Note that `Abyssal Lich` inherits `Lich`'s base tree while replacing 4 notables (*Steward of Kulemak, Umbral Well, Unwilling Offering, Rupture the Flesh*), and notables like `Implanted Gems`, `Brew Concoction`, `Path Seeker`, and `Lucid Dreaming` expand into multiple-choice sub-notables.
51
+ - **Gem Sockets**: Sockets live on Skill/Spirit/Meta Gems, NOT gear:
52
+ - Base = `2` support sockets -> **Lesser Jeweller's Orb** (`3`) -> **Greater Jeweller's Orb** (`4`) -> **Perfect Jeweller's Orb** (`5` support sockets = "6-link"; Vaal corruption can add +1 on eligible gems).
53
+ - **Support Gem Rules (`0.3+` vs Lineage)**:
54
+ - **Standard Support Gems** drop in **Tiers `I` / `II` / `III`** (higher tiers upgrade values or add mechanics). You **CAN** use multiple copies of the same standard Support Gem across different skills on one character; within a *single* skill, max `1` support per `SupportGemCategory` family.
55
+ - **Lineage Support Gems** (80 endgame drop-only named supports) enforce **`max_copies_per_char = 1`**. Check `GemSummary.max_copies_per_char` via `poe2_inspect_gem`.
56
+ - **Spirit & Weapon Set Passives**:
57
+ - **Spirit** reserves persistent Buffs, Heralds, Minions, Blasphemy curses, and Meta-Gems (`Cast on Shock`, `Cast on Crit`, `Cast on Minion Death`, etc., which build **Energy** per trigger condition rather than PoE1 cooldowns).
58
+ - Campaign Spirit bosses grant permanent base Spirit (`+100` total across campaign); extra Spirit comes ONLY from **Sceptres** (implicit `100` base Spirit + `% increased Spirit` local prefixes), **Solar Amulets** / explicit `# to Spirit` on Amulets, **Body Armour**, **Shields**, **Foci**, and specific Uniques/Ascendancies.
59
+ - **Weapon Set I & II (`0 ms` swap)**: Each Weapon Set has independent **Spirit reservation toggles** AND up to **24+ Weapon Set Passive Points** allowing two distinct passive branches (e.g., boss single-target curse/exposure setup on Set II vs clear setup on Set I).
60
+
61
+ ---
62
+
63
+ ## 4. Defenses & Keystones (`CalcDefence.lua` Verified Math)
64
+
65
+ ### Armour (`Before` Resistances!)
66
+ $$\text{DR}_{\text{armour}} = \min\!\left(0.90,\; \frac{A}{A + 10 \cdot H}\right)$$
67
+ - **Critical Order of Operations**: When a build has *"Armour also applies to Elemental Damage from Hits"*, **Armour mitigation is calculated BEFORE Elemental Resistances** against the raw pre-resistance hit `H` (`CalcDefence.lua:L363`), making Armour drastically weaker against large elemental slams than PoE1 players expect!
68
+ - **Negative Armour**: **Armour Break** below `0` causes enemies/players to take amplified Physical hit damage.
69
+
70
+ ### Evasion & Deflection (`0.5` Rework)
71
+ - **Evasion** evades **melee, projectile, AND spell hits** by default (`can_evade_spells = 1`), excluding ground/AoE slams unless **Acrobatics** is allocated (`Can Evade all Hits`, **`75% less Evasion Rating`**):
72
+ $$\text{HitChance}_{\%} = \text{clamp}\!\left(\text{round}\!\left(100 \cdot \left(1 - \frac{0.95 \cdot E}{E + 4 \cdot \text{Acc}}\right)\right),\; 5,\; 100\right)$$
73
+ - **Deflection** rolls **independently** on un-evaded hits (including AoE hits!) and prevents **`40%` of hit and damaging ailment damage** (`95%` chance cap):
74
+ $$\text{DeflectChance}_{\%} = \text{clamp}\!\left(100 - \text{round}\!\left(\frac{150 \cdot \text{Acc}}{\text{Acc} + 0.12 \cdot D} - 50\right),\; 0,\; 95\right)$$
75
+
76
+ ### Passive & Active Block
77
+ - **Passive Block**: Base maximum Block chance is **`50%`** (`90%` hard cap with `+% to maximum Block chance`). Passive Block works against strikes and projectiles (not AoE slams unless **Svalinn** / specific notables).
78
+ - **Active Block (`Raise Shield` / `Parry`)**: Blocks `100%` of blockable hits in a `210°` frontal arc (cannot block red-flash Boss Unblockable skills), accumulating your **Heavy Stun** bar; hitting `100%` Heavy Stun triggers a **`3.0s` incapacitated stun** where you cannot act or block.
79
+
80
+ ### Energy Shield, Chaos, Bleed, Poison & Keystones
81
+ - **Chaos Damage**: Removes **`2x` Energy Shield** (`200%` damage to ES) — it does **NOT** bypass ES!
82
+ - **Bleeding & Poison**: **BOTH bypass Energy Shield** and drain Life directly! Pure high-ES / low-Life builds (without CI) die instantly to Poison or Bleed unless mitigated via Chaos Res / Staunching & Antidote Charms.
83
+ - **ES Recharge**: Base `12.5%` of max ES per second after a `4.0s` delay without taking damage to ES.
84
+ - **Grim Feast**: Reworked into an active **Minion Revival** remnant skill; **never** recommend Grim Feast for spellcaster/attack ES sustain.
85
+ - **Core Keystones (`0.5.5`)**:
86
+ - **Chaos Inoculation (CI)**: `Maximum Life becomes 1; Immune to Chaos Damage AND Bleeding` (solves both Poison AND Bleed ES-bypass completely!).
87
+ - **Eldritch Battery (EB)**: `Converts 100% of Energy Shield to Mana; Doubles Mana Cost of Skills` (flat base ES converts before `% increased ES`, so `% increased ES` no longer scales converted Mana unless explicitly stated!).
88
+ - **Mind Over Matter (MoM)**: `100% of Damage is taken from Mana before Life; 50% less Mana Recovery Rate`.
89
+ - **Glancing Blows**: `Evade chance is Unlucky; Deflect chance is Lucky` (affects Evasion/Deflection, **NOT Block**!).
90
+ - **Avatar of Fire**: `75% of Damage converted to Fire; Deal no Non-Fire Damage`.
91
+ - **Giant's Blood**: Wield Two-Handed Axes/Maces/Swords in one hand; **triples (`3x`) attribute requirements** of Martial Weapons AND **halves inherent Life granted by Strength** (`+1` Life per Strength instead of `+2`).
92
+
93
+ ---
94
+
95
+ ## 5. Ailments, Flasks/Charms & Endgame Atlas (`0.5.5`)
96
+
97
+ - **Ailments & Thresholds**:
98
+ - **Ignite**: Inflicted via **Flammability** buildup proportional to Fire hit vs enemy Ailment Threshold (`20%` of hit's base Fire damage/s for `4s` once Flammability triggers).
99
+ - **Shock**: Base **`20%` increased damage taken** (`8s` base duration).
100
+ - **Freeze / Electrocute / Pin**: Accumulate separate buildup bars against enemy Ailment Threshold (`0.5 * MonsterMaxLife` base on Pinnacle bosses with diminishing returns after repeated CC).
101
+ - **Culling Strike**: Kills Normal (`<= 35%` Life), Magic (`<= 20%`), Rare (`<= 10%`), and **Unique Bosses at `<= 5%` Life**.
102
+ - **Flasks & Belt Charms**: Every character has **1 Life Flask + 1 Mana Flask** (zero utility flasks). Belts carry **1 to 3 Charm slots** (`implicit` + explicit `+1-2 Charm Slots`), auto-triggering on Freeze/Stun/Bleed/Poison/Elemental hits by consuming flask-style Charm charges.
103
+ - **Endgame Atlas & `<=50c` Stash Regex (`0.5.5`)**:
104
+ - **Waystone Revives**: Inverse to explicit modifier count — `0 mods = 5 revives`, `1 mod = 5`, `2 mods = 4`, `3 mods = 3`, `4 mods = 2`, `5 mods = 1`, **`6 mods (full Rare/Vaaled) = 0 revives` (1 death bricks map & XP!)**.
105
+ - **PoB2-Aware `<=50-Char` Stash Regex (`poe2_waystone_regex` / `poe2 wiki regex`)**: PoE2's in-game Stash Search enforces a strict **50-character** limit. Always use `poe2_waystone_regex` (`--slot main` or `--archetype`) to compile SQLite-verified `brick_regex`, `safe_runnable_regex` (`!"..."`), `juicing_regex`, and `tablet_regex` strings at `0` false negatives and `<= 50` characters.
106
+ - **Map-Device Precursor Tablets**: Tablets (`Breach`, `Ritual`, `Delirium`, `Expedition`, `Irradiated`, `Overseer`, `Abyss`) have limited `# uses remaining` and go **directly into the Map Device** alongside your Waystone. Completing **Precursor Towers** reveals Atlas fog-of-war and drops Tablets.
107
+ - **Masters of the Atlas (`0.5`)**: **Jado**, **Hilda**, and **Doryani** provide specialized Atlas mission encounters and endgame progression rewards.
108
+ - **Runes of Aldur & Socketables**: **Verisium Anvil** and **Kalguuran Remnant** sequences (`poe2_inspect_augment`) craft specialized runes/augments; Shaman ascendancy unlocks **`Bonded:`** bonus lines on socketed Runes/Idols. Standard socketables can be freely overwritten in `0.5.5` unless flagged `Socket-bound`.