Skip to content

Move hold_cluster_spam below act_cluster_spam_* rules to fix shadowin… - #76

Open
GraceyDugar wants to merge 1 commit into
xai-org:mainfrom
GraceyDugar:fix-cluster-spam-rule-ordering
Open

Move hold_cluster_spam below act_cluster_spam_* rules to fix shadowin…#76
GraceyDugar wants to merge 1 commit into
xai-org:mainfrom
GraceyDugar:fix-cluster-spam-rule-ordering

Conversation

@GraceyDugar

Copy link
Copy Markdown

Fixes #67

The rules engine is first-match-wins, and hold_cluster_spam (a broad skip on startsWith("cluster_spam")) was ordered above the three act_cluster_spam_* action rules that share its prefix, making suspend/bounce/label unreachable for base cluster_spam decisions.

This moves hold_cluster_spam below the three action rules so it acts as the catch-all for decisions with no actionable label, mirroring how the cluster_spam_extended family is already ordered.

Note: the file header says it's mirrored from a GrowthBook dynamic config, so the live config may differ but this makes the published rules internally consistent either way. Happy to add a test for the ordering with some guidance on where the rule-evaluation tests live.

@chaosnull146-arch chaosnull146-arch left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Missing unit test

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.

First-match-wins ordering: hold_cluster_spam shadows the base cluster_spam suspend/bounce/label rules, making them unreachable

2 participants