Repository navigation
Description
Summary
Design-only follow-on under the knowledge-layer programme. Investigate whether the ID knowledge layer could support continuous two-way synchronization with Joplin through an ID-hosted Joplin-compatible sync target, a Joplin-side plugin bridge, or another bounded adapter. This issue follows the deferred decision in #7676, builds on the one-shot importer design in #5848, and belongs to programme #5678.
Do not decide build/no-build in this design task. Drew's 2026-11-11 ruling deferred the sync-target question to the orchestrator with the guided pick “Overturn — scope a design task,” and said we can design it and decide later. The build/no-build decision is explicitly after this design lands. Do not re-ask Drew. Keep #5848's one-shot import plus idempotent re-import as the v1 baseline; do not silently reverse or expand it.
Design question and boundaries
Compare, at minimum:
- Keep one-shot import, idempotent re-import, and the designed export path; make no continuous-sync addition.
- An ID-hosted Joplin-compatible sync target/backend.
- A Joplin-side plugin/extension bridge that communicates with ID through a supported interface.
- Any materially different adapter that evidence shows is viable (state why it is distinct).
For each option, describe trust boundaries and components, what state it owns, identity and lifecycle mapping, supported Joplin client/version surfaces, failure/recovery behavior, and where source-of-truth authority resides. Keep the design bounded to Joplin↔ID knowledge-layer continuity; no implementation, general sync redesign, or product build/no-build decision.
Required analysis
- id: design: importer design: Joplin (from #5678) #5848 manifest/import design: assess whether its source-vault identity and Joplin-ID↔ID-note/resource mapping can support ongoing synchronization, and what additional cursors, tombstones, field provenance, version mapping, or migration state would be needed. Preserve stable ID identity, append-only events, idempotency, and explicit reporting; distinguish re-import from continuous sync.
- id: design: Zettelkasten layer — multiplayer docs/wiki on ID #2048 multi-head/conflict semantics: explain concrete concurrent-edit cases (including deletion/restore, metadata/tags, links, attachments/resources, and offline clients). Do not introduce last-writer-wins or flatten concurrent ID heads silently. Specify user-visible conflict/merge behavior or mark the conflict an architectural blocker. Address the existing id: design: importer design: Joplin (from #5678) #5848 §7 export rule without changing id: design: Zettelkasten layer — multiplayer docs/wiki on ID #2048 decisions silently.
- Joplin protocol/API and churn: verify the current supported extension/plugin and synchronization surfaces from primary Joplin sources. Assess protocol/version compatibility, client interoperability, locking/transactions, item serialization, deletion propagation, resource handling, E2EE boundaries, upgrade cadence, and the cost/owner of ongoing compatibility maintenance. Separate documented facts from assumptions.
- Migration and operations: explain how an existing id: design: importer design: Joplin (from #5678) #5848 one-shot import/manifest transitions to and from each option without duplicate identities or data loss; include rollback/disable behavior, backup/recovery, observability, support burden, test-corpus needs, and a practical maintenance-cost estimate with stated assumptions.
- Alternatives and decision boundary: provide a comparison table, evidence-backed feasibility assessment, and design recommendation/conditions. Record which product decision remains for after the design and what evidence the decision-maker should weigh; do not make that decision here.
Acceptance criteria
- A linked design record compares all required alternatives and covers the four required analysis areas above.
- Claims about Joplin APIs/protocols and compatibility are backed by dated primary-source references; unknowns are clearly labeled with a verification plan, not presented as facts.
- The design states explicit invariants and failure/conflict cases, including how it preserves id: design: Zettelkasten layer — multiplayer docs/wiki on ID #2048 multi-head semantics and how it interoperates with the id: design: importer design: Joplin (from #5678) #5848 import manifest.
- Migration, maintenance/ownership, rollback, and test/evidence costs are described with assumptions; protocol maintenance has an explicit owner requirement rather than an implied “forever” obligation.
- Hard blockers and ordering/dependencies are stated. At minimum, treat id: design: Zettelkasten layer — multiplayer docs/wiki on ID #2048 as settled, id: design: importer design: Joplin (from #5678) #5848's one-shot design as baseline, and coordinate with the id: design: multi-device sync cluster (knowledge layer) (from #5678) #5838 multi-device sync design and id: design: attachments & media cluster (from #5678) #5844 attachment/media decisions where their boundaries intersect; record conflicts instead of silently changing those decisions.
- The deliverable remains design-only. It does not choose build/no-build, implement a target/plugin, enable a scheduled job, or change id: design: importer design: Joplin (from #5678) #5848's v1 scope. The post-design build/no-build decision is explicitly left pending.
Evidence expected
Joplin's current official documentation/source for plugin APIs and synchronization protocol/version behavior; the landed #2048 and #5848 design records; relevant #5838/#5844 records; and a migration/cost analysis grounded in those interfaces. Include a small scenario matrix or test-corpus proposal with decidable expected outcomes for conflict, retry/recovery, deletion, and manifest migration.
Relations
Follow-on to #7676; design baseline #5848; programme #5678. Related boundaries: #2048, #5838, and #5844. Build/no-build is deferred until this design lands.
Activity
developing-today commentedon Nov 12, 2026
CODE-2751
dezren39 commentedon Nov 12, 2026
🤖 Agent note · picked up by repo-worker-code / code-f for task 15314. Fresh issue #9004 is OPEN. Scope is design-only; one-shot import remains baseline and build/no-build stays deferred. I am preserving the decision and preparing a resumable research/design worktree.\n\n
16 remaining items
dezren39 commentedon Nov 12, 2026
state: picked_up (resume)
task 15314 — lane any-a resumed the CI-parked design task for issue #9004.
PR #9055 (doc/2026-11-12_design_id9004.md) revalidated fresh: open, mergeable=true, no held/user-owned/do-not-merge labels, no Codex reviews, CodeRabbit review skipped (bot author). Its check runs have remained QUEUED since 2026-11-12T22:11Z.
Next: merge PR #9055 under standing merge authority (CI runs on main; doc-only change), close this issue, complete task 15314 as fixed_merged. Build/no-build on Joplin sync remains explicitly pending per the design.
dezren39 commentedon Nov 12, 2026
state: done
task 15314 — lane any-a completed.
PR #9055 merged 2026-11-12T23:14:42Z, merge commit 196d989. The design record doc/2026-11-12_design_id9004.md is now on main.
Checks note: PR checks remained QUEUED from 22:11Z (fleet-wide queue stall, incl. mcpx-test runs); merged under standing merge authority (CI runs on main; doc-only change, mergeable=true, no Codex findings, CodeRabbit skipped).
Build/no-build on a Joplin continuous sync target/plugin bridge remains explicitly pending per Drew's 2026-11-11 ruling on #7676 — not decided here, not re-asked.
Closing this issue as complete.