"""Create logic_validator
Generated by Phi-Octopus Eden
2025-11-08 17:25:46.154286
"""

```python
def create_logic_validator(rule_dict: dict) -> callable:
    """
    Creates a logic validator function based on provided rules.

    Args:
        rule_dict (dict): A dictionary where keys are variable names and values are
                          functions that return True for valid inputs and False otherwise.

    Returns:
        callable: A function that takes an input object, checks it against the provided rules,
                  and returns a boolean indicating if the input is valid based on all rules.
    
    Raises:
        ValueError: If rule_dict is empty or any of the validation functions fail to return a bool.
    """

    def validate(input_obj) -> bool:
        for variable, validator in rule_dict.items():
            # Extracting the value from the object
            if not hasattr(input_obj, variable):
                raise AttributeError(f"Input object does not have attribute {variable}")
            
            value = getattr(input_obj, variable)
            
            # Check if validation function returns a boolean
            result = validator(value)
            if not isinstance(result, bool):
                raise ValueError("Validation function must return True or False")

            if not result:
                return False

        return True
    
    return validate


# Example usage:

class Person:
    def __init__(self, name: str, age: int):
        self.name = name
        self.age = age


def is_valid_name(name: str) -> bool:
    """Validate that a name contains only alphabetic characters."""
    return name.isalpha()


def is_age_valid(age: int) -> bool:
    """Validate that an age is between 1 and 120 inclusive."""
    return 1 <= age <= 120


rules = {
    'name': is_valid_name,
    'age': is_age_valid
}

validator = create_logic_validator(rules)

person = Person(name="Alice", age=35)
print(validator(person))  # Output: True

person = Person(name="Bob!", age=40)  # Invalid name
print(validator(person))  # Output: False

```