Skip to content

verify: corrupted runtime files still pass health checks #6

Description

@LeonEvo1103

Summary

--verify reports a healthy installation when installed hook and MCP runtime files are syntactically invalid.

Verified on main at 3048fb73910a0a8944f74fb2e70abd5752a60b2f.

Reproduction

  1. Install the plugin into a temporary workspace.
  2. Replace the beginning of both files with invalid JavaScript such as const broken = ;:
    • hooks/session-end.js
    • mcp/evolver-proxy.mjs
  3. Confirm node --check exits 1 for both files.
  4. Run node scripts/install.js --verify --workspace <temporary-workspace>.

Actual result

Verify exits 0, prints Verify passed, and marks both hook:session-end.js and mcp_bridge as [OK].

Expected result

Verification should fail for corrupted or unloadable runtime files. Syntax checks and/or content hashes against the packaged runtime would catch this case.

Cause

scripts/install.js:259-277 checks only file existence for hooks, the MCP bridge, and the skill. Lines 280-281 then treat those existence checks as installation health.

Impact

Users can receive a false healthy status while the installed runtime cannot execute.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions