Sorry I didnāt get to this tread I could have told you the general area where to look. And the first thing to check, change. Just about all JD or recent vintage have a small inline fuel filter on the fuel line not far from the tank. These are āoff the shelf typeā that can be bought at just about any decent ag hardware store, or auto part store. Just match the size. Almost always much cheaper than what JD They only cost a few dollars. Personally I would not have taken out. First āline of defenseā and much easy and cheap to replace. Keeps the main fuel filter from getting clogged faster. They are much more expensive.
All the fuel tanks I have seen on recent vintage JDs are plastic so there is no ārustā particles to worry about. The fuel pick in the tank sits above the bottom. So it would take a lot of contaminates to clog that up. Look in the tank with a flash light check.
The idiot safety switches are almost always āanalogā. Spring loaded mechanical, off-on. Either something inside broke or one of the wires is loose. If the seat switch is āfunkyā cutting in and out so will the engine. It wonāt run for a while and just quite. I hate the seat switches, I take them out on any equipment that had them. Generally all you have to do is disconnect the 2 wires and and stick a jumper wire, or a piece cut off a paper clip into the two terminals. Wrap with some electrical tape. Duct tape works fine also.
The reason the tractor ran for a while and then cut off is because the filter had collected a bunch of particles in it. When it sits, not run for a while the particles will fall from the filter paper and settle in the filter sides,.bottom etc. Fuel is pulled through by vacuum once the tractor is running. At idle there is not a lot of fuel being demanded, low vacuum. When put under load the fuel demand is increased significantly. The particles are picked stirred up and collect on the filter element. Get enough of them and the fuel supply is choked off. Sometimes you will hear/feel a tell-tail, the engineās āsongā changes a bit from time to time, slight loss of power at times, etc. It like a tooth ache it will only get worse. When this happens the first thing to check is the filter you had to change. The first line of defense on the fuel line. Cheap and easy to swap out and see if that fixes things. I always keep a back up in my shop, tractor, Z turn, sizes. When adding fuel i like to use the funnels that have a fine mesh filler screen in it.
Pretty sure this tractor uses trans/hydraulic fluid. There is a filter for this also. If you experience a loss of power, going up a hill, pulling heavy equipment that is not engine related. It is usually means this filter needs changing. I have a bigger JD and I never got the āhoursā out of this filter that the service manual says.
These things almost always turn out to be something simple and generally inexpensive to fix and be a DIY. In this case the filter cost around $10-15± and a few minutes to swap out. I start with the simple inexpensive stuff and go up the ladder.