Conversation
A submitted story that isn't from a banned user is now auto-published when its AI moderation score clears MIN_REJECT_PROBABILITY, the same way a banned user's story is auto-rejected: state set to published, lastReviewer set to 'system'. The storyteller gets the story-auto-published email instead of story-submitted. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Without a timeout, a hung (not just failing) OpenRouter request could stall a story submission indefinitely before the surrounding try/catch ever gets a chance to run. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Reuses the same 0.7 cutoff the admin review screen already flags low-recaptcha stories with. A story below it still goes to human review even if the AI moderator would have approved it. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Same bug as master: a resubmission returned early before evaluateStory ran. Fixed the same way here, and since this branch also takes action on the score, made the auto-publish eligibility explicit rather than leaving it as a side effect of the early return: only a story's first-ever submission can auto-publish. A resubmission (often following a human rejection or edit) always goes back to human review, though it's still scored and shown as flags in the review screen. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…late Moderation now runs on every submission, and a resubmitted story can auto-publish. That combination had no email to send. Rather than add a fourth template, we pass isPublished to story-submitted and story-submitted-again, and delete story-auto-published. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this does
A story is published straight away when the AI moderator approves it, with no human review.
A story auto-publishes when all three are true:
MIN_REJECT_PROBABILITYAn auto-published story gets
state: publishedandlastReviewer: 'system'. This is how a banned user's story is auto-rejected today.Emali template updates
Rather than add a fourth template, the two submission templates take an
isPublishedflag:story-submittedcovers a first submission, whether it is queued or already livestory-submitted-againcovers a resubmission, whether it is queued or already livestory-auto-publishedis deleted🤖 Generated with Claude Code