Follow-up to !1: review logic
As a follow-up to !1 (merged), to help verify and document the logic implemented by the controller, it would be useful to write down a few lines (around 5) for the following items (initially in this issue or a codimd doc):
- describe the possible states and transitions of annotations set by the controller on PV (what are the possible values and what events change the values)
- describe the logic that
watchEventPVs
should implement (not necessarily what it's doing now) - describe the logic that
cleanupGrantPermission
should implement (not necessarily what it's doing now)