package iace

// GetCobotHazardPatterns returns patterns specific to collaborative robots,
// press-specific expert hints, and the afterrun/SIL calculation domain.
// These extend the builtin patterns (HP045-HP058 for press, HP059+ for cobot).
func GetCobotHazardPatterns() []HazardPattern {
	return []HazardPattern{
		// ================================================================
		// Collaborative Robot (Cobot) Patterns (HP059-HP065)
		// ================================================================
		{
			ID: "HP059", NameDE: "Kollision Mensch-Roboter (Kraft/Geschwindigkeit)", NameEN: "Human-robot collision (force/speed)",
			RequiredComponentTags: []string{"collaborative_operation", "moving_part"},
			RequiredEnergyTags:    []string{},
			GeneratedHazardCats:   []string{"mechanical_hazard"},
			SuggestedMeasureIDs:   []string{"M001", "M054"},
			SuggestedEvidenceIDs:  []string{"E01", "E08"},
			Priority:              98,
			RequiresExpertCalculation: true,
			ExpertHintDE: "Sicherheitsabstaende und maximal zulaessige Kraefte/Geschwindigkeiten muessen berechnet werden.",
			ExpertHintEN: "Safety distances and maximum permissible forces/speeds must be calculated.",
		},
		{
			ID: "HP060", NameDE: "Quetschen durch Werkzeug am Cobot", NameEN: "Crushing by tool on cobot",
			RequiredComponentTags: []string{"tool_at_robot", "collaborative_operation"},
			RequiredEnergyTags:    []string{},
			GeneratedHazardCats:   []string{"mechanical_hazard"},
			SuggestedMeasureIDs:   []string{"M001", "M054", "M141"},
			SuggestedEvidenceIDs:  []string{"E01", "E08"},
			Priority:              95,
			RequiresExpertCalculation: true,
			ExpertHintDE: "Werkzeug-/Werkstueckgeometrie bestimmt das Quetschrisiko. Separate Beurteilung pro Werkzeug erforderlich.",
			ExpertHintEN: "Tool/workpiece geometry determines crushing risk. Separate assessment per tool required.",
		},
		{
			ID: "HP061", NameDE: "Nachlauf nach Stopp (Reaktionszeit)", NameEN: "Afterrun after stop (reaction time)",
			RequiredComponentTags: []string{"afterrun_risk", "moving_part"},
			RequiredEnergyTags:    []string{},
			GeneratedHazardCats:   []string{"mechanical_hazard"},
			SuggestedMeasureIDs:   []string{"M054"},
			SuggestedEvidenceIDs:  []string{"E01", "E08"},
			Priority:              90,
			RequiresExpertCalculation: true,
			ExpertHintDE: "Nachlaufwegberechnung erforderlich. Sicherheitsfeld muss entsprechend dimensioniert werden.",
			ExpertHintEN: "Afterrun distance calculation required. Safety field must be dimensioned accordingly.",
		},
		{
			ID: "HP062", NameDE: "Fehlprogrammierung Kraft-/Geschwindigkeitsgrenzwerte", NameEN: "Misprogramming of force/speed limits",
			RequiredComponentTags: []string{"programmable", "force_limited"},
			RequiredEnergyTags:    []string{},
			GeneratedHazardCats:   []string{"safety_function_failure"},
			SuggestedMeasureIDs:   []string{"M106"},
			SuggestedEvidenceIDs:  []string{"E01"},
			Priority:              88,
			ExpertHintDE: "Grenzwerte duerfen nur nach Risikobeurteilung veraendert werden. Zugriffsschutz erforderlich.",
		},
		{
			ID: "HP063", NameDE: "Werkstueck-Herabfallen vom Roboter", NameEN: "Workpiece drop from robot",
			RequiredComponentTags: []string{"variable_workpiece", "gravity_risk"},
			RequiredEnergyTags:    []string{},
			GeneratedHazardCats:   []string{"mechanical_hazard"},
			SuggestedMeasureIDs:   []string{"M001", "M051"},
			SuggestedEvidenceIDs:  []string{"E08"},
			Priority:              82,
		},
		{
			ID: "HP064", NameDE: "Quetschen im Roboter-Arbeitsraum (nicht-kollaborierend)", NameEN: "Crushing in robot workspace (non-collaborative)",
			RequiredComponentTags: []string{"moving_part", "high_force", "sensor_part"},
			RequiredEnergyTags:    []string{},
			ExcludedComponentTags: []string{"collaborative_operation"},
			GeneratedHazardCats:   []string{"mechanical_hazard"},
			SuggestedMeasureIDs:   []string{"M001", "M005", "M051"},
			SuggestedEvidenceIDs:  []string{"E01", "E08"},
			Priority:              94,
		},
		{
			ID: "HP065", NameDE: "Einklemmen am Arbeitstisch (Cobot-Zelle)", NameEN: "Trapping at work table (cobot cell)",
			RequiredComponentTags: []string{"pinch_point", "structural_part"},
			RequiredEnergyTags:    []string{},
			GeneratedHazardCats:   []string{"mechanical_hazard"},
			SuggestedMeasureIDs:   []string{"M001"},
			SuggestedEvidenceIDs:  []string{"E08"},
			Priority:              70,
		},
	}
}
