Here is an interesting piece from State Sunshine and Open Records about a Wisconsin case in which a public employees' union entered into an agreement with the state requiring the withholding of certain information.
Washington agencies try this on occasion too but it's pretty clear that a contract cannot override a statute. Imagine the mischief if it could--a contract not to pay taxes, a contract to drink and drive, etc.