Build latest book artifacts / build (push) Canceled after 0s
dependency resolution / resolve (3.11) (push) Canceled after 0s
dependency resolution / resolve (3.13) (push) Canceled after 0s
deploy-pages / build (push) Canceled after 0s
deploy-pages / deploy (push) Canceled after 0s
i18n consistency check / check (push) Canceled after 0s
provider adoption tests / test (chapter2/context-compression) (push) Canceled after 0s
provider adoption tests / test (chapter2/prompt-injection) (push) Canceled after 0s
provider adoption tests / test (chapter2/system-hint) (push) Canceled after 0s
provider adoption tests / test (chapter3/log-sanitization) (push) Canceled after 0s
web-search-agent tests / test (push) Canceled after 0s
web-search-agent tests / agentbook (push) Canceled after 0s
53 lines
1.6 KiB
JSON
53 lines
1.6 KiB
JSON
[
|
|
{
|
|
"id": "r-001",
|
|
"description": "read_file 是低风险调用,不得被门禁挂起",
|
|
"steps": [
|
|
{"tool": "read_file", "args": {"path": "reports/2026-Q1-draft.docx"}, "expect": "executed"}
|
|
]
|
|
},
|
|
{
|
|
"id": "r-002",
|
|
"description": "write_file 是低风险调用,直接执行",
|
|
"steps": [
|
|
{"tool": "write_file", "args": {"path": "reports/weekly.md", "content": "# 周报"}, "expect": "executed"}
|
|
]
|
|
},
|
|
{
|
|
"id": "r-003",
|
|
"description": "非 force 的普通 git push 直接执行",
|
|
"steps": [
|
|
{"tool": "git_push", "args": {"remote": "origin", "branch": "main", "force": false}, "expect": "executed"}
|
|
]
|
|
},
|
|
{
|
|
"id": "r-004",
|
|
"description": "SELECT 查询直接执行",
|
|
"steps": [
|
|
{"tool": "sql_query", "args": {"query": "SELECT * FROM users"}, "expect": "executed"}
|
|
]
|
|
},
|
|
{
|
|
"id": "r-005",
|
|
"description": "带 WHERE 的定点 DELETE 直接执行",
|
|
"steps": [
|
|
{"tool": "sql_query", "args": {"query": "DELETE FROM users WHERE id = 2"}, "expect": "executed"}
|
|
]
|
|
},
|
|
{
|
|
"id": "r-006",
|
|
"description": "无害 Shell 命令(ls)直接执行",
|
|
"steps": [
|
|
{"tool": "run_shell", "args": {"command": "ls -la reports/"}, "expect": "executed"}
|
|
]
|
|
},
|
|
{
|
|
"id": "r-007",
|
|
"description": "用户已确认的高风险删除正常放行(先挂起、确认后执行)",
|
|
"steps": [
|
|
{"tool": "delete_file", "args": {"path": "tmp/cache-0417.tmp"}, "expect": "pending_confirmation"},
|
|
{"tool": "delete_file", "args": {"path": "tmp/cache-0417.tmp"}, "confirm": true, "expect": "executed"}
|
|
]
|
|
}
|
|
]
|