Skip to content

feat: comment categorization (decision/handoff/note types)#2507

Closed
MelsovCOZY wants to merge 4 commits intogastownhall:mainfrom
MelsovCOZY:feat/comment-types
Closed

feat: comment categorization (decision/handoff/note types)#2507
MelsovCOZY wants to merge 4 commits intogastownhall:mainfrom
MelsovCOZY:feat/comment-types

Conversation

@MelsovCOZY
Copy link
Copy Markdown
Contributor

@MelsovCOZY MelsovCOZY commented Mar 11, 2026

Summary

  • Adds type column to comments/wisp_comments tables (migration 010)
  • Extends AddIssueComment with commentType parameter (all callers updated)
  • Adds GetIssueCommentsByType for filtered retrieval
  • Adds --type flag to bd comments add and bd comments list commands
  • Comment types: decision, handoff, note (empty = untyped, backwards compatible)

Test plan

  • Migration adds column, existing comments get empty type
  • bd comments add <id> "text" --type decision stores type correctly
  • bd comments <id> --type decision filters by type
  • Untyped comments continue to work (backwards compat)
  • All existing tests pass with updated signatures

🤖 Generated with Claude Code

MelsovCOZY and others added 4 commits March 11, 2026 12:25
Adds a `type` VARCHAR(32) column to comments and wisp_comments tables
for categorizing comments as decision/handoff/note. Existing comments
get empty string (untyped) for backwards compatibility.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Adds comment type constants (decision, handoff, note) and a Type field
to the Comment struct for categorizing comments.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Extends AddIssueComment with commentType parameter across all
  interfaces (Storage, Transaction, AnnotationStore) and implementations
- Adds GetIssueCommentsByType for filtered comment retrieval
- Updates all callers to pass empty string for backwards compatibility
- Adds --type flag to `bd comments add` and `bd comments` list commands
- Adds TestTypedComments test covering typed/untyped comments and
  filtered retrieval
- Comment type shown as [type] prefix in human-readable output

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The constant names (CommentTypeDecision, CommentTypeHandoff, CommentTypeNote)
are self-documenting.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@steveyegge
Copy link
Copy Markdown
Collaborator

Thanks for the contribution! We are going to pass on this one -- comment categorization adds schema migration cost and manual friction (remembering to pass --type) for queries we do not currently make.

This also leans toward a Discover, Don't Track violation in our design philosophy -- if we need to distinguish comment types, we would prefer to infer it from content rather than requiring manual annotation. The handoff type specifically overlaps with our existing gt mail handoff protocol.

Appreciate the clean implementation and tests though!

@steveyegge steveyegge closed this Mar 12, 2026
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