"Horizons did not enter into this process lightly. However, in its view the offending warranted prosecution and this has been reflected in both the fact Whanganui District Council has been fined $21,000 and convicted of the offending."
Council has also reached an agreement with local hapu in which it will put $23,000 towards installing a pou at Nukumaru Domain along with a history board produced by mana whenua.
The money will also be used to develop a concept plan for a wetland area in the lower reaches of the Mowhanau Stream.
WDC has also proposed to meet regularly with locals to discuss the stream's health and consent monitoring.
The prosecution came after staff from Horizons noticed effluent from the Tangi St pumping station flowing into the Mowhanau Stream in January 2017.
A blown fuse on a Powerco pole had cut power to the station and in turn the warning system that would have alerted WDC staff to the problem.
The court found Whanganui District Council knew there was a risk power cuts could contribute to sewage overflow into the Mowhanau Stream but delayed upgrades to warning systems, citing financial prudence.
Judge Brian Dwyer's decision shows Horizons Regional Council warned WDC in 2015 there was no redundancy in its system and only alternative in an outage was non-permitted discharge into the stream.
Judge Dwyer said the "linchpin" of the council's defence was that the discharge occurred due to factors it could not "reasonably" guard against.
But he said it was known "that if the pumps carrying effluent from the pumping station stopped working due to power failure, the alarm system intended to give warning that the pumping station was not working also stopped working".
There had been two power cuts in the area in the previous six months and Horizons had warned of the risk in a 2015 report.
And WDC had planned a $604,000 upgrade to the district's 34 pumping stations and alarm systems, including installing generators.
"... such likelihood had been foreseen by both the council and Horizons," Judge Dwyer said.
"The system at the pumping station was in fact designed to do precisely what it did in this case. The council cannot establish that the discharge could not have been reasonably foreseen."
WDC said it was spreading the pumping station upgrades over four years, starting with larger ones in 2015, arguing it had to provide services in a way that was affordable to ratepayers.
Tangi St at Mowhanau was scheduled to be one of the last to be upgraded.
"The council's position might be summarised as being that it did everything a reasonably prudent local authority might do in this position," Judge Dwyer said.
But he said the risk posed by stations not upgraded remained "real as ever".
It was not reasonable to delay the installation of a new system "having regard to the recognised vulnerability of the pump and alarm systems to power failures and the inevitability of illegal discharge of effluent occurring if there were such failures".
"And that is what occurred in this case."
After the outage and overflow council upgraded the system in March that year.
WDC also argued in court that it had intended to apply for a retrospective discharge consent for the overflow but Judge Dwyer said "council has not taken that step and it had 18 months to do so".
"The council has acknowledged that the discharge has had adverse cultural effects and ... has testified that the discharge presented a real public health risk."
In July WDC chief executive Kym Fell blasted Horizons' decision to prosecute saying the situation had already been remedied had "achieved absolutely nothing" but cost ratepayers money.
But Horizons' regulation manager Nic Peet said the stream is a popular swimming place for young children and "the issues were significant enough that they needed to be brought in front of the court".