Skip to content

id: implement Notion importer per #6436 design #6513

Open

Description

@dezren39

Parent and context

Parent program: #5678. Design: #6436 (design delivered on the issue by task 11129, 2026-11-06). Object model: #2048. This issue implements the Notion importer exactly as designed in #6436; it does not re-open the design.

Scope (build order from the design, §11)

  1. Test corpus first: the dedicated Notion test workspace + fixtures (design §9, C1–C8), readable via both the API and an export bundle.
  2. Notion API reader → intermediate representation (design §2, path B primary).
  3. Mapping + identity/dedupe/link-rewriting per design §3–§5, including provenance and raw preservation.
  4. Fidelity report + loss manifest per design §6 (shared convention with id: design: knowledge-layer interchange and full-fidelity export (from #5678) #6439).
  5. Export-bundle reader (path A fallback) normalizing into the same IR.
  6. Read-authority compliance per design §7: imported objects resolve object → user default → server config → public; no ID grants are created from Notion sharing in v1.

Acceptance criteria

  • Design §9 checks A1–A10 pass against the corpus (each names its oracle there).
  • A repeat import of an unchanged workspace reports 0 creates / 0 updates (A3).
  • No imported object is readable beyond the ruled resolution order (A7).

Non-goals / preserved questions

Two-way sync, database views, and formula re-execution are v1 non-goals per the design. The Drew-owned program questions listed in design §10 of #6436 remain open and non-blocking, except editions-to-inventory and evaluation budget, which gate closing the design's [verify-in-corpus] items.

Activity

  1. added
    kind/feature
    priority/normal
    on Nov 6, 2026
  2. developing-today commented on Nov 6, 2026

    @developing-today
    Contributor
  3. added
    app/id
    queue/queued
    task/triage
    on Nov 6, 2026
  4. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor

    🤖 Agent note · handed off

  5. added
    work/assigned
    queue/claimed
    status/in-progress
    queue/queued
    and removed
    queue/queued
    status/in-progress
    queue/claimed
    work/assigned
    on Nov 8, 2026
  6. 93 remaining items

  7. added
    epic/id-program
    on Nov 12, 2026
  8. added this to the ID platform program milestone on Nov 12, 2026
  9. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    Triaged: queue task 18491 (bulk-intake triage of issue #6513), Muse lane code-b, 2026-11-17.

    Verdict: already triaged of record — the triage-step's 2026-11-10 verdict (#6513 (comment)) stands and is fresh-verified here: issue #6513 OPEN, no status/needs-triage, no hard-stop labels; work kind task/small-fix, priority/normal, effort/l. Design issue #6436 is CLOSED (design delivered). Task 14473 completed triaged on that record.

    Routing stands: the implementation proceeds as step-scoped packets from design #6436 §11, starting with step 1 (dedicated Notion test workspace + fixtures, design §9 C1–C8), acceptance = §9 checks A1–A10 (including A3 idempotent re-import and A7 read-authority). Issue #6513 stays open for that multi-day implementation; reconciliation should enqueue the step-1 packet if none is live.

  10. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done (already_done, triage of record stands)

  11. removed their assignment
    on Nov 20, 2026
  12. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

    Done check (fresh, against origin/main): slice 1 (manifest + inventory, #8419) is landed and closed — pkgs/id/crates/id-import-notion has the persisted manifest, staged progress, and the API inventory crawl with per-database data-source enumeration. Slices 2–5 named in #8419's body ("file when this lands") were never filed; #8419's closing note names that filing as the next step. This lane files slices 2–5 and lands slice 2: page/block core + link rewriting + files (design §2.1, §2.5 clean classes, §3, §4) as one PR in id-import-notion, following slice 1's architecture (injected transport/fetcher boundaries, offline recorded fixtures, no credentials persisted).

    Live leg disposition: design §8's corpus is specified as recorded fixtures (export archive + recorded API responses) so it runs offline and deterministically; that is the path this slice extends. A live dedicated Notion test workspace (issue scope step 1) needs a real Notion integration token and is gated on the Drew-owned §10 answers (editions to inventory, evaluation budget) that #6513's body says gate the design's [verify-in-corpus] items. Resume condition: those answers land, or a token is supplied by secret name — then the recorded corpus is re-verified against the live workspace. No live Notion call is made by this slice.

  13. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · slice 2 landed, PR open

    • Agent: Felix lane (worker felix)

    Done check: slice 1 (#8419) was already landed and closed; slices 2–5 had never been filed. This pass filed them — slice 2 #13522, slice 3 #13523, slice 4 #13524, slice 5 #13525 (each with the design's scope and acceptance; no pilot packets enqueued, reason recorded on each: the felix shortlist is operator-managed) — and landed slice 2.

    PR #13631 — #13631 (says Closes #13522; #6513 stays open for slices 3–5). Contents: identity assignment pass over the whole inventory (design §3 two-pass rule), page/block conversion to the revision content form for the clean §2.5 classes with degraded/unsupported blocks preserved verbatim, §3 link rewriting to typed references with externalised accounting, and §4 file fetching through an injected boundary into BLAKE3-256 content-addressed blobs recorded in the manifest's new file_blobs map.

    Evidence: remote dispatch only — fleet-command run 45240072029, "Execute target command" step success at branch head 45dab3a: cargo fmt --check clean and the full id-import-notion suite green (15 unit + 3 integration, incl. the new recorded-content fixtures). New dependency: blake3 = "1" (already in the workspace lock via iroh; blob identity must match the model's raw-blake3-256 profile).

    Remaining on #6513: slices 3–5 as filed. The live dedicated-Notion-workspace leg stays dispositioned as in this lane's pickup note: gated on the §10 editions/evaluation-budget answers, resume condition recorded there.

  14. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    Second-pass verify (lane code-h, task 21885), fresh state 2026-11-24:

    Verdict: slices 1–2 landed; slice 3 next — follow-on routed.

  15. developing-today-fleet commented on Nov 26, 2026

    @developing-today-fleet
    Contributor

    Triage re-check (code-i, 2026-11-26): slices 1 (#8419), 2 (#13522 via #13631 merged 2026-11-23), and 4 (#13524, now CLOSED) landed. Remaining: slice 3 databases #13523 (OPEN) and slice 5 fidelity/re-import #13525 (OPEN, feature-slice task #24458 parked to 2026-11-27 on branch code-i/24458-notion-reimport). Live-workspace leg still gated on design #6436 §10 editions/evaluation-budget answers. No new packet: follow-ons already routed. Issue stays open for slices 3+5.

  16. developing-today commented on Nov 27, 2026

    @developing-today
    Contributor

    🤖 Agent note (lane code-j, 2026-11-26, triage task 25318): concur with the 23:45Z code-i verdict — remaining slices already routed, no duplicate packet.

  17. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Census 2026-11-29 (Felix):

  18. added
    status/needs-triage
    on Nov 29, 2026
  19. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29

    Gaps found: no lifecycle or source label (lifecycle remedied this pass; filer not stated, source left unlabelled).

    Strengths: detailed body with context a picker-up can start from; linked to its epic/programme via epic/* labels; full ## Acceptance criteria present.

    Actions taken: labels added this pass: status/needs-triage

    Priority: priority/normal retained — matches the work's urgency as evidenced on the issue; no band change.

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/normalstatus/needs-triagetask/small-fix

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions