from pathlib import Path

def check_files():
    """
    Checks for presence of critical project files.
    Returns: list of (bool, str) - (Success, Message)
    """
    results = []
    
    # Critical files
    critical_files = ["Dockerfile", "docker-compose.yml"]
    found_any = False
    
    for filename in critical_files:
        if Path(filename).exists():
            results.append((True, f"Found {filename}"))
            found_any = True
        else:
            # We only fail if NONE of them exist or if they are expected?
            # User said: "Missing critical files -> FAIL"
            # I'll report success for what's found and maybe warning for what's missing
            # but if it's a Docker project, a Dockerfile is usually mandatory.
            pass

    if not found_any:
        return [(False, "No Dockerfile or docker-compose.yml found in current directory")]
    
    return results
