Containing shapes with keylines

When using containing shapes with keylines, the weight of the stroke for the keyline is roughly defined by the space between the typography and the enclosing shape within the logo as shown below.

The containing shape should be transformed as shown below, and when placed over the background image should touch the corner of the logo as shown.

Sample designs