Vyasa Extension Refactor Audit and Execution Plan

Current Contract ViolationsURL copied

Storage Namespaces Are Not UsedURL copied

Observed:

  • Annotations and bookmarks have their store code in extension folders.
  • core.py still owns _annotations_store_cache and _bookmark_store_cache.
  • Store paths are hard-coded:
    • .vyasa-annotations.db
    • .vyasa-bookmarks.db
  • No extension calls app.storage.namespace(...).

Required:

  • Core exposes storage namespace paths.
  • Annotations calls app.storage.namespace() and gets a path like <root>/.vyasa/extensions/annotations/annotations.sqlite.
  • Bookmarks does the same.
  • Old DB paths can be migrated once, but no import shim is required.