Skip to content
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

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

foysalit
Copy link
Contributor

@foysalit foysalit commented Sep 4, 2024

No description provided.

Copy link
Collaborator

@bnewbold bnewbold left a 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.

@@ -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.
Copy link
Collaborator

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)

@@ -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",
Copy link
Collaborator

Choose a reason for hiding this comment

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

out of date

@@ -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?
Copy link
Collaborator

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.

@@ -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()
Copy link
Collaborator

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.

bnewbold added a commit that referenced this pull request Oct 30, 2024
@foysalit: this is part of
#740

I pulled out the record-level ack and escalation for now, for
simplicity, even though it will probably be necessary for that other
branch to get merged.
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.

2 participants