Skip to content

Post-seam cleanup: delete legacy shims, stale trees, and resolve naming twins #1107

Description

@phernandez

From the 2026-07 architecture review (basic-memory-cloud docs/architecture-review-2026-07.md, diagram 2). The protocol-seam migration landed; these are the leftovers that now act as traps for readers and agents.

Deletions:

  • deps.py — deprecated shim over the deps/ package ("will be removed once all callers are migrated"); migrate remaining importers and delete
  • basic_memory/cloud/ — five 3-line re-export shims; migrate the ~6 cloud-repo imports to canonical paths (paired basic-memory-cloud PR), then delete or rename the package to what it actually is
  • src-old/basic_memory/sync + tests-old/sync — port any still-useful coverage to index/watch integration tests, then delete (already flagged in the parity doc)
  • mcp/async_client.py:465 deprecated create_client() path
  • Evaluate the legacy_router remap in api/app.py:147-150

Naming twins (rename or explicitly document — currently indistinguishable by name):

  • schema/ (typed-note engine) vs schemas/ (Pydantic API DTOs)
  • index/ (local runtime orchestration) vs indexing/ (portable runners) — both also contain models.py, job_payloads.py, storage_events.py

Acceptance: grepping for a concept lands on exactly one module; no deprecated shims remain.

Metadata

Metadata

Assignees

No one assigned

    Labels

    arch-review2026-07 architecture review cleanup (cloud tracker basic-memory-cloud#1558)bugSomething isn't workingcloudBasic Memory ClouddocumentationImprovements or additions to documentationduplicateThis issue or pull request already existsenhancementNew feature or requestquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions