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

id: itsm/manufacturing
version: 1.0.0
summary: >-
  The ITSM suite reshaped for operational technology — CIs gain an IT|OT class + site/plant_line, a
  maintenance_windows table holds planned OT downtime, the blast radius traverses an OT `controls` edge so a
  failing PLC reaches its production lines (an ot_impact rollup), and the change gate gains a
  maintenance-window floor. Composes the base suite plus the manufacturing overlay; no fork.
module: itsm
category: enterprise-software
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: itsm                      # the six base skills in skill/enterprise_software/itsm/*.skill.yaml
  overlay: itsm/overlays/manufacturing

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

# What the overlay ADDS on top of the suite (pointer, not a re-spec — see the overlay for the typed diff).
provides:
  tables_add: [maintenance_windows]              # + ci_class/site/plant_line on cis
  graph_edges_add: [controls]                    # OT controller → production-line edge (impact-directional, unflipped)
  gate_change: "cmdb-blast-radius adds an ot_impact rollup (impacted plant lines); change-management adds a maintenance-window floor (OT change outside its window → cab_review)"
  onto: [itsm/core, itsm/cmdb-blast-radius, itsm/change-management]

# 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: itsm/overlays/manufacturing
    live:
      - "ALTER cis ADD ci_class/site/plant_line; maintenance_windows created + seeded (line-1, 2026-09-06 02:00–04:00Z)"
      - "OT blast radius: controls edge (plc-line1 20 → line-1 21) copied into impacts unflipped; graph_khop('cmdb_impact', 20, 5) → line-1 at hop 1; ot_impact rollup = 1 impacted plant line"
      - "maintenance-window floor: CHG6001 (inside the window) = auto_approve; CHG6002 (outside any window) = cab_review, held despite low risk + model auto_approve"
