Skip to content

feat(knowledge): Learn from Granola scribe that ingests meetings through the Granola plugin - #187659

Merged
jalehman merged 6 commits into
mainfrom
openclaw-71d/knowledge-granola-scribe
Oct 29, 2026
Merged

jalehman merged 6 commits into
mainfrom
openclaw-71d/knowledge-granola-scribe

Conversation

@jalehman

Copy link
Copy Markdown
Contributor

What Problem This Solves

Knowledge has no built-in way to keep Granola meetings flowing into a store. Today that takes a hand-rolled automation with a Granola API key, Python scripts and a private runbook, even though the Granola plugin now provides the same meetings over MCP.

User Impact

User impact: the Knowledge Scribes tab offers Learn from Granola, which ingests Granola meetings once or on a weekday schedule (10 AM, 2 PM and 6 PM) through the Granola plugin. If the plugin is not installed, turned off, or not signed in, the row says so, offers Install / Turn on / Connect Granola… (opening the plugin's Plugins page), and keeps Set up… disabled. When the plugin is ready, the row shows "Granola connected".

Scribe start dialogs also no longer collapse their choice groups to bare headings on phone-sized screens.

Why This Change Was Made

  • The scribe follows the existing scribe contract (one conversation, one automation with declaration key knowledge:scribe:granola, a Scribe status: line). Its work lives in a new "Scribe runs" section of knowledge-meeting-ingest. That section keeps a checkpoint page, skips meetings already in Knowledge, ingests oldest first one meeting at a time, and leaves still-recording or pending-transcript meetings for a later run.
  • source-acquisition.md documents reading Granola through the plugin's MCP tools: IDs (meeting UUID vs the REST API's not_… note ID), date-range listing, character-offset transcript paging, transcript_unavailable reasons, and retaining the notes and full transcript as originals. The REST reference stays as a fallback when there is no plugin.
  • Plugin readiness comes from plugins.inspect (installed, enabled, mcpAuth). An unknown plugin reads as "not installed". Any other read failure leaves the state unknown and does not block starting; a run without the plugin stops with a clear failed status.
  • The dialog body rows use grid-auto-rows: max-content, so the scrolling body keeps the choice fieldsets at full height instead of shrinking them.

Known gap: there is no host primitive to retain a tool result's exact bytes as evidence, so the skill retains the returned text (through Code Mode when available, otherwise a workspace file checked against total_chars).

Evidence

  • node scripts/run-vitest.mjs extensions/knowledge/src/scribes-state.test.ts extensions/knowledge/src/scribes-view.test.ts: 36 passed. New tests cover the Granola prompt, plugin readiness mapping (missing, disabled, needs sign-in, ready, unknown), row gating, starting once connected, and the detail's weekday schedule and Source row.
  • extensions/knowledge/src/control-ui.test.ts and skill-packaging.test.ts pass; oxlint is clean on the changed files; pnpm build and pnpm ui:build succeed.
  • Real Gateway (isolated state, built from this branch), browser-driven: with no plugin the row shows "Install Granola…" with Set up disabled, and the button opens /plugins/openclaw/granola. After installing Granola from that page, the row switches to "Connect Granola…".
  • Hot reloaded into a live Gateway whose Granola plugin is signed in (plugins.inspect → mcpAuth: authorized). The Granola MCP tools (list_meetings, get_meetings, get_meeting_transcript) were exercised by hand to confirm the shapes the skill documents.
  • Mobile dialog: at iPhone 13 size the choice fieldsets measured 26px (heading only) before the fix and 191px/171px after. Desktop is unchanged (152px).
  • Not exercised: a full scheduled ingestion run through the scribe.
  • Local autoreview could not run on this host (Codex authentication failure, Claude usage limit, OpenClaw engine could not resolve secret-store credentials outside the Gateway).

Screenshots are in the comment below.

@clawsweeper

clawsweeper Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation plugin: knowledge size: L labels Oct 29, 2026
@jalehman

Copy link
Copy Markdown
Contributor Author

Screenshots

Synthetic isolated Gateway built from this branch (baseline built from main).

Scribes tab, before (main):

Scribes before

After, Granola plugin not installed: Install Granola… shown, Set up… disabled.

Granola not installed

After, installed but not signed in:

Granola not connected

Start dialog at iPhone 13 size, before and after the dialog fix:

Mobile dialog before Mobile dialog after

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 29, 2026
@clawsweeper

clawsweeper Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Adds a Granola meeting scribe with plugin connection guidance and fixes collapsed scribe choices on small screens.

Example: An operator wants to import their last seven days of Granola meetings.

  • Before: They must arrange ingestion themselves; Knowledge offers no Granola scribe.
  • After: They can select Learn from Granola and choose one run or weekday runs at 10 AM, 2 PM, and 6 PM.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The source changes resolve the earlier findings and fit the existing architecture, but supplied runtime evidence covers only part of the feature.
Proof confidence 🦪 silver shellfish (2/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Operators must hand-build automation to keep Granola meetings flowing into Knowledge.
Reason: The feature replaces a concrete manual workflow using existing plugin capabilities, and its direction is covered by the supplied maintainer-authored classification and verified area history.

Merge readiness

✅ Ready for maintainer review

Keep open: this is a useful extension of the existing scribe feature, and the latest commit addresses all three prior findings; no additional concrete correctness defect was identified.

Priority: P2
Reviewed head: e927ddf94acfefcaafd8c32fc50f5d8a5294c13c

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The supplied evidence does not exercise a real-agent scheduled ingestion and checkpoint recovery, and no red-on-base regression run is shown.
Agent review details

How this fits together

The Knowledge plugin's Scribes page turns operator choices into an editable agent prompt; the existing conversation and automation owners run the meeting-ingest skill, which reads Granola MCP tools and writes verified Knowledge records.

flowchart TD
  A[Operator choices] --> B[Knowledge Scribes page]
  B --> C[Plugin readiness inspection]
  B --> D[Scribe conversation]
  D --> E[Existing automation owner]
  E --> F[Meeting ingest skill]
  F --> G[Granola MCP tools]
  F --> H[Knowledge records and checkpoint]
Loading

Technical review

Best possible solution:

Keep Granola acquisition in the existing meeting-ingest skill and use the established scribe conversation and automation owners.

Do we have a high-confidence way to reproduce the issue?

This is primarily a feature addition; the supplied before screenshot also demonstrates the collapsed mobile choices.

Is this the best way to solve the issue?

The implementation uses the existing catalog, editable prompts, automation lifecycle, and meeting-ingest workflow, which is an appropriately small extension of the current design.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against a9c067b23cdb.

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source +338, Tests +157, Docs +134. Total +629 across 10 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 5 354 16 +338
Tests 2 161 4 +157
Docs 3 140 6 +134
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 10 655 26 +629

Review metrics

Metric Value Why it matters
New dialog settings 3 choice groups Adds run frequency, meeting scope, and start-window choices for the new scribe; existing scribe defaults remain intact.

Labels

Label changes:

  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove merge-risk: 🚨 session-state: Current PR review selected no merge-risk labels.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: Useful optional meeting ingestion with limited blast radius; no urgent existing-user regression is established.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Supply the real-agent ingestion and checkpoint-recovery evidence described in the proof assessment.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-29T13:05:30.376Z sha 81e8a77 :: blocked before merge. :: [P2] Reconcile partially published meetings before skipping them | [P2] Keep subsequent scans within the selected start boundary | [P2] Retain unfinished meetings independently of the newest completion

Reviewed October 29, 2026, 9:17 AM ET / 13:17 UTC (Revision 2).

@jalehman

Copy link
Copy Markdown
Contributor Author

Addressed in e927ddf (skill instructions only; the checkpoint lives in the scribe's own note page).

  • Partially published meetings: an existing meeting page no longer counts as done. Dedup runs the step-5 verification against it, records done only if that passes, and otherwise reconciles into the same page and finishes steps 3–5. This restores the existing-meeting reconciliation contract from feat(knowledge): bundle the Knowledge memory plugin #180139 instead of skipping on page existence.
  • Start boundary: the checkpoint now records Start: YYYY-MM-DD from the prompt when it is created. Later listings start at the later of Start and 7 days before the newest done meeting, and never earlier than Start, so "Today" stays today.
  • Unfinished meetings: still recording, transcript pending, or failed verification is now written as a pending checkpoint line right away. Every run re-reads all pending UUIDs with get_meetings regardless of the date window, until they are done or no transcript.
  • Data-model compatibility: no stored schema, config or record format changes. The scribe uses a new declaration key (knowledge:scribe:granola) and a new checkpoint note page, and existing scribes, automations and vault records are untouched. Earlier Granola ingestions that cite REST not_… IDs are found by title and date, then verified, rather than being re-ingested.

Still not exercised: a full scheduled ingestion run with checkpoint recovery through a real agent.

@jalehman

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Oct 29, 2026
@jalehman

Copy link
Copy Markdown
Contributor Author

Real scheduled-run evidence, from the operator's live Gateway running this branch (pre-e927ddf94ac instructions):

  • Scribe started from the Scribes tab, automation knowledge:scribe:granola (weekdays 10/2/6 PT), signed-in Granola plugin.
  • First run, 2026-10-28 17:42 PT, ok, 31 min: 2 meetings from that day ingested and passed verification (structure checks on 69 records, all six quotes checked against the transcript, event order). Wrote 2 meeting pages, 1 new project page, the checkpoint note, Timeline lines on 18 existing pages, 27 claims and 14 attendance edges, and kept both transcripts and the Granola notes as originals.
  • Next run, 18:13 PT, ok, 40 s: nothing new to ingest, so the checkpoint skipped both meetings.
  • Gap seen: the page-size budget refused Timeline lines on 8 very large person pages. The facts are saved as claims tied to those people. This is an existing page-budget behavior, not part of this PR.

The pending/start-date/partial-page recovery paths added in e927ddf were not hit by these runs.

@jalehman
jalehman merged commit 55d82ec into main Oct 29, 2026
99 checks passed
@jalehman
jalehman deleted the openclaw-71d/knowledge-granola-scribe branch October 29, 2026 14:39
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clawsweeper:intake:feature Preliminary submission classification; full source review pending. docs Improvements or additions to documentation merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P2 Normal backlog priority with limited blast radius. plugin: knowledge rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: L status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant