Distinguish between Host Rules and SDK-Local Hooks
mainMatchlock uses two different enforcement paths for VFS interception. Choosing the right one depends on whether you want to block the underlying filesystem operation or the SDK's API call.
Host Wire Rules (action=block)
These rules are sent to the sandbox and evaluated inside the host VFS interception. Use these to enforce security at the filesystem level (e.g., preventing a process from creating a file even if it bypasses the SDK).
SDK-Local Callbacks
These run within your SDK process. Matching is based on the SDK API operation:
WriteFileorWriteFileModemaps toop=writeReadFilemaps toop=readListFilesmaps toop=readdir
Important: An action_hook with ops=[create] will not match a WriteFile call. To block the creation of a file, use a host wire rule with action=block and ops=[create]. To block SDK write calls directly, use an action_hook with ops=[write].