tasks/completed/prd-setup-workflow-streamlining.md
Teams currently follow a long, error-prone checklist to integrate the SourceMonitor engine into either brand-new or existing Rails 8 hosts. Manual gem edits, generator invocations, migration copying, authentication wiring, and Solid Queue/Solid Cable verification create setup drift and delayed feedback when something fails. This PRD defines a streamlined workflow that combines authoritative checklists with guided automation (scripts/generators) so users can reliably install, mount, and validate the engine with minimal switching between docs and terminals. The primary goal is to reduce manual tasks and error risk when onboarding SourceMonitor into any Rails app that meets the core prerequisites.
source_monitor gem declaration if missing, then run bundle install (respecting rbenv) with progress output.npm install only if the host manages node tooling and dependencies changed.source_monitor:install with a user-confirmed mount path (default /source_monitor) and confirm the engine route is reachable.railties:install:migrations FROM=source_monitor, deduplicate Solid Queue tables if already present, and run db:migrate.config/initializers/source_monitor.rb with sensible defaults plus TODO comments for any unresolved configuration (Mission Control, custom queues, etc.).docs/setup.md) that mirrors the automated steps, clarifies manual-only tasks (e.g., navigation link updates, Mission Control wiring), and references the new command.rails source_monitor:verify_install) that can be run in CI to confirm migrations, queues, and Action Cable remain healthy after upgrades.config/source_monitor.yml to keep the initializer tidy.ENV["RBENV_ROOT"] shims (mirroring existing binstubs).log/source_monitor_setup.log) with an opt-in environment variable for remote reporting.npm install is necessary in hosts that vend their own asset pipeline (e.g., Propshaft, esbuild)?