Texas Agriculture Code, Chapter 131, is your first place to look. Standard business practices and the Internal Revenue Code spell out the details. I don't think there are any "red flags" any more. The IRS is spread so thin that agents are not checking whether you actually use part of your home as an office, for example, but the computers at IRS are very efficient.