I was in Diamond City at night with Strong and had him inspect an owned ammunition container belonging to Arturo. He took the items inside, and I traded with him and put them in my inventory. I then walked in front of a DC guard to see if he would become hostile, and he did not. I repeated this process multiple times, never crouched, and each time got off without anybody batting an eye.
Additionally, I had Strong take an item from off a table in front of Diamond City surplus, and Percy took it back in a calm manner (he did complain about 'having to put up with some people', but never became hostile).
Is this a bug in the game, being able to get away with theft if your companion inspects a container with the desired items inside? Or is it an interesting addition to the game?
EDIT: Had Strong steal a blood pack from Chem-I-Care. Guards became hostile, but did they become hostile because Solomon was not there to take it back?