-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
:saprkles: Auto escalate accounts for high follow/like churn #740
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this generally looks good. this kind of very-impactful change is something we'll want to test carefully in staging; i'm not sure we can get this through in the next week.
automod/engine/effects.go
Outdated
@@ -128,6 +132,11 @@ func (e *Effects) TakedownAccount() { | |||
e.AccountTakedown = true | |||
} | |||
|
|||
// Enqueues the entire account to be taken down at the end of rule processing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment out of date (copypasta)
automod/engine/metrics.go
Outdated
@@ -40,6 +40,11 @@ var actionNewTakedownCount = promauto.NewCounterVec(prometheus.CounterOpts{ | |||
Help: "Number of new flags persisted", | |||
}, []string{"type"}) | |||
|
|||
var actionNewEscalationCount = promauto.NewCounterVec(prometheus.CounterOpts{ | |||
Name: "automod_new_action_escalations", | |||
Help: "Number of new flags persisted", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
out of date
automod/engine/persist.go
Outdated
@@ -57,8 +57,13 @@ func (eng *Engine) persistAccountModActions(c *AccountContext) error { | |||
if err != nil { | |||
return fmt.Errorf("circuit-breaking takedowns: %w", err) | |||
} | |||
// @TODO: do we want to check if the account is already escalated? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, we should check here. we should also maybe popular review start as part of account meta? and clear account meta when it changes.
automod/rules/interaction.go
Outdated
@@ -25,6 +25,7 @@ func InteractionChurnRule(c *automod.RecordContext) error { | |||
c.Logger.Info("high-like-churn", "created-today", created, "deleted-today", deleted) | |||
c.AddAccountFlag("high-like-churn") | |||
c.ReportAccount(automod.ReportReasonSpam, fmt.Sprintf("interaction churn: %d likes, %d unlikes today (so far)", created, deleted)) | |||
c.EscalateAccount() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd be in favor of commenting this out for now, so we can review and get the engine change merged, then do the policy/behavior change separately.
No description provided.