"""Create recovery_planner
Generated by Phi-Octopus Eden
2025-11-06 01:48:25.292346
"""

```python
from typing import List, Dict, Any


class RecoveryPlanner:
    """
    A class that helps in planning recoveries from limited errors or system failures.
    
    Methods:
        __init__(self): Initializes the recovery planner with an initial state and a list of potential actions.
        add_action(self, action: str, cost: float) -> None: Adds an action to the planner along with its associated cost.
        evaluate_recovery(self, current_state: Dict[str, Any], error: str) -> List[str]: Evaluates which recoveries are feasible given the current state and a specific error.
    """
    
    def __init__(self, initial_state: Dict[str, Any], actions: List[Dict[str, Any]]):
        self.initial_state = initial_state
        self.actions = {action["name"]: action for action in actions}
    
    def add_action(self, action: str, cost: float) -> None:
        """Adds an action to the planner along with its associated cost."""
        if action not in self.actions:
            raise ValueError(f"Action '{action}' does not exist.")
        
        self.actions[action]["cost"] = cost
    
    def evaluate_recovery(self, current_state: Dict[str, Any], error: str) -> List[str]:
        """
        Evaluates which recoveries are feasible given the current state and a specific error.
        
        Args:
            current_state (Dict[str, Any]): The current state of the system.
            error (str): The error that needs to be recovered from.
        
        Returns:
            List[str]: A list of actions that can effectively recover from the specified error.
        """
        feasible_actions = []
        
        for action_name, action_data in self.actions.items():
            if "recovery_for" not in action_data or error in action_data["recovery_for"]:
                feasible_actions.append(action_name)
                
        return feasible_actions


# Example usage
initial_state = {"power": 90, "water_level": 50}
actions = [
    {"name": "restart_system", "cost": 10.0, "recovery_for": ["system_down"]},
    {"name": "refill_tank", "cost": 5.0, "recovery_for": ["low_water", "tank_empty"]}
]

planner = RecoveryPlanner(initial_state, actions)

# Adding new action
planner.add_action("restart_system", 12.0)

# Evaluating recovery from errors
current_state = {"power": 85, "water_level": 30}
errors = ["system_down", "low_water"]
recoveries = planner.evaluate_recovery(current_state, errors[1])
print(recoveries)  # Output: ['restart_system', 'refill_tank']
```