Sequence diagram
Reading it
- Lifelines. They come from the spec's own
System: itsAgent(ControllableCHAOS, one per role if there are roles) against the monitor,ComplierGuard(Policy). A spec without both doesn't draw. - One bar per allowed call. On the left of the monitor's bar,
attemptcomes in,allowgoes out, and the call'sresultcomes back in. The agent's bar is the call running. []external choice. The monitor offers every operand at once; the agent's attempt picks one. The operands aren't steps in a row.result of x. The call's value decides where the policy goes. Neither the agent nor the monitor picks it.- Pills are the monitor's named states;
↺ Namegoes back to an earlier one.
Not drawn
- Only happy paths are drawn. The policy still does everything below, and complier still enforces it.
deny.otherinRecreatedeny.otherinDraft- Refusals: an attempt the current state doesn't offer is refused, and the policy stays where it was.