A duty is a commitment or expectation to perform some action in general or if certain circumstances arise. A duty may arise from a system of ethics or morality, especially in an honor culture. From Wikipedia
Royal sources cite the no half‑in, half‑out rule despite Harry’s recent private meeting with the King.