Skip to content

fix: Prevent Addie from hallucinating names and bulk-inviting members - #1103

Merged
bokelley merged 2 commits into
mainfrom
bokelley/addie-tyler-calendar
Feb 16, 2026
Merged

bokelley merged 2 commits into
mainfrom
bokelley/addie-tyler-calendar

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

Summary

  • Operating rules: Add "Never fabricate people or names" constraint (stops Addie from inventing staff names like "Tyler" during escalation) and "Meeting tool selection" behavior rule (guides Addie to use list_upcoming_meetings → add_meeting_attendee for "add these people" requests)
  • Tool descriptions: Improve add_meeting_attendee (explicit multi-call pattern with example), list_upcoming_meetings (note as prerequisite for other tools), and schedule_meeting invite_mode (warn about large group default)
  • Attendee cap: Add LIMIT 200 to addAttendeesFromGroup and addAttendeesFromSlackChannel SQL queries, plus MAX_CALENDAR_INVITEES guard before Google Calendar API calls with user-visible truncation warning
  • Hallucination detection: Catch "I added them to the meeting/call/series" claims without a successful add_meeting_attendee tool call

Test plan

  • npm run build passes
  • npm run typecheck passes
  • npm test — 297 tests pass
  • Deploy migration 223 and verify rules appear in admin UI
  • Test in Slack: "add Karen to the working group call" → Addie uses list_upcoming_meetings then add_meeting_attendee
  • Test escalation: Addie says "the team" not a fabricated name

🤖 Generated with Claude Code

bokelley and others added 2 commits February 16, 2026 15:44
…bers

Addie was fabricating staff names during escalation ("Tyler") and failing
to use add_meeting_attendee for simple "add these people" requests,
instead triggering bulk invite paths that tried to add all 800 members.

- Add operating rules: "Never fabricate people or names" and "Meeting
  tool selection" guidance
- Improve tool descriptions for add_meeting_attendee, list_upcoming_meetings,
  and schedule_meeting invite_mode
- Cap bulk attendee queries at 200 (addAttendeesFromGroup and
  addAttendeesFromSlackChannel) and truncate calendar invites
- Add hallucination detection for unexecuted attendee additions

Co-Authored-By: Claude Opus 4.6 <[email protected]>
- Add truncation message to errors[] so callers know invites were capped
- Limit hallucination regex to 6 words to avoid cross-sentence false positives

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@bokelley
bokelley merged commit c3cc81c into main Feb 16, 2026
6 checks passed
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.

1 participant