guard_verify
Runs a shell command and records its outcome as verifiable evidence, so agents can cite an evidence ID before claiming a check passed.
Instructions
Run a shell command and record the outcome as evidence.
Use it before claiming a check passed, and cite the returned evidence id.
Do not use it to retry a command that guard_loop_check already says will
be blocked. command is a required string and runs verbatim (shell=True)
with the caller's privileges; stdin is closed. timeout_s is an int,
default 180, clamped to 1–900. It returns a text report: on a real run,
PC verify ev-NNNN · exit N · ok|FAIL|UNTRUSTED · <ms>ms, plus cwd, the
command, a digest or failure tail, and a Nudge. Exit 0 from a pipeline
(no pipefail) or a failure mask such as || true is labelled UNTRUSTED
and is not proof. A blocked loop returns PC verify blocked and does not
add a ledger row. Nonzero exits are recorded, not raised. Side effects: the
command itself can change files, the network, or anything else the shell
can do. A run that is not blocked appends one row to
.agent-guard/verify_runs.jsonl and creates the store if needed. The
loop-brake check can also seed config.json.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"command": "<command>"
},
"name": "guard_verify"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Shell command to run and record, as one string (pipes and quotes included). Required. Executed with the caller's privileges via the shell; this is not a sandbox. A blank string returns an error line and records nothing. | |
| timeout_s | No | Seconds before the child is killed. Integer. Default 180. Clamped to 1–900; a timeout is recorded as exit 124, not raised. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |