mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-25 06:36:49 +09:00
Review finding on #3576: the issue asked that `ruflo doctor` report a helper integrity mismatch, and doctor had no such check. Startup now heals tampered helpers, but the paths it deliberately skips (.LOCKED, RUFLO_HELPERS_LOCKED, an unverifiable package manifest, an unresolvable package source) were invisible to doctor. Adds `checkHelperIntegrity`, which reuses Nick's `verifyInstalledCriticalHelpers` and the shared `CRITICAL_HELPERS` list (no second hard-coded copy), for both <cwd>/.claude/helpers and ~/.claude/helpers: - mismatch, not locked -> fail, naming the dir and files - mismatch under .LOCKED / RUFLO_HELPERS_LOCKED -> warn (deliberate edit) - manifest signature invalid -> fail closed - package source not found -> warn instead of a false pass Wired into the default run and `doctor --component helpers`. `findPackageHelpersDir` is exported for the check. 8 new tests. Co-Authored-By: Nick Ruest <nicholas-ruest@users.noreply.github.com> Co-Authored-By: RuFlo <ruv@ruv.net>