An optional Jev command-risk advisor inside a native macOS Agent, with a TypeSafeKit client.
E2 · source reviewedPublic material or source evidence was reviewed. A fixed-version source review requires checking a pinned revision; this is not a reproduction, performance endorsement, or safety guarantee.
Add an optional destructive-command advisory check to a native macOS agent.
Material analysed:
From input to action
Run existing local shell-safety checks.
Ask Jev for a destructive-risk assessment when configured.
Refuse above the chosen threshold, or log that no model opinion was available.
Implementation details that matter
Provider failure is explicitly fail-open
JevAdvisor.shellBlockReason catches errors, reports that the command is allowed and returns nil. Turning on the option is not a guarantee that commands stop when the service is unavailable.
The README places the advisor after ShellSafetyService across shell paths. A below-threshold model answer does not mean the command bypasses that earlier layer.
Useful as another signal for a macOS automation harness. For operations that must stop on missing review, enforce that rule outside this optional advisor.
How to inspect it yourself
Read shellBlockReason's catch and return paths. With a fake provider, compare above-threshold, below-threshold, missing-key and cancellation behavior before enabling any destructive command.
Limits of this review
No macOS agent, privileged helper or model call was executed.
This is not evidence of endpoint security or resistance to malicious commands.