Agent Lifespan Engineering