Hi Sjm,
First to answer your question:
"If one pockets the one loose ball on the table, plays shape for a safety, and then plays safe, is that an offensive inning or not? "
Yes it is considered an offensive inning in the calculation of OPI and also in the calculation of BPASI/PPASI (offensive...