I'm (probably) going back from Academia to Industry after a post-doc. Unlike last time, where I signed a company-standard contract which did not have room for much maneuvering, this time it's a small company with no template and will be their first academically-oriented hire.
I'm not asking so much about the employment conditions aspect of the contract, or about expatriation (in fact, I've asked a separate question about that on expats.SX) - but rather about the nature of the position in terms of doing research, publication / release of code, and other related issues.
What issues, or aspects of the relationship, do you believe it is:
to put into such a contract? (I'm asking about the disjunction, not the conjunction, of the above)
Note: I'm in applied Computer Science. You can make your answer more specific to this field or more general.