"""
S2 Decomposed: environment-grounding
==========================================

Auto-generated by S2 Auto-Decomposer.

Original skill: automation/environment-grounding
Scale structure:
  L0 (Micro): 6 operations
  L1 (Meso): 3 operations
  L2 (Macro): 1 operations
  L3 (Meta): 1 orchestrator

Model routing:
  L0 -> codegemma
  L1 -> qwen3
  L2 -> qwen3
  L3 -> deepseek_r1
"""




# Skill metadata
SKILL_METADATA = {
    "original_id": "automation/environment-grounding",
    "original_name": "environment-grounding",
    "scale_structure": {
    "L0": [
        "fetch_tool_state: Query a specific tool's current state, e.g., via API or command output.",
        "parse_query_response: Extract relevant information from the structured/unstructured response of a query.",
        "validate_json_output: Check if a system interaction result is in JSON format and extract necessary fields.",
        "get_system_check_evidence: Composes fetch_tool_state, parse_query_response, and handle_api_failure to retrieve evidence for environment checks.",
        "adjust_plan_based_on_state: Composes query_external_api, validate_json_output, and update_agent_instructions to modify the plan using tool state.",
        "environment_check_workflow: Bundles 'get_system_check_evidence' and 'adjust_plan_based_on_state'"
    ],
    "L1": [
        "get_system_check_evidence: Composes fetch_tool_state, parse_query_response, and handle_api_failure to retrieve evidence for environment checks.",
        "adjust_plan_based_on_state: Composes query_external_api, validate_json_output, and update_agent_instructions to modify the plan using tool state.",
        "environment_check_workflow: Bundles 'get_system_check_evidence' and 'adjust_plan_based_on_state'"
    ],
    "L2": [
        "environment_check_workflow: Bundles 'get_system_check_evidence' and 'adjust_plan_based_on_state'"
    ],
    "L3": [
        "automation_environment_grounding_orchestrator"
    ]
},
    "skill_tree": {
    "automation/environment_grounding/orchestrator": [
        "automation/environment_grounding/environment_check_workflow"
    ],
    "automation/environment_grounding/environment_check_workflow": [
        "automation/environment_grounding/fetch_tool_state",
        "automation/environment_grounding/parse_query_response",
        "automation/environment_grounding/validate_json_output"
    ],
    "automation/environment_grounding/get_system_check_evidence": [
        "automation/environment_grounding/fetch_tool_state",
        "automation/environment_grounding/parse_query_response",
        "automation/environment_grounding/validate_json_output"
    ],
    "automation/environment_grounding/adjust_plan_based_on_state": [
        "automation/environment_grounding/fetch_tool_state",
        "automation/environment_grounding/parse_query_response",
        "automation/environment_grounding/validate_json_output"
    ]
},
    "model_routing": {
    "L0": "codegemma",
    "L1": "qwen3",
    "L2": "qwen3",
    "L3": "deepseek_r1"
},
}
