A royal commission will publicly examine intelligence leading up to the Bondi massacre, but large parts of the probe will remain hidden from the public.