Scale Intelligence■ Docs
Docs / The model / PolicyDecision

PolicyDecision.

The choice made, the chance it had, the alternatives, the version of the policy, the outcome when read

Figure 1PolicyDecisionspecified
POLICYDECISIONfact at follows scopepolicytextversiontextchoicejsonchancechancealternatives[json]outcomejsonoptionalpoints at no other object
PolicyDecision is a fact at follows scope. The drawing shows its fields and the objects that they point at.
kind
fact
scope
follows
key
the policy, its version and the moment
store
postgres+lake
family
models

Fields#

fieldtyperequirednote
policytextyes
versiontextyes
choicejsonyes
chancechanceyes
alternatives[json]yes
outcomejsonno

Routes that use it#

No route takes or returns PolicyDecision directly. The record holds it, and the objects that point at it reach it.