Draft
Conversation
Fizzy has no concept of non-human users beyond the system role. This adds a bot role so AI agents get proper attribution without phantom human accounts, notifications, or email bundles. Bot users follow the system role blueprint — they skip settings creation, notifications, push notifications, event tracking, and email bundling. Unlike system users, bots appear in the active scope and can be assigned to cards. Each bot gets a real Identity with a synthetic email (bot+hex@fizzy.internal) so PAT auth works unchanged. Admin UI lets admins create bots, manage multiple access tokens per bot (with description and read/write permission), and remove bots. Closes basecamp#530 Co-Authored-By: Claude Opus 4.6 <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.
Summary
botrole to the User model, following the existingsystemrole blueprintactivescope and can be assigned to cardsbot+hex@fizzy.internal) so PAT auth works unchangedPOST /account/botsfor programmatic bot provisioning (returns user + token)Files changed
Model layer (7 files) —
botrole enum, guards mirroringsystem?checks:user/role.rb— enum,botscope, bots inactivescopeuser/accessor.rb,user/configurable.rb,user/settings.rb— skip board grants, settings, email bundlinguser.rb— guardsetup?for botsnotifier.rb,notification_pusher.rb,comment/eventable.rb— skip notifications/eventsControllers (2 new):
account/bots_controller.rb— CRUD for bot users (admin-only, transactional create)account/bot_access_tokens_controller.rb— token management per bot (mirrorsMy::AccessTokensController)Views (5 new, 3 modified):
_bot_user.html.erbpartial to keep_user.html.erbclean_users.html.erb— "Create bot" button for admins_comment.html.erb—comment-by-botCSS classTest plan
Authorization: Bearer <token>→ verify API access worksCloses basecamp#530
🤖 Generated with Claude Code