Verify the state after an action

Keep action verbs and their objects together. · 185 words

After an action, do not treat a success message as proof of the final state. Ask the tool that reads the current state. For a library example, write: "The current loan is due July 1. An approved renewal extends it to July 15. Call renew_loan for loan 4821, then call get_loan for loan 4821. Report the due date and status from get_loan, not from the renewal reply. If they differ, say 'needs review'." The source detail is the fresh get_loan record. The checkable result is that loan 4821 shows status 'active' and the expected due date, and the answer includes that record ID.

Use a sports example to show why verification matters. Write: "Register Maya Chen for the beginner clinic on 12 June. Then call get_registration using the registration ID. Do not say she is registered unless the new record shows 'confirmed'." The source detail is the get_registration record, which includes the event date, player name, and status. A checkable result is a confirmation showing the same ID and event. If the record says 'pending', report that the registration was submitted but is not confirmed.

Check your recall

Why should the library answer use get_loan rather than only the renewal reply?

Check your answer

The get_loan result is a fresh reading of the loan's current state. It proves whether the renewal actually changed the due date and status, while the renewal reply alone may only report that the request was accepted.

Sources and credits

Original KeyTouch lesson. Background reading · Microsoft · Generative AI for Beginners.