Skip to content

feat(data): LP_INCIDENTS and LP_STORE_RISK demo data (#126)#150

Merged
TFT444 merged 1 commit into
devfrom
feature/lp-demo-data
Jun 23, 2026
Merged

feat(data): LP_INCIDENTS and LP_STORE_RISK demo data (#126)#150
TFT444 merged 1 commit into
devfrom
feature/lp-demo-data

Conversation

@TFT444

@TFT444 TFT444 commented Jun 21, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds LP_INCIDENTS (8 incidents) covering all 4 LP rules and all 8 named detection signals
  • Adds LP_STORE_RISK (10 stores) with risk scores, open incident counts, and trend direction — feeds the store risk scoring component (Loss Prevention — Store risk scoring dashboard component #125)
  • Registers 4 LP detection rules in DETECTION_RULES (LP-001 through LP-004)
  • Updates MITRE_COVERAGE — Impact tactic covered from 2 → 4

LP_INCIDENTS coverage

Incident Rule Signal Severity
LP-INC-001 LP-001 HighVolumeVoidRefund High
LP-INC-002 LP-001 HighValueVoidNoOverride Critical
LP-INC-003 LP-002 BulkGiftCardActivation High
LP-INC-004 LP-002 RapidCrossChannelRedemption Critical
LP-INC-005 LP-003 RepeatHighDiscountRelationship High
LP-INC-006 LP-003 HighDiscountConcentrationAtTerminal High
LP-INC-007 LP-004 GhostEmployeeAfterHours Critical
LP-INC-008 LP-004 ClosedStoreTerminalBurst Critical

How to test

Open frontend/src/lib/data.js and verify:

  • LP_INCIDENTS is exported with 8 entries, all having technique: 'T1657'
  • LP_STORE_RISK is exported with 10 entries (8 stores with incidents, 2 clean)
  • DETECTION_RULES includes LP-001 through LP-004
  • MITRE_COVERAGE Impact tactic shows covered: 4

Closes #126


Adds 8 realistic LP incidents covering all 4 LP detection rules and
their named signals (HighVolumeVoidRefund, HighValueVoidNoOverride,
BulkGiftCardActivation, RapidCrossChannelRedemption, RepeatHigh-
DiscountRelationship, HighDiscountConcentrationAtTerminal, Ghost-
EmployeeAfterHours, ClosedStoreTerminalBurst). Adds LP_STORE_RISK
with 10 store risk scores for the store risk scoring component.
Also registers 4 LP rules in DETECTION_RULES and updates Impact
tactic coverage from 2 to 4 in MITRE_COVERAGE.

Closes #126
@vercel

vercel Bot commented Jun 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
retail-shield Ready Ready Preview, Comment Jun 21, 2026 2:42pm

@TFT444 TFT444 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

diff looks clean and met the requirement.ready to merge

@TFT444 TFT444 merged commit 3c1b349 into dev Jun 23, 2026
9 checks passed
@TFT444 TFT444 deleted the feature/lp-demo-data branch June 23, 2026 17:40
@TFT444 TFT444 self-assigned this Jun 23, 2026
TFT444 added a commit that referenced this pull request Jun 23, 2026
…x Vercel build

Vercel builds this branch in isolation — importing LP_INCIDENTS and
LP_STORE_RISK from LossPrevention.jsx failed at bundle time because
those exports were only present on the feature/lp-demo-data branch
(PR #150), not here. Adding them directly to data.js on this branch
so the preview deployment can build successfully.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant