When Justice Can Be Engineered