Have you ever come across this little scenario:
This happens to agents that are scheduled to run once a day. If you modify them in any way later that day they will behave as if they had not run (which they will also tell you, if you right-click on the agent in Domino Designer and select "View log") - and they will run shortly after! I have seen this confuse many admins (and developers) over time.
I have seen many interesting ways of trying to cope with this from within the code - unfortunately, none of them have been fool-proof, say if the scheduled agent was to run in the evening, i.e. after it was modified).
I have found a simple solution some time ago - and recently saw someone writing about this in another context - so I thought I would share since it is so simple: