Variable not filtered by @cascade

This looks like a bug a bit, have you tried the following?

EDIT PS. Forget what I said above, it’s not a bug. It is the other case. Cascade does not apply to other blocks directly.

{
  MG as (func: uid($manager))

  myJobs (func: type("Job")) @cascade {
  jobs as uid
  managers @filter(uid(MG)) {
    uid
  }
}
        
  fiveJobs(func: uid(jobs), first: 5) {
    uid
    managers
  }
}

BTW, a cascade function in one block, doesn’t necessary will affect the other block. Cascade is always applied in the root of the main block, not others.