Container-based reasoning system