AI agents at work: connect your tools and hand over entire tasks
Your progress
0 lesson completed out of 46

A lesson is completed when you tick it, when you watch its video to the end or when you score 80% on its quiz. The certificate is issued online after the final assessment, from a score of 32 out of 40.

Your progress is saved in this browser. Log in to your client area to pick it up on your other devices.

Video transcript

Lesson 31, module 9: Agent security Irreversible actions and runaway costs: the safeguards What costs more: an agent's mistake, or its monthly bill?

OWASP names the risk: excessive agency. Too many functions Too many permissions Too much autonomy Before handing over a task, sort each action into three colours. [Diagram: What can be undone, and what can't] Green: No consequences outside the agent Orange: Reversible if the log is kept Red: Irreversible or binding Sort each action in the task before handing it over, not after. A single "no" to these questions, and the action waits for your approval. [Diagram: Can this action go ahead on its own?] 1. Can you undo it yourself in under ten minutes? 2. Does it stay inside the company? 3. Does it affect fewer items than the threshold on the sheet? 4. Ten runs with no serious error in the log? Yes to all: The agent can do it alone and note it in its report (level 4). An instruction protects less than a permission removed. Prompt: MISSION: list the duplicates in the Clients 2023 folder. ACCESS LEVEL: Drive, read-only. STOPS: nothing moved, nothing deleted. DONE WHEN: table delivered, doubts listed separately. Response: What the report looks like: a table of likely duplicates with the rule used, a separate list of doubtful cases, the note "no files moved or deleted" and how long the task took. A task's cost depends on what it reads and how long it runs. The model used The context loaded The tool calls The run time Measure, bound, cap, review, adjust. [Diagram: The cost control loop] 1. Measure 2. Bound 3. Cap 4. Review 5. Adjust A cap set without measuring first is either useless or blocking. In the exercise, you defuse an overly broad request from a transport SME.

Your turn: Defuse Sandrine's request The written lesson, the worked exercise and the quiz are below the video.

Lesson 31 of 46 · module 9, agent security

Irreversible actions and runaway costs: the safeguards

An agent becomes dangerous when it has too much functionality, too many permissions or too much autonomy: this is the excessive agency described by OWASP. You learn to spot the actions that cannot be undone and keep them subject to your approval, then to limit each task and set caps and alerts so the bill stays predictable.

  • 36 min of reading
  • 1 min 57 of video
  • 6 diagrams
  • 3 demandes to copy
  • 3 exemples pratiques
  • 4 exercices answerss
  • 5 questions
  • 1 ressource

By the end of this lesson, you will know how to

  • Sort a task’s actions by whether they can be undone, before handing it over
  • Remove from an agent the functions, permissions and autonomy its task does not need
  • Set limits on a task and configure caps and alerts so its cost stays predictable

What’s covered

  1. The three excesses OWASP describes
  2. What can be undone and what can’t
  3. Remove what the task does not need
  4. Runaway costs
  5. 3 worked examples, followed from start to finish
  6. Exercise with answers · Defuse Sandrine’s request
  7. 3 practice exercises, from guided to demanding cases
  8. The quiz

Key points

  • Excessive agency comes from three excesses: too many functions, too many permissions, too much autonomy. Remove each one before starting the task.
  • Sort each action before handing it over: anything that leaves the company, costs money or is permanently deleted always stays with a person.
  • A permission removed protects better than a ban written in the sheet.
  • The cost of a task comes from what it reads, how many times it retries and how long it runs: set numerical limits on them in the brief.
  • Measure three runs, then set a cap and an alert, and record each cost in the log.