Repository navigation
feat(desktop): opt-in source-linked meeting memory briefs - #20824
Conversation
|
Thanks @aryanorastar — reviewed the full diff (all 21 files). This is careful work; some notes below while it's in draft. What holds up well:
Minor notes (non-blocking):
Product-wise: this deliberately reintroduces calendar-derived proactive context after automatic Chat cards were removed in #20665. Keeping it opt-in and inside Conversations reads like the right lesson from that, but the placement decision and the calendar-permission surface deserve a maintainer's explicit sign-off before this leaves draft. Feedback is AI-generated on behalf of the maintainers. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
|
Follow-up review of the commits added since my earlier review (that head had 21 files; this one has 27). The three minor notes from my earlier comment still apply on this head — On what's new:
Still leaving two decisions for maintainer sign-off before this leaves draft: the pilot placement (calendar-derived proactive context returning after #20665 removed automatic Chat cards, now opt-in inside Conversations) and the release-entitlement addition. Feedback is AI-generated on behalf of the maintainers. |
|
Maintainer review of this pilot — overall this is careful work. The matching logic is conservative, the permission paths are well-fenced, and the test coverage matches the claims in the description. Detail below, plus a few items that need attention. What checked out
Needs attention
Leaving for human maintainer review: a product-direction decision on the meeting-brief pilot (it stays out of Chat, consistent with #20665) and sign-off on the Calendar entitlement entering the release signing input. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
The UI-evidence contract expects screenshots under .agent-artifacts/ui-evidence/<pr>/ with NNN-platform-slug names and an evidence.json manifest. Move both pilot screenshots there unchanged. Also compose the follow-up draft once per render; it decides whether the menu item appears and fills the sheet, instead of composing twice. Failure-Class: none Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Pushed 82ec314: latest main merged, plus fixes for the first and third review items.
The second item (the Calendar entitlement entering the release build) and the pilot product decision are still waiting for a maintainer's sign-off. A live source-matched card against a real calendar meeting is also still unverified, as the description says. |
|
Thanks @aryanorastar — reviewed the full diff and tests. This is a carefully built feature; the privacy posture stands out. Detailed walkthrough with a few non-blocking notes: Matching and privacy invariants (verified in code and tests)
Entitlements and signing
Two non-blocking observations
The This introduces a new user-facing surface and a new Calendar access entitlement in release signing, so keeping the human-maintainer gate before merge rather than treating it as mechanically routine. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
…ty briefs
Production summaries title sections by topic ("Calendar permission"), so a
heading-only match ("Decisions", "Open questions") rarely found a decision or
open question. Keep the heading match first, then take the first cited line
that states the outcome. Negated lines ("have not decided", "no decision")
count as open questions and never as decisions; "disagreed" is never a
decision. Log a count-only line when matched meetings yield no fact.
Failure-Class: none
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Pushed 1f0b851, covering the second non-blocking note (hard-coded heading keywords).
The live run also showed that a recording only gets calendar identity in production if the meeting lasts at least 5 minutes, so a live, source-matched card still needs a real meeting. The pilot verification note in the description still stands. |
"We have not yet decided on pricing" matched no fixed phrase, so it showed as
"Decided", and a "Decisions" heading took its first line with no check at all.
Classify by words instead: a negation before the outcome word ("not", "no",
"never", "nobody", "n't") makes an open question, and any negation rules out a
decision. "They agreed not to ship" gets neither label. Under a "Decisions"
heading, unsettled lines are skipped.
Failure-Class: none
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Pushed 93ec190: unsettled lines are no longer labelled as decisions.
A source-matched card against a real calendar meeting and the Calendar entitlement sign-off are still outstanding, as before. |
There was a problem hiding this comment.
🟡 Changes recommended
Decision classification and matching/draft behavior currently violate documented pilot safety requirements.
3 open findings
What changed in this PR
Adds an opt-in macOS meeting-memory pilot with source-linked briefs and editable, copy-only follow-up drafts.
Changes:
- Adds calendar-based conversation matching and cited fact extraction.
- Integrates briefs, source navigation, settings, and follow-up drafts.
- Adds Calendar signing entitlements, tests, and pilot evidence.
| File | Description |
|---|---|
desktop/macos/tests/test-prepare-local-dev-entitlements.sh |
Verifies Calendar entitlements. |
desktop/macos/e2e/flows/conversation-detail.yaml |
Associates meeting brief views with the detail flow. |
desktop/macos/Desktop/Tests/SystemCalendarMeetingContextServiceTests.swift |
Tests silent, read-only calendar access. |
desktop/macos/Desktop/Tests/ServerConversationDecodingTests.swift |
Tests calendar identity decoding. |
desktop/macos/Desktop/Tests/MeetingMemoryBriefRenderingTests.swift |
Tests card rendering. |
desktop/macos/Desktop/Tests/MeetingMemoryBriefComposerTests.swift |
Tests matching, facts, and drafts. |
desktop/macos/Desktop/Tests/ConversationDetailAutomationStateTests.swift |
Tests citation focus behavior. |
desktop/macos/Desktop/Sources/Services/APIClient/APIClient+ConversationModels.swift |
Adds meeting identity to conversations. |
desktop/macos/Desktop/Sources/MainWindow/Pages/SettingsPage.swift |
Adds meeting-brief settings state. |
desktop/macos/Desktop/Sources/MainWindow/Pages/Settings/Sections/SettingsContentView+Advanced.swift |
Adds opt-in and permission controls. |
desktop/macos/Desktop/Sources/MainWindow/Pages/ConversationsPage.swift |
Loads and displays owner-fenced briefs. |
desktop/macos/Desktop/Sources/MainWindow/Pages/ConversationDetailView.swift |
Presents follow-up drafts. |
desktop/macos/Desktop/Sources/MainWindow/Pages/ConversationDetailHeader.swift |
Adds the draft menu action. |
desktop/macos/Desktop/Sources/MainWindow/Conversations/MeetingMemoryBriefCard.swift |
Renders source-linked brief facts. |
desktop/macos/Desktop/Sources/MainWindow/Conversations/MeetingFollowUpDraftSheet.swift |
Provides editable copy-only drafts. |
desktop/macos/Desktop/Sources/MainWindow/ConversationDetailAutomationState.swift |
Adds transcript citation focus. |
desktop/macos/Desktop/Sources/DefaultsKey.swift |
Defines pilot preference keys. |
desktop/macos/Desktop/Sources/CalendarMeetingContext/SystemCalendarMeetingContextService.swift |
Adds explicit access and authorized reads. |
desktop/macos/Desktop/Sources/CalendarMeetingContext/MeetingMemoryBrief.swift |
Implements matching, extraction, and drafting. |
desktop/macos/Desktop/Sources/APIClient.swift |
Supports owner-fenced detail reads. |
desktop/macos/Desktop/Omi.entitlements |
Enables Calendar access in development. |
desktop/macos/Desktop/Omi-Release.entitlements |
Enables Calendar access in releases. |
desktop/macos/Desktop/Info.plist |
Updates Calendar permission copy. |
desktop/macos/changelog/unreleased/20261006-meeting-memory-briefs.json |
Adds the release note. |
.github/failure-classes/FC-calendar-purpose-string-without-signing-entitlement.json |
Registers the signing failure class. |
.agent-artifacts/ui-evidence/20824/evidence.json |
Describes pilot UI evidence. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| } | ||
|
|
||
| let title = normalizedTitle(event.title) | ||
| guard title.count >= 8, title == normalizedTitle(identity.title) else { return false } |
There was a problem hiding this comment.
Kept on purpose, and now named (minimumTitleOnlyMatchLength) and documented in the PR's matching contract. Without the same event ID, a short generic title ("Sync", "1:1") plus one shared attendee can't tell recurring meetings apart, and a wrong-meeting brief is the failure this pilot is built to avoid. Short titles still match on the exact system-calendar event ID. testShortTitlesNeedTheExactEventID pins both sides. I'm leaving this thread open for a maintainer to accept or overrule the policy.
…ts whole
- One veto for the "Decisions" heading path and the text fallback: any
negation, dispute ("disagreed", "objected", "pushed back"), discussion,
proposal, question, or pending wording omits the line. Imperatives under a
real Decisions heading ("Ship the smaller pilot first") still count.
- The text fallback needs a settled verb (decided, agreed, chose, approved,
settled, finalized, made/reached a decision); "decision" alone is not one.
- Lines are classified whole and only shortened for the card, so a late
negation is never cut off before the veto reads it.
- The editable follow-up draft keeps every commitment in full: no per-action
240-character truncation.
- Titles shorter than eight normalized characters still need the exact event
ID; the floor is now a named constant with a test.
Failure-Class: none
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Pushed 5d84910: only settled outcomes become decisions, and the follow-up draft keeps every word.
Tests: brief, follow-up draft, calendar context, conversation decoding and detail automation suites, 53 passed. They cover:
Removing any of the four new rules fails a test. Still open:
|
"The budget will be approved next week", "We will have decided by Friday" and
"We would have approved it" still read as decided. An outcome verb governed by
a future, modal or infinitive auxiliary in the three words before it (will,
would, shall, should, could, may, must, can, going, to, 'll, 'd) is now
unsettled, in the shared veto used by both the Decisions heading and the text
fallback. A later auxiliary ("We agreed we will ship Thursday") still reports a
settled agreement, and heading imperatives are unchanged.
Failure-Class: none
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Pushed 0b3bb98: future and hypothetical outcomes are never shown as decisions.
Still outstanding: a live, source-matched card against a real calendar meeting of at least 5 minutes, and sign-off on the Calendar entitlement in release signing and on the pilot. |
|
Thanks @aryanorastar — reviewed the four commits since the last review pass (now at 0b3bb98) plus the full diff again. The iteration on decision classification holds up:
Two non-blocking observations, neither of which blocks this pilot:
Remaining before merge (unchanged, and correctly still open): the pilot product decision, and sign-off that Nice work — the privacy posture (opt-in, no uploads from the brief path, owner-fenced dismissal) is consistently carried through. Leaving the maintainer-review label on for the pilot and entitlement decisions. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
A live pilot run against production surfaced "The team agreed not to ask
for calendar access at first launch" as the meeting's decision, and the
blanket negation veto dropped it. A "not"/"never" that scopes the agreed
action ("agreed not to", "decided never to", "chose to not") settles what
will not happen; every other negation still vetoes.
Adds live-card and source-jump evidence from that run.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Pushed 4ce8ab1. The brief is now verified live against production, and the run turned up one classifier gap, which this commit fixes.
|
The live card cut its Decided line at 240 characters mid-word
("launch-time permissi") with no marker that text was omitted. Cut at
the last whole word that fits and append an ellipsis; one unbroken
word is still bounded.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Pushed bac2030: long brief lines now end at a whole word with an ellipsis.
|
|
Reviewed the two commits since the last pass (4ce8ab1 live verification + classifier fix, bac2030 card-excerpt fix) against the full diff again. The iteration holds up; notes below. What's new, verified
Non-blocking observations
The earlier non-blocking notes (per-render This stays with by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
…ot gates Separates what the controlled live run proved (end-to-end card and source navigation against production) from what is still unverified (a live user-owned follow-up line, organic usefulness) and lists the human decisions the pilot needs. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Pushed d1f78ec: docs only. Adds
|
|
Thank you for this — it's a carefully built pilot. Some observations from a full read of the diff: What stands out as solid
Points for a maintainer before merge
Overall the privacy posture is well done: opt-in, no calendar upload, citation-only facts, copy-only follow-up drafts that never send. The remaining questions are product-direction and release-entitlement sign-off rather than code defects — leaving those with a human maintainer before merge. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |

Summary
Adds an opt-in, quiet macOS meeting-memory pilot on the existing Conversations page. Within two hours of an upcoming local calendar event, it can show a short card from a prior, confidently matched Omi conversation: a decision, the user's open follow-up, and/or an unresolved question. Every displayed item opens its source transcript. When a completed meeting has cited, user-owned commitments, the conversation menu can prepare an editable, copy-only follow-up draft. The app never sends it.
This deliberately does not create a Chat card or notification. Automatic cards in Chat were removed by #20665; this pilot keeps meeting context in the Conversations destination and only when the user enables it.
Matching and safety
Product invariants affected
INV-AUTH-1: optional conversation list/detail reads capture the current authorization snapshot, recheck it after awaits, and never publish stale owner content. The existing session invalidation and 401 policy are unchanged.INV-NAV-1: the brief is added to the canonical Conversations page, preserving its established search, filters, folders, selection, pagination, and navigation. No alternate shell-specific destination is introduced.Failure-Class: new
New class: Calendar purpose string without signing entitlement. The initial pilot bundle had the Calendar purpose string but not the hardened-runtime Calendar entitlement.
tccdexplicitly refused to prompt (kTCCServiceCalendar requires entitlement com.apple.security.personal-information.calendars), so the app never appeared in System Settings. Both development and release signing inputs now include the entitlement, and the named-bundle fallback has a regression assertion.Verification
testANegativeDecisionIsStillADecisionis built from the live production summary line, and restoring the old blanket negation veto fails it with 5 assertions.testLongCardLinesEndAtAWordWithAnEllipsisfails 2 assertions against the old raw 240-character cut.git diff --checkpassed on the changed Swift and patch.plutil -lintpassed for development/release entitlements andInfo.plist.com.omi.omi-meeting-brief-pilotpassed the full dependency audit, installed, and launched signed in. Its effective code signature containscom.apple.security.personal-information.calendars=true. After the user-requested permission test, macOS listed the exact bundle with Full Access on, and the Meeting Briefs setting became on. Audio and screen capture were disabled in this test bundle.role=meetingand stored the event. A scripted two-voice planning meeting (macOSsay) then played through the speakers: 12 min recorded, 6 min of speech, with one decision, one assigned follow-up, one open question and an explicit "pricing is not decided". Production (api.omi.me) summarized it and linked it to the event. I then moved the event 40 minutes later. The Conversations page showed the card for the upcoming occurrence, matched by the same system-calendar event ID.Pilot scope and follow-up
The first version searches the newest 100 completed conversations, so it intentionally returns no card if the relevant prior meeting is older than that fetch window. It has no external model calls and no new server persistence. Dogfood should measure useful, source-confirmed briefs, wrong matches, dismissals, and reviewed follow-ups before considering broader exposure.