This section is at https://rollingedition.com/business-intelligence-with-agents/guarded-sql#repair-once.