feat: implement RFC i guidelines for AI agents in Slack - #28
Open
coolton-agent wants to merge 1 commit into
Open
feat: implement RFC i guidelines for AI agents in Slack#28coolton-agent wants to merge 1 commit into
coolton-agent wants to merge 1 commit into
Conversation
Adds guardrails to comply with the Hack Club RFC i canvas (F0BNTDRNL3T): 1. Double-hash convention: ignores messages with ## on any line 2. Thread stop command: persists stopped state so later messages are ignored 3. Ping group mentions: does not reply when only usergroups/broadcasts are mentioned 4. Angle-bracket opt-out: ignores messages starting with <> unless bot is directly mentioned - Extracts inline isComment into shared blockedByAgentGuidelines check - Applies guardrails to onMention, onSubscribedMessage, and onDirectMessage - Adds stopped flag to ThreadState for persistence across thread messages - Adds 24 guardrail tests covering all rules plus edge cases
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Closes the gaps noted in RFC i – Guidelines for AI agents in Slack.
What changed
guardrails.tsmodule centralizes all four RFC i checks:##double-hash convention — ignores messages containing##on any line!stopthread persistence — setsstopped: trueon thread state; every subsequent message is ignored<!subteam^…>,<!here>,<!channel>, or<!everyone>are present<>opt-out — ignores messages starting with<>unless the bot is directly mentionedonMention,onSubscribedMessage, andonDirectMessagestopcommand to persiststoppedbefore attempting abort, so the gate survives even if abort failsstoppedtoThreadStateso it survives thread state round-tripsguardrails.test.tscovering all rules, direct-mention overrides, whitespace edge cases, and normal traffic