← WorkMagicCONTENT HISTORY

Update to WorkMagic

Snapshot Nov 17, 2026 · 06:14 UTC · version 1.0.2

Collection source: downloaded plugin package.

WHAT CHANGED

First saved snapshot

No earlier snapshot is available to establish a change.

Save WorkMagic and check future changes in Following.

Up to 3 plugins free · no card required.

Compare saved observations

Download comparison JSON
Full technical diff · 0 changed fields
Full snapshot data
{
  "description": "Diagnose \"why\" questions about attribution anomalies — attribution=0 (no attributed orders), and sudden drops, spikes or retroactive changes in attributed numbers. Do NOT use for \"show me numbers\" — that's attribution-data-query.",
  "included_files": [
    {
      "relative_path": "examples/example-A-meta-roas-drop.md",
      "size_in_bytes": 2951
    },
    {
      "relative_path": "references/basic-checks.md",
      "size_in_bytes": 2439
    },
    {
      "relative_path": "references/edge-cases.md",
      "size_in_bytes": 816
    },
    {
      "relative_path": "references/failure-modes.md",
      "size_in_bytes": 1439
    },
    {
      "relative_path": "references/fallback-structure.md",
      "size_in_bytes": 915
    },
    {
      "relative_path": "references/model-branches.md",
      "size_in_bytes": 4244
    },
    {
      "relative_path": "references/output-template.md",
      "size_in_bytes": 3047
    },
    {
      "relative_path": "references/scenario-snippets.md",
      "size_in_bytes": 2225
    },
    {
      "relative_path": "templates/01-scope-lookup.txt",
      "size_in_bytes": 2148
    },
    {
      "relative_path": "templates/02-spend-vs-attribution.txt",
      "size_in_bytes": 977
    },
    {
      "relative_path": "templates/03-measurement-readiness.txt",
      "size_in_bytes": 477
    },
    {
      "relative_path": "templates/04-utm-health.txt",
      "size_in_bytes": 720
    },
    {
      "relative_path": "templates/05-click-distribution.txt",
      "size_in_bytes": 1210
    },
    {
      "relative_path": "templates/06-dda-vs-anyclick.txt",
      "size_in_bytes": 982
    },
    {
      "relative_path": "templates/07-lift-test-results.txt",
      "size_in_bytes": 726
    }
  ],
  "name": "attribution-anomaly-diagnosis",
  "skill_md_contents": "---\nname: attribution-anomaly-diagnosis\ndescription: Diagnose \"why\" questions about attribution anomalies — attribution=0 (no attributed orders), and sudden drops, spikes or retroactive changes in attributed numbers. Do NOT use for \"show me numbers\" — that's attribution-data-query.\nmetadata:\n  category: attribution\n  risk: R0\n  version: 1.2.0\n  last-updated: 2026-09-23\n  references:\n  - references/basic-checks.md\n  - references/model-branches.md\n  - references/fallback-structure.md\n  - references/scenario-snippets.md\n  - references/output-template.md\n  - references/edge-cases.md\n  - references/failure-modes.md\n  templates:\n  - templates/01-scope-lookup.txt\n  - templates/02-spend-vs-attribution.txt\n  - templates/03-measurement-readiness.txt\n  - templates/04-utm-health.txt\n  - templates/05-click-distribution.txt\n  - templates/06-dda-vs-anyclick.txt\n  - templates/07-lift-test-results.txt\n  examples:\n  - examples/example-A-meta-roas-drop.md\n---\n\n## 1. Purpose\n\nDiagnose **\"why\" questions** about attribution anomalies — specifically **attribution = 0** (a tactic shows no attributed orders) and **attribution swings** (sudden drops / spikes / retroactive changes to historical numbers). 5-step diagnostic tree → internal report + client-facing explanation.\n\n> **Shared conventions (canonical elsewhere — don't re-derive):** attribution model default + aliases and sales-platform scope + measurement identity live in **`attribution-data-query`** (`references/attribution-model.md`, `references/sales-platform-scope.md`); follow those (load the `attribution-data-query` skill from this plugin if it isn't loaded). Note this skill reads MMM-calibrated measures (`calibrated_*`) for some checks — a *different* measure from the `attr_*` the other skills use; keep them clearly labeled so a $ figure here is never confused with an attributed-sales figure. (Open question flagged to DS — see the team doc.)\n\n**Do NOT use this skill for \"show me the numbers\" queries** — those belong to `attribution-data-query`.\n\n## 2. When to trigger\n\nTrigger when user is asking **why** attribution looks wrong, not just **what** the numbers are.\n\n**Do NOT trigger**:\n\n- User just wants the numbers (no \"why\") → `attribution-data-query`\n- User wants to compare two models on purpose → `attribution-model-comparison`\n- Anomaly is on an out-of-scope channel/tenant → `attribution-edge-routing`\n\n## 3. Inputs\n\n| **Field** | **Required?** | **Notes** |\n|-|-|-|\n| `tenant_id` | Required | Injected by platform-mcp; never appears in SQL filters |\n| `ads_platform` | Required | Meta / Google / TikTok / Pinterest / Snap / Amazon Ads... |\n| `tactic_name` | Optional | If not given, scan all and pick biggest contributor to the anomaly |\n| `sales_platform` | Required | Amazon Store / Shopify / TikTok Shop. Attribution is computed **per sales platform**; wrong combo (Amazon Ads → Shopify) always returns 0 by design. |\n| `attribution_model` | Optional | `idda`(32) / `dda`(31) / `last_click`(1) / `first_click`(2) / `any_click`(21). If unspecified, Step 1 scans all to locate which is broken. SQL dimension: `attr_model_name`. |\n| `metric` | Required | `roas` / `attr_orders` / `attr_new_customer_orders` / `cac` |\n| `anomaly_period` | Required | Window where the user sees the anomaly |\n| `baseline_period` | Optional | Comparison window. Default: same-length period immediately before `anomaly_period`. |\n\n**Ask for missing required fields once before running diagnostics.**\n\n## 4. SOP\n\n**Step 0: `database-query-ask` (MANDATORY)** — produces the `ctx` timestamp `database-query-run` requires. Skipping fails at execution.\n\n**Step 1: Lock the scope** — pinpoint *whose* attribution is broken before diagnosing why. If `attribution_model` is unspecified, compare all models in anomaly vs baseline windows to find which one diverged.\n\n<callout emoji=\"🛑\">\n**HARD RULE — copy a template first, then fill placeholders**\nBEFORE writing any SQL, **copy from `templates/`**:\n- `templates/01-scope-lookup.txt` — Step 1 cross-model comparison\n- `templates/02-spend-vs-attribution.txt` — Step 3a spend check\n- `templates/03-measurement-readiness.txt` — Step 3c readiness\n- `templates/04-utm-health.txt` — Branch A1 UTM\n- `templates/05-click-distribution.txt` — Branch A2 click shift\n- `templates/06-dda-vs-anyclick.txt` — Branch B1\n- `templates/07-lift-test-results.txt` — Branch C3 lift-test recalibration\nCopy template, fill placeholders (`{ads_platform}` / `{sales_platform}` / `{baseline_start}` / `{baseline_end}` / `{anomaly_start}` / `{anomaly_end}`). Do NOT write SQL from scratch.\n</callout>\n\nAfter Step 1: **confirm with user** which `ads_platform` + `tactic` + `sales_platform` + `attribution_model` before continuing.\n\n**Step 2: Classify — \"attribution = 0\" or \"swing\"?**\n\n| **Type** | **How to detect** | **Next** |\n|-|-|-|\n| **Attribution = 0** | `attr_orders` / `attr_sales` exactly 0, or tactic row missing | Step 3b → 3c → 3d (config / product-design first) |\n| **Attribution swing** | Sharp jump up/down, OR same window returns different numbers on different pull dates | Step 3a (spend check) → Step 5 (model routing) |\n\n**Step 3: Basic checks** — rule out config / product-design causes before model branches. Detail → `references/basic-checks.md`\n\n- **3a** Did spend change? (most \"swings\" are proportional spend drops)\n- **3b** [=0 only] Is the platform × sales-platform combo valid? (Amazon Ads → Amazon Store only)\n- **3c** [=0 only] Measurement Readiness\n- **3d** [Row missing] Dashboard view & channel config\n\n**Step 4: Attribution-model quick reference**\n\n| **Model** | **model_id** | **Mechanism** |\n|-|-|-|\n| Last Click | 1 | Last click before conversion gets 100% credit |\n| First Click | 2 | First click before conversion gets 100% credit |\n| Any Click | 21 | Linear: every click in window gets equal share |\n| DDA | 31 | Any Click + handling for Unmatched, VTA, PPS |\n| iDDA | 32 | DDA + spend-change weighting + lift-test calibration |\n\n**Step 5: Model-specific branches** — detail → `references/model-branches.md`\n\n- **Branch A** Rule-based (Last Click / First Click / Any Click): UTM health → click distribution shift\n- **Branch B** DDA: DDA vs Any Click → VTA → Unmatched → PPS\n- **Branch C** iDDA: DDA trend → PPS → lift-test recalibration\n\n<callout emoji=\"💡\">\n**Don't take the bait — iDDA retroactive change is NOT a bug**\nIf the user says \"last week it was X, this week the same date range shows Y\", this is iDDA's **retro-recalibration mechanism**, not a data issue. When a new lift test is applied, the model rewrites attribution back over the historical window. **Diagnose it (Branch C3), don't treat it as broken.** Lead the client-facing explanation with \"this is expected\" before the mechanism, otherwise the customer assumes there's a bug.\n</callout>\n\n<callout emoji=\"💡\">\n**Don't take the bait — if spend dropped proportionally, STOP**\nStep 3a is the fastest check for a reason. If spend ↓ X% and `attr_orders` ↓ \\~X%, attribution dropping proportionally is **correct**, not an anomaly. Stop here and explain to the client. Do NOT continue down the model branches looking for a more \"interesting\" cause — most \"swings\" are just proportional spend changes.\n</callout>\n\n**Step 6: Fallback — campaign-structure shift** — if all branches come up clean, check whether campaign mix actually changed (a competing tactic squeezed share, or upper-funnel campaigns flooded delivery). Detail → `references/fallback-structure.md`\n\n## 5. Tools used\n\n| **Tool** | **Required?** | **Purpose** |\n|-|-|-|\n| `database-query-ask` | Required (first) | Cube.dev schema patterns + `ctx` timestamp |\n| `dashboard-metrics-list` | Required | Validate field names (e.g., `attr_model_name`, `calibrated_orders`) |\n| `database-query-run` | Required | Execute Cube.dev SQL. |\n| `lift-test-list` / `lift-test-get` | Conditional | Branch C / C3 — pull lift test metadata when iDDA retroactive change is suspected |\n\n## 6. Output format\n\nDiagnosis output is **customer-facing** — a \"why did X drop\" answer is a report a CSM\nforwards to the client, so **produce it as a static HTML artifact** (a shareable\ndiagnosis page via the `artifacts` skill), not just a chat message.\n\nThe page:\n\n- **Three sections only: What we found / Why it happened / What you can do.** Quantify\n  the change in the first line (X → Y, ±%). Concrete action items.\n- **One small supporting visual** of the anomaly — the metric's before→after, or the\n  evidence the diagnosis rests on (e.g. spend flat while attributed sales fell). One\n  chart, per the `artifacts` chart method.\n- **One root-cause story, not a buffet** — the decision tree + scenario snippets pick\n  it; on an unrecognized shape, say so, **never invent** a plausible cause.\n- **Measurement identity in the footer:** sales-platform scope + attribution model +\n  data-as-of. (Diagnosis is **per sales platform**.)\n- Business language only — no internal terms (`model_id`, `dws_view_*`, Branch A/B/C).\n- **Static, not live:** a diagnosis is a point-in-time explanation — don't wire it to\n  auto-refresh, the numbers that prompted it would move out from under the story.\n\nFull section template + 7 reusable scenario snippets → `references/output-template.md` + `references/scenario-snippets.md`\n\n## 7. CRITICAL rules (top 8 — full list in references/failure-modes.md)\n\n1. **Always copy a verified SQL template from `templates/`** before writing SQL — do not write from scratch\n2. **Never skip `database-query-ask` before SQL** — `database-query-run` requires the `ctx`\n3. **Never skip Step 3a (spend check)** — most \"swings\" are just proportional spend changes; stop there if proportional\n4. **Never jump straight into lift-test diagnosis** on a rule-based or DDA anomaly — lift tests only affect iDDA\n5. **Never treat iDDA retroactive change as a bug** — it's expected; lead the client explanation with \"this is expected\"\n6. **Never conclude \"WM bug\"** without verifying against platform-reported orders — if Meta Ads Manager also shows the drop, it's real\n7. **Never expose internal terminology** — no `model_id = 32`, no `dws_view_*` table names, no Branch A/B/C labels in customer output\n8. **Never add `tenant_id` filters in SQL** — platform-mcp injects it\n\n## 8. Edge cases\n\nFull edge case & routing catalog → `references/edge-cases.md`\n\n## 9. Related skills\n\n- **Upstream**: `attribution-intent-clarification` (if the \"why\" question is too vague to scope)\n- **Sibling**: `attribution-model-comparison` (user wants two models compared, not a diagnosis), `attribution-data-query` (user just wants numbers, no diagnosis)\n- **Route to**: `attribution-edge-routing` (out-of-scope channel/tenant)\n"
}

SHA-256 of public snapshot: 548d868b6c94b73a0ccd616287e27970edc1a1dda20cdc4e2edc0cb02ec3887a