IRC Section 41(d)(1)(A) and Treas. Reg. 1.41-4(a)(3) establish the uncertainty requirement.
At the outset of the activity, available information must be insufficient to establish the capability or method for developing or improving the business component, or the appropriate design of the business component. Three uncertainty kinds: capability, method, design.
Per Treas. Reg. 1.41-4(a)(3), the uncertainty must be technical in nature, not financial or commercial. 'Will users like it' is not Section 41 uncertainty; 'will it scale to 50,000 events per second on our existing cluster' is.
Because the test looks at the outset of the activity, the auditor wants to see the uncertainty as it was articulated then, in contemporaneous notes, not reconstructed after the fact.