package claude import ( "amadan.net/oficina/equipo/internal/runner/provider" "encoding/json" "slices" ) // ProbeNativeReadPolicy exercises the same refusal that Permission applies before // emitting a human request. It neither opens files nor creates an approval. func ProbeNativeReadPolicy(policy provider.Policy, tool, path string) bool { if !slices.Contains([]string{"Read", "Glob", "Grep"}, tool) { return false } field := "path" if tool == "Read" { field = "file_path" } input, _ := json.Marshal(map[string]string{field: path}) return protectedNativePath(permissionRequest{Tool: tool, Input: input}, policy) }