{"skills":[{"name":"Check business recovery dependencies","description":"Find which services will miss their recovery targets because a prerequisite takes longer than the plan allows.","content":"# Check business recovery dependencies\n\nFind which services will miss their recovery targets because a prerequisite takes longer than the plan allows.\n\n## When to use this skill\n\n- A small business wants to know whether its continuity plan meets its recovery targets.\n- A runbook lists restart steps and someone asks which services will be late and why.\n- Before a recovery exercise, the team wants to find the longest dependency chain to test.\n\n## When not to use it\n\n- Writing a full business continuity plan or preparing for ISO 22301 certification.\n- Running a live cyber incident. Follow the incident response plan and get specialist help.\n- Setting the recovery targets themselves. Those come from a business impact analysis agreed with the service owners.\n\n## What you need\n\n- Service IDs, recovery time objectives and estimated restart durations\n- Prerequisite map, shared resource constraints and starting assumptions\n\n## Ask before you start\n\nIf any of these are missing or unclear, ask before doing the work.\n\n- What disruption are you planning for, and when does the clock start?\n- For each service, what is its recovery target and what must be working before it can restart: systems, people, suppliers, data?\n- Can recovery tasks run at the same time, or do they share the same people or equipment?\n- Which restart times come from a real test or incident, and which are estimates?\n\n## Method\n\n1. Fix the scenario and the clock: hour zero is the interruption, and every target and duration is in hours on that clock. Where a maximum tolerable period of disruption is given, check the recovery time objective is shorter.\n2. Map prerequisites: systems, people, suppliers, premises, credentials and data restores. Distinguish mandatory dependencies from documented alternative routes. A route with unavailable staff, expired credentials or inaccessible recovery material cannot support a promised finish. Flag missing or circular dependencies before scheduling.\n3. Apply the stated resource model. Independent tasks may run together; if staff or equipment are shared, ask for a priority and capacity assumption rather than assuming parallel work.\n4. Schedule each task to start when its last prerequisite is ready and finish after its own restart duration. Where alternatives exist, use the earliest route whose prerequisites and timing are evidenced. A service that depends on an unresolved service is unresolved too.\n5. Compare each finish with its recovery objective on the same clock and report how late each service is. A stated target does not supply missing capacity.\n6. Trace the critical path to each late service: the chain of prerequisites that sets its finish time. That is the chain to shorten or test first.\n7. Label each duration as tested or estimated, and propose evidence for the longest blocking dependency in the next exercise.\n\n## Checks before you deliver\n\n- An objective is a desired service outcome; it does not shorten an upstream restart.\n- Adding all parallel prerequisites overstates the critical path. Ignoring a serial prerequisite understates it.\n- Counting a fallback that relies on an unavailable person, a lost key or an expired credential as a working route.\n- Leaving out suppliers' own restore times, such as an internet or software provider's, makes the plan look faster than it is.\n- Presenting an untested estimate as a proven recovery time.\n\n## How to present the result\n\nLead with which services miss their targets and by how many hours, and which cannot be scheduled. Then give a table: service, prerequisites, start hour, finish hour, target and hours late. Show the critical path to each late service, list unresolved items with what is missing, and end with what to test or shorten first.\n\n## Worked example\n\n**Request:** Which recovery targets will be missed?\n\n**Supplied material:**\n\n```text\nSeparate crews; all times hours after outage. NET takes 2, target 3, no prerequisite. DATA takes 5, target 6, none. DESK takes 2 after NET and DATA, target 6. ORDERS takes 3 after DESK, target 8.\n```\n\n**Answer:** NET and DATA can finish at hours 2 and 5. DESK waits for both, then needs two hours, so it finishes at hour 7 against a six-hour target. ORDERS follows at hour 10 against an eight-hour target. Test the DATA to DESK to ORDERS sequence in the next exercise.\n\n## Structured output for tests\n\nFor an ordinary job, answer in the format above and point back to the supplied evidence. Use this structure only for the test cases published with this skill, or when someone asks for structured JSON.\n\nReturn finish_hours as an object keyed by service ID, late_hours as a map of only missed targets to positive hours and unresolved as a sorted array of services with unresolved prerequisites, cycles or unspecified resource contention. Use null finish_hours on unresolved services and their dependants.\n\n## Sources\n\n- [Department for Work and Pensions \u00b7 Departmental Business Continuity Framework](https:\/\/assets.publishing.service.gov.uk\/media\/5a796dbce5274a2acd18cc21\/dwp-bcframework-part2.pdf): The DWP framework requires each business impact analysis to identify the maximum tolerable period of disruption and the recovery time objective for each critical activity, to record dependencies between activities, IT systems and suppliers, and to set objectives that leave enough time for recovery actions. It also requires plans to be exercised.\n- [NIST SP 800-34 Rev. 1 \u00b7 Contingency Planning Guide for Federal Information Systems](https:\/\/nvlpubs.nist.gov\/nistpubs\/Legacy\/SP\/nistspecialpublication800-34r1.pdf): NIST defines maximum tolerable downtime and recovery time objective, says the RTO must normally be shorter than the MTD, and says recovery procedures should follow the priorities from the business impact analysis in a logical sequence. It is a US government guide, but the method applies to any organisation.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/check-business-recovery-dependencies\n","scope":"contextual","trigger_keywords":["Check business recovery dependencies","check-business-recovery-dependencies","check business recovery dependencies","If our systems went down, would we be back up within our recovery targets?","If our systems went down, would we be back up within our recovery targets","business recovery dependencies","recovery dependency map","business recovery order"],"is_private":true,"is_active":true,"scripts":[{"name":"check-business-recovery-dependencies-check","description":"Compare a saved JSON answer with a published test. Pass tests\/case-1\/expected.json (or another case) and the path to your answer.","language":"python","filename":"check-business-recovery-dependencies-check.py","content":"from pathlib import Path\nimport runpy\n\nrunpy.run_path(str(Path(__file__).parent \/ 'tests' \/ 'check.py'), run_name='__main__')\n","supporting_files":[{"path":"SKILL.md","content":"---\nname: check-business-recovery-dependencies\ndescription: \"Work out when each business service can be restored after an outage from its prerequisites and restart times, and show which miss their recovery time objectives or cannot be scheduled. Use when testing a business continuity plan, recovery order or disaster recovery runbook.\"\nlicense: CC-BY-4.0\nmetadata:\n  author: Raq.com\n  version: \"2026-11-22\"\n  homepage: https:\/\/skills.raq.com\/skills\/check-business-recovery-dependencies\n---\n\n# Check business recovery dependencies\n\nFind which services will miss their recovery targets because a prerequisite takes longer than the plan allows.\n\n## When to use this skill\n\n- A small business wants to know whether its continuity plan meets its recovery targets.\n- A runbook lists restart steps and someone asks which services will be late and why.\n- Before a recovery exercise, the team wants to find the longest dependency chain to test.\n\n## When not to use it\n\n- Writing a full business continuity plan or preparing for ISO 22301 certification.\n- Running a live cyber incident. Follow the incident response plan and get specialist help.\n- Setting the recovery targets themselves. Those come from a business impact analysis agreed with the service owners.\n\n## What you need\n\n- Service IDs, recovery time objectives and estimated restart durations\n- Prerequisite map, shared resource constraints and starting assumptions\n\n## Ask before you start\n\nIf any of these are missing or unclear, ask before doing the work.\n\n- What disruption are you planning for, and when does the clock start?\n- For each service, what is its recovery target and what must be working before it can restart: systems, people, suppliers, data?\n- Can recovery tasks run at the same time, or do they share the same people or equipment?\n- Which restart times come from a real test or incident, and which are estimates?\n\n## Method\n\n1. Fix the scenario and the clock: hour zero is the interruption, and every target and duration is in hours on that clock. Where a maximum tolerable period of disruption is given, check the recovery time objective is shorter.\n2. Map prerequisites: systems, people, suppliers, premises, credentials and data restores. Distinguish mandatory dependencies from documented alternative routes. A route with unavailable staff, expired credentials or inaccessible recovery material cannot support a promised finish. Flag missing or circular dependencies before scheduling.\n3. Apply the stated resource model. Independent tasks may run together; if staff or equipment are shared, ask for a priority and capacity assumption rather than assuming parallel work.\n4. Schedule each task to start when its last prerequisite is ready and finish after its own restart duration. Where alternatives exist, use the earliest route whose prerequisites and timing are evidenced. A service that depends on an unresolved service is unresolved too.\n5. Compare each finish with its recovery objective on the same clock and report how late each service is. A stated target does not supply missing capacity.\n6. Trace the critical path to each late service: the chain of prerequisites that sets its finish time. That is the chain to shorten or test first.\n7. Label each duration as tested or estimated, and propose evidence for the longest blocking dependency in the next exercise.\n\n## Checks before you deliver\n\n- An objective is a desired service outcome; it does not shorten an upstream restart.\n- Adding all parallel prerequisites overstates the critical path. Ignoring a serial prerequisite understates it.\n- Counting a fallback that relies on an unavailable person, a lost key or an expired credential as a working route.\n- Leaving out suppliers' own restore times, such as an internet or software provider's, makes the plan look faster than it is.\n- Presenting an untested estimate as a proven recovery time.\n\n## How to present the result\n\nLead with which services miss their targets and by how many hours, and which cannot be scheduled. Then give a table: service, prerequisites, start hour, finish hour, target and hours late. Show the critical path to each late service, list unresolved items with what is missing, and end with what to test or shorten first.\n\n## Worked example\n\n**Request:** Which recovery targets will be missed?\n\n**Supplied material:**\n\n```text\nSeparate crews; all times hours after outage. NET takes 2, target 3, no prerequisite. DATA takes 5, target 6, none. DESK takes 2 after NET and DATA, target 6. ORDERS takes 3 after DESK, target 8.\n```\n\n**Answer:** NET and DATA can finish at hours 2 and 5. DESK waits for both, then needs two hours, so it finishes at hour 7 against a six-hour target. ORDERS follows at hour 10 against an eight-hour target. Test the DATA to DESK to ORDERS sequence in the next exercise.\n\n## Structured output for tests\n\nFor an ordinary job, answer in the format above and point back to the supplied evidence. Use this structure only for the test cases published with this skill, or when someone asks for structured JSON.\n\nReturn finish_hours as an object keyed by service ID, late_hours as a map of only missed targets to positive hours and unresolved as a sorted array of services with unresolved prerequisites, cycles or unspecified resource contention. Use null finish_hours on unresolved services and their dependants.\n\n## Sources\n\n- [Department for Work and Pensions \u00b7 Departmental Business Continuity Framework](https:\/\/assets.publishing.service.gov.uk\/media\/5a796dbce5274a2acd18cc21\/dwp-bcframework-part2.pdf): The DWP framework requires each business impact analysis to identify the maximum tolerable period of disruption and the recovery time objective for each critical activity, to record dependencies between activities, IT systems and suppliers, and to set objectives that leave enough time for recovery actions. It also requires plans to be exercised.\n- [NIST SP 800-34 Rev. 1 \u00b7 Contingency Planning Guide for Federal Information Systems](https:\/\/nvlpubs.nist.gov\/nistpubs\/Legacy\/SP\/nistspecialpublication800-34r1.pdf): NIST defines maximum tolerable downtime and recovery time objective, says the RTO must normally be shorter than the MTD, and says recovery procedures should follow the priorities from the business impact analysis in a logical sequence. It is a US government guide, but the method applies to any organisation.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/check-business-recovery-dependencies\n"},{"path":"LICENSE.txt","content":"Original Raq.com instructions and synthetic examples: CC BY 4.0.\nhttps:\/\/creativecommons.org\/licenses\/by\/4.0\/\nAttribution: Raq.com, https:\/\/skills.raq.com\/skills\/check-business-recovery-dependencies\nReferenced third-party materials retain their own terms.\n"},{"path":"examples\/worked-example.md","content":"# Two prerequisites in parallel\n\nWhich recovery targets will be missed?\n\n## Supplied material\n\nSeparate crews; all times hours after outage. NET takes 2, target 3, no prerequisite. DATA takes 5, target 6, none. DESK takes 2 after NET and DATA, target 6. ORDERS takes 3 after DESK, target 8.\n\n## Worked answer\n\nNET and DATA can finish at hours 2 and 5. DESK waits for both, then needs two hours, so it finishes at hour 7 against a six-hour target. ORDERS follows at hour 10 against an eight-hour target. Test the DATA to DESK to ORDERS sequence in the next exercise.\n\n## Reasoning\n\nThe desk waits for the slower prerequisite. Order entry then inherits the delay.\n"},{"path":"tests\/check.py","content":"\"\"\"Check a saved agent answer locally with Python 3 (standard library only).\"\"\"\nimport json\nimport math\nimport sys\nfrom pathlib import Path\n\n\ndef compare(expected, actual, path=\"$\", accepted=None):\n    if isinstance(expected, bool) or isinstance(actual, bool):\n        if expected is not actual:\n            yield path\n    elif isinstance(expected, (int, float)) and isinstance(actual, (int, float)):\n        if not math.isclose(expected, actual, rel_tol=0, abs_tol=1e-8):\n            yield path\n    elif isinstance(expected, dict) and isinstance(actual, dict):\n        for key in sorted(set(expected) | set(actual)):\n            if key not in expected or key not in actual:\n                yield f\"{path}.{key}\"\n            elif not any(\n                not list(compare(option, actual[key]))\n                for option in (accepted or {}).get(key, [])\n            ):\n                yield from compare(expected[key], actual[key], f\"{path}.{key}\")\n    elif isinstance(expected, list) and isinstance(actual, list):\n        if len(expected) != len(actual):\n            yield f\"{path} (length)\"\n        for i, (left, right) in enumerate(zip(expected, actual)):\n            yield from compare(left, right, f\"{path}[{i}]\")\n    elif type(expected) != type(actual) or expected != actual:\n        yield path\n\n\ndef main():\n    if len(sys.argv) != 3:\n        raise SystemExit(\"Usage: python3 check.py expected.json answer.json\")\n    try:\n        expected, actual = [json.loads(Path(p).read_text(encoding=\"utf-8\")) for p in sys.argv[1:]]\n        alternatives = Path(sys.argv[1]).with_name(\"accepted.json\")\n        accepted = json.loads(alternatives.read_text(encoding=\"utf-8\")) if alternatives.is_file() else {}\n    except (ValueError, OSError) as error:\n        raise SystemExit(str(error))\n    differences = list(compare(expected, actual, accepted=accepted))\n    if differences:\n        raise SystemExit(\"Different fields: \" + \", \".join(differences))\n    print(\"Pass\")\n\n\nif __name__ == \"__main__\":\n    main()\n"},{"path":"tests\/README.md","content":"Give your agent SKILL.md and one request.txt in a fresh session. Keep the expected answer aside. Save the reply as answer.json, then run this from the tests folder:\n\n    python3 check.py case-1\/expected.json answer.json\n\nEach case also has an explanation. Where accepted.json exists, the checker accepts the alternatives listed there.\n"},{"path":"tests\/case-1\/request.txt","content":"Which recovery targets will be missed?\nReturn only the JSON specified in SKILL.md for this test.\n\nSeparate crews; all times hours after outage. NET takes 2, target 3, no prerequisite. DATA takes 5, target 6, none. DESK takes 2 after NET and DATA, target 6. ORDERS takes 3 after DESK, target 8.\n"},{"path":"tests\/case-1\/expected.json","content":"{\n    \"finish_hours\": {\n        \"NET\": 2,\n        \"DATA\": 5,\n        \"DESK\": 7,\n        \"ORDERS\": 10\n    },\n    \"late_hours\": {\n        \"DESK\": 1,\n        \"ORDERS\": 2\n    },\n    \"unresolved\": []\n}\n"},{"path":"tests\/case-1\/explanation.txt","content":"The desk waits for the slower prerequisite. Order entry then inherits the delay.\n"},{"path":"tests\/case-2\/request.txt","content":"Can the recovery sequence finish as written?\nReturn only the JSON specified in SKILL.md for this test.\n\nIndependent crews. PAY takes 1 hour after LEDGER, target 4. LEDGER takes 2 hours after PAY, target 5. STATUS takes 1 hour independently, target 1.\n"},{"path":"tests\/case-2\/expected.json","content":"{\n    \"finish_hours\": {\n        \"PAY\": null,\n        \"LEDGER\": null,\n        \"STATUS\": 1\n    },\n    \"late_hours\": {},\n    \"unresolved\": [\n        \"LEDGER\",\n        \"PAY\"\n    ]\n}\n"},{"path":"tests\/case-2\/explanation.txt","content":"No task in the circular pair can start, but the independent status service can.\n"},{"path":"tests\/case-3\/request.txt","content":"Can payroll be recovered by its four-hour target?\nReturn only the JSON specified in SKILL.md for this test.\n\nPAY takes 1 hour after any one of three routes: KEY was lost, ADMIN is unavailable throughout the planning horizon, ENVELOPE contains an expired credential. These are failed recovery options, not services to be timed. No other route or restoration time is documented.\n"},{"path":"tests\/case-3\/expected.json","content":"{\n    \"finish_hours\": {\n        \"PAY\": null\n    },\n    \"late_hours\": {},\n    \"unresolved\": [\n        \"PAY\"\n    ]\n}\n"},{"path":"tests\/case-3\/explanation.txt","content":"No usable route reaches payroll. The four-hour objective cannot establish a finish time.\n"}],"is_active":true,"is_approved":false}]}]}