final diameter of the bore is deemed by the piston manufacturer... they give you the size of the piston and the size of how much clearance they want to see for a specific application. i.e. - street use, racing/high rpm, boost and/or nitrous. you may find that a manufacturer will say for a 4.030 piston - the piston will actually measure at 4.028. that particular piston for a street use enigne will have a finish bore of 4.032 to 4.034. you may also find lower down in the instructions sheet that these same pistons may be used in a boosted/nitrous engine.. with a finish bore of 4.034 to 4.036. the manufactures have already figured out how the pistons will "grow" under different conditions and have listed it so in the paper work that comes with the pistons when bought new.
as for the ring package - it is also the manufacture that gives the recommended finish and cross hatch patten to be applied to the cylinder wall. they also give recommended ring end gaps for all the ring sets in the packaged set.. based on use of the engine.. street use may call for 0.004 to 0.006 inch gap per 1 inch of cylinder bore diameter.... a boosted or nitrous application may call for 0.006 to 0.010 gap per inch... this info is in the paper wok that comes in the box with the rings from the manufacture....
every manufacturer is different and these numbers are just a basic industry standard for most applications. there are shops and engine builders that work very closely with piston and ring manufactures that will deviate from these numbers for testing purposes or even "builders secrets" to try and get just that little bit more power or length of life out of a ring set.
I cant tell you how many shops I've been into and everybody has their own little something that they feel gets them just that little bit more than the other guys... sometime it works and sometimes not... and even some of the stuff seems to go against what you would think and will hurt performance; but actually works to the builders benefit.
one of these places that EVERYBODY is fiddling with is piston to bore clearances, ring end gap clearances and bore finishes for the rings.