Files
hunjing/config/safety.example.yaml
2026-08-21 16:00:13 +08:00

32 lines
854 B
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ==============================
# 司命工具安全策略(SafetyGovernor)
# ==============================
# 复制为 safety.yaml 后按需调整;生产仅提交 *.example,真实 safety.yaml 不入库。
# 未列出的工具按 risk_level 推导默认策略:
# L0/L1 → allow,L2 → ask,L3 → always_ask,L4 → forbidden
tools:
datetime:
risk_level: L0
permission_policy: allow
read_file:
risk_level: L1
permission_policy: allow
list_dir:
risk_level: L1
permission_policy: allow
write_file:
risk_level: L2
permission_policy: ask
shell:
risk_level: L3
permission_policy: always_ask
# —— 受限工具示例(按需启用)——
# send_message:
# risk_level: L3
# permission_policy: always_ask
# payment:
# risk_level: L4
# permission_policy: forbidden