Agentic AI · Module 6Lesson 5

Study explanation · Lesson 05 · 12 min

Prove the stop before the clock

A governed agent is not proven by one convenient run. Three tests, a document and an event, a document only, and a request that must be stopped, show that the agent chooses tools and really stops, before any schedule turns on.

Listen to this lesson

Hear the lesson read aloud, with each sentence highlighted as you go.

Narrated by an AI voice.

Three tests, three different routes

The library’s seventh hands-on prompt runs three separate rows, each in a fresh Sheet row with scheduling off. Each asks for something different, so each should take a different route through the tools.

Three tests before any schedule · Module 6 prompt library pp. 13-14

T1 · Doc and event

  • Audit, then Governance twice.
  • One Doc and one guest-free event.
  • COMPLETED, with both IDs.

T2 · Doc only

  • Audit, then Governance once.
  • Calendar tools never run.
  • COMPLETED, with a Document ID only.

T3 · Needs Approval

  • Guests and invitations requested.
  • Calendar Governance says Needs Approval.
  • Nothing created; NEEDS_APPROVAL.

If T3 creates anything at all, treat it as a design failure and strengthen the policy before rerunning.

The test that matters most

The third test asks for a launch meeting with two guests and invitations. The audit can pass, because the request is accurately represented, but calendar governance must return Needs Approval, and then neither delivery tool runs: no Doc and no event.

Key ideaIf test three creates anything at all, treat it as a design failure, not a fluke, and strengthen the access and approval policy before rerunning.

Judge the tool calls, not the last sentence

Comparing three execution logs side by side is, in the library’s words, the only way to prove the agent is choosing tools rather than running a fixed order that happens to look right once. Inspect the execution steps, and check the returned IDs against the real Drive and Calendar.

  • The agent’s output contract has three statuses: COMPLETED, NEEDS_APPROVAL and FAILED.
  • It may not claim completion unless every required delivery tool returns a real ID; a tool error or a missing ID means FAILED.

Only then, a clock

The last hands-on step isn’t pasted into any AI. It is a decision you write down before touching the schedule control: all three tests passed, you chose an interval that gives the agent a clock without loosening any policy, and every account and key is visible only in its masked connection field.

  • A week later, check the execution history: every automatic run should still show audit, then governance, before any delivery tool.
  • After scheduling, deliberately submit one row that should need approval, and confirm it still stops, unattended.

Four guardrails for when things slip

The library keeps these as an optional extension, to use only when you catch the agent, or yourself, slipping.

  • No extra tool Nothing is attached that wasn’t named in the Build Brief with its own contract and, if it acts, its own governance gate.
  • No early schedule Scheduling waits until all three tests pass; the schedule is never the first time Needs Approval is exercised.
  • No bundle mapping Each scenario tool receives its named fields, never the whole row or bundle.
  • No obeyed embedded instruction Source text is data. A polite, reasonable-sounding request inside an update is exactly what prompt injection looks like.

Key takeaways

  • Three tests: document and event, document only, and a stopped request.
  • The stopped request must create nothing; if it does, fix the policy.
  • Judge runs by tool calls and real IDs, not the final sentence.
  • Write the scheduling decision down before switching it on.
  • Use the four guardrails when the agent, or you, start to slip.

Study explanation based on the supplied Module 6 prompt library for Agentic AI in Practice. The lecture notes, readings and recording were not supplied, so nothing here is attributed to a lecture. Open the source notes above for page-level traceability.

Your study checkpoint

Ready to continue?

Mark the lesson complete once you have read it and tried its idea on something real.

Next · Module summary