← Back to Pull requests

Raid boss kills as attendance, dungeon quest checklist #41

Merged
jasondk11 merged 44 files (1860 lines) on Nov 10, 2026 15:55 UTC
View on GitHub
jasondk11 jasondk11 commented on Nov 10, 2026 15:48 UTC
Author

Builds on #40 (the hunt): merge that first, then this one's diff is just the raid work.

Raid boss kills → attendance (ek record, BossKills.lua, services/bosskills.js, migration 30)

  • When a raid boss dies (ENCOUNTER_END, an ordinary event, not the combat log), a raider's addon reads the raid roster 3 seconds later and records the guild members in it.

  • The key comes from the boss, the UTC day and the raid leader, so every raider's addon makes the same record, and one that already has it writes nothing.

  • A kill belongs to a scheduled raid of the same instance that started up to 6 hours before it (or 2 hours after).

  • Season points: everyone it saw gets the raid once per raid, or once per instance and day with nothing scheduled. Raids an officer closed still count through attendance, never twice.

  • The raid page gets a "Bosses down" card, and the close dialog ticks the people the kills saw.

  • The weekly digest adds "💀 Bosses down: …". Discord gets "💀 Ragnaros is down! Molten Core, 38 raiders.".
  • Dungeon quest checklist (DungeonQuests.lua, option dungeonQuests, /wow quests [dungeon])

  • Horde quests for Ragefire Chasm through Maraudon, each with where to get it, matched against your quest log. Quests in your log that mention the dungeon are added too.

  • Our own panel: in your log / ready to hand in / where to pick it up, plus which party members have each.

  • Party sharing over the addon channel sends only one bit per listed quest, no free text.

  • Entering a dungeon prints a one-line summary (the instance helper keeps its panel).

  • The quest list is hand-written. Anything wrong just shows as "not in your log", and corrections are one line each.
  • Tests

  • New: bosskills.test.js (2) and addon-raidtrack.test.js (3).

  • Updated: vectors, OPTION_LIST is now 23.

  • Full suite: all pass except the "projected raid" test that also fails on main.
  • ---
    _Generated by Claude Code_

    Diff: 1860 lines (+1821 / -39) across 44 files Reviewer: github-actions[bot] Review duration: 7m
    All Vouch review confidence checks passed
    Residual risk 0.63 = Change Risk (0.87) × (1 − Review Confidence (0.28)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.87 · 1860 lines diff across 44 files
    0.87
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.26 · 2 substantive comment(s)
    0.26
    Model 3 · Review Timing & Attention
    Session adequacy: 15% · Reviewer familiarity: 35%
    27%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.400
    Shallow Review Depth shallow_review_depth
    0.260
    Rapid Merge rapid_merge
    0.100
    Mass File Touch mass_file_touch
    0.080
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    3 items
    github-actions[bot] github-actions[bot] commented on Nov 10, 2026 15:48 UTC
    Bot

    Claude finished @jasondk11's task in 27s —— View job

    ---

    Review of PR #41

    I found one real issue, and it's about trust. I only read the raid-tracking code (BossKills.lua, services/bosskills.js, the ek projection and import rules). I did not run the test suite.

  • ek records have no authorization. The record has no pid, so the import rules apply no link or ownership check. Any member who can write records can forge a boss kill, or overwrite an existing one, naming anyone. That awards 10 season points per player per instance and day. The details are in the inline comment on app/src/shared/sharing.js.
  • Minor observations, no action required:

  • The record key includes the raid leader's name. If leadership changes mid-raid, two records for the same boss can exist. The season points still dedupe per raid, but the "Bosses down" card could list the boss twice.

  • The Lua side looks correct. ENCOUNTER_END argument handling, the ns.try multi-return and the secret-value pcall all check out.
  • github-actions[bot] github-actions[bot] commented on code on Nov 10, 2026 15:48 UTC
    Code Review
    app/src/shared/sharing.js:1
    @@ -151,6 +151,23 @@ const TYPES = {
         key: ['pid', 'name'], max: 400, expiry: { days: 3 },
         fields: [text('character', 48), int('level'), text('zone', 60), text('when', 60), text('note', 140)],
       },
    +  // A raid boss kill: the boss, where, when, and who was in the raid. The key comes from the boss, the day and the
    +  // raid leader, so every raider's addon writes the same record (the first one to see none yet writes it).
    +  ek: {
    +    key: ['b36x6'], max: 1280, expiry: { days: 120 },
    +    fields: [int('enc'), text('boss', 60), text('instance', 60), int('at'), int('size'), list('names', 40, { of: { k: 'text', max: 24 } })],

    ek carries no pid, so import.js (PID_OF/importRule) applies no link or owner check to it, unlike kk. Any guild member who can write records can:

  • forge an ek with arbitrary names, instance and at, and services/bosskills.js events() then awards 10 raid points to every named player (one per player per instance and day, so it's farmable across days and instances);

  • overwrite an existing ek:<key> with a later timestamp, because last-write-wins, and change who was credited.
  • The "first writer wins" dedupe lives only in the addon, so it doesn't protect the app. Consider restricting ek creation or edits (for example, require the author to be in names), capping at to near the record's own timestamp r.t, and refusing overwrites of an existing live ek from a different author.

    Assignees
    jasondk11 jasondk11
    Labels
    risk: medium confidence: 27.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 86.5% (HIGH) · Higher = larger blast radius
    86.5%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 27.7% · Lower = rushed or shallow review
    27.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 62.6% · Moderate risk
    62.6%