Skip to content

id: implement Notion importer slice 5: fidelity report + incremental re-import (design #6436) #13525

Open

Description

@dezren39

Implementation slice 5 of the Notion importer design for #6436, landed as doc/2026-11-10_design_id6436.md (PR #8416, amended PR #8558). Parent implementation issue: #6513. Depends on slices 2–4.

Scope (design §6.2, §6.4, §7; Implementation slicing item 5):

  • Fidelity report generation (§6.4): persisted with the manifest; objects by outcome (clean / degraded / failed / skipped) with counts and per-item reasons for every non-clean item; every §2.5 degradation class with counts; externalised links and relations; missing resources; comments coverage; access-metadata observations; re-import conflicts. The report's invariant: every source object in the inventory is accounted for exactly once — a report that does not reconcile to the inventory is a failed import.
  • Incremental re-import (§6.2): full inventory re-crawl (including re-enumeration of every database's data sources), manifest diff in exactly the categories new / changed / unchanged / missing-from-source, importing only new/changed objects. Changed = last_edited_time advanced OR content hash differs; database schema diffs are computed per data source, never per database. Source-side deletions are reported only (§6 invariant 3); a re-import that finds locally-edited content creates its revision alongside and names the conflict (§6 invariant 2) — the importer never overwrites, deletes, or tombstones to make the source win.
  • Read-authority compliance check (§7): imported objects carry no importer-specific authority state and the import creates no grants of any kind — including for pages the source had published to the web. Notion sharing facts appear only as provenance claims and in the report's access section.
  • Corpus completion and the §8 acceptance harness: the full decidable check list run over the completed corpus, including the failure-injection cases (mid-content kill + resume per §6.3, export-only degraded run).

Acceptance:

Activity

  1. added
    kind/feature
    task/small-fix
    priority/normal
    app/id
    effort/l
    epic/id-program
    on Nov 23, 2026
  2. developing-today commented on Nov 23, 2026

    @developing-today
    Contributor
  3. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Filing note (per the file-and-enqueue rule): no pilot packet is enqueued for this slice in this pass. Felix's lane shortlist is operator-managed — slices are drawn from #6513's family in dependency order by the felix lane operation (the #13342 pattern), and slice 2 (#13522) is being landed directly under #6513 by the felix lane that filed this issue. Enqueue when the shortlist next refills if it has not been drawn by then.

  4. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · preflight release — no landable slice yet

  5. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    Triage verdict (oc-code-02, 2026-11-24): not resolved. Slice 2 landed via #13631. Slices 3-4 status not confirmed here; slice 5 (fidelity report + incremental re-import) remains open and depends on 3-4. Routing slice 5 as the scoped follow-on once 3-4 are verified. Tracking: #14158.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/ideffort/lepic/id-programkind/featurepriority/normaltask/small-fix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions