{
  "id": "mba-m1-sleep-wake",
  "modelId": "mba-m1",
  "title": "Intermittent sleep and unexpected wake log",
  "intent": "Collect repeated sleep conditions before treating a single wake event as a stable fault.",
  "category": "diagnostics",
  "sourceIds": [
    "mac-sleep",
    "mac-safety"
  ],
  "diagramId": "laptop-mac-settings",
  "prerequisites": [
    "Work can be saved safely",
    "No transfer, backup or update will be interrupted"
  ],
  "tools": [
    "Built-in controls",
    "Owned removable accessories"
  ],
  "steps": [
    {
      "id": "pattern",
      "text": "Classify the event as refusing sleep, unexpected wake or a display that fails to return. Record each event under its actual condition.",
      "sourceIds": [
        "mac-sleep"
      ],
      "locator": "Opening; original event categories"
    },
    {
      "id": "settings",
      "text": "Use the guide for the installed macOS to review sleep and wake settings. Record expected network wake or sharing behavior and preserve settings needed for your work.",
      "sourceIds": [
        "mac-sleep"
      ],
      "locator": "Check sleep settings / Check the network access setting / Check sharing settings"
    },
    {
      "id": "activity",
      "text": "Finish active transfers before comparison. Note whether background work or connected devices were present, using categories rather than filenames or process logs.",
      "sourceIds": [
        "mac-sleep"
      ],
      "locator": "Check activity on your Mac / Check to see if something else is waking your Mac"
    },
    {
      "id": "baseline",
      "text": "After safely ejecting storage, observe ordinary sleep/wake without a dock or removable USB device. Keep the power source unchanged.",
      "sourceIds": [
        "mac-sleep"
      ],
      "locator": "Check to see if something else is waking your Mac → Connected storage and devices; original baseline"
    },
    {
      "id": "repeat",
      "text": "If safe, observe again with one documented accessory restored. Record recovery each time. If forced shutdown becomes necessary, stop repetition and take the log to Apple.",
      "sourceIds": [
        "mac-sleep"
      ],
      "locator": "Check to see if something else is waking your Mac → Connected storage and devices; original bounded observation"
    }
  ],
  "checks": [
    {
      "id": "safety",
      "question": "Is there swelling, a lifted case or trackpad, liquid damage, smoke, a burning smell, or damaged power equipment?",
      "goal": "Establish whether any powered comparison is safe.",
      "sourceIds": [
        "mac-safety"
      ],
      "options": [
        {
          "id": "safe",
          "label": "No visible danger",
          "next": "available"
        },
        {
          "id": "danger",
          "label": "Yes, or suspected damage",
          "next": "stop"
        },
        {
          "id": "unknown",
          "label": "Not checked / unsure",
          "next": "uncertain"
        }
      ]
    },
    {
      "id": "available",
      "question": "Can ordinary sleep be observed without interrupting work?",
      "goal": "Protect active data operations.",
      "sourceIds": [
        "mac-sleep"
      ],
      "options": [
        {
          "id": "yes",
          "label": "Ready",
          "next": "events"
        },
        {
          "id": "busy",
          "label": "Cannot interrupt background work",
          "next": "attention"
        },
        {
          "id": "unknown",
          "label": "Not checked / unsure",
          "next": "uncertain"
        }
      ]
    },
    {
      "id": "events",
      "question": "What do the recorded events show?",
      "goal": "Route recurring conditions.",
      "sourceIds": [
        "mac-sleep"
      ],
      "options": [
        {
          "id": "normal",
          "label": "Sleep and wake work now",
          "next": "ready"
        },
        {
          "id": "condition",
          "label": "One accessory/activity condition differs",
          "next": "lead"
        },
        {
          "id": "ongoing",
          "label": "Unexplained recurrence / forced shutdown",
          "next": "service"
        },
        {
          "id": "single",
          "label": "Only one event; comparison unavailable",
          "next": "attention"
        },
        {
          "id": "unknown",
          "label": "Not checked / unsure",
          "next": "uncertain"
        }
      ]
    }
  ],
  "terminals": {
    "ready": {
      "type": "preparation_saved",
      "title": "Sleep observations saved",
      "text": "Retain the original event alongside these successful observations.",
      "handoff": [
        "Keep power/accessory conditions.",
        "Follow up if the original event returns."
      ]
    },
    "lead": {
      "type": "maintenance_possible",
      "title": "A condition-specific lead is available",
      "text": "The observed event follows one changed condition.",
      "handoff": [
        "Share baseline and accessory/activity entries.",
        "Preserve required network policy."
      ]
    },
    "attention": {
      "type": "maintenance_possible",
      "title": "Keep the partial sleep log",
      "text": "The comparison was unavailable or there was only one event.",
      "handoff": [
        "Record active work and power source.",
        "Continue only during ordinary safe use."
      ]
    },
    "service": {
      "type": "service_needed",
      "title": "Take the recurrence log to Apple",
      "text": "Unexplained recurrence or forced shutdown warrants support.",
      "handoff": [
        "Provide power source, accessory state and recovery type.",
        "Keep backup state visible; stop repeated power cycling."
      ]
    },
    "uncertain": {
      "type": "preparation_saved",
      "title": "Keep the unanswered checks visible",
      "text": "Event conditions or recovery behavior remain unconfirmed.",
      "handoff": [
        "Share event condition and recovery type.",
        "Identify omitted comparisons and background activity category.",
        "Keep unperformed conditions marked Not tested. Ask the provider to confirm these before further changes."
      ]
    },
    "stop": {
      "type": "service_needed",
      "title": "Stop the powered checks",
      "text": "Stop using or charging damaged equipment. Keep away from hot or smoking equipment; obtain emergency help for an immediate fire risk. Arrange manufacturer guidance before handling or transport.",
      "handoff": [
        "Tell Apple about the visible damage before arranging a MacBook Air service.",
        "Share event condition and recovery type.",
        "Do not open the case, remove the battery, press a lifted surface, or continue a test to complete this record."
      ]
    }
  },
  "missing": "Event conditions or recovery behavior remain unconfirmed.",
  "handoff": [
    "Share event condition and recovery type.",
    "Identify omitted comparisons and background activity category."
  ],
  "outcomeChecks": [
    "Events have actual conditions and results.",
    "Unexpected wake and absent display are distinguished."
  ],
  "workflow": {
    "family": "intermittent-log",
    "summary": "Keep an event log tied to repeatable sleep conditions.",
    "osOptions": [
      "macos26-plus",
      "macos-earlier",
      "macos-unknown"
    ],
    "fields": [
      {
        "id": "sleep-pattern",
        "label": "Event pattern",
        "type": "select",
        "options": [
          {
            "value": "unknown",
            "label": "Not established"
          },
          {
            "value": "no-sleep",
            "label": "Will not sleep"
          },
          {
            "value": "unexpected-wake",
            "label": "Unexpected wake"
          },
          {
            "value": "no-display",
            "label": "Display does not return"
          }
        ]
      },
      {
        "id": "sleep-power",
        "label": "Event power source",
        "type": "select",
        "options": [
          {
            "value": "unknown",
            "label": "Not recorded"
          },
          {
            "value": "battery",
            "label": "Battery"
          },
          {
            "value": "direct",
            "label": "Direct adapter"
          },
          {
            "value": "dock",
            "label": "Dock/display power"
          }
        ]
      },
      {
        "id": "background-work",
        "label": "Background activity",
        "type": "select",
        "options": [
          {
            "value": "unknown",
            "label": "Not checked"
          },
          {
            "value": "none",
            "label": "No known transfer"
          },
          {
            "value": "backup",
            "label": "Backup/transfer"
          },
          {
            "value": "media",
            "label": "App/media activity"
          },
          {
            "value": "managed",
            "label": "Managed work"
          }
        ]
      },
      {
        "id": "recovery",
        "label": "Recovery",
        "type": "select",
        "options": [
          {
            "value": "unknown",
            "label": "Not observed"
          },
          {
            "value": "normal",
            "label": "Normal recovery"
          },
          {
            "value": "restart",
            "label": "Normal restart required"
          },
          {
            "value": "forced",
            "label": "Forced shutdown required"
          }
        ]
      }
    ],
    "matrix": {
      "title": "Sleep conditions",
      "rows": [
        {
          "id": "baseline",
          "label": "No removable accessory",
          "condition": "Saved work, constant power, ordinary sleep/wake"
        },
        {
          "id": "accessory",
          "label": "One accessory restored",
          "condition": "Same power and work state"
        },
        {
          "id": "repeat",
          "label": "Later baseline",
          "condition": "Original condition during normal safe use"
        }
      ],
      "results": [
        {
          "value": "not-tested",
          "label": "Not tested"
        },
        {
          "value": "works",
          "label": "Works in this condition"
        },
        {
          "value": "fails",
          "label": "Fails in this condition"
        },
        {
          "value": "intermittent",
          "label": "Intermittent"
        },
        {
          "value": "not-applicable",
          "label": "Not applicable"
        }
      ]
    },
    "reportFocus": [
      "Event conditions",
      "Pattern and recovery",
      "Missing comparisons"
    ],
    "notDoneGuidance": [
      "Busy or unsafe trials remain Not tested.",
      "Stop repeating if a forced shutdown is needed."
    ],
    "logPrompts": [
      "Choose the actual condition for each event.",
      "Record recovery without inferring a cause from timing."
    ]
  },
  "entityKind": "task",
  "version": "2.0.0",
  "deviceFamily": "laptop",
  "modelApplicability": {
    "id": "mba-m1",
    "name": "MacBook Air M1",
    "family": "laptop",
    "revision": "MacBook Air (M1, 2020), Apple M1 chip",
    "os": "macOS Big Sur or later; Ventura and later call the preferences app System Settings. Diagnostic screens vary by macOS.",
    "region": "US-first; local repair provider requirements vary.",
    "help": "Choose Apple menu → About This Mac. Confirm MacBook Air (M1, 2020) and Chip: Apple M1. An Intel processor or another chip does not match.",
    "exclusions": [
      "MacBook Air Intel 2020",
      "MacBook Air M2",
      "MacBook Pro M1"
    ],
    "sourceIds": [
      "mac-id",
      "mac-spec",
      "mac-diagnostics"
    ]
  },
  "exclusions": [
    "MacBook Air Intel 2020",
    "MacBook Air M2",
    "MacBook Pro M1"
  ],
  "materials": [
    "Keep any existing backup accessible to you.",
    "Keep credentials and personal files outside this record."
  ],
  "stopConditions": [
    "Stop using and charging equipment with swelling, casing separation, smoke, a burning smell or suspected battery damage. Do not open or press on it.",
    "Set damaged accessories aside. Do not open mains adapters or force connectors.",
    "Do not erase, reset, flash firmware or bypass a lock as a default diagnostic step."
  ],
  "branches": [
    {
      "from": "safety",
      "answer": "safe",
      "to": "available"
    },
    {
      "from": "safety",
      "answer": "danger",
      "to": "stop"
    },
    {
      "from": "safety",
      "answer": "unknown",
      "to": "uncertain"
    },
    {
      "from": "available",
      "answer": "yes",
      "to": "events"
    },
    {
      "from": "available",
      "answer": "busy",
      "to": "attention"
    },
    {
      "from": "available",
      "answer": "unknown",
      "to": "uncertain"
    },
    {
      "from": "events",
      "answer": "normal",
      "to": "ready"
    },
    {
      "from": "events",
      "answer": "condition",
      "to": "lead"
    },
    {
      "from": "events",
      "answer": "ongoing",
      "to": "service"
    },
    {
      "from": "events",
      "answer": "single",
      "to": "attention"
    },
    {
      "from": "events",
      "answer": "unknown",
      "to": "uncertain"
    }
  ],
  "sources": [
    {
      "id": "mac-sleep",
      "title": "Mac sleeps or wakes unexpectedly",
      "url": "https://support.apple.com/en-gb/guide/mac-help/-mchlp2995/mac",
      "locator": "Check sleep settings / Network access / Sharing / Activity / Something else is waking your Mac",
      "purpose": "Sleep/wake settings, background activity and peripheral comparison",
      "checkedAt": "2026-10-13",
      "reuse": "Reference only. Original paraphrase and observation worksheets; no copied images or manual pages.",
      "licenseStatus": "Public support document; no redistribution license assumed."
    },
    {
      "id": "mac-safety",
      "title": "Important safety information for your Mac",
      "url": "https://support.apple.com/guide/macbook-air/important-safety-information-apd9b8f7aa11/mac",
      "locator": "Handling / Built-in battery / Charging",
      "purpose": "General damaged-equipment and moisture safety only; M1-specific connections are sourced from mac-spec",
      "checkedAt": "2026-10-13",
      "reuse": "Reference only. Original paraphrase and observation worksheets; no copied images or manual pages.",
      "licenseStatus": "Public support document; no redistribution license assumed."
    },
    {
      "id": "mac-id",
      "title": "Identify MacBook Air model",
      "url": "https://support.apple.com/en-ie/102869",
      "locator": "Find model / MacBook Air M1 2020",
      "purpose": "Model and chip confirmation",
      "checkedAt": "2026-10-04",
      "reuse": "Reference only. Original paraphrase; no copied images or manual pages.",
      "licenseStatus": "Public support document; no redistribution license assumed."
    },
    {
      "id": "mac-spec",
      "title": "MacBook Air (M1, 2020) technical specifications",
      "url": "https://support.apple.com/en-us/111883",
      "locator": "Charging and Expansion / Display Support",
      "purpose": "Two USB-C Thunderbolt/USB4 ports and one native external display up to 6K at 60 Hz",
      "checkedAt": "2026-10-13",
      "reuse": "Reference only. Original paraphrase and observation worksheets; no copied images or manual pages.",
      "licenseStatus": "Public support document; no redistribution license assumed."
    },
    {
      "id": "mac-diagnostics",
      "title": "Use Apple Diagnostics to test your Mac",
      "url": "https://support.apple.com/en-gb/102550",
      "locator": "Prepare / Apple silicon / Run Apple Diagnostics / Results",
      "purpose": "M1 Options then Command-D; Tahoe 26+ selected tests versus earlier automatic testing; preserve reference code",
      "checkedAt": "2026-10-13",
      "reuse": "Reference only. Original paraphrase and observation worksheets; no copied images or manual pages.",
      "licenseStatus": "Public support document; no redistribution license assumed."
    },
    {
      "id": "mac-sound",
      "title": "No sound from Mac speakers",
      "url": "https://support.apple.com/en-nz/guide/mac-help/mchlp1439/mac",
      "locator": "Opening / Built-in speakers / External outputs",
      "purpose": "App volume, local source and selected built-in output",
      "checkedAt": "2026-10-13",
      "reuse": "Reference only. Original paraphrase and observation worksheets; no copied images or manual pages.",
      "licenseStatus": "Public support document; no redistribution license assumed."
    },
    {
      "id": "mac-keyboard",
      "title": "Mac does not respond to key presses",
      "url": "https://support.apple.com/en-sa/guide/mac-help/mchlp1240/mac",
      "locator": "Built-in keyboard / Other keys",
      "purpose": "Low battery, Slow Keys, Mouse Keys and input layout",
      "checkedAt": "2026-10-13",
      "reuse": "Reference only. Original paraphrase and observation worksheets; no copied images or manual pages.",
      "licenseStatus": "Public support document; no redistribution license assumed."
    }
  ],
  "assets": [
    {
      "id": "laptop-mac-settings",
      "path": "/assets/laptop-mac-settings.svg",
      "title": "Mac settings and observation map",
      "alt": "Original schematic locating Sound Output, Accessibility Keyboard and Pointer Control, and sleep-related settings; older macOS labels differ.",
      "sourceIds": [
        "mac-sound",
        "mac-keyboard",
        "mac-sleep"
      ],
      "caption": "Original schematic of setting relationships. Use the guide version matching installed macOS; this is not a screenshot.",
      "kind": "Original schematic"
    }
  ],
  "relatedIds": [
    "mba-m1-diagnostics",
    "mba-m1-usbc-charge",
    "mba-m1-safe-mode"
  ],
  "estimatedDuration": {
    "minutes": 20,
    "label": "Planning estimate for recording observations; excludes charging, backups, drying and service. Not a measured repair time."
  }
}