Skip to content

Add Notion Brain collector - #1380

Merged
mrubens merged 2 commits into
developfrom
codex/notion-brain-collector
Aug 15, 2026
Merged

Add Notion Brain collector#1380
mrubens merged 2 commits into
developfrom
codex/notion-brain-collector

Conversation

@mrubens

@mrubens mrubens commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

What changed

  • add a Brain collector for pages shared with the deployment Notion integration
  • backfill pages newest-first and keep edits current with durable incremental cursors
  • use the native Notion Markdown endpoint with stable Brain page slugs and source dates
  • reconcile newly shared older pages with a daily full sweep
  • reuse a shared Notion API client for the MCP tools and collector
  • document Notion Brain ingestion

Why

Connected Notion knowledge was available to individual tasks through MCP, but it was not included in the shared Brain. This makes explicitly shared Notion pages available during Brain retrieval while retaining Notion permission boundaries.

Validation

  • BullMQ Brain collector tests
  • native Notion MCP auth tests
  • Notion API client tests
  • package TypeScript checks for SDK, API, and BullMQ
  • targeted ESLint
  • full pre-push oxlint, residual lint, fast typechecks, and Knip
  • git diff checks

@roomote-community

roomote-community Bot commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

No new code issues found. See task

  • Revoked Notion shares remain in the Brain because completed sweeps never reconcile missing pages. (apps/bullmq/src/scheduled-jobs/brain-collectors.ts:2418)

Reviewed 7843dd7

Comment thread apps/bullmq/src/scheduled-jobs/brain-collectors.ts
@mrubens
mrubens marked this pull request as ready for review August 15, 2026 21:13
@mrubens
mrubens merged commit 8f71c5c into develop Aug 15, 2026
18 checks passed
@mrubens
mrubens deleted the codex/notion-brain-collector branch August 15, 2026 21:13
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