GeezerVison is showing github.com — id: design: Notion importer for the knowledge layer (from #5678) · Issue #6436 · developing-today/code
id: design: Notion importer for the knowledge layer (from #5678) #6436DescriptionParent and context
Parent program: #5678. Object model: #2048. This ticket designs a repeatable, user-visible import of Notion content into the ID knowledge layer; it does not implement the importer.
Scope
- Evaluate supported source acquisition paths (official export and/or API), their prerequisites, version/edition differences, data coverage, limits, and operational constraints.
- Specify mappings for pages, blocks and nesting, databases/collections, properties, relations, comments where available, links, and attachments/media into the id: design: Zettelkasten layer — multiplayer docs/wiki on ID #2048 object model. Identify what maps cleanly, degrades, is unsupported, or needs a user choice.
- Define stable identity, link/backlink preservation, provenance, duplicate detection, safe repeat/incremental import, conflict handling, and a user-visible fidelity report. Avoid destructive replacement of existing ID objects without an explicit user action.
- Specify authorization and privacy boundaries for source access, handling of credentials, observable import progress/errors, and recovery from partial imports.
- Define a representative test corpus and acceptance checks that cover nesting, databases/relations, attachments, links, duplicates, repeat imports, and documented losses.
Read-authority constraint (already ruled; do not re-litigate)
ID knowledge defaults to public read, owners may grant read to any number of groups and/or users, and resolution order is object → user default → server config → public. The design must state how imported access metadata is mapped or reported when it cannot be preserved; every resulting ID object must use this resolution order, and the importer must not create an alternate read path that reveals content denied by the resolved policy.
Open Drew-owned program questions — still open, not assumptions
Do not guess the product versions/editions to inventory (free vs. paid), the hands-on vs. documentation-only evaluation budget, what “Open Knowledge” refers to, graph scope (all ID objects vs. knowledge-only in v1), or AI-over-notes model choice (local, hosted, or user choice) and its authority implications. Record which of these affect Notion acquisition/mapping and surface unresolved choices in the design rather than deciding them silently.
Acceptance criteria
- The design documents source options and limitations, mapping/degradation rules, links, attachments, identity/deduplication, repeat imports, recovery, and a fidelity report.
- It defines a test corpus and decidable acceptance checks for representative Notion structures and failure cases.
- It explicitly complies with the ruled read-authority order and preserves unresolved parent-level decisions as questions.
Activityadded app/idPackage/app: id (pkgs/ or apps/ in this repo) kind/designA design proposal (design-architect): multi-step, phased, decision-bearing on Nov 6, 2026developing-today commented on Nov 6, 2026 dezren39 commented on Nov 6, 2026 Intake review
Fleet monitor intake (§5 pass), 2026-11-05 run.
dezren39 commented on Nov 10, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 10, 2026
agent-note: task 14369 handed off to opencode claimant (lane row 5590) by lane code-w. Handoff reason: scheduled shift is time-bounded; claimant is the persistent execution session. Issue #6436 verified OPEN with no hard-stop labels and no status/needs-triage (fresh gh, lane code-w 2026-11-10). Attempts 4/6. Parked 1200s for the claimant. dezren39 commented on Nov 11, 2026 agent-note:v1
task_id: 14369
worker: repo-worker-code
lane: code-h
state: done
KIND: design — Notion importer design landed on main via PR #8416 (merge 83cc12f)
The design is at doc/2026-11-10_design_id6436.md on main, written in the importer-family shape of the Joplin (#5848) and Logseq (#5847) designs (same manifest contract, invariant set, corpus discipline) with Notion deltas in §0. It covers every #6436 acceptance item:
- Source options and limitations: workspace export vs. API vs. the recommended hybrid (§1), with the degraded modes stated honestly.
- Mapping/degradation rules: pages and blocks (§2.1), databases — schema as provenance claims, rows as notes, relations as typed references, rollups/formulas as derived-value provenance (§2.2), comments as claims (§2.4), and a block degradation table whose "unsupported" class preserves content as verbatim blobs instead of dropping it (§2.5).
- Links, attachments, identity/deduplication, repeat imports, recovery: §3, §4, §6.1–§6.3; the fidelity report is specified as reconciling accounting, not prose (§6.4).
- Read-authority compliance (§7): the ruled order (object → user default → server config → public) applies to imported objects exactly as to native ones; Notion sharing metadata is recorded as provenance and reported, never applied — the importer creates no grants and no alternate read path.
- Test corpus and decidable acceptance checks: §8 (seven yes/no checks over manifest, report, and graph).
- Drew-owned open questions are preserved in a dedicated table with each question's impact on acquisition/mapping recorded; none is decided in the design.
Follow-on: implementation slice 1 (manifest + inventory) is filed as issue #8419; slices 2–5 are listed in the design and in #8419, to file as slice 1 lands. A queue follow-on for #6436 could not be enqueued in this pass — the fix dedupe key for issue #6436 resolves to this design task itself — so the GitHub issue is the tracked vehicle, per the programme's "id: implement …" precedent.
This issue stays open as the programme tracking item for the importer (the sibling design issues #5847/#5848 remain open on the same basis); the design deliverable of this task is complete.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|