GeezerVison is showing github.com — id: implement Notion importer slice 1: manifest + inventory (design #6436) · Issue #8419 · developing-today/code
id: implement Notion importer slice 1: manifest + inventory (design #6436) #8419DescriptionImplementation slice 1 of the Notion importer design for #6436, landed as doc/2026-11-10_design_id6436.md (PR #8416).
Scope (design §1.2, §6, §6.3, Implementation slicing item 1):
- Persisted import manifest: source workspace identity, acquisition paths, pinned Notion-Version, Notion UUID ↔ note ID and block UUID ↔ (note ID, block identity) maps, per-object staged state (inventory → files → content → references → report) and outcome.
- Notion API inventory crawl: page/database/block UUIDs, full database schemas, comments availability per page, the visible share set (pages shared with the integration) recorded as accounting, workspace edition when known.
- Resume-after-interruption from the manifest; identity check before any object creation.
Acceptance:
- Manifest reconciles to the inventory (design §6.4 invariant, inventory subset).
- Offline fixture test: recorded API responses produce the expected manifest inventory (design §8 check 1, inventory subset).
- No credentials persisted anywhere in the manifest or logs (design §6.5).
Later slices (file when this lands, per the design slicing): 2 page/block core + link rewriting + files; 3 databases (schema claims, relations, rollups/formulas); 4 comments + degradation classes + hybrid export matching; 5 fidelity report + incremental re-import. Activitydeveloping-today commented on Nov 11, 2026 dezren39 commented on Nov 17, 2026 agent-note:v1
state: triaged
task: 18653 (queue repo-health-code-pilot, worker repo-worker-code, lane code-d)
Triage verdict for issue #8419: TRIAGED — design landed, no implementation exists; slice-1 implementation follow-on enqueued. Verified fresh this shift (2026-11-17).
- Issue id: implement Notion importer slice 1: manifest + inventory (design #6436) #8419 OPEN, no hard-stop labels (only epic/id-program). Work kind: kind/feature + task/small-fix, priority/normal, effort/l — labels applied with this note.
- Fresh verification: design id: design: Notion importer for the knowledge layer (from #5678) #6436 is on main (doc/2026-11-10_design_id6436.md, via PR docs(id): design: Notion importer for the knowledge layer (#6436) #8416), and
git grep notion across pkgs/id/crates returns nothing — no importer code has been started, so slice 1 (manifest + inventory + resume) is the correct first step, exactly as the design's slicing orders it.
- First concrete step for the follow-on: the persisted manifest schema per design §6 (workspace identity, pinned Notion-Version, UUID maps, per-object staged state), then the inventory crawl against recorded API fixtures (design §8 check 1) — offline only, and §6.5's no-credentials-in-manifest-or-logs rule applies from the first commit.
- Follow-on: implementation packet enqueued as task 20276 (dedupe repo-health:v1:fix:developing-today/code:issue:8419). Completing task 18653 as triaged naming task 20276.
dezren39 commented on Nov 17, 2026 agent-note:v1
state: parked
task: 20276 · lane: any-o · worker: repo-worker-code
Fresh revalidation (2026-11-17): #8419 remains OPEN, assigned to Drew, with no open PR. No implementation started. Slice 1 is a substantial importer build beyond this scheduled lane. Parked pending explicit ownership handoff and a dedicated implementation window; revalidate before resuming. dezren39 commented on Nov 17, 2026 agent-note:v1
state: parked
task: 20276 · lane: code-i · worker: repo-worker-code · origin: openchamber-scheduled-lane
Fresh revalidation 2026-11-17: #8419 remains OPEN, assigned to dezren39, with no open PR matching the issue. No implementation started.
Why parked: this slice includes persisted manifest design, complete Notion page/database/block/schema/comment/share inventory, resume with pre-creation identity validation, and an offline API-fixture test. That is a large cross-cutting implementation and cannot responsibly be completed inside the scheduled lane’s ~30-minute run budget. Explicit ownership handoff and a full-budget window needed to resume. dezren39 commented on Nov 18, 2026 agent-note:v1
state: parked
task: 20276
lane: any-n
stage: ownership_and_budget_revalidation
Fresh claim revalidation (2026-11-18T16:43Z): #8419 remains OPEN and assigned to dezren39 (Drew); no explicit ownership release/handoff is present. No open implementation PR is recorded. The required slice includes manifest persistence, full Notion inventory, identity-checked resume, and offline fixtures; it needs a dedicated full-budget implementation window and API/workspace assumptions. No implementation or worktree inspection started. Parked for 24 hours to avoid repeated short-park churn. Resume only after explicit ownership handoff and a full-budget window, then revalidate issue and PR state; offline fixtures only, no credentials persisted.
dezren39 commented on Nov 20, 2026 agent-note:v1
state: pr_updated
task: 20276 · lane: oc-code-02 · worker: repo-worker-code · origin: openchamber-scheduled-lane
Addressed the latest Codex finding on PR #12124: block-children responses now fail closed when results is missing or not an array, with a regression test. Pushed abbe7ff801 to the existing branch queue/20276-8419-notion-manifest. Verification: cargo test -p id-import-notion passed (9 unit + 1 integration fixture); cargo fmt --check --package id-import-notion and git diff --check passed. Workspace-wide formatting still reports unrelated pre-existing diffs in id-cli/src/commands/serve.rs and id-worlds/src/lib.rs. PR remains open; no merge attempted. dezren39 commented on Nov 20, 2026
Task 20276 completed with a reviewable fix on existing PR #12124 (abbe7ff8017da76645e6bb89afe6dac441ff35b0). Fresh verification: issue #8419 and PR #12124 are open; the PR head matches the pushed branch. Targeted checks passed: cargo test -p id-import-notion (9 unit + 1 integration), cargo fmt --check --package id-import-notion, and git diff --check. gh pr checks reports CodeRabbit skipped and no required CI checks. PR intentionally remains open and unmerged for review. Sandbox backlog and sweep-log bookkeeping are deferred to fleet reconciliation. dezren39 commented on Nov 22, 2026 Merged work, still open. Every pull request that references this issue has merged (#8558, #12124) and none is open, but the issue kept status:in-review. Tasks that name it as a blocker have been waiting on it.
status:in-review is removed. Whoever takes this next: run the issue's done check against main. Close the issue if it passes; if not, list what is left here and carry on with it (AGENTS.md, "Finishing work").
By: Claude, 2026-11-22 flow review.
Generated by Claude Code dezren39 commented on Nov 23, 2026 Pickup — xaltha seat, 2026-11-22. Slice 1's implementation PR #12124 has merged (2026-11-21, f766554) and no PR is open, so per the flow-review note the next step is the done check against main: (1) manifest reconciles to the inventory (§6.4 invariant, inventory subset), (2) offline fixture test (§8 check 1, inventory subset), (3) no credentials persisted in manifest or logs (§6.5). Running it now; will close with evidence if it passes, or land the remainder as a fix slice if it does not. dezren39 commented on Nov 23, 2026 Done check against main (9794191, includes PR #12124 merge f766554) — PASS on all three acceptance criteria. Closing.
-
Manifest reconciles to the inventory (§6.4 invariant, inventory subset). Manifest::new creates exactly one ObjectProgress row per inventory object; Manifest::validate_inventory_reconciles enforces exact set equality between progress rows and inventory.objects. Data sources are checkpointed under their database's row, with data_source_id_to_identity covering each source (the slice-1 design recorded in the crate docs). The integration test asserts manifest.objects.len() == manifest.inventory.objects.len() and calls the validator.
-
Offline fixture test (§8 check 1, inventory subset). tests/recorded_inventory.rs over recorded fixtures (search/database/data_sources) asserts the expected inventory: object set {db-alpha, page-root}, visible shares, both data sources with schema, comments availability, and file-URL sanitisation. Full suite run locally at 9794191: cargo test -p id-import-notion = 11 unit + 1 integration passed, 0 failed (includes crawl pagination exhaustion, fail-closed incomplete-query and missing-results cases, wiki child-data-source enumeration, resume identity checks, and no-rewind progress).
-
No credentials persisted (§6.5). The manifest schema has no credential field; the NotionApi boundary never accepts or serializes a token from Manifest; sanitized_source strips expiring file URLs (temporary download credentials) from recorded objects. Tests assert the persisted manifest contains neither the fixture secrets nor any token string, and a source grep finds no credential handling beyond the doc comments stating this rule.
Scope items also verified in the merged code: persisted manifest (workspace identity, acquisition paths, pinned Notion-Version 2025-09-03, page↔note and block↔identity maps, per-object staged state inventory → files → content → references → report with outcomes), full inventory crawl (pages/databases/blocks, database schemas via data sources, per-page comments availability, visible share set as accounting, workspace edition when known), atomic save, and resume identity check before any object creation.
Remainder (not part of this slice-1 issue): the design's later slices 2–5 (page/block core + link rewriting + files; databases; comments + degradation classes; fidelity report + incremental re-import) have not yet been filed as follow-on issues — the issue body says to file them when slice 1 lands, so that filing is the next step for whoever picks up the importer next.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|