Question
Design a platform where an AI assistant invokes approved tools on behalf of users. Include tool registration, argument validation, identity and consent, isolated execution, timeouts, idempotency, audit logs, and result delivery. ## Preparation - Write the user or stakeholder, the constraint, and the decision in one sentence each. - Choose one measurement or observable fact that can support the answer. - Name one alternative and the reason it was not selected. ## Review checklist 1. Did I state the concrete constraint before describing the solution? 2. Did I separate my own decision and work from the team's work? 3. Did I name evidence or a measurement rather than relying on confidence? 4. Can I answer every follow-up without changing the original facts? ## Staged follow-ups 1. Handle a tool that succeeds after the caller times out. 2. Add a tool that requires a user confirmation midway. 3. Prevent one tenant from exhausting workers. 4. Rotate a tool credential without interrupting in-flight work.