A meta-cognitive architecture for planning in uncertain environments