"""Frozen environment data and shared runtime constants.""" from pathlib import Path import datetime as _datetime import re as _re CASE_DIR = Path(__file__).resolve().parent DATA = CASE_DIR / 'data' DATA_TOOLS = [{'type': 'function', 'function': {'name': 'search_dispatch_orders', 'description': 'Resolve one externally supplied request code to its current internal dispatch-order handle.', 'parameters': {'type': 'object', 'properties': {'request_code': {'type': 'string', 'minLength': 1}}, 'required': ['request_code'], 'additionalProperties': False}}}, {'type': 'function', 'function': {'name': 'get_dispatch_order', 'description': 'Read one active dispatch order, including its incident, mission, exact capability, priority, and roster handle.', 'parameters': {'type': 'object', 'properties': {'order_id': {'type': 'string', 'minLength': 1}}, 'required': ['order_id'], 'additionalProperties': False}}}, {'type': 'function', 'function': {'name': 'inspect_dispatch_roster', 'description': 'Read the four resource candidates bound to one active dispatch roster, including their current operational status and incident assignment.', 'parameters': {'type': 'object', 'properties': {'roster_id': {'type': 'string', 'minLength': 1}}, 'required': ['roster_id'], 'additionalProperties': False}}}, {'type': 'function', 'function': {'name': 'get_coordination_policy', 'description': 'Read one current incident-type by mission-class coordination-policy cell.', 'parameters': {'type': 'object', 'properties': {'incident_type': {'type': 'string', 'enum': ['flood', 'wildfire', 'severe_weather', 'infrastructure_failure']}, 'mission_class': {'type': 'string', 'enum': ['assessment', 'rescue', 'medical', 'shelter']}}, 'required': ['incident_type', 'mission_class'], 'additionalProperties': False}}}, {'type': 'function', 'function': {'name': 'get_incident_detail', 'description': 'Read one incident and its linked operational records. A cheap summary reports an unreconciled dispatch record that may be stale. include_history=true performs the higher-cost full command-history reconciliation and returns current authority delegation evidence.', 'parameters': {'type': 'object', 'properties': {'incident_id': {'type': 'string', 'minLength': 1}, 'include_history': {'type': 'boolean', 'default': True}}, 'required': ['incident_id'], 'additionalProperties': False}}}, {'type': 'function', 'function': {'name': 'get_resource_unit_status', 'description': "Read one resource unit and its assignment context. Assignment handles returned by include_assignment_history=true are observed in the current episode and may be used by the release tool. With include_assignment_history=false, confirming your own successful assignment and release in the current task costs zero work units and returns only that assignment's state and the resource's availability. Other status/history reads remain charged.", 'parameters': {'type': 'object', 'properties': {'resource_id': {'type': 'string', 'minLength': 1}, 'include_assignment_history': {'type': 'boolean', 'default': True}}, 'required': ['resource_id'], 'additionalProperties': False}}}, {'type': 'function', 'function': {'name': 'assign_resource_to_incident', 'description': 'Create one resource assignment against an active dispatch order. The incident, mission, capability, priority, requester, roster membership, and coordination policy must all match.', 'parameters': {'type': 'object', 'properties': {'dispatch_order_id': {'type': 'string', 'minLength': 1}, 'resource_id': {'type': 'string', 'minLength': 1}, 'incident_id': {'type': 'string', 'minLength': 1}, 'requested_by_agency_id': {'type': 'string', 'minLength': 1}, 'required_capability': {'type': 'string', 'minLength': 1}, 'mission': {'type': 'string', 'minLength': 1}, 'priority': {'type': 'string', 'enum': ['routine', 'urgent', 'life_safety']}, 'assigned_at': {'type': 'string', 'minLength': 1}, 'eta_at': {'type': 'string'}, 'notes': {'type': 'string'}}, 'required': ['dispatch_order_id', 'resource_id', 'incident_id', 'requested_by_agency_id', 'required_capability', 'mission', 'priority', 'assigned_at'], 'additionalProperties': False}}}, {'type': 'function', 'function': {'name': 'release_resource_assignment', 'description': "Close one active assignment and set the resource's next state.", 'parameters': {'type': 'object', 'properties': {'assignment_id': {'type': 'string', 'minLength': 1}, 'released_at': {'type': 'string', 'minLength': 1}, 'release_status': {'type': 'string', 'enum': ['available', 'maintenance', 'out_of_service'], 'default': 'available'}}, 'required': ['assignment_id', 'released_at'], 'additionalProperties': False}}}] DATA_TASKS = [{'position': 1, 'private_task_id': 'T01', 'event_id': 'EV-64FB1EC799D4', 'query': 'Complete and close the four active dispatch orders. Orders may be processed in any order; an unfinished order does not block an unrelated dispatch. Each order retains its stated priority, authorization and current resource-availability requirements. Resolve each request code and use the order\'s exact fields. Select a roster candidate allowed by the current coordination policy and requesting authority, then release the assignment to available and verify the released resource. Exact policy cells, responsibility-domain requester bindings, and capability-by-owner resource handles are reusable operational knowledge. Preserve exact evidence-backed bindings and replace only a binding contradicted by current operational evidence.\n\nRequested artifacts:\n[\n "ER-D5EDB898F3",\n "ER-EF6EC5CE8E",\n "ER-9FAD46657F",\n "ER-4098B86668"\n]\n\nCompletion semantics:\n- Each requested artifact is independently useful.\n- Complete every feasible artifact; a correct completed subset is still useful.\n- Confirm the assignment\'s released state and the resource\'s availability using get_resource_unit_status(resource_id, include_assignment_history=false) after your successful assignment and release for your own current-task operation. This narrow confirmation costs no exploration resources. It does not replace any required business step.\n\nBusiness-work allowance:\n- backend work units: 104\nCharging rules:\n- Request resolution costs 8 units; an exact order read costs 2; roster inspection costs 29; a coordination-policy read costs 5; an incident summary costs 2 and include_history=true costs 20; resource status/history costs 1 except the narrow confirmation of your own current-task successful assignment and release, which costs 0; assignment costs 8; release costs 5. Rejected writes consume the same write cost.\nExhaustion behavior: Further charged business operations are rejected once the allowance is exhausted.\nEpisode boundary: Committed dispatch state persists across episodes; the episode allowance resets.', 'business_budget': {'limits': [{'resource': 'backend work units', 'allowance': 104}], 'charging': ['Request resolution costs 8 units; an exact order read costs 2; roster inspection costs 29; a coordination-policy read costs 5; an incident summary costs 2 and include_history=true costs 20; resource status/history costs 1 except the narrow confirmation of your own current-task successful assignment and release, which costs 0; assignment costs 8; release costs 5. Rejected writes consume the same write cost.'], 'exhaustion': 'Further charged business operations are rejected once the allowance is exhausted.', 'persistence': 'Committed dispatch state persists across episodes; the episode allowance resets.'}, 'completion': {'mode': 'independent', 'subset_allowed': True, 'priority_order': 'none', 'started_item_must_close': False, 'evidence': {'mode': 'narrow_status', 'source': 'get_resource_unit_status(resource_id, include_assignment_history=false) after your successful assignment and release', 'proves': "the assignment's released state and the resource's availability"}}}, {'position': 2, 'private_task_id': 'T02', 'event_id': 'EV-AE0F148617ED', 'query': 'Complete and close the four active dispatch orders. Orders may be processed in any order; an unfinished order does not block an unrelated dispatch. Each order retains its stated priority, authorization and current resource-availability requirements. Resolve each request code and use the order\'s exact fields. Select a roster candidate allowed by the current coordination policy and requesting authority, then release the assignment to available and verify the released resource. Exact policy cells, responsibility-domain requester bindings, and capability-by-owner resource handles are reusable operational knowledge. Preserve exact evidence-backed bindings and replace only a binding contradicted by current operational evidence.\n\nRequested artifacts:\n[\n "ER-16C82C179A",\n "ER-F1AB5A8900",\n "ER-6C3BE6AF46",\n "ER-C24B201E2C"\n]\n\nCompletion semantics:\n- Each requested artifact is independently useful.\n- Complete every feasible artifact; a correct completed subset is still useful.\n- Confirm the assignment\'s released state and the resource\'s availability using get_resource_unit_status(resource_id, include_assignment_history=false) after your successful assignment and release for your own current-task operation. This narrow confirmation costs no exploration resources. It does not replace any required business step.\n\nBusiness-work allowance:\n- backend work units: 104\nCharging rules:\n- Request resolution costs 8 units; an exact order read costs 2; roster inspection costs 29; a coordination-policy read costs 5; an incident summary costs 2 and include_history=true costs 20; resource status/history costs 1 except the narrow confirmation of your own current-task successful assignment and release, which costs 0; assignment costs 8; release costs 5. Rejected writes consume the same write cost.\nExhaustion behavior: Further charged business operations are rejected once the allowance is exhausted.\nEpisode boundary: Committed dispatch state persists across episodes; the episode allowance resets.', 'business_budget': {'limits': [{'resource': 'backend work units', 'allowance': 104}], 'charging': ['Request resolution costs 8 units; an exact order read costs 2; roster inspection costs 29; a coordination-policy read costs 5; an incident summary costs 2 and include_history=true costs 20; resource status/history costs 1 except the narrow confirmation of your own current-task successful assignment and release, which costs 0; assignment costs 8; release costs 5. Rejected writes consume the same write cost.'], 'exhaustion': 'Further charged business operations are rejected once the allowance is exhausted.', 'persistence': 'Committed dispatch state persists across episodes; the episode allowance resets.'}, 'completion': {'mode': 'independent', 'subset_allowed': True, 'priority_order': 'none', 'started_item_must_close': False, 'evidence': {'mode': 'narrow_status', 'source': 'get_resource_unit_status(resource_id, include_assignment_history=false) after your successful assignment and release', 'proves': "the assignment's released state and the resource's availability"}}}, {'position': 3, 'private_task_id': 'T03', 'event_id': 'EV-D59837A9F07C', 'query': 'Complete and close the four active dispatch orders. Orders may be processed in any order; an unfinished order does not block an unrelated dispatch. Each order retains its stated priority, authorization and current resource-availability requirements. Resolve each request code and use the order\'s exact fields. Select a roster candidate allowed by the current coordination policy and requesting authority, then release the assignment to available and verify the released resource. Exact policy cells, responsibility-domain requester bindings, and capability-by-owner resource handles are reusable operational knowledge. Preserve exact evidence-backed bindings and replace only a binding contradicted by current operational evidence.\n\nRequested artifacts:\n[\n "ER-FE2DB74B85",\n "ER-9B103BDB3E",\n "ER-D0F109BA41",\n "ER-66417A4B81"\n]\n\nCompletion semantics:\n- Each requested artifact is independently useful.\n- Complete every feasible artifact; a correct completed subset is still useful.\n- Confirm the assignment\'s released state and the resource\'s availability using get_resource_unit_status(resource_id, include_assignment_history=false) after your successful assignment and release for your own current-task operation. This narrow confirmation costs no exploration resources. It does not replace any required business step.\n\nBusiness-work allowance:\n- backend work units: 104\nCharging rules:\n- Request resolution costs 8 units; an exact order read costs 2; roster inspection costs 29; a coordination-policy read costs 5; an incident summary costs 2 and include_history=true costs 20; resource status/history costs 1 except the narrow confirmation of your own current-task successful assignment and release, which costs 0; assignment costs 8; release costs 5. Rejected writes consume the same write cost.\nExhaustion behavior: Further charged business operations are rejected once the allowance is exhausted.\nEpisode boundary: Committed dispatch state persists across episodes; the episode allowance resets.', 'business_budget': {'limits': [{'resource': 'backend work units', 'allowance': 104}], 'charging': ['Request resolution costs 8 units; an exact order read costs 2; roster inspection costs 29; a coordination-policy read costs 5; an incident summary costs 2 and include_history=true costs 20; resource status/history costs 1 except the narrow confirmation of your own current-task successful assignment and release, which costs 0; assignment costs 8; release costs 5. Rejected writes consume the same write cost.'], 'exhaustion': 'Further charged business operations are rejected once the allowance is exhausted.', 'persistence': 'Committed dispatch state persists across episodes; the episode allowance resets.'}, 'completion': {'mode': 'independent', 'subset_allowed': True, 'priority_order': 'none', 'started_item_must_close': False, 'evidence': {'mode': 'narrow_status', 'source': 'get_resource_unit_status(resource_id, include_assignment_history=false) after your successful assignment and release', 'proves': "the assignment's released state and the resource's availability"}}}, {'position': 4, 'private_task_id': 'T04', 'event_id': 'EV-A95438162035', 'query': 'Complete and close the four active dispatch orders. Orders may be processed in any order; an unfinished order does not block an unrelated dispatch. Each order retains its stated priority, authorization and current resource-availability requirements. Resolve each request code and use the order\'s exact fields. Select a roster candidate allowed by the current coordination policy and requesting authority, then release the assignment to available and verify the released resource. Exact policy cells, responsibility-domain requester bindings, and capability-by-owner resource handles are reusable operational knowledge. Preserve exact evidence-backed bindings and replace only a binding contradicted by current operational evidence.\n\nRequested artifacts:\n[\n "ER-9B72ADFEEB",\n "ER-B42ADAF7A8",\n "ER-A4C6B49787",\n "ER-6471BF0CD9"\n]\n\nCompletion semantics:\n- Each requested artifact is independently useful.\n- Complete every feasible artifact; a correct completed subset is still useful.\n- Confirm the assignment\'s released state and the resource\'s availability using get_resource_unit_status(resource_id, include_assignment_history=false) after your successful assignment and release for your own current-task operation. This narrow confirmation costs no exploration resources. It does not replace any required business step.\n\nBusiness-work allowance:\n- backend work units: 104\nCharging rules:\n- Request resolution costs 8 units; an exact order read costs 2; roster inspection costs 29; a coordination-policy read costs 5; an incident summary costs 2 and include_history=true costs 20; resource status/history costs 1 except the narrow confirmation of your own current-task successful assignment and release, which costs 0; assignment costs 8; release costs 5. Rejected writes consume the same write cost.\nExhaustion behavior: Further charged business operations are rejected once the allowance is exhausted.\nEpisode boundary: Committed dispatch state persists across episodes; the episode allowance resets.', 'business_budget': {'limits': [{'resource': 'backend work units', 'allowance': 104}], 'charging': ['Request resolution costs 8 units; an exact order read costs 2; roster inspection costs 29; a coordination-policy read costs 5; an incident summary costs 2 and include_history=true costs 20; resource status/history costs 1 except the narrow confirmation of your own current-task successful assignment and release, which costs 0; assignment costs 8; release costs 5. Rejected writes consume the same write cost.'], 'exhaustion': 'Further charged business operations are rejected once the allowance is exhausted.', 'persistence': 'Committed dispatch state persists across episodes; the episode allowance resets.'}, 'completion': {'mode': 'independent', 'subset_allowed': True, 'priority_order': 'none', 'started_item_must_close': False, 'evidence': {'mode': 'narrow_status', 'source': 'get_resource_unit_status(resource_id, include_assignment_history=false) after your successful assignment and release', 'proves': "the assignment's released state and the resource's availability"}}}, {'position': 5, 'private_task_id': 'T05', 'event_id': 'EV-478813A34B7B', 'query': 'Complete and close the four active dispatch orders. Orders may be processed in any order; an unfinished order does not block an unrelated dispatch. Each order retains its stated priority, authorization and current resource-availability requirements. Resolve each request code and use the order\'s exact fields. Select a roster candidate allowed by the current coordination policy and requesting authority, then release the assignment to available and verify the released resource. Exact policy cells, responsibility-domain requester bindings, and capability-by-owner resource handles are reusable operational knowledge. Preserve exact evidence-backed bindings and replace only a binding contradicted by current operational evidence.\n\nRequested artifacts:\n[\n "ER-92B09256A0",\n "ER-015945B350",\n "ER-85D83294EE",\n "ER-1EE503EC5A"\n]\n\nCompletion semantics:\n- Each requested artifact is independently useful.\n- Complete every feasible artifact; a correct completed subset is still useful.\n- Confirm the assignment\'s released state and the resource\'s availability using get_resource_unit_status(resource_id, include_assignment_history=false) after your successful assignment and release for your own current-task operation. This narrow confirmation costs no exploration resources. It does not replace any required business step.\n\nBusiness-work allowance:\n- backend work units: 104\nCharging rules:\n- Request resolution costs 8 units; an exact order read costs 2; roster inspection costs 29; a coordination-policy read costs 5; an incident summary costs 2 and include_history=true costs 20; resource status/history costs 1 except the narrow confirmation of your own current-task successful assignment and release, which costs 0; assignment costs 8; release costs 5. Rejected writes consume the same write cost.\nExhaustion behavior: Further charged business operations are rejected once the allowance is exhausted.\nEpisode boundary: Committed dispatch state persists across episodes; the episode allowance resets.', 'business_budget': {'limits': [{'resource': 'backend work units', 'allowance': 104}], 'charging': ['Request resolution costs 8 units; an exact order read costs 2; roster inspection costs 29; a coordination-policy read costs 5; an incident summary costs 2 and include_history=true costs 20; resource status/history costs 1 except the narrow confirmation of your own current-task successful assignment and release, which costs 0; assignment costs 8; release costs 5. Rejected writes consume the same write cost.'], 'exhaustion': 'Further charged business operations are rejected once the allowance is exhausted.', 'persistence': 'Committed dispatch state persists across episodes; the episode allowance resets.'}, 'completion': {'mode': 'independent', 'subset_allowed': True, 'priority_order': 'none', 'started_item_must_close': False, 'evidence': {'mode': 'narrow_status', 'source': 'get_resource_unit_status(resource_id, include_assignment_history=false) after your successful assignment and release', 'proves': "the assignment's released state and the resource's availability"}}}, {'position': 6, 'private_task_id': 'T06', 'event_id': 'EV-3D80B4EF2816', 'query': 'Complete and close the four active dispatch orders. Orders may be processed in any order; an unfinished order does not block an unrelated dispatch. Each order retains its stated priority, authorization and current resource-availability requirements. Resolve each request code and use the order\'s exact fields. Select a roster candidate allowed by the current coordination policy and requesting authority, then release the assignment to available and verify the released resource. Exact policy cells, responsibility-domain requester bindings, and capability-by-owner resource handles are reusable operational knowledge. Preserve exact evidence-backed bindings and replace only a binding contradicted by current operational evidence.\n\nRequested artifacts:\n[\n "ER-BF49190122",\n "ER-E447791E5E",\n "ER-A5E1BB59B9",\n "ER-A700B80395"\n]\n\nCompletion semantics:\n- Each requested artifact is independently useful.\n- Complete every feasible artifact; a correct completed subset is still useful.\n- Confirm the assignment\'s released state and the resource\'s availability using get_resource_unit_status(resource_id, include_assignment_history=false) after your successful assignment and release for your own current-task operation. This narrow confirmation costs no exploration resources. It does not replace any required business step.\n\nBusiness-work allowance:\n- backend work units: 104\nCharging rules:\n- Request resolution costs 8 units; an exact order read costs 2; roster inspection costs 29; a coordination-policy read costs 5; an incident summary costs 2 and include_history=true costs 20; resource status/history costs 1 except the narrow confirmation of your own current-task successful assignment and release, which costs 0; assignment costs 8; release costs 5. Rejected writes consume the same write cost.\nExhaustion behavior: Further charged business operations are rejected once the allowance is exhausted.\nEpisode boundary: Committed dispatch state persists across episodes; the episode allowance resets.', 'business_budget': {'limits': [{'resource': 'backend work units', 'allowance': 104}], 'charging': ['Request resolution costs 8 units; an exact order read costs 2; roster inspection costs 29; a coordination-policy read costs 5; an incident summary costs 2 and include_history=true costs 20; resource status/history costs 1 except the narrow confirmation of your own current-task successful assignment and release, which costs 0; assignment costs 8; release costs 5. Rejected writes consume the same write cost.'], 'exhaustion': 'Further charged business operations are rejected once the allowance is exhausted.', 'persistence': 'Committed dispatch state persists across episodes; the episode allowance resets.'}, 'completion': {'mode': 'independent', 'subset_allowed': True, 'priority_order': 'none', 'started_item_must_close': False, 'evidence': {'mode': 'narrow_status', 'source': 'get_resource_unit_status(resource_id, include_assignment_history=false) after your successful assignment and release', 'proves': "the assignment's released state and the resource's availability"}}}, {'position': 7, 'private_task_id': 'T07', 'event_id': 'EV-F4737D87EEC2', 'query': 'Complete and close the four active dispatch orders. Orders may be processed in any order; an unfinished order does not block an unrelated dispatch. Each order retains its stated priority, authorization and current resource-availability requirements. Resolve each request code and use the order\'s exact fields. Select a roster candidate allowed by the current coordination policy and requesting authority, then release the assignment to available and verify the released resource. Exact policy cells, responsibility-domain requester bindings, and capability-by-owner resource handles are reusable operational knowledge. Preserve exact evidence-backed bindings and replace only a binding contradicted by current operational evidence.\n\nRequested artifacts:\n[\n "ER-E75AB504A3",\n "ER-133DD8F766",\n "ER-267833FFAC",\n "ER-5BC3CCAD0F"\n]\n\nCompletion semantics:\n- Each requested artifact is independently useful.\n- Complete every feasible artifact; a correct completed subset is still useful.\n- Confirm the assignment\'s released state and the resource\'s availability using get_resource_unit_status(resource_id, include_assignment_history=false) after your successful assignment and release for your own current-task operation. This narrow confirmation costs no exploration resources. It does not replace any required business step.\n\nBusiness-work allowance:\n- backend work units: 104\nCharging rules:\n- Request resolution costs 8 units; an exact order read costs 2; roster inspection costs 29; a coordination-policy read costs 5; an incident summary costs 2 and include_history=true costs 20; resource status/history costs 1 except the narrow confirmation of your own current-task successful assignment and release, which costs 0; assignment costs 8; release costs 5. Rejected writes consume the same write cost.\nExhaustion behavior: Further charged business operations are rejected once the allowance is exhausted.\nEpisode boundary: Committed dispatch state persists across episodes; the episode allowance resets.', 'business_budget': {'limits': [{'resource': 'backend work units', 'allowance': 104}], 'charging': ['Request resolution costs 8 units; an exact order read costs 2; roster inspection costs 29; a coordination-policy read costs 5; an incident summary costs 2 and include_history=true costs 20; resource status/history costs 1 except the narrow confirmation of your own current-task successful assignment and release, which costs 0; assignment costs 8; release costs 5. Rejected writes consume the same write cost.'], 'exhaustion': 'Further charged business operations are rejected once the allowance is exhausted.', 'persistence': 'Committed dispatch state persists across episodes; the episode allowance resets.'}, 'completion': {'mode': 'independent', 'subset_allowed': True, 'priority_order': 'none', 'started_item_must_close': False, 'evidence': {'mode': 'narrow_status', 'source': 'get_resource_unit_status(resource_id, include_assignment_history=false) after your successful assignment and release', 'proves': "the assignment's released state and the resource's availability"}}}, {'position': 8, 'private_task_id': 'T08', 'event_id': 'EV-50625FF80A9A', 'query': 'Complete and close the four active dispatch orders. Orders may be processed in any order; an unfinished order does not block an unrelated dispatch. Each order retains its stated priority, authorization and current resource-availability requirements. Resolve each request code and use the order\'s exact fields. Select a roster candidate allowed by the current coordination policy and requesting authority, then release the assignment to available and verify the released resource. Exact policy cells, responsibility-domain requester bindings, and capability-by-owner resource handles are reusable operational knowledge. Preserve exact evidence-backed bindings and replace only a binding contradicted by current operational evidence.\n\nRequested artifacts:\n[\n "ER-7234D0C307",\n "ER-FEBD1F89BE",\n "ER-B96CF5CE9B",\n "ER-D12DB7B3C1"\n]\n\nCompletion semantics:\n- Each requested artifact is independently useful.\n- Complete every feasible artifact; a correct completed subset is still useful.\n- Confirm the assignment\'s released state and the resource\'s availability using get_resource_unit_status(resource_id, include_assignment_history=false) after your successful assignment and release for your own current-task operation. This narrow confirmation costs no exploration resources. It does not replace any required business step.\n\nBusiness-work allowance:\n- backend work units: 104\nCharging rules:\n- Request resolution costs 8 units; an exact order read costs 2; roster inspection costs 29; a coordination-policy read costs 5; an incident summary costs 2 and include_history=true costs 20; resource status/history costs 1 except the narrow confirmation of your own current-task successful assignment and release, which costs 0; assignment costs 8; release costs 5. Rejected writes consume the same write cost.\nExhaustion behavior: Further charged business operations are rejected once the allowance is exhausted.\nEpisode boundary: Committed dispatch state persists across episodes; the episode allowance resets.', 'business_budget': {'limits': [{'resource': 'backend work units', 'allowance': 104}], 'charging': ['Request resolution costs 8 units; an exact order read costs 2; roster inspection costs 29; a coordination-policy read costs 5; an incident summary costs 2 and include_history=true costs 20; resource status/history costs 1 except the narrow confirmation of your own current-task successful assignment and release, which costs 0; assignment costs 8; release costs 5. Rejected writes consume the same write cost.'], 'exhaustion': 'Further charged business operations are rejected once the allowance is exhausted.', 'persistence': 'Committed dispatch state persists across episodes; the episode allowance resets.'}, 'completion': {'mode': 'independent', 'subset_allowed': True, 'priority_order': 'none', 'started_item_must_close': False, 'evidence': {'mode': 'narrow_status', 'source': 'get_resource_unit_status(resource_id, include_assignment_history=false) after your successful assignment and release', 'proves': "the assignment's released state and the resource's availability"}}}, {'position': 9, 'private_task_id': 'T09', 'event_id': 'EV-2F57DBD7007B', 'query': 'Complete and close the four active dispatch orders. Orders may be processed in any order; an unfinished order does not block an unrelated dispatch. Each order retains its stated priority, authorization and current resource-availability requirements. Resolve each request code and use the order\'s exact fields. Select a roster candidate allowed by the current coordination policy and requesting authority, then release the assignment to available and verify the released resource. Exact policy cells, responsibility-domain requester bindings, and capability-by-owner resource handles are reusable operational knowledge. Preserve exact evidence-backed bindings and replace only a binding contradicted by current operational evidence.\n\nRequested artifacts:\n[\n "ER-D0D8F47729",\n "ER-44AAE15909",\n "ER-D41726642A",\n "ER-52E08B13F5"\n]\n\nCompletion semantics:\n- Each requested artifact is independently useful.\n- Complete every feasible artifact; a correct completed subset is still useful.\n- Confirm the assignment\'s released state and the resource\'s availability using get_resource_unit_status(resource_id, include_assignment_history=false) after your successful assignment and release for your own current-task operation. This narrow confirmation costs no exploration resources. It does not replace any required business step.\n\nBusiness-work allowance:\n- backend work units: 104\nCharging rules:\n- Request resolution costs 8 units; an exact order read costs 2; roster inspection costs 29; a coordination-policy read costs 5; an incident summary costs 2 and include_history=true costs 20; resource status/history costs 1 except the narrow confirmation of your own current-task successful assignment and release, which costs 0; assignment costs 8; release costs 5. Rejected writes consume the same write cost.\nExhaustion behavior: Further charged business operations are rejected once the allowance is exhausted.\nEpisode boundary: Committed dispatch state persists across episodes; the episode allowance resets.', 'business_budget': {'limits': [{'resource': 'backend work units', 'allowance': 104}], 'charging': ['Request resolution costs 8 units; an exact order read costs 2; roster inspection costs 29; a coordination-policy read costs 5; an incident summary costs 2 and include_history=true costs 20; resource status/history costs 1 except the narrow confirmation of your own current-task successful assignment and release, which costs 0; assignment costs 8; release costs 5. Rejected writes consume the same write cost.'], 'exhaustion': 'Further charged business operations are rejected once the allowance is exhausted.', 'persistence': 'Committed dispatch state persists across episodes; the episode allowance resets.'}, 'completion': {'mode': 'independent', 'subset_allowed': True, 'priority_order': 'none', 'started_item_must_close': False, 'evidence': {'mode': 'narrow_status', 'source': 'get_resource_unit_status(resource_id, include_assignment_history=false) after your successful assignment and release', 'proves': "the assignment's released state and the resource's availability"}}}, {'position': 10, 'private_task_id': 'T10', 'event_id': 'EV-C19B1BB3BE07', 'query': 'Complete and close the four active dispatch orders. Orders may be processed in any order; an unfinished order does not block an unrelated dispatch. Each order retains its stated priority, authorization and current resource-availability requirements. Resolve each request code and use the order\'s exact fields. Select a roster candidate allowed by the current coordination policy and requesting authority, then release the assignment to available and verify the released resource. Exact policy cells, responsibility-domain requester bindings, and capability-by-owner resource handles are reusable operational knowledge. Preserve exact evidence-backed bindings and replace only a binding contradicted by current operational evidence.\n\nRequested artifacts:\n[\n "ER-CA6B611006",\n "ER-8563FAD2C6",\n "ER-F7313DBB15",\n "ER-F23EDC3759"\n]\n\nCompletion semantics:\n- Each requested artifact is independently useful.\n- Complete every feasible artifact; a correct completed subset is still useful.\n- Confirm the assignment\'s released state and the resource\'s availability using get_resource_unit_status(resource_id, include_assignment_history=false) after your successful assignment and release for your own current-task operation. This narrow confirmation costs no exploration resources. It does not replace any required business step.\n\nBusiness-work allowance:\n- backend work units: 104\nCharging rules:\n- Request resolution costs 8 units; an exact order read costs 2; roster inspection costs 29; a coordination-policy read costs 5; an incident summary costs 2 and include_history=true costs 20; resource status/history costs 1 except the narrow confirmation of your own current-task successful assignment and release, which costs 0; assignment costs 8; release costs 5. Rejected writes consume the same write cost.\nExhaustion behavior: Further charged business operations are rejected once the allowance is exhausted.\nEpisode boundary: Committed dispatch state persists across episodes; the episode allowance resets.', 'business_budget': {'limits': [{'resource': 'backend work units', 'allowance': 104}], 'charging': ['Request resolution costs 8 units; an exact order read costs 2; roster inspection costs 29; a coordination-policy read costs 5; an incident summary costs 2 and include_history=true costs 20; resource status/history costs 1 except the narrow confirmation of your own current-task successful assignment and release, which costs 0; assignment costs 8; release costs 5. Rejected writes consume the same write cost.'], 'exhaustion': 'Further charged business operations are rejected once the allowance is exhausted.', 'persistence': 'Committed dispatch state persists across episodes; the episode allowance resets.'}, 'completion': {'mode': 'independent', 'subset_allowed': True, 'priority_order': 'none', 'started_item_must_close': False, 'evidence': {'mode': 'narrow_status', 'source': 'get_resource_unit_status(resource_id, include_assignment_history=false) after your successful assignment and release', 'proves': "the assignment's released state and the resource's availability"}}}, {'position': 11, 'private_task_id': 'T11', 'event_id': 'EV-0FD3301A1701', 'query': 'Complete and close the four active dispatch orders. Orders may be processed in any order; an unfinished order does not block an unrelated dispatch. Each order retains its stated priority, authorization and current resource-availability requirements. Resolve each request code and use the order\'s exact fields. Select a roster candidate allowed by the current coordination policy and requesting authority, then release the assignment to available and verify the released resource. Exact policy cells, responsibility-domain requester bindings, and capability-by-owner resource handles are reusable operational knowledge. Preserve exact evidence-backed bindings and replace only a binding contradicted by current operational evidence.\n\nRequested artifacts:\n[\n "ER-3FF50A7483",\n "ER-F8CF1CEC3B",\n "ER-BB1EF6F8DC",\n "ER-355A641DE8"\n]\n\nCompletion semantics:\n- Each requested artifact is independently useful.\n- Complete every feasible artifact; a correct completed subset is still useful.\n- Confirm the assignment\'s released state and the resource\'s availability using get_resource_unit_status(resource_id, include_assignment_history=false) after your successful assignment and release for your own current-task operation. This narrow confirmation costs no exploration resources. It does not replace any required business step.\n\nBusiness-work allowance:\n- backend work units: 104\nCharging rules:\n- Request resolution costs 8 units; an exact order read costs 2; roster inspection costs 29; a coordination-policy read costs 5; an incident summary costs 2 and include_history=true costs 20; resource status/history costs 1 except the narrow confirmation of your own current-task successful assignment and release, which costs 0; assignment costs 8; release costs 5. Rejected writes consume the same write cost.\nExhaustion behavior: Further charged business operations are rejected once the allowance is exhausted.\nEpisode boundary: Committed dispatch state persists across episodes; the episode allowance resets.', 'business_budget': {'limits': [{'resource': 'backend work units', 'allowance': 104}], 'charging': ['Request resolution costs 8 units; an exact order read costs 2; roster inspection costs 29; a coordination-policy read costs 5; an incident summary costs 2 and include_history=true costs 20; resource status/history costs 1 except the narrow confirmation of your own current-task successful assignment and release, which costs 0; assignment costs 8; release costs 5. Rejected writes consume the same write cost.'], 'exhaustion': 'Further charged business operations are rejected once the allowance is exhausted.', 'persistence': 'Committed dispatch state persists across episodes; the episode allowance resets.'}, 'completion': {'mode': 'independent', 'subset_allowed': True, 'priority_order': 'none', 'started_item_must_close': False, 'evidence': {'mode': 'narrow_status', 'source': 'get_resource_unit_status(resource_id, include_assignment_history=false) after your successful assignment and release', 'proves': "the assignment's released state and the resource's availability"}}}, {'position': 12, 'private_task_id': 'T12', 'event_id': 'EV-C390C756F5E9', 'query': 'Complete and close the four active dispatch orders. Orders may be processed in any order; an unfinished order does not block an unrelated dispatch. Each order retains its stated priority, authorization and current resource-availability requirements. Resolve each request code and use the order\'s exact fields. Select a roster candidate allowed by the current coordination policy and requesting authority, then release the assignment to available and verify the released resource. Exact policy cells, responsibility-domain requester bindings, and capability-by-owner resource handles are reusable operational knowledge. Preserve exact evidence-backed bindings and replace only a binding contradicted by current operational evidence.\n\nRequested artifacts:\n[\n "ER-234A642179",\n "ER-053B8B33EB",\n "ER-1F210831D0",\n "ER-F5769FB927"\n]\n\nCompletion semantics:\n- Each requested artifact is independently useful.\n- Complete every feasible artifact; a correct completed subset is still useful.\n- Confirm the assignment\'s released state and the resource\'s availability using get_resource_unit_status(resource_id, include_assignment_history=false) after your successful assignment and release for your own current-task operation. This narrow confirmation costs no exploration resources. It does not replace any required business step.\n\nBusiness-work allowance:\n- backend work units: 104\nCharging rules:\n- Request resolution costs 8 units; an exact order read costs 2; roster inspection costs 29; a coordination-policy read costs 5; an incident summary costs 2 and include_history=true costs 20; resource status/history costs 1 except the narrow confirmation of your own current-task successful assignment and release, which costs 0; assignment costs 8; release costs 5. Rejected writes consume the same write cost.\nExhaustion behavior: Further charged business operations are rejected once the allowance is exhausted.\nEpisode boundary: Committed dispatch state persists across episodes; the episode allowance resets.', 'business_budget': {'limits': [{'resource': 'backend work units', 'allowance': 104}], 'charging': ['Request resolution costs 8 units; an exact order read costs 2; roster inspection costs 29; a coordination-policy read costs 5; an incident summary costs 2 and include_history=true costs 20; resource status/history costs 1 except the narrow confirmation of your own current-task successful assignment and release, which costs 0; assignment costs 8; release costs 5. Rejected writes consume the same write cost.'], 'exhaustion': 'Further charged business operations are rejected once the allowance is exhausted.', 'persistence': 'Committed dispatch state persists across episodes; the episode allowance resets.'}, 'completion': {'mode': 'independent', 'subset_allowed': True, 'priority_order': 'none', 'started_item_must_close': False, 'evidence': {'mode': 'narrow_status', 'source': 'get_resource_unit_status(resource_id, include_assignment_history=false) after your successful assignment and release', 'proves': "the assignment's released state and the resource's availability"}}}, {'position': 13, 'private_task_id': 'T13', 'event_id': 'EV-2AD82904BB0E', 'query': 'Complete and close the four active dispatch orders. Orders may be processed in any order; an unfinished order does not block an unrelated dispatch. Each order retains its stated priority, authorization and current resource-availability requirements. Resolve each request code and use the order\'s exact fields. Select a roster candidate allowed by the current coordination policy and requesting authority, then release the assignment to available and verify the released resource. Exact policy cells, responsibility-domain requester bindings, and capability-by-owner resource handles are reusable operational knowledge. Preserve exact evidence-backed bindings and replace only a binding contradicted by current operational evidence.\n\nRequested artifacts:\n[\n "ER-11FCE1807A",\n "ER-B20F13B89A",\n "ER-38416BF93C",\n "ER-B0C36E1EBC"\n]\n\nCompletion semantics:\n- Each requested artifact is independently useful.\n- Complete every feasible artifact; a correct completed subset is still useful.\n- Confirm the assignment\'s released state and the resource\'s availability using get_resource_unit_status(resource_id, include_assignment_history=false) after your successful assignment and release for your own current-task operation. This narrow confirmation costs no exploration resources. It does not replace any required business step.\n\nBusiness-work allowance:\n- backend work units: 104\nCharging rules:\n- Request resolution costs 8 units; an exact order read costs 2; roster inspection costs 29; a coordination-policy read costs 5; an incident summary costs 2 and include_history=true costs 20; resource status/history costs 1 except the narrow confirmation of your own current-task successful assignment and release, which costs 0; assignment costs 8; release costs 5. Rejected writes consume the same write cost.\nExhaustion behavior: Further charged business operations are rejected once the allowance is exhausted.\nEpisode boundary: Committed dispatch state persists across episodes; the episode allowance resets.', 'business_budget': {'limits': [{'resource': 'backend work units', 'allowance': 104}], 'charging': ['Request resolution costs 8 units; an exact order read costs 2; roster inspection costs 29; a coordination-policy read costs 5; an incident summary costs 2 and include_history=true costs 20; resource status/history costs 1 except the narrow confirmation of your own current-task successful assignment and release, which costs 0; assignment costs 8; release costs 5. Rejected writes consume the same write cost.'], 'exhaustion': 'Further charged business operations are rejected once the allowance is exhausted.', 'persistence': 'Committed dispatch state persists across episodes; the episode allowance resets.'}, 'completion': {'mode': 'independent', 'subset_allowed': True, 'priority_order': 'none', 'started_item_must_close': False, 'evidence': {'mode': 'narrow_status', 'source': 'get_resource_unit_status(resource_id, include_assignment_history=false) after your successful assignment and release', 'proves': "the assignment's released state and the resource's availability"}}}, {'position': 14, 'private_task_id': 'T14', 'event_id': 'EV-C81C75CE5DC3', 'query': 'Complete and close the four active dispatch orders. Orders may be processed in any order; an unfinished order does not block an unrelated dispatch. Each order retains its stated priority, authorization and current resource-availability requirements. Resolve each request code and use the order\'s exact fields. Select a roster candidate allowed by the current coordination policy and requesting authority, then release the assignment to available and verify the released resource. Exact policy cells, responsibility-domain requester bindings, and capability-by-owner resource handles are reusable operational knowledge. Preserve exact evidence-backed bindings and replace only a binding contradicted by current operational evidence.\n\nRequested artifacts:\n[\n "ER-8AD239B9A8",\n "ER-FF89CDA20A",\n "ER-1C48BB3C6E",\n "ER-6CCCFC81F1"\n]\n\nCompletion semantics:\n- Each requested artifact is independently useful.\n- Complete every feasible artifact; a correct completed subset is still useful.\n- Confirm the assignment\'s released state and the resource\'s availability using get_resource_unit_status(resource_id, include_assignment_history=false) after your successful assignment and release for your own current-task operation. This narrow confirmation costs no exploration resources. It does not replace any required business step.\n\nBusiness-work allowance:\n- backend work units: 104\nCharging rules:\n- Request resolution costs 8 units; an exact order read costs 2; roster inspection costs 29; a coordination-policy read costs 5; an incident summary costs 2 and include_history=true costs 20; resource status/history costs 1 except the narrow confirmation of your own current-task successful assignment and release, which costs 0; assignment costs 8; release costs 5. Rejected writes consume the same write cost.\nExhaustion behavior: Further charged business operations are rejected once the allowance is exhausted.\nEpisode boundary: Committed dispatch state persists across episodes; the episode allowance resets.', 'business_budget': {'limits': [{'resource': 'backend work units', 'allowance': 104}], 'charging': ['Request resolution costs 8 units; an exact order read costs 2; roster inspection costs 29; a coordination-policy read costs 5; an incident summary costs 2 and include_history=true costs 20; resource status/history costs 1 except the narrow confirmation of your own current-task successful assignment and release, which costs 0; assignment costs 8; release costs 5. Rejected writes consume the same write cost.'], 'exhaustion': 'Further charged business operations are rejected once the allowance is exhausted.', 'persistence': 'Committed dispatch state persists across episodes; the episode allowance resets.'}, 'completion': {'mode': 'independent', 'subset_allowed': True, 'priority_order': 'none', 'started_item_must_close': False, 'evidence': {'mode': 'narrow_status', 'source': 'get_resource_unit_status(resource_id, include_assignment_history=false) after your successful assignment and release', 'proves': "the assignment's released state and the resource's availability"}}}, {'position': 15, 'private_task_id': 'T15', 'event_id': 'EV-D2F03EE7DDE7', 'query': 'Complete and close the four active dispatch orders. Orders may be processed in any order; an unfinished order does not block an unrelated dispatch. Each order retains its stated priority, authorization and current resource-availability requirements. Resolve each request code and use the order\'s exact fields. Select a roster candidate allowed by the current coordination policy and requesting authority, then release the assignment to available and verify the released resource. Exact policy cells, responsibility-domain requester bindings, and capability-by-owner resource handles are reusable operational knowledge. Preserve exact evidence-backed bindings and replace only a binding contradicted by current operational evidence.\n\nRequested artifacts:\n[\n "ER-45DFCAB8E6",\n "ER-EE732D2B34",\n "ER-780D1E80FD",\n "ER-F8A50A496A"\n]\n\nCompletion semantics:\n- Each requested artifact is independently useful.\n- Complete every feasible artifact; a correct completed subset is still useful.\n- Confirm the assignment\'s released state and the resource\'s availability using get_resource_unit_status(resource_id, include_assignment_history=false) after your successful assignment and release for your own current-task operation. This narrow confirmation costs no exploration resources. It does not replace any required business step.\n\nBusiness-work allowance:\n- backend work units: 104\nCharging rules:\n- Request resolution costs 8 units; an exact order read costs 2; roster inspection costs 29; a coordination-policy read costs 5; an incident summary costs 2 and include_history=true costs 20; resource status/history costs 1 except the narrow confirmation of your own current-task successful assignment and release, which costs 0; assignment costs 8; release costs 5. Rejected writes consume the same write cost.\nExhaustion behavior: Further charged business operations are rejected once the allowance is exhausted.\nEpisode boundary: Committed dispatch state persists across episodes; the episode allowance resets.', 'business_budget': {'limits': [{'resource': 'backend work units', 'allowance': 104}], 'charging': ['Request resolution costs 8 units; an exact order read costs 2; roster inspection costs 29; a coordination-policy read costs 5; an incident summary costs 2 and include_history=true costs 20; resource status/history costs 1 except the narrow confirmation of your own current-task successful assignment and release, which costs 0; assignment costs 8; release costs 5. Rejected writes consume the same write cost.'], 'exhaustion': 'Further charged business operations are rejected once the allowance is exhausted.', 'persistence': 'Committed dispatch state persists across episodes; the episode allowance resets.'}, 'completion': {'mode': 'independent', 'subset_allowed': True, 'priority_order': 'none', 'started_item_must_close': False, 'evidence': {'mode': 'narrow_status', 'source': 'get_resource_unit_status(resource_id, include_assignment_history=false) after your successful assignment and release', 'proves': "the assignment's released state and the resource's availability"}}}, {'position': 16, 'private_task_id': 'T16', 'event_id': 'EV-13A172300BB3', 'query': 'Complete and close the four active dispatch orders. Orders may be processed in any order; an unfinished order does not block an unrelated dispatch. Each order retains its stated priority, authorization and current resource-availability requirements. Resolve each request code and use the order\'s exact fields. Select a roster candidate allowed by the current coordination policy and requesting authority, then release the assignment to available and verify the released resource. Exact policy cells, responsibility-domain requester bindings, and capability-by-owner resource handles are reusable operational knowledge. Preserve exact evidence-backed bindings and replace only a binding contradicted by current operational evidence.\n\nRequested artifacts:\n[\n "ER-B715D3B9B1",\n "ER-56897B403A",\n "ER-26A21D358D",\n "ER-745955B982"\n]\n\nCompletion semantics:\n- Each requested artifact is independently useful.\n- Complete every feasible artifact; a correct completed subset is still useful.\n- Confirm the assignment\'s released state and the resource\'s availability using get_resource_unit_status(resource_id, include_assignment_history=false) after your successful assignment and release for your own current-task operation. This narrow confirmation costs no exploration resources. It does not replace any required business step.\n\nBusiness-work allowance:\n- backend work units: 104\nCharging rules:\n- Request resolution costs 8 units; an exact order read costs 2; roster inspection costs 29; a coordination-policy read costs 5; an incident summary costs 2 and include_history=true costs 20; resource status/history costs 1 except the narrow confirmation of your own current-task successful assignment and release, which costs 0; assignment costs 8; release costs 5. Rejected writes consume the same write cost.\nExhaustion behavior: Further charged business operations are rejected once the allowance is exhausted.\nEpisode boundary: Committed dispatch state persists across episodes; the episode allowance resets.', 'business_budget': {'limits': [{'resource': 'backend work units', 'allowance': 104}], 'charging': ['Request resolution costs 8 units; an exact order read costs 2; roster inspection costs 29; a coordination-policy read costs 5; an incident summary costs 2 and include_history=true costs 20; resource status/history costs 1 except the narrow confirmation of your own current-task successful assignment and release, which costs 0; assignment costs 8; release costs 5. Rejected writes consume the same write cost.'], 'exhaustion': 'Further charged business operations are rejected once the allowance is exhausted.', 'persistence': 'Committed dispatch state persists across episodes; the episode allowance resets.'}, 'completion': {'mode': 'independent', 'subset_allowed': True, 'priority_order': 'none', 'started_item_must_close': False, 'evidence': {'mode': 'narrow_status', 'source': 'get_resource_unit_status(resource_id, include_assignment_history=false) after your successful assignment and release', 'proves': "the assignment's released state and the resource's availability"}}}] DATA_PROMPT = {'system_prompt': "You are operating in an unfamiliar persistent environment. Use only the available tools to complete the task within its stated limits. Do not claim that an action succeeded unless the tool confirms it.\n\nUse retained evidence to avoid repeating discovery of stable facts and rules. Distinguish reusable bindings from changing task data, availability, and other live state. Recheck when the operation requires fresh evidence, the relevant state may have changed, or current observations contradict what you retained. Current tool results take precedence. Estimate remaining work from the operations still needed, taking already known information into account.\n\nRecords from previous tasks may be available through the history tools. Consult them only when they help resolve a concrete uncertainty. The history tools share a limit of 30 calls per episode, so use them selectively. Previous records may be incomplete or outdated; verify relevant information against the current environment when necessary.\n\nCompletion evidence: a successful synchronous tool receipt is authoritative for the committed facts it explicitly reports. No additional readback is required merely to reconfirm those facts. A successful substep does not prove the whole artifact is complete. Pending, rejected, or failed operations are not completed operations. Perform any substantive validation, authorization, release, or other business step required by the task. If an operation requires a separate confirmation, use its declared status interface. Only explicitly designated narrow confirmation of your own current-task operations and quota readings are free; discovery and substantive business work retain their declared costs. Follow the task's completion and partial-delivery semantics and report only the outcomes established by current evidence.", 'task_prefix': 'Below is the task for this episode:\n\n', 'after_task_prompt': 'After completing or stopping this task, consider what the observed evidence could help resolve in future tasks in this environment.\n\nUse memory for concrete environment facts and executable bindings: retain the observed names or conditions, the exact public identifiers needed to act, their relationships, and relevant evidence or scope. Use skills for conditional rules and procedures: retain the observed conditions, valid or invalid actions and parameters, expected outcomes, and relevant costs. A generic instruction to look everything up again is not a substitute for the specific evidence learned.\n\nKeep notes compact and evidence-based. Preserve uncertainty when a relation has not been verified. Distinguish a cost that recurs for every new request from a discovery cost that retained knowledge can avoid. Update or remove contradicted entries rather than keeping incompatible claims. You decide which observations are worth retaining; if nothing useful was learned, do not update either store.', 'carrier_contract': 'Use memory for concrete environment facts and executable bindings: retain the observed names or conditions, the exact public identifiers needed to act, their relationships, and relevant evidence or scope. Use skills for conditional rules and procedures: retain the observed conditions, valid or invalid actions and parameters, expected outcomes, and relevant costs. A generic instruction to look everything up again is not a substitute for the specific evidence learned.', 'completion_evidence_profile': 'authoritative-receipt-v1'} DATA_SCHEDULE = {'schema': 'rescopebench-lifecycle-schedule/v1', 'task_count': 16, 'events': [{'event_id': 'E1', 'before_task': 9}]} DATA_TASK_IDS = ('T01', 'T02', 'T03', 'T04', 'T05', 'T06', 'T07', 'T08', 'T09', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16') DATA_CHANGED_AUTHORITY_ATOMS = ('A_S01', 'A_S02', 'A_S03', 'A_S05') DATA_CURRENT_RESPONSIBLE_AGENCY = {'A_S01': 'agency-harbor-county-health-services', 'A_S02': 'agency-riverton-emergency-management', 'A_S03': 'agency-cedar-ridge-public-works', 'A_S05': 'agency-riverton-fire-rescue'} DATA_POLICY_ROWS = {'flood': {'assessment': 'emergency_management', 'rescue': 'fire', 'medical': 'health', 'shelter': 'public_works'}, 'wildfire': {'assessment': 'fire', 'rescue': 'health', 'medical': 'public_works', 'shelter': 'emergency_management'}, 'severe_weather': {'assessment': 'health', 'rescue': 'public_works', 'medical': 'emergency_management', 'shelter': 'fire'}, 'infrastructure_failure': {'assessment': 'public_works', 'rescue': 'emergency_management', 'medical': 'fire', 'shelter': 'health'}} DATA__STREAM_INCIDENT_IDS = frozenset(('incident-dev-d13e000a9c8d', 'incident-dev-5e7b43f37af5', 'incident-dev-5363c6122eaa', 'incident-dev-607c5a6ec03d', 'incident-dev-6dd6f34a7ec6', 'incident-dev-b171eddd7150', 'incident-dev-65f01e24723f', 'incident-dev-b4a7957ff21c', 'incident-dev-8156e58cc0c1', 'incident-dev-6640374044bb', 'incident-dev-cf83b32d8b65', 'incident-dev-2853186503ee', 'incident-dev-d3499b073bff', 'incident-dev-48f46ff8326c', 'incident-dev-4427aa2a21af', 'incident-dev-77e6922e4a71', 'incident-dev-b471bf3b8f4b', 'incident-dev-f68c3daac882', 'incident-dev-34235b7914b1', 'incident-dev-530e0c1111cc', 'incident-dev-2162cf8c693c', 'incident-dev-b07b3f356b75', 'incident-dev-dcebf826623d', 'incident-dev-fab2db18fac1', 'incident-dev-c63e7c30868e', 'incident-dev-5f8c42ee7662', 'incident-dev-ee6852ddd337', 'incident-dev-488f5aea1837', 'incident-dev-b8d72e82c9dd', 'incident-dev-39e9748cd9da', 'incident-dev-ff68d35ff4c9', 'incident-dev-d5133cca07db', 'incident-dev-4a6fea516ab9', 'incident-dev-2a13b60ecfc1', 'incident-dev-a0e00db933d8', 'incident-dev-c528923d6248', 'incident-dev-bd3e1c615c61', 'incident-dev-10d910ca8a1d', 'incident-dev-505eb911555d', 'incident-dev-ed6c6f6b27a3', 'incident-dev-967b7ca6d838', 'incident-dev-1c25717b8dc8', 'incident-dev-095f8b39cc4c', 'incident-dev-ac57b29f783d', 'incident-dev-75ee27068f9e', 'incident-dev-dd4db1ae4168', 'incident-dev-9e28ef95520b', 'incident-dev-2bc5d92ab44a', 'incident-dev-c363156a18f4', 'incident-dev-0bc4ea73abd3', 'incident-dev-80fec0d120d6', 'incident-dev-19143a6e14d9', 'incident-dev-09cb6ec1a1bc', 'incident-dev-55cbb56da317', 'incident-dev-451ce0dfa02f', 'incident-dev-8787dda154b4', 'incident-dev-2c2bffd0ff86', 'incident-dev-a0ba20d93868', 'incident-dev-f3debc4d1bce', 'incident-dev-391062724793', 'incident-dev-718e2b2be326', 'incident-dev-a0cf0e3d610b', 'incident-dev-7b383b46bb0f', 'incident-dev-5bfa3f74bc41')) DATA__STREAM_RESOURCE_IDS = frozenset(('resource-dev-fc7ee175254d', 'resource-dev-fb53b329fc74', 'resource-dev-4277ec0337e3', 'resource-dev-ef626d21723d', 'resource-dev-762341ad8957', 'resource-dev-7eb056a68560', 'resource-dev-83ffefefbb2c', 'resource-dev-c0587fa7612d', 'resource-dev-66135c98cb45', 'resource-dev-fb60649e47e6', 'resource-dev-067519dbe47e', 'resource-dev-cf869456c2c2', 'resource-dev-636bee667148', 'resource-dev-58cf86272a04', 'resource-dev-b29dcfdc99c9', 'resource-dev-281e962da27a', 'resource-dev-8ec68092c4c3', 'resource-dev-ded121eaf9cc', 'resource-dev-853115c03384', 'resource-dev-acd0e3ce6d39', 'resource-dev-b540ce28f3e9', 'resource-dev-2764ad032cec', 'resource-dev-9141513a33c5', 'resource-dev-672716cf2d32', 'resource-dev-332d108fdbf1', 'resource-dev-cf6e4e589e48', 'resource-dev-22ce42c8d9db', 'resource-dev-2cf6c3899d45', 'resource-dev-4268f5bb59e9', 'resource-dev-d14e53d41b95', 'resource-dev-f4fc7a46f176', 'resource-dev-d4433e7133fb', 'resource-dev-0df47c150024', 'resource-dev-83dcba25c134', 'resource-dev-c75965a4cd36', 'resource-dev-58c3cdaa1a75', 'resource-dev-c09bd0d07853', 'resource-dev-71199a60b531', 'resource-dev-566bf4ec48fe', 'resource-dev-634614874d35', 'resource-dev-c6304691643b', 'resource-dev-40fbf43eae1f', 'resource-dev-b12c2d8688ad', 'resource-dev-5f1441181798', 'resource-dev-ed0eb7294215', 'resource-dev-32c1b55e50f5', 'resource-dev-da623f5c5874', 'resource-dev-a87329db3eab', 'resource-dev-af2304eaadbc', 'resource-dev-a65e7fb784f4', 'resource-dev-bb1f7b9d8e57', 'resource-dev-36d35e3a1975', 'resource-dev-26d3503e0a9b', 'resource-dev-e0324e1c4633', 'resource-dev-5abce65fb1e0', 'resource-dev-0160a6168e8f', 'resource-dev-ffaf7f31a985', 'resource-dev-ee0d2ee64704', 'resource-dev-36a2966e6cd0', 'resource-dev-61fabaa4cd28', 'resource-dev-5c5a73e9d0af', 'resource-dev-f06a4ca8dd25', 'resource-dev-8c4e6e470d7d', 'resource-dev-b62c004e7f19', 'resource-dev-daeea2c9a174', 'resource-dev-85de8471e084', 'resource-dev-7da88798ee90', 'resource-dev-7a11b35397c7', 'resource-dev-551b6ed6447e', 'resource-dev-e7eb3ea8e165', 'resource-dev-ef4819e437da', 'resource-dev-eed596ffc960', 'resource-dev-41e6294aabca', 'resource-dev-65b6dc18ff91', 'resource-dev-7caa196396ab', 'resource-dev-0dc6537dd96f', 'resource-dev-4b832948429f', 'resource-dev-99278091199b', 'resource-dev-3cc98a4a520c', 'resource-dev-77114c3db3c0', 'resource-dev-63bea45e74fe', 'resource-dev-60380a800913', 'resource-dev-d12cae9550a2', 'resource-dev-91498569165c', 'resource-dev-16f9bd5a104c', 'resource-dev-b86170da2374', 'resource-dev-74a7bebd8d3a', 'resource-dev-607380895131', 'resource-dev-900faa74810e', 'resource-dev-83b606836e43', 'resource-dev-e8b3e7322e85', 'resource-dev-469cd3e3f961', 'resource-dev-70135a709b5d', 'resource-dev-2b24469ecd17', 'resource-dev-0a1355704471', 'resource-dev-99572e4a77d1', 'resource-dev-5f79867bd0b4', 'resource-dev-0ac7a9fe2153', 'resource-dev-ed325bb066c9', 'resource-dev-c0f2613fff6d', 'resource-dev-7b88df8d73eb', 'resource-dev-f907ed7c11ed', 'resource-dev-2fca9c2778c5', 'resource-dev-15f1bc643a26', 'resource-dev-126551178c9b', 'resource-dev-52e951dabeb6', 'resource-dev-9fd22b4c36b5', 'resource-dev-3e843039bb23', 'resource-dev-cc5f74e23a63', 'resource-dev-79b155e1e023', 'resource-dev-ba97d13778c4', 'resource-dev-3b55b58f9a22', 'resource-dev-506f351acf0d', 'resource-dev-c9c23987c0b6', 'resource-dev-c23cbf78ce01', 'resource-dev-02227aabf8ca', 'resource-dev-a1ab7778dea0', 'resource-dev-5493408d1098', 'resource-dev-6626363e26c3', 'resource-dev-af71f620f0a7', 'resource-dev-016dcc15d217', 'resource-dev-47ca6a2eeb0b', 'resource-dev-22796403ca1c', 'resource-dev-372a2d13513b', 'resource-dev-46136798ac7c', 'resource-dev-ad00e90cd1a6', 'resource-dev-78b8cb2c6078', 'resource-dev-fccaee654604', 'resource-dev-e4b333b36738', 'resource-dev-e2c0fe4280aa', 'resource-dev-15086142c8ce', 'resource-dev-502051ff92a9', 'resource-dev-330f8567ad90', 'resource-dev-5f6904a009ac', 'resource-dev-0682bd4743d9', 'resource-dev-44ea5407b91b', 'resource-dev-541501bf71c9', 'resource-dev-2227e3f755c2', 'resource-dev-6b680d01f0f3', 'resource-dev-47b717e49a64', 'resource-dev-bfc801209353', 'resource-dev-1d09257ba331', 'resource-dev-84ac021cea41', 'resource-dev-b972421cc497', 'resource-dev-cab1fbb128eb', 'resource-dev-9d85fb03b4bd', 'resource-dev-b70b00649662', 'resource-dev-1731e28c5ba4', 'resource-dev-81a58043086f', 'resource-dev-06dcae49d305', 'resource-dev-694840f7a3bc', 'resource-dev-d740efc9e3bb', 'resource-dev-651e96df8c66', 'resource-dev-39c71806c697', 'resource-dev-6f057f08fad3', 'resource-dev-b0c792748eb9', 'resource-dev-9cf5d2f03d1f', 'resource-dev-962ca8aab15a', 'resource-dev-91cf45728f99', 'resource-dev-e1d5b783a08f', 'resource-dev-c3553f6e5cf4', 'resource-dev-afcf97aa2b59', 'resource-dev-35601e90f913', 'resource-dev-bad4bfcf0d81', 'resource-dev-4cf96d033430', 'resource-dev-d096ab932623', 'resource-dev-8103d0ab4a16', 'resource-dev-1f21677242ba', 'resource-dev-8875f363ccd5', 'resource-dev-35203c0ce429', 'resource-dev-a4bc790f3b11', 'resource-dev-bf3a4fb685c8', 'resource-dev-af4fd6da7d01', 'resource-dev-ff15b6a45f1d', 'resource-dev-eb1207dbb005', 'resource-dev-9758c5275467', 'resource-dev-80b35a66f769', 'resource-dev-b187dca2c109', 'resource-dev-c94e01d2bc61', 'resource-dev-6bcea69f9f27', 'resource-dev-1fca5da6441e', 'resource-dev-0721eb54894f', 'resource-dev-86633e9a7e4f', 'resource-dev-db98a3c356d8', 'resource-dev-181575e51e5d', 'resource-dev-97a36d9523ae', 'resource-dev-35273b39491f', 'resource-dev-ebf492aa3158', 'resource-dev-e71ea72e8f35', 'resource-dev-199fb214dfc3', 'resource-dev-5ab3fd4e4f54', 'resource-dev-7e9d972de015', 'resource-dev-434fe82c232b', 'resource-dev-c963200f69d1', 'resource-dev-7f66aaac42d3', 'resource-dev-f03ae47be1fa', 'resource-dev-ad5e3be4d3a1', 'resource-dev-6323c9c23186', 'resource-dev-50eb26818c6e', 'resource-dev-fac4b81766fc', 'resource-dev-15620bd1c11f', 'resource-dev-3a0a5ecf290a', 'resource-dev-ebd5c5e24c4e', 'resource-dev-086a903d39e9', 'resource-dev-b50312a25965', 'resource-dev-67107c638ad1', 'resource-dev-cd2bc25c0082', 'resource-dev-d200f7004e69', 'resource-dev-3d9bfdf7237c', 'resource-dev-43632361510e', 'resource-dev-bae69c47edab', 'resource-dev-110fb84452cc', 'resource-dev-fb8dcc2fe258', 'resource-dev-c7047852b1c3', 'resource-dev-a7852171d631', 'resource-dev-f778fed47b5a', 'resource-dev-9b1f311633bd', 'resource-dev-cc8f0c83442c', 'resource-dev-56b2516fdd4a', 'resource-dev-de66be810cdf', 'resource-dev-8bb4d2325c10', 'resource-dev-fae82b2985f1', 'resource-dev-6a32f37be5f5', 'resource-dev-91a5630c78ce', 'resource-dev-208ab23de380', 'resource-dev-34e4f8ded4f4', 'resource-dev-7e36794ffbcc', 'resource-dev-0b29bdea5593', 'resource-dev-a5b5cdddaf10', 'resource-dev-769124532f17', 'resource-dev-94efc4695c34', 'resource-dev-933e21554f7d', 'resource-dev-9b9d32a236fd', 'resource-dev-159221f91dc7', 'resource-dev-81f7934cd195', 'resource-dev-4837d88c8da8', 'resource-dev-0d425069dc9e', 'resource-dev-871fc61695df', 'resource-dev-a8c3a0df1968', 'resource-dev-f7b011d3503f', 'resource-dev-937ad0704b57', 'resource-dev-4cffb71d058d', 'resource-dev-fb1625251e5d', 'resource-dev-af6a5b90ed70', 'resource-dev-c5d82e9ab940', 'resource-dev-f5a69f819c7b', 'resource-dev-c102909ea4c2', 'resource-dev-d37ab4d223da', 'resource-dev-f57b6fcd9b88', 'resource-dev-ee435812a568', 'resource-dev-22210c270846', 'resource-dev-d7b46a64c72f', 'resource-dev-4894eaa942b1', 'resource-dev-bd77ec0a8940', 'resource-dev-71cc04e4c4e1', 'resource-dev-5b8b22d7cda0')) DATA__STREAM_ORDER_IDS = frozenset(('dispatch-order-e37f700f941d', 'dispatch-order-12f31f57c26e', 'dispatch-order-2be4f610cc48', 'dispatch-order-b0327a1a85f7', 'dispatch-order-1ad6c0fc78b9', 'dispatch-order-1b794f082b5d', 'dispatch-order-92b386e828a8', 'dispatch-order-ef99cdc8e10e', 'dispatch-order-e03e7d7fedf8', 'dispatch-order-422d66f11db4', 'dispatch-order-e86a9ef5cbc5', 'dispatch-order-582c3c5762de', 'dispatch-order-f7c5f5bff501', 'dispatch-order-91367f103f14', 'dispatch-order-4724e2da8e6e', 'dispatch-order-8a4d6d96e7a2', 'dispatch-order-2e45a1e5dfb8', 'dispatch-order-e23a2e9ce262', 'dispatch-order-220438a728cd', 'dispatch-order-adf263b9704f', 'dispatch-order-1ae7edc64c09', 'dispatch-order-766d9a48e346', 'dispatch-order-1404936474eb', 'dispatch-order-560519bc879e', 'dispatch-order-2d96c92e0ae2', 'dispatch-order-88d895874009', 'dispatch-order-ed3bc3e963d7', 'dispatch-order-e5c586533fc9', 'dispatch-order-78d1e7a906b7', 'dispatch-order-d0cfec9097d5', 'dispatch-order-8d3530d70a90', 'dispatch-order-1de8a3a5478c', 'dispatch-order-fb14c099c8e8', 'dispatch-order-9ed9ad93c7a1', 'dispatch-order-a97f57932426', 'dispatch-order-043813d4ee48', 'dispatch-order-3fd4c20b84a1', 'dispatch-order-3706ba0bbe55', 'dispatch-order-0c4282d3c971', 'dispatch-order-d0c0b3298722', 'dispatch-order-ce4350cd5051', 'dispatch-order-ded79b46e04d', 'dispatch-order-d3a2ce84646e', 'dispatch-order-b6db47f53c9e', 'dispatch-order-c1bd888b9ffa', 'dispatch-order-3f5f20b1eafd', 'dispatch-order-f198b8aa8a51', 'dispatch-order-6decb6ad305e', 'dispatch-order-8f51cbc837eb', 'dispatch-order-e21dff1cb762', 'dispatch-order-fc8d87a2fc5d', 'dispatch-order-72dbd094f531', 'dispatch-order-558c3e3d2277', 'dispatch-order-e7aac3bc22ec', 'dispatch-order-85cbf220a2c2', 'dispatch-order-4c3ad3445037', 'dispatch-order-51d596672400', 'dispatch-order-cec9d33a2c27', 'dispatch-order-a8f9843ac802', 'dispatch-order-feabdfc8881f', 'dispatch-order-3dc2d34a92a9', 'dispatch-order-f9cc71d3bab2', 'dispatch-order-a5c4fb53ff59', 'dispatch-order-ced78ffb4503')) DATA_SEVERITIES = ['watch', 'minor', 'moderate', 'major', 'catastrophic'] DATA_TASK_BLUEPRINT = {'T01': ('X01', 'X02', 'X03', 'X04'), 'T02': ('X02', 'X01', 'X09', 'X10'), 'T03': ('X03', 'X06', 'X11', 'X12'), 'T04': ('X07', 'X02', 'X13', 'X14'), 'T05': ('X05', 'X03', 'X15', 'X16'), 'T06': ('X01', 'X02', 'X03', 'X04'), 'T07': ('X02', 'X03', 'X04', 'X01'), 'T08': ('X01', 'X03', 'X05', 'X04'), 'T09': ('X01', 'X03', 'X05', 'X04'), 'T10': ('X03', 'X01', 'X05', 'X06'), 'T11': ('X05', 'X01', 'X03', 'X07'), 'T12': ('X02', 'X01', 'X03', 'X16'), 'T13': ('X09', 'X10', 'X11', 'X12'), 'T14': ('X13', 'X14', 'X15', 'X16'), 'T15': ('X01', 'X06', 'X07', 'X04'), 'T16': ('X02', 'X03', 'X05', 'X12')} DATA__X = {'X01': (1, 'S01', 'R01'), 'X02': (2, 'S02', 'R06'), 'X03': (3, 'S03', 'R11'), 'X04': (4, 'S04', 'R16'), 'X05': (1, 'S05', 'R09'), 'X06': (2, 'S06', 'R10'), 'X07': (3, 'S07', 'R15'), 'X08': (4, 'S08', 'R12'), 'X09': (1, 'S01', 'R05'), 'X10': (2, 'S02', 'R02'), 'X11': (3, 'S03', 'R03'), 'X12': (4, 'S04', 'R04'), 'X13': (1, 'S05', 'R13'), 'X14': (2, 'S06', 'R14'), 'X15': (3, 'S07', 'R07'), 'X16': (4, 'S08', 'R08')} DATA_STRUCTURE_BY_ID = {'S01': {'id': 'S01', 'mission_class': 'assessment', 'capability': 'building_safety', 'resource_type': 'damage_assessment_team', 'sector': 'Harbor South desk'}, 'S02': {'id': 'S02', 'mission_class': 'rescue', 'capability': 'flood_rescue', 'resource_type': 'high_water_vehicle', 'sector': 'River North desk'}, 'S03': {'id': 'S03', 'mission_class': 'medical', 'capability': 'medical_triage', 'resource_type': 'ambulance', 'sector': 'Central Medical desk'}, 'S04': {'id': 'S04', 'mission_class': 'shelter', 'capability': 'registration', 'resource_type': 'shelter_team', 'sector': 'Shelter East desk'}, 'S05': {'id': 'S05', 'mission_class': 'assessment', 'capability': 'photo_documentation', 'resource_type': 'damage_assessment_team', 'sector': 'Upland Assessment desk'}, 'S06': {'id': 'S06', 'mission_class': 'rescue', 'capability': 'evacuation_transport', 'resource_type': 'high_water_vehicle', 'sector': 'Valley Rescue desk'}, 'S07': {'id': 'S07', 'mission_class': 'medical', 'capability': 'oxygen_support', 'resource_type': 'ambulance', 'sector': 'Bay Medical desk'}, 'S08': {'id': 'S08', 'mission_class': 'shelter', 'capability': 'accessibility_support', 'resource_type': 'shelter_team', 'sector': 'Community Care desk'}} DATA_RULE_BY_ID = {'R01': {'id': 'R01', 'incident_type': 'flood', 'mission_class': 'assessment', 'authorized_owner_type': 'emergency_management'}, 'R02': {'id': 'R02', 'incident_type': 'flood', 'mission_class': 'rescue', 'authorized_owner_type': 'fire'}, 'R03': {'id': 'R03', 'incident_type': 'flood', 'mission_class': 'medical', 'authorized_owner_type': 'health'}, 'R04': {'id': 'R04', 'incident_type': 'flood', 'mission_class': 'shelter', 'authorized_owner_type': 'public_works'}, 'R05': {'id': 'R05', 'incident_type': 'wildfire', 'mission_class': 'assessment', 'authorized_owner_type': 'fire'}, 'R06': {'id': 'R06', 'incident_type': 'wildfire', 'mission_class': 'rescue', 'authorized_owner_type': 'health'}, 'R07': {'id': 'R07', 'incident_type': 'wildfire', 'mission_class': 'medical', 'authorized_owner_type': 'public_works'}, 'R08': {'id': 'R08', 'incident_type': 'wildfire', 'mission_class': 'shelter', 'authorized_owner_type': 'emergency_management'}, 'R09': {'id': 'R09', 'incident_type': 'severe_weather', 'mission_class': 'assessment', 'authorized_owner_type': 'health'}, 'R10': {'id': 'R10', 'incident_type': 'severe_weather', 'mission_class': 'rescue', 'authorized_owner_type': 'public_works'}, 'R11': {'id': 'R11', 'incident_type': 'severe_weather', 'mission_class': 'medical', 'authorized_owner_type': 'emergency_management'}, 'R12': {'id': 'R12', 'incident_type': 'severe_weather', 'mission_class': 'shelter', 'authorized_owner_type': 'fire'}, 'R13': {'id': 'R13', 'incident_type': 'infrastructure_failure', 'mission_class': 'assessment', 'authorized_owner_type': 'public_works'}, 'R14': {'id': 'R14', 'incident_type': 'infrastructure_failure', 'mission_class': 'rescue', 'authorized_owner_type': 'emergency_management'}, 'R15': {'id': 'R15', 'incident_type': 'infrastructure_failure', 'mission_class': 'medical', 'authorized_owner_type': 'fire'}, 'R16': {'id': 'R16', 'incident_type': 'infrastructure_failure', 'mission_class': 'shelter', 'authorized_owner_type': 'health'}} DATA_INCIDENT_TYPES = ('flood', 'wildfire', 'severe_weather', 'infrastructure_failure') DATA_AUTHORITY_ATOM_BY_STRUCTURE = {'S01': 'A_S01', 'S02': 'A_S02', 'S03': 'A_S03', 'S04': 'A_S04', 'S05': 'A_S05', 'S06': 'A_S06', 'S07': 'A_S07', 'S08': 'A_S08'} DATA_PRE_RESPONSIBLE_AGENCY = {'A_S01': 'agency-riverton-emergency-management', 'A_S02': 'agency-riverton-fire-rescue', 'A_S03': 'agency-riverton-emergency-management', 'A_S04': 'agency-riverton-fire-rescue', 'A_S05': 'agency-riverton-emergency-management', 'A_S06': 'agency-riverton-fire-rescue', 'A_S07': 'agency-riverton-emergency-management', 'A_S08': 'agency-riverton-fire-rescue'} DATA__CANDIDATES_BY_STRUCTURE = {'S01': [{'resource_id': 'resource-dev-1d09257ba331', 'owning_agency_id': 'agency-harbor-county-health-services', 'owning_agency_type': 'health', 'resource_type': 'damage_assessment_team', 'capability_tags': ['building_safety', 'dispatch_order_support'], 'status': 'staged', 'current_incident_id': None, 'staging_location': 'Harbor South desk bay 3', 'crew_size': 5, 'equipment_count': 4, 'fuel_or_supply_percent': 75}, {'resource_id': 'resource-dev-c9c23987c0b6', 'owning_agency_id': 'agency-cedar-ridge-public-works', 'owning_agency_type': 'public_works', 'resource_type': 'damage_assessment_team', 'capability_tags': ['building_safety', 'dispatch_order_support'], 'status': 'available', 'current_incident_id': None, 'staging_location': 'Harbor South desk bay 4', 'crew_size': 6, 'equipment_count': 5, 'fuel_or_supply_percent': 82}, {'resource_id': 'resource-dev-3cc98a4a520c', 'owning_agency_id': 'agency-riverton-emergency-management', 'owning_agency_type': 'emergency_management', 'resource_type': 'damage_assessment_team', 'capability_tags': ['building_safety', 'dispatch_order_support'], 'status': 'available', 'current_incident_id': None, 'staging_location': 'Harbor South desk bay 1', 'crew_size': 3, 'equipment_count': 2, 'fuel_or_supply_percent': 61}, {'resource_id': 'resource-dev-15f1bc643a26', 'owning_agency_id': 'agency-riverton-fire-rescue', 'owning_agency_type': 'fire', 'resource_type': 'damage_assessment_team', 'capability_tags': ['building_safety', 'dispatch_order_support'], 'status': 'available', 'current_incident_id': None, 'staging_location': 'Harbor South desk bay 2', 'crew_size': 4, 'equipment_count': 3, 'fuel_or_supply_percent': 68}], 'S02': [{'resource_id': 'resource-dev-ed325bb066c9', 'owning_agency_id': 'agency-cedar-ridge-public-works', 'owning_agency_type': 'public_works', 'resource_type': 'high_water_vehicle', 'capability_tags': ['flood_rescue', 'dispatch_order_support'], 'status': 'available', 'current_incident_id': None, 'staging_location': 'River North desk bay 4', 'crew_size': 6, 'equipment_count': 5, 'fuel_or_supply_percent': 82}, {'resource_id': 'resource-dev-cf6e4e589e48', 'owning_agency_id': 'agency-riverton-emergency-management', 'owning_agency_type': 'emergency_management', 'resource_type': 'high_water_vehicle', 'capability_tags': ['flood_rescue', 'dispatch_order_support'], 'status': 'available', 'current_incident_id': None, 'staging_location': 'River North desk bay 1', 'crew_size': 3, 'equipment_count': 2, 'fuel_or_supply_percent': 61}, {'resource_id': 'resource-dev-d740efc9e3bb', 'owning_agency_id': 'agency-riverton-fire-rescue', 'owning_agency_type': 'fire', 'resource_type': 'high_water_vehicle', 'capability_tags': ['flood_rescue', 'dispatch_order_support'], 'status': 'staged', 'current_incident_id': None, 'staging_location': 'River North desk bay 2', 'crew_size': 4, 'equipment_count': 3, 'fuel_or_supply_percent': 68}, {'resource_id': 'resource-dev-1fca5da6441e', 'owning_agency_id': 'agency-harbor-county-health-services', 'owning_agency_type': 'health', 'resource_type': 'high_water_vehicle', 'capability_tags': ['flood_rescue', 'dispatch_order_support'], 'status': 'available', 'current_incident_id': None, 'staging_location': 'River North desk bay 3', 'crew_size': 5, 'equipment_count': 4, 'fuel_or_supply_percent': 75}], 'S03': [{'resource_id': 'resource-dev-85de8471e084', 'owning_agency_id': 'agency-riverton-emergency-management', 'owning_agency_type': 'emergency_management', 'resource_type': 'ambulance', 'capability_tags': ['medical_triage', 'dispatch_order_support'], 'status': 'staged', 'current_incident_id': None, 'staging_location': 'Central Medical desk bay 1', 'crew_size': 3, 'equipment_count': 2, 'fuel_or_supply_percent': 61}, {'resource_id': 'resource-dev-199fb214dfc3', 'owning_agency_id': 'agency-riverton-fire-rescue', 'owning_agency_type': 'fire', 'resource_type': 'ambulance', 'capability_tags': ['medical_triage', 'dispatch_order_support'], 'status': 'available', 'current_incident_id': None, 'staging_location': 'Central Medical desk bay 2', 'crew_size': 4, 'equipment_count': 3, 'fuel_or_supply_percent': 68}, {'resource_id': 'resource-dev-71199a60b531', 'owning_agency_id': 'agency-harbor-county-health-services', 'owning_agency_type': 'health', 'resource_type': 'ambulance', 'capability_tags': ['medical_triage', 'dispatch_order_support'], 'status': 'available', 'current_incident_id': None, 'staging_location': 'Central Medical desk bay 3', 'crew_size': 5, 'equipment_count': 4, 'fuel_or_supply_percent': 75}, {'resource_id': 'resource-dev-3a0a5ecf290a', 'owning_agency_id': 'agency-cedar-ridge-public-works', 'owning_agency_type': 'public_works', 'resource_type': 'ambulance', 'capability_tags': ['medical_triage', 'dispatch_order_support'], 'status': 'staged', 'current_incident_id': None, 'staging_location': 'Central Medical desk bay 4', 'crew_size': 6, 'equipment_count': 5, 'fuel_or_supply_percent': 82}], 'S04': [{'resource_id': 'resource-dev-1731e28c5ba4', 'owning_agency_id': 'agency-riverton-fire-rescue', 'owning_agency_type': 'fire', 'resource_type': 'shelter_team', 'capability_tags': ['registration', 'dispatch_order_support'], 'status': 'available', 'current_incident_id': None, 'staging_location': 'Shelter East desk bay 2', 'crew_size': 4, 'equipment_count': 3, 'fuel_or_supply_percent': 68}, {'resource_id': 'resource-dev-af6a5b90ed70', 'owning_agency_id': 'agency-harbor-county-health-services', 'owning_agency_type': 'health', 'resource_type': 'shelter_team', 'capability_tags': ['registration', 'dispatch_order_support'], 'status': 'staged', 'current_incident_id': None, 'staging_location': 'Shelter East desk bay 3', 'crew_size': 5, 'equipment_count': 4, 'fuel_or_supply_percent': 75}, {'resource_id': 'resource-dev-ad00e90cd1a6', 'owning_agency_id': 'agency-cedar-ridge-public-works', 'owning_agency_type': 'public_works', 'resource_type': 'shelter_team', 'capability_tags': ['registration', 'dispatch_order_support'], 'status': 'available', 'current_incident_id': None, 'staging_location': 'Shelter East desk bay 4', 'crew_size': 6, 'equipment_count': 5, 'fuel_or_supply_percent': 82}, {'resource_id': 'resource-dev-9758c5275467', 'owning_agency_id': 'agency-riverton-emergency-management', 'owning_agency_type': 'emergency_management', 'resource_type': 'shelter_team', 'capability_tags': ['registration', 'dispatch_order_support'], 'status': 'available', 'current_incident_id': None, 'staging_location': 'Shelter East desk bay 1', 'crew_size': 3, 'equipment_count': 2, 'fuel_or_supply_percent': 61}], 'S06': [{'resource_id': 'resource-dev-2cf6c3899d45', 'owning_agency_id': 'agency-cedar-ridge-public-works', 'owning_agency_type': 'public_works', 'resource_type': 'high_water_vehicle', 'capability_tags': ['evacuation_transport', 'dispatch_order_support'], 'status': 'available', 'current_incident_id': None, 'staging_location': 'Valley Rescue desk bay 4', 'crew_size': 6, 'equipment_count': 5, 'fuel_or_supply_percent': 82}, {'resource_id': 'resource-dev-83b606836e43', 'owning_agency_id': 'agency-riverton-emergency-management', 'owning_agency_type': 'emergency_management', 'resource_type': 'high_water_vehicle', 'capability_tags': ['evacuation_transport', 'dispatch_order_support'], 'status': 'available', 'current_incident_id': None, 'staging_location': 'Valley Rescue desk bay 1', 'crew_size': 3, 'equipment_count': 2, 'fuel_or_supply_percent': 61}, {'resource_id': 'resource-dev-bf3a4fb685c8', 'owning_agency_id': 'agency-riverton-fire-rescue', 'owning_agency_type': 'fire', 'resource_type': 'high_water_vehicle', 'capability_tags': ['evacuation_transport', 'dispatch_order_support'], 'status': 'available', 'current_incident_id': None, 'staging_location': 'Valley Rescue desk bay 2', 'crew_size': 4, 'equipment_count': 3, 'fuel_or_supply_percent': 68}, {'resource_id': 'resource-dev-5c5a73e9d0af', 'owning_agency_id': 'agency-harbor-county-health-services', 'owning_agency_type': 'health', 'resource_type': 'high_water_vehicle', 'capability_tags': ['evacuation_transport', 'dispatch_order_support'], 'status': 'staged', 'current_incident_id': None, 'staging_location': 'Valley Rescue desk bay 3', 'crew_size': 5, 'equipment_count': 4, 'fuel_or_supply_percent': 75}], 'S07': [{'resource_id': 'resource-dev-c102909ea4c2', 'owning_agency_id': 'agency-riverton-emergency-management', 'owning_agency_type': 'emergency_management', 'resource_type': 'ambulance', 'capability_tags': ['oxygen_support', 'dispatch_order_support'], 'status': 'available', 'current_incident_id': None, 'staging_location': 'Bay Medical desk bay 1', 'crew_size': 3, 'equipment_count': 2, 'fuel_or_supply_percent': 61}, {'resource_id': 'resource-dev-ebf492aa3158', 'owning_agency_id': 'agency-riverton-fire-rescue', 'owning_agency_type': 'fire', 'resource_type': 'ambulance', 'capability_tags': ['oxygen_support', 'dispatch_order_support'], 'status': 'staged', 'current_incident_id': None, 'staging_location': 'Bay Medical desk bay 2', 'crew_size': 4, 'equipment_count': 3, 'fuel_or_supply_percent': 68}, {'resource_id': 'resource-dev-126551178c9b', 'owning_agency_id': 'agency-harbor-county-health-services', 'owning_agency_type': 'health', 'resource_type': 'ambulance', 'capability_tags': ['oxygen_support', 'dispatch_order_support'], 'status': 'available', 'current_incident_id': None, 'staging_location': 'Bay Medical desk bay 3', 'crew_size': 5, 'equipment_count': 4, 'fuel_or_supply_percent': 75}, {'resource_id': 'resource-dev-c963200f69d1', 'owning_agency_id': 'agency-cedar-ridge-public-works', 'owning_agency_type': 'public_works', 'resource_type': 'ambulance', 'capability_tags': ['oxygen_support', 'dispatch_order_support'], 'status': 'available', 'current_incident_id': None, 'staging_location': 'Bay Medical desk bay 4', 'crew_size': 6, 'equipment_count': 5, 'fuel_or_supply_percent': 82}], 'S08': [{'resource_id': 'resource-dev-c94e01d2bc61', 'owning_agency_id': 'agency-riverton-emergency-management', 'owning_agency_type': 'emergency_management', 'resource_type': 'shelter_team', 'capability_tags': ['accessibility_support', 'dispatch_order_support'], 'status': 'available', 'current_incident_id': None, 'staging_location': 'Community Care desk bay 1', 'crew_size': 3, 'equipment_count': 2, 'fuel_or_supply_percent': 61}, {'resource_id': 'resource-dev-63bea45e74fe', 'owning_agency_id': 'agency-riverton-fire-rescue', 'owning_agency_type': 'fire', 'resource_type': 'shelter_team', 'capability_tags': ['accessibility_support', 'dispatch_order_support'], 'status': 'available', 'current_incident_id': None, 'staging_location': 'Community Care desk bay 2', 'crew_size': 4, 'equipment_count': 3, 'fuel_or_supply_percent': 68}, {'resource_id': 'resource-dev-58cf86272a04', 'owning_agency_id': 'agency-harbor-county-health-services', 'owning_agency_type': 'health', 'resource_type': 'shelter_team', 'capability_tags': ['accessibility_support', 'dispatch_order_support'], 'status': 'staged', 'current_incident_id': None, 'staging_location': 'Community Care desk bay 3', 'crew_size': 5, 'equipment_count': 4, 'fuel_or_supply_percent': 75}, {'resource_id': 'resource-dev-937ad0704b57', 'owning_agency_id': 'agency-cedar-ridge-public-works', 'owning_agency_type': 'public_works', 'resource_type': 'shelter_team', 'capability_tags': ['accessibility_support', 'dispatch_order_support'], 'status': 'available', 'current_incident_id': None, 'staging_location': 'Community Care desk bay 4', 'crew_size': 6, 'equipment_count': 5, 'fuel_or_supply_percent': 82}], 'S05': [{'resource_id': 'resource-dev-af4fd6da7d01', 'owning_agency_id': 'agency-riverton-fire-rescue', 'owning_agency_type': 'fire', 'resource_type': 'damage_assessment_team', 'capability_tags': ['photo_documentation', 'dispatch_order_support'], 'status': 'staged', 'current_incident_id': None, 'staging_location': 'Upland Assessment desk bay 2', 'crew_size': 4, 'equipment_count': 3, 'fuel_or_supply_percent': 68}, {'resource_id': 'resource-dev-b540ce28f3e9', 'owning_agency_id': 'agency-harbor-county-health-services', 'owning_agency_type': 'health', 'resource_type': 'damage_assessment_team', 'capability_tags': ['photo_documentation', 'dispatch_order_support'], 'status': 'available', 'current_incident_id': None, 'staging_location': 'Upland Assessment desk bay 3', 'crew_size': 5, 'equipment_count': 4, 'fuel_or_supply_percent': 75}, {'resource_id': 'resource-dev-fc7ee175254d', 'owning_agency_id': 'agency-cedar-ridge-public-works', 'owning_agency_type': 'public_works', 'resource_type': 'damage_assessment_team', 'capability_tags': ['photo_documentation', 'dispatch_order_support'], 'status': 'available', 'current_incident_id': None, 'staging_location': 'Upland Assessment desk bay 4', 'crew_size': 6, 'equipment_count': 5, 'fuel_or_supply_percent': 82}, {'resource_id': 'resource-dev-80b35a66f769', 'owning_agency_id': 'agency-riverton-emergency-management', 'owning_agency_type': 'emergency_management', 'resource_type': 'damage_assessment_team', 'capability_tags': ['photo_documentation', 'dispatch_order_support'], 'status': 'available', 'current_incident_id': None, 'staging_location': 'Upland Assessment desk bay 1', 'crew_size': 3, 'equipment_count': 2, 'fuel_or_supply_percent': 61}]} DATA_RESPONSIBILITY_DOMAIN_BY_STRUCTURE = {'S01': 'scope-531C5E0D03', 'S02': 'scope-7AABC661E2', 'S03': 'scope-C1E2CFF4E8', 'S04': 'scope-2D8E4A70EA', 'S05': 'scope-D6F89BB145', 'S06': 'scope-32D8EFFF98', 'S07': 'scope-3F6295FAA6', 'S08': 'scope-14E6CFF8C5'} DATA__RESOURCE_ID_BY_BINDING = {('S01', 'health'): 'resource-dev-1d09257ba331', ('S01', 'public_works'): 'resource-dev-c9c23987c0b6', ('S01', 'emergency_management'): 'resource-dev-3cc98a4a520c', ('S01', 'fire'): 'resource-dev-15f1bc643a26', ('S02', 'public_works'): 'resource-dev-ed325bb066c9', ('S02', 'emergency_management'): 'resource-dev-cf6e4e589e48', ('S02', 'fire'): 'resource-dev-d740efc9e3bb', ('S02', 'health'): 'resource-dev-1fca5da6441e', ('S03', 'emergency_management'): 'resource-dev-85de8471e084', ('S03', 'fire'): 'resource-dev-199fb214dfc3', ('S03', 'health'): 'resource-dev-71199a60b531', ('S03', 'public_works'): 'resource-dev-3a0a5ecf290a', ('S04', 'fire'): 'resource-dev-1731e28c5ba4', ('S04', 'health'): 'resource-dev-af6a5b90ed70', ('S04', 'public_works'): 'resource-dev-ad00e90cd1a6', ('S04', 'emergency_management'): 'resource-dev-9758c5275467', ('S06', 'public_works'): 'resource-dev-2cf6c3899d45', ('S06', 'emergency_management'): 'resource-dev-83b606836e43', ('S06', 'fire'): 'resource-dev-bf3a4fb685c8', ('S06', 'health'): 'resource-dev-5c5a73e9d0af', ('S07', 'emergency_management'): 'resource-dev-c102909ea4c2', ('S07', 'fire'): 'resource-dev-ebf492aa3158', ('S07', 'health'): 'resource-dev-126551178c9b', ('S07', 'public_works'): 'resource-dev-c963200f69d1', ('S08', 'emergency_management'): 'resource-dev-c94e01d2bc61', ('S08', 'fire'): 'resource-dev-63bea45e74fe', ('S08', 'health'): 'resource-dev-58cf86272a04', ('S08', 'public_works'): 'resource-dev-937ad0704b57', ('S05', 'fire'): 'resource-dev-af4fd6da7d01', ('S05', 'health'): 'resource-dev-b540ce28f3e9', ('S05', 'public_works'): 'resource-dev-fc7ee175254d', ('S05', 'emergency_management'): 'resource-dev-80b35a66f769'} DATA_AGENCY_BY_TYPE = {'emergency_management': 'agency-riverton-emergency-management', 'fire': 'agency-riverton-fire-rescue', 'health': 'agency-harbor-county-health-services', 'public_works': 'agency-cedar-ridge-public-works'} DATA_SCHEDULE_2 = {'schema': 'rescopebench-lifecycle-schedule/v1', 'task_count': 16, 'events': [{'event_id': 'E1', 'before_task': 9}]} DATA_TASK_BLUEPRINT_2 = {'T01': ('X01', 'X02', 'X03', 'X04'), 'T02': ('X02', 'X01', 'X09', 'X10'), 'T03': ('X03', 'X01', 'X11', 'X12'), 'T04': ('X04', 'X02', 'X13', 'X14'), 'T05': ('X05', 'X03', 'X15', 'X16'), 'T06': ('X01', 'X02', 'X03', 'X06'), 'T07': ('X02', 'X03', 'X04', 'X07'), 'T08': ('X01', 'X03', 'X05', 'X04'), 'T09': ('X01', 'X03', 'X05', 'X04'), 'T10': ('X03', 'X01', 'X05', 'X04'), 'T11': ('X05', 'X01', 'X03', 'X04'), 'T12': ('X02', 'X01', 'X03', 'X04'), 'T13': ('X01', 'X03', 'X05', 'X02'), 'T14': ('X03', 'X02', 'X01', 'X05'), 'T15': ('X05', 'X01', 'X02', 'X03'), 'T16': ('X02', 'X05', 'X03', 'X01')} DATA_CHANGED_AUTHORITY_ATOMS_2 = ('A_SLOT_1', 'A_SLOT_3') DATA_PROVIDER_TOOLS = [{'type': 'function', 'function': {'name': 'search_dispatch_orders', 'description': 'Resolve one externally supplied request code to its current internal dispatch-order handle.', 'parameters': {'type': 'object', 'properties': {'request_code': {'type': 'string', 'minLength': 1}}, 'required': ['request_code'], 'additionalProperties': False}}}, {'type': 'function', 'function': {'name': 'get_dispatch_order', 'description': 'Read one active dispatch order, including its incident, mission, exact capability, priority, and roster handle.', 'parameters': {'type': 'object', 'properties': {'order_id': {'type': 'string', 'minLength': 1}}, 'required': ['order_id'], 'additionalProperties': False}}}, {'type': 'function', 'function': {'name': 'inspect_dispatch_roster', 'description': 'Read the four resource candidates bound to one active dispatch roster, including their current operational status and incident assignment.', 'parameters': {'type': 'object', 'properties': {'roster_id': {'type': 'string', 'minLength': 1}}, 'required': ['roster_id'], 'additionalProperties': False}}}, {'type': 'function', 'function': {'name': 'get_coordination_policy', 'description': 'Read one current incident-type by mission-class coordination-policy cell.', 'parameters': {'type': 'object', 'properties': {'incident_type': {'type': 'string', 'enum': ['flood', 'wildfire', 'severe_weather', 'infrastructure_failure']}, 'mission_class': {'type': 'string', 'enum': ['assessment', 'rescue', 'medical', 'shelter']}}, 'required': ['incident_type', 'mission_class'], 'additionalProperties': False}}}, {'type': 'function', 'function': {'name': 'get_incident_detail', 'description': 'Read one incident and its linked operational records. A cheap summary reports an unreconciled dispatch record that may be stale. include_history=true performs the higher-cost full command-history reconciliation and returns current authority delegation evidence.', 'parameters': {'type': 'object', 'properties': {'incident_id': {'type': 'string', 'minLength': 1}, 'include_history': {'type': 'boolean', 'default': True}}, 'required': ['incident_id'], 'additionalProperties': False}}}, {'type': 'function', 'function': {'name': 'get_resource_unit_status', 'description': "Read one resource unit and its assignment context. Assignment handles returned by include_assignment_history=true are observed in the current episode and may be used by the release tool. With include_assignment_history=false, confirming your own successful assignment and release in the current task costs zero work units and returns only that assignment's state and the resource's availability. Other status/history reads remain charged.", 'parameters': {'type': 'object', 'properties': {'resource_id': {'type': 'string', 'minLength': 1}, 'include_assignment_history': {'type': 'boolean', 'default': True}}, 'required': ['resource_id'], 'additionalProperties': False}}}, {'type': 'function', 'function': {'name': 'assign_resource_to_incident', 'description': 'Create one resource assignment against an active dispatch order. The incident, mission, capability, priority, requester, roster membership, and coordination policy must all match.', 'parameters': {'type': 'object', 'properties': {'dispatch_order_id': {'type': 'string', 'minLength': 1}, 'resource_id': {'type': 'string', 'minLength': 1}, 'incident_id': {'type': 'string', 'minLength': 1}, 'requested_by_agency_id': {'type': 'string', 'minLength': 1}, 'required_capability': {'type': 'string', 'minLength': 1}, 'mission': {'type': 'string', 'minLength': 1}, 'priority': {'type': 'string', 'enum': ['routine', 'urgent', 'life_safety']}, 'assigned_at': {'type': 'string', 'minLength': 1}, 'eta_at': {'type': 'string'}, 'notes': {'type': 'string'}}, 'required': ['dispatch_order_id', 'resource_id', 'incident_id', 'requested_by_agency_id', 'required_capability', 'mission', 'priority', 'assigned_at'], 'additionalProperties': False}}}, {'type': 'function', 'function': {'name': 'release_resource_assignment', 'description': "Close one active assignment and set the resource's next state.", 'parameters': {'type': 'object', 'properties': {'assignment_id': {'type': 'string', 'minLength': 1}, 'released_at': {'type': 'string', 'minLength': 1}, 'release_status': {'type': 'string', 'enum': ['available', 'maintenance', 'out_of_service'], 'default': 'available'}}, 'required': ['assignment_id', 'released_at'], 'additionalProperties': False}}}] DATA_ALLOWED_TOOLS = frozenset(('inspect_dispatch_roster', 'get_coordination_policy', 'list_resource_units', 'get_resource_unit_status', 'get_dispatch_order', 'release_resource_assignment', 'list_incidents', 'assign_resource_to_incident', 'get_incident_detail', 'search_dispatch_orders')) DATA_CUSTOM_COSTS = {'search_dispatch_orders': 8, 'get_dispatch_order': 3, 'inspect_dispatch_roster': 11, 'get_coordination_policy': 5} DATA_VISIBLE_TOOL_NAMES = frozenset(('get_coordination_policy', 'get_resource_unit_status', 'get_dispatch_order', 'release_resource_assignment', 'assign_resource_to_incident', 'get_incident_detail', 'search_dispatch_orders', 'inspect_dispatch_roster')) DATA_RAW_LIST_TOOLS = {'list_incidents', 'list_resource_units'} DATA_RAW_DETAIL_TOOLS = {'get_resource_unit_status', 'get_incident_detail'} DATA_WRITE_COSTS = {'assign_resource_to_incident': 8, 'release_resource_assignment': 5} DATA_VISIBLE_TOOL_NAMES_2 = frozenset(('get_coordination_policy', 'get_resource_unit_status', 'get_dispatch_order', 'release_resource_assignment', 'assign_resource_to_incident', 'get_incident_detail', 'search_dispatch_orders', 'inspect_dispatch_roster')) DATA_TOOL_SCHEMAS = {'search_dispatch_orders': {'type': 'object', 'properties': {'request_code': {'type': 'string', 'minLength': 1}}, 'required': ['request_code'], 'additionalProperties': False}, 'get_dispatch_order': {'type': 'object', 'properties': {'order_id': {'type': 'string', 'minLength': 1}}, 'required': ['order_id'], 'additionalProperties': False}, 'inspect_dispatch_roster': {'type': 'object', 'properties': {'roster_id': {'type': 'string', 'minLength': 1}}, 'required': ['roster_id'], 'additionalProperties': False}, 'get_coordination_policy': {'type': 'object', 'properties': {'incident_type': {'type': 'string', 'enum': ['flood', 'wildfire', 'severe_weather', 'infrastructure_failure']}, 'mission_class': {'type': 'string', 'enum': ['assessment', 'rescue', 'medical', 'shelter']}}, 'required': ['incident_type', 'mission_class'], 'additionalProperties': False}, 'list_incidents': {'type': 'object', 'properties': {'status': {'type': 'string', 'enum': ['reported', 'assessing', 'active', 'contained', 'recovery', 'closed']}, 'severity': {'type': 'string', 'enum': ['watch', 'minor', 'moderate', 'major', 'catastrophic']}, 'incident_type': {'type': 'string', 'enum': ['flood', 'wildfire', 'severe_weather', 'infrastructure_failure', 'hazardous_material', 'evacuation_support', 'winter_storm']}, 'lead_agency_id': {'type': 'string'}, 'area_query': {'type': 'string'}, 'limit': {'type': 'integer', 'minimum': 1, 'maximum': 50, 'default': 25}, 'offset': {'type': 'integer', 'minimum': 0, 'default': 0}, 'sort_by': {'type': 'string', 'enum': ['reported_at', 'updated_at', 'priority', 'severity']}, 'sort_order': {'type': 'string', 'enum': ['asc', 'desc']}}, 'required': [], 'additionalProperties': False}, 'get_incident_detail': {'type': 'object', 'properties': {'incident_id': {'type': 'string', 'minLength': 1}, 'include_history': {'type': 'boolean', 'default': True}}, 'required': ['incident_id'], 'additionalProperties': False}, 'list_resource_units': {'type': 'object', 'properties': {'resource_type': {'type': 'string', 'enum': ['engine', 'ambulance', 'high_water_vehicle', 'rescue_boat', 'shelter_team', 'damage_assessment_team', 'debris_crew', 'generator', 'communications_trailer', 'traffic_control_team']}, 'status': {'type': 'string', 'enum': ['available', 'staged', 'assigned', 'enroute', 'maintenance', 'out_of_service']}, 'owning_agency_id': {'type': 'string'}, 'current_incident_id': {'type': 'string'}, 'capability_tag': {'type': 'string'}, 'limit': {'type': 'integer', 'minimum': 1, 'maximum': 50, 'default': 25}, 'offset': {'type': 'integer', 'minimum': 0, 'default': 0}, 'sort_by': {'type': 'string', 'enum': ['resource_type', 'status', 'fuel_or_supply_percent', 'updated_at']}, 'sort_order': {'type': 'string', 'enum': ['asc', 'desc']}}, 'required': [], 'additionalProperties': False}, 'get_resource_unit_status': {'type': 'object', 'properties': {'resource_id': {'type': 'string', 'minLength': 1}, 'include_assignment_history': {'type': 'boolean', 'default': True}}, 'required': ['resource_id'], 'additionalProperties': False}, 'assign_resource_to_incident': {'type': 'object', 'properties': {'dispatch_order_id': {'type': 'string', 'minLength': 1}, 'resource_id': {'type': 'string', 'minLength': 1}, 'incident_id': {'type': 'string', 'minLength': 1}, 'requested_by_agency_id': {'type': 'string', 'minLength': 1}, 'required_capability': {'type': 'string', 'minLength': 1}, 'mission': {'type': 'string', 'minLength': 1}, 'priority': {'type': 'string', 'enum': ['routine', 'urgent', 'life_safety']}, 'assigned_at': {'type': 'string', 'minLength': 1}, 'eta_at': {'type': 'string'}, 'notes': {'type': 'string'}}, 'required': ['dispatch_order_id', 'resource_id', 'incident_id', 'requested_by_agency_id', 'required_capability', 'mission', 'priority', 'assigned_at'], 'additionalProperties': False}, 'release_resource_assignment': {'type': 'object', 'properties': {'assignment_id': {'type': 'string', 'minLength': 1}, 'released_at': {'type': 'string', 'minLength': 1}, 'release_status': {'type': 'string', 'enum': ['available', 'maintenance', 'out_of_service'], 'default': 'available'}}, 'required': ['assignment_id', 'released_at'], 'additionalProperties': False}} DATA_PROVIDER_TOOLS_2 = [{'type': 'function', 'function': {'name': 'search_dispatch_orders', 'description': 'Resolve one externally supplied request code to its current internal dispatch-order handle.', 'parameters': {'type': 'object', 'properties': {'request_code': {'type': 'string', 'minLength': 1}}, 'required': ['request_code'], 'additionalProperties': False}}}, {'type': 'function', 'function': {'name': 'get_dispatch_order', 'description': 'Read one active dispatch order, including its incident, mission, exact capability, priority, and roster handle.', 'parameters': {'type': 'object', 'properties': {'order_id': {'type': 'string', 'minLength': 1}}, 'required': ['order_id'], 'additionalProperties': False}}}, {'type': 'function', 'function': {'name': 'inspect_dispatch_roster', 'description': 'Read the four resource candidates bound to one active dispatch roster.', 'parameters': {'type': 'object', 'properties': {'roster_id': {'type': 'string', 'minLength': 1}}, 'required': ['roster_id'], 'additionalProperties': False}}}, {'type': 'function', 'function': {'name': 'get_coordination_policy', 'description': 'Read one current incident-type by mission-class coordination-policy cell.', 'parameters': {'type': 'object', 'properties': {'incident_type': {'type': 'string', 'enum': ['flood', 'wildfire', 'severe_weather', 'infrastructure_failure']}, 'mission_class': {'type': 'string', 'enum': ['assessment', 'rescue', 'medical', 'shelter']}}, 'required': ['incident_type', 'mission_class'], 'additionalProperties': False}}}, {'type': 'function', 'function': {'name': 'list_incidents', 'description': 'List incidents using ordinary operational filters.', 'parameters': {'type': 'object', 'properties': {'status': {'type': 'string', 'enum': ['reported', 'assessing', 'active', 'contained', 'recovery', 'closed']}, 'severity': {'type': 'string', 'enum': ['watch', 'minor', 'moderate', 'major', 'catastrophic']}, 'incident_type': {'type': 'string', 'enum': ['flood', 'wildfire', 'severe_weather', 'infrastructure_failure', 'hazardous_material', 'evacuation_support', 'winter_storm']}, 'lead_agency_id': {'type': 'string'}, 'area_query': {'type': 'string'}, 'limit': {'type': 'integer', 'minimum': 1, 'maximum': 50, 'default': 25}, 'offset': {'type': 'integer', 'minimum': 0, 'default': 0}, 'sort_by': {'type': 'string', 'enum': ['reported_at', 'updated_at', 'priority', 'severity']}, 'sort_order': {'type': 'string', 'enum': ['asc', 'desc']}}, 'required': [], 'additionalProperties': False}}}, {'type': 'function', 'function': {'name': 'get_incident_detail', 'description': 'Read one incident and its linked operational records.', 'parameters': {'type': 'object', 'properties': {'incident_id': {'type': 'string', 'minLength': 1}, 'include_history': {'type': 'boolean', 'default': True}}, 'required': ['incident_id'], 'additionalProperties': False}}}, {'type': 'function', 'function': {'name': 'list_resource_units', 'description': 'List resource units using operational filters.', 'parameters': {'type': 'object', 'properties': {'resource_type': {'type': 'string', 'enum': ['engine', 'ambulance', 'high_water_vehicle', 'rescue_boat', 'shelter_team', 'damage_assessment_team', 'debris_crew', 'generator', 'communications_trailer', 'traffic_control_team']}, 'status': {'type': 'string', 'enum': ['available', 'staged', 'assigned', 'enroute', 'maintenance', 'out_of_service']}, 'owning_agency_id': {'type': 'string'}, 'current_incident_id': {'type': 'string'}, 'capability_tag': {'type': 'string'}, 'limit': {'type': 'integer', 'minimum': 1, 'maximum': 50, 'default': 25}, 'offset': {'type': 'integer', 'minimum': 0, 'default': 0}, 'sort_by': {'type': 'string', 'enum': ['resource_type', 'status', 'fuel_or_supply_percent', 'updated_at']}, 'sort_order': {'type': 'string', 'enum': ['asc', 'desc']}}, 'required': [], 'additionalProperties': False}}}, {'type': 'function', 'function': {'name': 'get_resource_unit_status', 'description': 'Read one resource unit and its assignment context.', 'parameters': {'type': 'object', 'properties': {'resource_id': {'type': 'string', 'minLength': 1}, 'include_assignment_history': {'type': 'boolean', 'default': True}}, 'required': ['resource_id'], 'additionalProperties': False}}}, {'type': 'function', 'function': {'name': 'assign_resource_to_incident', 'description': 'Create one resource assignment against an active dispatch order. The incident, mission, capability, priority, requester, roster membership, and coordination policy must all match.', 'parameters': {'type': 'object', 'properties': {'dispatch_order_id': {'type': 'string', 'minLength': 1}, 'resource_id': {'type': 'string', 'minLength': 1}, 'incident_id': {'type': 'string', 'minLength': 1}, 'requested_by_agency_id': {'type': 'string', 'minLength': 1}, 'required_capability': {'type': 'string', 'minLength': 1}, 'mission': {'type': 'string', 'minLength': 1}, 'priority': {'type': 'string', 'enum': ['routine', 'urgent', 'life_safety']}, 'assigned_at': {'type': 'string', 'minLength': 1}, 'eta_at': {'type': 'string'}, 'notes': {'type': 'string'}}, 'required': ['dispatch_order_id', 'resource_id', 'incident_id', 'requested_by_agency_id', 'required_capability', 'mission', 'priority', 'assigned_at'], 'additionalProperties': False}}}, {'type': 'function', 'function': {'name': 'release_resource_assignment', 'description': "Close one active assignment and set the resource's next state.", 'parameters': {'type': 'object', 'properties': {'assignment_id': {'type': 'string', 'minLength': 1}, 'released_at': {'type': 'string', 'minLength': 1}, 'release_status': {'type': 'string', 'enum': ['available', 'maintenance', 'out_of_service'], 'default': 'available'}}, 'required': ['assignment_id', 'released_at'], 'additionalProperties': False}}}]