初始化提交

This commit is contained in:
chenxin committed 2026-08-21 16:00:13 +08:00
commit 887c1f449e
963 files changed
+166869

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
# ==============================
# 司命工具安全策略(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