Would walling your own allies TC be rule breaking?

It’s a locked team game. And one guy decides to be a total troll and walls your town center with palisade walls in the darkage.

What sort of punishment would this player get for doing this?

Report the player either in game or submit a request on the support website. The community team will investigate and determine the appropriate course of action.