proactive-notify: filter out other-people's calendar events (Home / Wedding / etc.)

Open Beginner friendly
#964 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
python
Domain
api

Research direction

Start with sources/google_calendar.py and trace the gws events list --calendar primary path. Check how calendar fields and owner attendance or organizer status enter candidate processing. Done means events from other people's calendars no longer reach the candidate list while the owner's accepted or created events still do.

Written by the indexing model from the issue text.

Description

Discovered in Phase 1 MVP dry-run on 2026-05-21. Owner's Google account has read access to several teammates' calendars (mark@, sam@, etc.). Their personal events leak into the candidate list: "mark@ag2.ai Home", "sam@ag2.ai Friend's Wedding", etc. The title regex filter excluded "Home" eventually but not before they entered candidate processing.

Fix

sources/google_calendar.py should restrict to events where owner is an attendee OR organizer, not just events visible on subscribed calendars. gws events list --calendar primary covers owner's accepted/created events. Skip events where the calendar field != owner's primary.

Priority

P2 — same root cause as #; can ship together or as part of (a) option there.
EOF

Dominant language
Python
Stars
396
Forks
92
Avg merge
20h 55m
Merged PRs (30d)
667

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from sonichi/sutando

All issues in sonichi/sutando

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.