struct RealityUnsupportedHostRequirement: Error, CustomStringConvertible { enum Requirement: Equatable, Sendable { case defaultShortcutDelivery, editorLaunchDate } let requirement: Requirement let detail: String var description: String { "Unsupported host requirement: \(detail). No product pass claimed." } } extension RealityScenario { static var supported: [Self] { all.filter { $0.coverageBlocker == nil } } static func selected(named name: String?) -> [Self] { guard let name else { return supported.filter { $0.name != "real-desktop-first-run" } } return all.filter { $0.name == name } } func skipStatus( explicitlyRequested: Bool, unsupportedHostRequirement: RealityUnsupportedHostRequirement.Requirement? = nil ) -> RealityResult.Status { if let unsupportedHostRequirement { switch (name, unsupportedHostRequirement) { case ("shortcuts-off", .defaultShortcutDelivery), ("app-vscode", .editorLaunchDate): return .unsupportedHost default: return .fail } } if coverageBlocker != nil { return .skip } if conditionalHostRequirement { return .unsupportedHost } return explicitlyRequested ? .fail : .skip } var unsupportedActuatorRequirement: RealityUnsupportedHostRequirement? { guard name == "app-vscode" else { return nil } return RealityUnsupportedHostRequirement( requirement: .editorLaunchDate, detail: "The direct VS Code launch adapter cannot establish its required launch-date ownership metadata. The recorded owned GUI had matching PID and bundle identity but no launch date on this host; no further editor launch is attempted." ) } private var conditionalHostRequirement: Bool { switch name { case "displays", "display-full-swap", "display-full-stack", "spaces", "voiceover-shortcuts", "tab-view-voiceover", "no-peek", "clean-space": true default: false } } var coverageBlocker: String? { switch name { case "tour-native-manual": "Compiled Manual recipe needs a verified native radio locator. The rendered disclosure worked, but the radio identifier/role did not match; direct draft assignment is not a native-control substitute." case "tour-native-replay-on", "tour-native-replay-off": "Compiled replay recipes need a verified native exit-control locator. The rendered Set up later identifier/role did not match; callback deferral is not native exit proof." case "native-tabs": "Owned Finder/Safari tab creation, selection and detach are not supported by the driver; document-app pass-through stays forbidden. Existing fixture native-tab tests are not a real-app proof." case "secure-input-pause": "No owned Secure Input actuator/restoration is available. Secure Input gates event-tap input, not automatic tiling or Carbon shortcuts; a native pause/recovery proof remains unimplemented." default: nil } } }