Skip to content

policy and trigger#142

Draft
erik-rosenstrom wants to merge 7 commits into
etr-school-closurefrom
etr-policy-and-trigger
Draft

policy and trigger#142
erik-rosenstrom wants to merge 7 commits into
etr-school-closurefrom
etr-policy-and-trigger

Conversation

@erik-rosenstrom
Copy link
Copy Markdown
Collaborator

No description provided.

@erik-rosenstrom erik-rosenstrom changed the base branch from main to etr-school-closure May 28, 2026 17:22
@erik-rosenstrom erik-rosenstrom marked this pull request as draft May 28, 2026 17:23
@erik-rosenstrom erik-rosenstrom linked an issue May 29, 2026 that may be closed by this pull request
Comment thread src/policy.rs Outdated
start_time: 1.0,
end_time: 5.0,
}),
intervention: Intervention::Isolation(isolation_intervention),
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems strange to me to refer to active/inactive properties that are always boolean in the context of setting a modifier for a group over a specified state-based time frame. This is distinct from an individual level policy that has a trigger that is tethered to a changing person property rather than a state-based trigger. So we would connect directly to a property or itinerary modifier here instead of an Intervention object.

Individual-level triggers and state-level triggers would allow us to have a more cohesive framework of how policies listen to changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Policy and Trigger design

2 participants