Vyasa Extension Refactor Audit and Execution Plan

Non-Negotiable Rules For The Next RefactorURL copied

  1. No built-in extension may import a private renderer/helper from a sibling extension.
  1. No extension may mutate ExtensionRuntime directly.
  1. No extension may register routes against raw rt or raw FastHTML.
  1. No feature-specific UI JavaScript may remain in the global scripts.js once that feature is an extension.
  1. No feature-specific CSS may remain in global header.css once that feature is an extension.
  1. A render extension owns its fence parser, renderer, CSS, JavaScript, config, and tests.
  1. A route extension owns its route handlers, permission checks, response shape, storage namespace requests, CSS, JavaScript, and tests.
  1. Core may expose contracts. Core must not know that "Mermaid", "Tasks", "Bookmarks", or "Slides" exist.
  1. Any fallback behavior must go through the default preset, not hard-coded fallback branches in Markdown or core.
  1. Move by file operations and function extraction. Avoid retyping large code.