Could the yellow stuff be the yolk of a broken egg? It is not at all unlikely that what you are dealing with is a stuck egg that has broken. Sometimes people do try to get the egg out, but the broken shell can cut them pretty badly, if it is not soft shelled. I suspect the hard thing you feel is a stuck egg. Whether to try to get it out manually is a decision only you can make. I'd sure try everything else first.
I don't mean to offend, but perhaps I should explain that the egg and the poop come out of the same hole. There is a "Y" just before the external opening (cloaca). One side leads to where eggs are made, the other to the intestine/digested food. To put it simply, again. If you already knew this, please don't be insulted; I've seen the question asked on here many times, whether the egg and poop come out of the same hole.
If you have a stuck egg, it is quite possible it is above the "Y," that is, not in the intestine at all.
I don't mean to offend, but perhaps I should explain that the egg and the poop come out of the same hole. There is a "Y" just before the external opening (cloaca). One side leads to where eggs are made, the other to the intestine/digested food. To put it simply, again. If you already knew this, please don't be insulted; I've seen the question asked on here many times, whether the egg and poop come out of the same hole.
If you have a stuck egg, it is quite possible it is above the "Y," that is, not in the intestine at all.