There is a kernel of an exception that is almost not worth mentioning. The Rules of Professional
Conduct 3.3 obligates me with the duty of candor. I am not allowed to present evidence that I “know”
is false, which encompasses witness testimony. Some jurisdictions make exceptions to this rule for
defendants testifying in their criminal trial (correctly, IMO) but not all. So assuming that a
client truthfully confesses to me, assuming we go to trial, assuming they decide to testify, and
assuming I “know” they’re going to lie, then yes, this could indeed spawn a very awkward situation
where I’m forced to withdraw in the middle of proceedings.'I'm sorry your honor, I have to withdraw from this matter because my client, who is a bit dim, has just told me at the lunch break that he totally did the thing, and also that he's going to lie his ass off about it when he gets up in the witness box in just a minute'
But the next time you hear a lawyer withdraw because they're 'forensically embarrassed', you'll know what happened
There's a key standard for this: Digital Public Goods, which you can read lots more about here:
https://digitalpublicgoods.net/
https://unicef.github.io/publicgoods-toolkit/
https://digitalprinciples.org/#principles
If this sounds like fun to you, here's a couple of my favourite Digital Public Goods that have great communities and make real impact:
https://github.com/primeroIMS/primero
https://github.com/rapidpro/rapidpro
https://github.com/ckan/ckan
https://github.com/dhis2/dhis2-core