# WarBoard Changelog

## 1.6.4

### Tracking is near-instant now
- **Bounty and supply-runner tracking connect and follow immediately.** The ack + live-position
  pings were queued behind sync traffic; they now send at top priority AND take a raw fast path that
  skips the message-throttle queue entirely, with the normal path kept as a reliable backstop
  (whichever copy lands first wins). Map-following a target should feel instant.
- **"Supply Runner Spotted" alerts land faster** too (same fast-path treatment) — so do war-objective
  assault alerts.

### New
- **`/wb channel on|off`** — opt in/out of WarBoard's hidden realm sync channel. It never showed in
  your chat, but it does occupy a channel slot; turn it off if you'd rather WarBoard not join a
  channel (sync still works over guild, whispers, and peers). On by default.

All client-side; nothing changes on the wire, so mixed versions still talk fine.

## 1.6.3

Performance pass — all client-side, no wire/version impact. Follows the same idea as 1.6.2's board
gate: stop doing background work you can't see.

### Fewer background rebuilds
- **The Active Bounties and Alerts panels no longer rebuild while the board is closed.** Like the
  Leader Board fix in 1.6.2, these were quietly rebuilding on every event that touched them (each
  tracked target's position, the presence poll, every bounty post/accept/abandon, cargo theft, the
  alert ageing tick) — even with the board shut. They now rebuild only when it's actually open.
- **Bounty board rebuilds from sync are coalesced.** A burst of synced bounty events used to trigger
  a full O(ledger) rebuild per event; a burst now collapses into a single rebuild.

### Cached the heavy ledger scans
- Gold/War-Credit totals, the Leader Board, the War Contribution bar, and the Activity feed each
  re-scanned the whole ledger (up to 10k records) on every request — and some ran several times per
  refresh. They're now cached and only recomputed when the ledger actually changes (or the
  anti-cheat re-judges a record), turning repeated scans into instant lookups.

### Smoother objective farming
- **Killing objective NPCs no longer relayouts the game's objective tracker on every kill.** Rapid
  or AoE farming was forcing a full Blizzard objective-tracker relayout per kill; the intermediate
  progress ticks are now batched (a few times a second) while completions still show instantly.

## 1.6.2

### Stolen cargo
- **You can now turn stolen cargo in.** Your quartermaster (Tweedle / Apprentice Boulian) offered
  no delivery option once your *daily* run was already done — it only looked at the daily state and
  showed its "thank you" dialogue. It now recognizes stolen cargo (which has no daily limit) and
  offers the hand-in regardless.
- **"Stolen Cargo!" popup + objective.** Seizing an enemy's cargo now flashes a center-screen
  "Stolen Cargo!" banner and adds an objective-tracker step telling you to deliver it to your
  quartermaster (no War Effort card). It clears itself on turn-in / loss and survives a `/reload`.
- **The victim's map icon no longer lingers.** When a tracked runner dies, delivers, or loses their
  cargo, their icon is dropped immediately instead of sitting at the spot for up to ~2 minutes.
- **Tracking follows the cargo.** If you were tracking a runner and someone steals their cargo, your
  track now **auto-switches to the thief** — you follow the supplies instead of losing them at the
  corpse, no need to re-TRACK.
- **You're told when your cargo is stolen.** If a player seizes cargo you were carrying, you now get
  a chat line naming who took it (the thief already saw their own confirmation).
- **Completion jingle.** Completing a Supply Run and turning in stolen cargo now play the same
  "quest completed" sound as other objectives.

### Bounties
> **Everyone should update** for consistent scoreboards — an out-of-date client won't apply the fix.
- **Fixed two hunters both getting credit for one bounty.** A bounty can only be claimed once, but a
  near-simultaneous claim-race (e.g. a group killing the target) could let two hunters both score it.
  Claims are now de-duplicated on a strict "first claim wins" rule — corrected live as soon as both
  claims have synced, and enforced deterministically in the campaign audit so the final result is
  always right. (No wire change; a mixed-version network still stays in sync, it just won't correct
  the score until each client updates.)

### Anti-cheat
- Added an always-on guard that **ejects the player from the "Magical Snow Sled" and the Lorewalking
  "Bench"** the instant either is detected (as a vehicle or a pet). Runs the whole session, event-
  driven with a light backstop.

### Performance (micro-stutter)
- **Board panels no longer rebuild while the board is closed.** The Leader Board and Activity feed
  are O(ledger) rebuilds that were being triggered by *every* background peer-sync burst even with
  the board shut. They now only rebuild when the board is actually open (one catch-up rebuild on
  open). This was the biggest sync-time hitch.
- **World-map icons no longer rebuild every second.** Live bounty/carrier icons now redraw only when
  a position arrives and reposition themselves as you pan; a slow sweep just expires stale ones.
- **Duplicate messages are dropped before decoding.** The fanout delivers the same message over
  several channels at once; byte-identical copies are now skipped before the (costly) decompress +
  deserialize instead of being processed each time.

## 1.6.1

> **Everyone should update.** The bounty tracking fix works both when you track *and* when
> you're the one being tracked — an out-of-date client can still fail to answer a tracker.

### Fixes
- **Bounty TRACK no longer gets stuck on "Locating…".** The target's client was only recognizing
  a tracker's request by GUID, but a bounty's GUID is captured from the community roster when it's
  posted and can differ from the target's current character — so the target silently ignored the
  request and never shared its location. It now recognizes a track request by **GUID *or*
  name+realm** (the same way it already detects a bounty on itself), so tracking connects reliably.
  This is why supply-runner tracking worked while bounties didn't — a supply runner reports its own
  live identity, so it always matched.
- Hardened the track handshake generally: the request is now sent to every valid address for the
  target (stored + roster-resolved), and realm names are normalized so a display-form realm
  ("Area 52") can't silently break the whisper the request rides on.
- **Supply Run objective card now shows on the War Effort panel.** A load-order race meant the run
  wasn't resolved yet when the panel was first built, so the card was skipped.

### Added
- `/wb commdebug` — toggle a comm / tracking RX-TX trace for diagnosing tracking issues.

## 1.6.0

### New: Supply Run (daily World PvP delivery event)
A new daily event that turns a supply haul into open-world PvP bait. There's a separate Horde and
Alliance version — you only see and run your own faction's.

- **Horde** — talk to Overseer Gorthak at Warsong Lumber Camp, then haul the lumber on foot to
  Tweedle at Hellscream's Watch.
- **Alliance** — talk to Faldreas Goeth'Shael in Astranaar, then carry the ironwood beams on foot
  to Apprentice Boulian at Forest Song.
- Multi-page quartermaster dialogue (fake gossip), an objective card, a map pin at the pickup, and
  an objective-tracker step guide the run.
- **On foot only** — mounting, flying, druid Travel/Flight Form, taxis, and vehicles are all
  blocked while carrying the shipment (you're too heavily loaded).
- **Daily, per character** — once completed *or* failed, it's locked for that character until the
  next daily reset.
- **Fails** on death, logging out mid-run, taking a taxi, or crossing a loading screen.
- **Reward** — a completed run pays **300 gold + 150 war credit**.

### New: Supply Runner intel, opt-in tracking & cargo theft
Supply runners are visible to the enemy, and their cargo can be stolen.

- While you carry a shipment, a lightweight **alert** is broadcast to the enemy faction
  ("SUPPLY RUNNER SPOTTED"). No precise location is shared by default.
- Enemies can click **TRACK** on the alert to opt into live location tracking, drawing a flag
  icon on the world map (reuses the bounty location transport — only trackers who opt in ever see
  the position).
- **Cargo theft** — landing the killing blow on an enemy supply runner **steals their cargo**. You
  become a stolen-cargo carrier ("STOLEN SUPPLIES MOVING"), subject to the same on-foot rule, and
  can turn it in at your own quartermaster with **no daily cooldown**.
- Stolen cargo is **lost** on death (your killer steals it in turn), logout, loading screen, or
  taxi; it **survives a `/reload`**. You can carry multiple stolen shipments at once.
- **Reward** — each turned-in stolen shipment pays the same as a Supply Run: **300 gold + 150 war
  credit**.

### Rewards are now banked & synced
- Supply Run completions and stolen-cargo turn-ins now write a real, synced **`supply_run` ledger
  record** — they count toward your gold/war-credit totals, the leaderboard, and the war
  contribution bar, and are validated by the anti-cheat verifier like any other activity.
- Added a canonical `WB.SUPPLY_REWARD` (300 gold / 150 war credit) as the single source of truth
  shared by the run layer, the cargo layer, and the verifier.
- Rules version bumped to **6** for the new `supply_run` activity type, so out-of-date clients
  safely abstain on (and keep relaying) the new records until they update, rather than rejecting
  them.

### Fixes
- **Bounty TRACK now reliably locates online targets.** Pressing TRACK on a bounty whose target
  was clearly online could still fall through to "Failed to obtain." That's fixed — TRACK now
  correctly obtains their location. (Targets who don't have the addon, or have it disabled, still
  correctly can't be tracked, but no longer cause a false handshake.)
- **Supply runner map flag no longer lingers after a run ends.** When a tracked runner fails,
  delivers, or loses their cargo, the flag icon now disappears on the next location update: the
  tracker verifies they're still a carrier and, if not, stops tracking and tells them to stop
  broadcasting (unless they're also an active bounty).

### Removed
- `/wb testsupplyalert` and `/wb teststolenalert` (dev-only fake-alert previews).
- `/wb resetsupply` (dev-only Supply Run state reset).

### Performance
- Reduced micro-stuttering during peer sync: the ledger sync digest is now computed
  time-sliced across frames, online-peer lookups are cached briefly, and HELLO handling uses the
  async digest — so busy comm traffic no longer causes frame spikes.
