Product risk vs. market risk

Two different risks get confused a lot: can I build it, and does anyone want it.

They need different kinds of validation.

If the real risk is market risk; does this matter to anyone; writing clean code doesn't reduce it at all.

Worth deciding upfront what would tell you to stop, before building anything.