I recently learned that sometimes the aircraft flying AC888 YOW-LHR does the next leg to Mumbai - BOM as AC856 (on the B788). Even though AC856 originates in YYZ as YYZ-LHR-BOM.
For example, Dec 12th's AC888 (C-GHPT) did the leg to BOM afterwards, as did yesterday's AC888 (C-GHPY), currently doing AC856 LHR-BOM.
Interesting to see the dynamic on how AC sells tickets and rotates aircraft. Imagine buying the one-stop AC856, but the YYZ-LHR cancels but the AC856 is a go from LHR-BOM because the aircraft came from elsewhere.