I grew up on a chicken and sheep farm. Between letting the chickens roam the vegetable part of the farm area and eat bugs (bonus: we didn't need pesticides) and feeding them our organic food waste, we basically spent nothing on chicken feed. I found out about chickens being zealous cannibals accidentally when I was a kid taking the trash out to feed them. We'd had fried chicken for dinner, and I wasn't thinking about it and just threw all the bones into the feeder like I always did with the food trash. They went berserk over those chicken bones. They absolutely loved them. It was a shark-style feeding frenzy. I was weirded out by that for a while.
It was a pretty small operation though. OP's idea for chickens might make sense in a factory farm situation where there's no space to let them roam for bugs. And maybe the logistics of getting them fresh trash don't make a ton of sense.
We used the chickens for eggs mostly and meat when they stopped laying. We used the sheep for meat every spring. We would trade with the neighbors in exchange for helping farm our vegetable crops or fresh milk from the small-ish dairy farm down the road. It wasn't the kind of thing where we were selling to a grocery conglomerate or anything.
Probably none of our farming practices would have been acceptable at scale. But that wasn't our point. It was mostly just for our family. Honestly, not the worst way to grow up. You farm your own food and slaughter your own meat. You learn a certain respect and appreciation for what sustains you.
But anyway, yeah, I don't know what the rules are if you're selling your livestock. Feeding them trash probably isn't allowed, even though it's efficient.