How would an Apprentice kill the Master, as a ritual?
It may not be expected that a Master would wish to hand over power and title to an Apprentice of his own free will. Perhaps a challenge would be made, and under the Code, the Master must respond. Perhaps the Master would be sacrificed, with a promise of immortality on Korriban. Unfortunately, these things are not documented.