gwshop: fix primary-branch tie-break and refresh the committed catalog

- src/gwshop.rs: pick the FIRST longest facet path on ties, matching the
  original Python max(paths, key=len). Rust's max_by_key returned the last,
  which silently reclassified ~2298 entries for products faceted under
  several branches (e.g. a generic kit listed per chapter). Adds a regression
  test.
- AGENTS.md: document the first-longest tie-break and the facet-partition
  coverage shortfall (non-system merchandise left out; no model kits).
- data/gwshop_catalog.json: regenerate with the fixed binary (3491 -> 3459
  entries; 34 removed, 2 added, 188 structural + 785 collections changes).
This commit is contained in:
2026-10-11 13:10:24 +02:00
parent bc165093e2
commit 93b86d34af
3 changed files with 51501 additions and 51096 deletions
+51457 -51090
View File
File diff suppressed because it is too large Load Diff