bayesline.api.FeaturePolicy

bayesline.api.FeaturePolicy#

model FeaturePolicy#

A policy about what a feature is, holding for every user.

States only the fields it carries, so an unstated one is left to a lower-ranked policy. locks settles the feature: its stated enablement holds for everyone and no grant can move it.

Fields#

Field

Type

Required

Default

authority

PolicyAuthority

Yes

default_data

dict[str, Any] | None

No

None

default_enabled

bool | None

No

None

feature

str

Yes

locks

bool

No

False

message

str

Yes

field authority: PolicyAuthority [Required]#
field default_data: dict[str, Any] | None [Optional]#
field default_enabled: bool | None [Optional]#
field feature: str [Required]#

The identity of the feature it speaks about.

field locks: bool [Optional]#
field message: str [Required]#

Human readable explanation of what was stated and, where it cannot be changed, who to approach about it.