Skip to main content

Module exec

Module exec 

Source
Expand description

Shared executable-path resolution.

A single source of truth for turning a command (bare program name or path) into the absolute, symlink-resolved binary that will actually be executed. Used by both install-time MCP pinning (mur agent mcp pin) and the runtime startup verification (B0 rules 6 & 11) so a bare command like node resolves identically across the two passes — otherwise the runtime hashes a CWD-relative path that doesn’t exist and silently skips the pin/signature check while Command::new runs the PATH-resolved binary.

Functions§

resolve_command
Resolve command to an absolute path on disk.