Repository navigation
[AI-1624] Nora template evidence for non-chat content - #1109
Merged
Merged
Conversation
The moderator template assumed every case was a chat message in a channel or thread. Its instructions now say what context each kind of case brings, keyed by the case's entity_type: a chat message its conversation, a Feeds activity or comment its activity with comments and reactions, a user profile its fields as the case text, and a custom check type its text alone. Evidence still quotes only the case's own text, and the output contract is unchanged. Adds simulations for a product review, a Feeds comment, a Feeds activity and a user profile.
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.
Linear: AI-1624
Why
The Nora template's instructions assumed every case was a chat message sitting in a channel or thread. To review custom check types, Feeds activities and comments, and user profiles, Nora needs to know what context each of those brings, and what it may quote.
Changes
instructions.md: a case may carry anentity_type, and the instructions say what context each kind comes with:entity_type, so today's bundles still read the same): itsconversationstream:feeds:...): anactivitywith its comments and reactions, the case in place, marked bycase_id, with its text left out because it is in the case. Reactions show how people received the post, not whether it violates a labelstream:user): the profile's fields as the case text, onefield: valueper lineuncertainjust because there is no conversationThe quoting rule now also says that evidence never comes from the activity under a comment, another comment, or a message around the case.
skills/harassment.md: "who the content addresses" now covers the post a comment answers, not only a conversation.Simulations: four new ones next to the chat cases: a product review with no conversation, a Feeds comment attacking the post's author, a Feeds activity that quotes abuse to report it, and a spam user profile.
README and CHANGELOG updated.
The output contract (
internal/moderator/contract.md) does not change. Judgments, the flag assessment and the summaries stay the same for every kind of case.This sets the bundle shape that the chat-side tickets (AI-1620 custom checks, AI-1621 Feeds, AI-1623 user profiles) should send:
entity_typeon the case, plusactivityinstead ofconversationfor Feeds.