Worklog for task "Figure out why the request is not executing correctly via n8n"
That's right. Here is the beauty:
if (currentUser && !currentUser.sudo) {
result.createdById = currentUser.id
}
What was the AI thinking when it coded something like that? That's where the magic came from: the agent executes the timers request, and gets an empty array in response. I execute the exact same request, and I get data. I remove the authorization token, meaning I execute the request anonymously — the data is there too, meaning no special security policies are configured (nor should they be, because this is public data). And then it hardcodes a condition that if you are not authorized, you get everything, but if you are authorized and not sudo, then you only get your own data. In other words, the same request with the same data returns a different set of data depending on the circumstances. If this AI had hands, I would break them off.