lisa-wiki-connector-notion
Skill-driven connector (Notion MCP). Writes ONLY source notes under wiki/sources/notion/ and emits a
proposed cursor; the kernel does the rest.
Flow
- Confirm
connectors.notion.enabledandsideEffects: read-only-ingest. - Tenant guard: verify the Notion connection resolves to
connectors.notion.tenantGuard.teamspace/teamspaceId. Abort on a different workspace/teamspace. - Window: read
wiki/state/notion/*.json. First run → configured window; incremental → pages edited since the cursor. - Fetch (read-only) via the Notion MCP. Never edit Notion.
- Write source notes under
wiki/sources/notion/<YYYY-MM-DD>-notion-ingest.mdwith frontmatter and citations (Source: <notion page>). Redact secrets; honor retention/sensitivity. - Emit run metadata (proposed cursor, counts) to the handoff file; return to
lisa-wiki-ingest.
Rules
- Abort on teamspace mismatch; do not invent pages; weak evidence → open-questions.
- Disabled if the Notion MCP is absent (
scripts/mcp-doctor.mjs). - Writes only source notes + handoff meta; the kernel advances state.