minutes icon indicating copy to clipboard operation
minutes copied to clipboard

Subscribable structured events from MCP (decisions, approvals, commitments)

Open silverstein opened this issue 8 months ago • 2 comments

Idea

Emit structured events (decisions, approvals, commitments) from the meeting pipeline that external systems can subscribe to via MCP.

Meetings become an event source — each decision, approval, or commitment is a first-class event that can flow into downstream systems (Linear, Slack, Notion, CRM, Calendar, etc.).

What we already have

  • events.rs — append-only JSONL event log for agent reactivity
  • Structured extraction — action items + decisions in YAML frontmatter
  • MCP server with tools/resources that expose this data
  • PostToolUse hook that checks for decision conflicts

What's missing

  • Formalized event schema — typed events like { type: "decision", content: "...", participants: [...], confidence: "high", ts: "..." }
  • Subscribable interface — MCP notifications or SSE so connected agents/systems can react in real-time rather than polling
  • Event routing — agents route events to external systems (e.g., decision → Slack #decisions, commitment → Linear ticket, approval → CRM deal stage update)

Example flow

Meeting transcript
  → Pipeline extracts: "We decided to switch to vendor X by April 15"
  → Emits: { type: "decision", content: "Switch to vendor X", deadline: "2026-04-15", participants: ["Mat", "Alex"] }
  → MCP notification fires
  → Connected agent creates Linear ticket + Slack post + calendar reminder

Origin

Community suggestion from Ajayi Diekoloreoluwa (Systems Engineer, Founder @ CostBind — deterministic state machines).

"Have you thought about using the MCP tools to emit structured events (decisions, approvals, commitments) that external systems could subscribe to?"

Notes

  • MCP already has a notification mechanism — explore whether it's sufficient or if SSE/webhooks are needed
  • The event schema should be extensible (not just decisions — also questions, risks, blockers, follow-ups)
  • Consider how this interacts with the existing events.rs JSONL log

silverstein avatar Mar 30 '26 23:03 silverstein

Implementation shipped (Layer 1 + Layer 2)

Layer 1 — Event schema + pipeline integration (dd74ecc):

  • InsightConfidence enum: Tentative < Inferred < Strong < Explicit
  • InsightKind enum: Decision, Commitment, Approval, Question, Blocker, FollowUp, Risk
  • MeetingInsight struct with content, confidence, participants, owner, deadline, topic, source
  • Pipeline emits typed insight events after summarization (both direct and background job paths)
  • Deduplication across action_items/commitments overlap
  • 21 unit tests

Layer 2 — MCP + CLI exposure (dd74ecc):

  • get_meeting_insights MCP tool with filtering by kind, confidence, participant, time range
  • minutes insights CLI command with --kind, --confidence, --participant, --actionable flags
  • read_insights() and read_actionable_insights() query functions

Hardened via adversarial review (ac19c62):

  • Fixed Unicode byte-index panic, unknown kind fallback, bare "by " false positives, hyphen topic inference, open question confidence level, silent date parse failure

What's left (Layer 3+):

  • [ ] MCP notification on new insight events (push vs poll)
  • [ ] Agent routing examples in docs (decision → GitHub issue, commitment → Linear ticket)
  • [ ] Approval/Blocker/FollowUp/Risk extraction from summarizer prompts
  • [ ] Dedup guard for reprocessed meetings
  • [ ] Scan rotated event logs in queries

silverstein avatar Mar 31 '26 02:03 silverstein

Closing — Layers 1+2 shipped and hardened. Remaining Layer 3 items (MCP push notifications, routing examples, additional insight types, dedup guard, rotated log scanning) are incremental polish — will open individual issues if/when needed.

silverstein avatar Mar 31 '26 04:03 silverstein