Fix agent rules files for remote project by loading via buffer (#29440)

When using the agent with a project shared by a collaborator, rules file
loading didn't work as it was trying to read from the client's
filesystem

Release Notes:

- Fixed rules file loading when using the agent with a project shared by
a collaborator.
cfb7a30724Michael Sloan committed on 4/25/2025, 8:06:40 PM· committed by GitHubparent7623fce
4 files changedLine totals unavailable