Files
meshcore-analyzer/.github/workflows
Kpa-clawbot 11dd180219 fix(#1306): disambiguate 'collisions' terminology + surface WHICH collides (#1307)
## #1306 — Disambiguate "collisions" terminology + surface WHICH
collides (WIP draft)

Red commit pending CI URL.

### What
**A. Terminology fix** — Prefix Tool currently labels theoretical-math
collisions ("38 two-byte collisions") with the same word the Collisions
tab uses for packet-traffic-observed collisions ("0 two-byte").
Operators
saw contradictory counts and assumed a bug.

- Prefix Tool Network Overview cards: replace bare "collisions" with
  "address conflicts at this hash size" / "would-collide-if-used"
  wording.
- Cross-reference line: "These are theoretical conflicts that would
  occur IF all repeaters used this hash size. For collisions actually
  observed in packet traffic, see the Hash Issues tab." → links to
  `#/analytics?tab=collisions`.
- Collisions tab: reverse pointer "Collisions observed in actual packet
  traffic. For theoretical conflicts at each hash size, see the Prefix
  Tool tab." → links to `#/analytics?tab=prefix-tool`.

**B. Expandable "which collides" list** — Aggregate count "38 colliding
2-byte slices" is unactionable. Operators need to see which slice and
which nodes share it.

- Per tier, when `opCollisions[b] > 0` OR `stats[b].collidingPrefixes >
0`,
  render a "Show N colliding slices →" toggle below the count.
- Expanding reveals a `Prefix · Nodes sharing` table with node-detail
links
  (`#/nodes/<pubkey>`), scrollable above 50 entries.
- Both flavors rendered: theoretical (across all repeaters) and
  operational (configured-for-this-size only). The operational list is
  the higher-priority signal.

Data is already in `idx[b]` — no backend changes.

### E2E
`test-issue-1306-collisions-terminology-e2e.js` asserts wording,
cross-ref links, expand-toggle, and node links present. RED commit only
ships the test; GREEN commit adds the production code.

Fixes #1306

---------

Co-authored-by: Kpa-clawbot <bot@kpa-clawbot.local>
2026-05-20 20:56:49 -07:00
..