exception-raise
Ranks a store's promotion-launch readiness exceptions — missing kits, fixture conflicts, price conflicts from checked.json — by weekly revenue at stake with the exception_rank engine, and raises the exception list for the store and district manager. Use after readiness-check, or when the user asks "what do we fix first for the launch", "rank the readiness exceptions", "which gaps cost the most before Monday", "raise the exception list for the store", "what goes to the district manager". Do NOT use for product-content or listing completeness gaps — use the catalog enrichment completeness-score instead, or action-register instead for the fix order; not for the readiness test itself — use readiness-check instead; not for the checklist or shift brief — use brief-draft instead.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 107
- Forks
- 120
01 前言 Front Matter
- name
- exception-raise
- license
- MIT
- metadata
- { "icon": "Warning", "author": "Microsoft Retail & CPG Skills", "version": "1.0.5", "category": "analysis" }
- description
- Ranks a store's promotion-launch readiness exceptions — missing kits, fixture conflicts, price conflicts from checked.json — by weekly revenue at stake with the exception_rank engine, and raises the exception list for the store and district manager. Use after readiness-check, or when the user asks "what do we fix first for the launch", "rank the readiness exceptions", "which gaps cost the most before Monday", "raise the exception list for the store", "what goes to the district manager". Do NOT use for product-content or listing completeness gaps — use the catalog enrichment completeness-score instead, or action-register instead for the fix order; not for the readiness test itself — use readiness-check instead; not for the checklist or shift brief — use brief-draft instead.
02 资源文件 5
- 参考文档contracts/rtl.store-task-promotion-execution.v1.json1.5 KB
- 许可证LICENSE1.1 KB
- 参考文档references/execution-rules.md1.6 KB
- 脚本scripts/exception_rank.py4.2 KB
- 脚本tools/validate_contract.py2.9 KB
03 SKILL.md 正文
Exception Raise
Purpose
Deterministic ranking of store-launch readiness exceptions: weekly promo revenue at stake × launch proximity × price-conflict factor (references/execution-rules.md #5.1) — impact, not count. The engine ranks; this skill quotes.
When to use
After readiness-check whenever anything in checked.json is missing or conflicted.
When NOT to Use
- Gaps in product content — missing images, bullet copy, GTINs, attributes for a marketplace or channel listing — use the catalog enrichment completeness-score instead, or action-register instead for the fix order. This skill only knows store-launch readiness.
- "Are we ready" / "any gaps" (the test itself) — use readiness-check instead.
- Drafting the readiness checklist, shift brief or DM escalation text — use brief-draft instead.
- The pack or store records still need assembling — use pack-ingest instead for the pack, use store-map instead for the store records.
Where the data comes from
This plugin ships no sample data. Every input is the user's own Microsoft 365 content:
- Files the user names, links or attaches in the chat.
- Their OneDrive or SharePoint, found with Work IQ search (Microsoft 365 search) by campaign ID, store ID or file name when no location is given.
- Email attachments (for example a store manager's note) found the same way.
Read each source with the file reader (ReadFileContent) and cite it by file name and row or page. Write the working JSON files (velocity.json, ranked.json) to the session working folder, never into the plugin. If a required source cannot be found, say which one is missing and ask the user where it is. Never invent it, estimate it or fall back to example values.
Inputs
checked.json (the {readiness} hop, from readiness-check or supplied by the user) + the sales velocity extract from the user's Microsoft 365 content (see Where the data comes from). Convert the extract to velocity.json, citing its rows, in exactly this shape: { "<SKU>": {"weekly_units": <n>, "promo_price": <price>} }. Never estimate weekly units. Rules: references/execution-rules.md #5.1.
Steps
- Run the engine:
python scripts/exception_rank.py --checked checked.json --velocity velocity.json --out ranked.json - Quote the ranking verbatim with the numbers. A small missing signage kit on the top-velocity SKU outranks five gaps on slow movers — say so with the revenue figures.
- Flag the proximity factor (2× inside 3 days of launch) and the price-conflict factor (1.5×) from
provenance.ranking_factors; top exceptions inside 3 days go to the district manager. - Validate the output with the contract validator tool:
python tools/validate_contract.py ranked.json.
python scripts/exception_rank.py --checked checked.json --velocity velocity.json --out ranked.json
# exception_rank: 4 exception(s), top=PRICE-GTIN-2002, proximity=2.0x, price_conflict=1.5x -> ranked.json
Output format
ranked.json — the {exceptions} hop. Report as a markdown table in engine order: # | req_id | status | detail | revenue at stake / week | rank score | citation; then one sentence on impact-vs-count with the figures; then the district-manager list.
Grounding requirements
Every exception cites its pack line (or price-file row) and the velocity extract.
Guardrails
- Ranking is engine-only; never reorder, promote or demote an exception because a gap "looks small" or someone would rather the district manager did not see it.
- Never drop or hide a PRICE CONFLICT — it stays in the list and in
escalations[]until HQ resolves the price file. - Never estimate weekly units; if the velocity extract is missing, the engine fails closed — list the exceptions unranked and ask for the extract.
- Do not draft the brief here — hand
ranked.jsonto brief-draft. - Always show the ranked table for review before escalation goes anywhere.
Escalation / uncertainty
Top exceptions within 3 days of launch carry the 2× proximity factor and go to the district manager. If readiness.blocked is true (#6), say the ranking is provisional until the missing input arrives.
04 同仓库更多 Skills
work-iq-sphere
Build or refresh a personal "My Work IQ" visual from the signed-in user's own Microsoft 365 work (mail, calendar, Teams chats and the OneDrive and SharePoint files they worked on, with Week, Month and 3 months views from one read of their data, about all their work or one customer, programme or topic they name) as an interactive 3D sphere (self-contained HTML), a customer-safe copy and a matching Microsoft-style PowerPoint slide. Every build is a fresh, evidence-checked analysis of that one person's own data. Use when someone says "build my Work IQ sphere", "show my Work IQ", "refresh" or "update my Work IQ", "make my Work IQ slide", "visualise my work graph", "show me the Work IQ sphere demo", or wants to show customers what Work IQ (context, memory, skills) means using their own work. Do NOT use for generic decks, Work IQ product or licensing questions with no personal data, or anyone else's, team or org-wide analytics.
severity-recordability
Runs the deterministic local v2 draft classifier; reporting/deadlines remain undetermined. Use for "explain blocked reporting determination", "is this recordable", "classify this incident", "what severity is this", or "is this OSHA reportable". Do NOT use for source intake, history retrieval or routing — use incident-intake, ehs-knowledge-retrieve or routing-notify. No diagnosis or operational decision; EHS REVIEW REQUIRED.
routing-notify
Computes proposed investigators and unsent recipients from validated local classification, history and governance. Use for "propose unsent incident recipients", "who investigates this", "route this incident", "who do we notify", or "start the OSHA clock" (only to explain the blocked clock). Do NOT use for classification or terminal drafting — use severity-recordability or incident-writeup. Never sends, files or starts a clock; EHS REVIEW REQUIRED.
incident-writeup
Revalidates and recomputes every terminal v2 hop, then renders a null-aware local Markdown draft and blank RCA template. Use for "prepare an evidence-grounded incident draft", "draft the incident summary", "write up the incident", "give me the RCA template", or "prepare the OSHA writeup". Do NOT use for intake, classification or routing — use incident-intake, severity-recordability or routing-notify. No operational actions; EHS REVIEW REQUIRED.
incident-intake
Preserves cited authorized user-supplied incident files, including real incidents, as v2 inputs for human-reviewed drafts only. Use for "preserve conflicting incident accounts", "intake this incident", "process this safety report", "extract incident facts", or "intake this near miss". Do NOT use for classification, routing or terminal drafting — use severity-recordability, routing-notify or incident-writeup respectively. No live retrieval or official determinations; EHS REVIEW REQUIRED.
ehs-knowledge-retrieve
Attaches cited local OSHA, ISO summaries, JHA and policies and computes supplied-log history. Use for "find cited local safety evidence", "pull the OSHA criteria", "get the JHA", "attach local EHS evidence", or "have we had this incident before". Do NOT use for incident intake, recordability decisions or drafting — use incident-intake, severity-recordability or incident-writeup. No live retrieval; EHS REVIEW REQUIRED.