There is no warning or error when in aggregates filter use variable and entity with the same name ex. Task.Id = Task.Id where Task is an input variable with the structure of entity Task. which ends up in 1=1 situation.
Just encountered this behavior while fixing a bug.
It probably happened when the input variable or entity was renamed.