In our ceremonial manual, there are rules about flying flags at half-mast. Unless we receive special instructions, all flags must be flown at half-mast at all defence institutions as well as aboard ships as soon as the death is announced, and they remain so until sunset on the day of the funeral or memorial service if the deceased is the sovereign, the Governor General, the Prime Minister, a family member of the sovereign, a former governor general, a former prime minister, a Chief Justice of Canada, a member of the Canadian cabinet, a member of the Privy Council or a senator.
If the deceased is a military member of the Canadian armed forces sent to an area of operations on a mission, as in the case you mentioned, flags must be flown at half-mast as follows. All the flags of the operations force to which the member was assigned at the time of his or her decease must be flown at half-mast, from the day of the decease until sunset on the day of the funeral. All the flags of the regiment the member belonged to must be flown at half-mast, from the day of decease until sunset on the day of the funeral. All the flags of the service—sea, land or air—to which the member was assigned must be flown at half-mast but only on the day of the funeral, from sunrise to sunset, and all the flags at National Defence Headquarters at 101 Colonel By must be flown at half-mast, from the day of the decease until sunset the day of the funeral.
For us, that's fairly clear. As to what goes on on Parliament Hill, that is out of our jurisdiction. As you saw at the beginning, my comments on flying flags at half-mast have been fairly limited.