Plywood or OSB came loose. Option 2 that I posted earlier.
"If it's plywood, the scope will expand to at least 5' up by at least 5' to the side(s)." Plan on buying and installing 1/2 a sheet of the appropiate thickness.
If reusing the same shingles, let them relax to straight on their own while doing the repair before reinstalling them,