# Manufacturing × CRM — the INTERSECTION skill (a composition manifest, NOT a re-spec).
# It COMPOSES the base crm suite + the validated crm/overlays/manufacturing diff. The full
# mechanics live in the seven base skills; this contract only points at the additive overlay.
# Lives at skill/enterprise_software/crm/industries/manufacturing.skill.yaml.
# check:skills binds it to its post; the human walkthrough is posts/.../industries/manufacturing.md.

id: crm/manufacturing
version: 1.0.0
summary: >-
  The CRM suite reshaped for a channel + equipment business — a dealer channel, a deployed install base,
  territory-weighted dealer edges, and an install-base service/upsell NBA gate. Composes the base suite
  plus the manufacturing overlay; no fork.
module: crm
industry: manufacturing            # NEW industry key (lib/categories.js)
pillars: [sql, graph, models]

# The composition: this skill IS the suite + one additive overlay (both already tested).
composes:
  suite: crm                       # the seven base skills in skill/enterprise_software/crm/*.skill.yaml
  overlay: crm/overlays/manufacturing

# Binding to the narrative (published id = manufacturing-crm → route below; route wins over the derived page_url).
post: posts/enterprise_software/crm/industries/manufacturing.md
route: /library/manufacturing-crm

# What the overlay ADDS on top of the suite (pointer, not a re-spec — see the overlay for the typed diff).
provides:
  tables_add: [dealers, install_base]            # + channel_type/territory on accounts, lead_time_days on quote_lines
  graph_edges_add: [serves_territory]            # weighted dealer→customer edge (0.9 same-territory, 0.3 cross)
  gate_change: "account-360 NBA targets install-base service/upsell, not net-new logos"
  onto: [crm/core, crm/quote-cpq, crm/account-360, crm/campaign-to-lead]

# Cites the overlay's live validation (2026-09-02, org IHDIASH) — not re-run here.
tested_branches:
  - overlay: manufacturing
    tested_at: 2026-09-02
    cites: crm/overlays/manufacturing
    live:
      - "ALTER accounts ADD channel_type/territory over the pg wire; dealers + install_base created + seeded"
      - "territory install-base rollup: NA = $40,000 (0 expiring), EU = $25,000 (1 expiring, warranty_end 2026-05-01)"
      - "weighted dealer edges rank Initech (NA, 0.9) above Acme (EU, 0.3); Bolt serves_territory from the NA dealer → 2 accounts"
