guard_note
Record agent-authored decisions, corrections, risks, and notes as journal entries that persist across sessions and compactions; use guard_verify instead for command-pass claims.
Instructions
Append one agent-authored journal entry.
Use it when a decision, correction, risk, or note should survive the
session and the next compaction. Do not use it for a claim that a command
passed; that belongs in guard_verify. type is a required string:
decision, correction, risk, or note. text is a required string.
tags is an optional list of strings, default None. The tag agent is
always stored, so the entry stays unverified: it does not enter the trusted
decisions or corrections the brief treats as owner input. Tag lesson to
make a precedent the brief can re-inject. check is optional and applies to
a correction only: it names the command that proves the rule still holds,
which the brief runs (bounded, timed out) and labels. It returns logged <type> #N,
the stored tags, any normalization notes, and a Nudge. Side effects: appends
one JSON line to .agent-guard/journal.jsonl and creates the store if
needed. It does not change the contract or the evidence ledger.
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": {
"type": "<type>",
"text": "<text>"
},
"name": "guard_note"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Optional tags. List of strings, default None (no caller tags). Cleaned, de-duplicated, and capped at 8 tags of 40 characters. The tag "agent" is always appended and cannot be crowded out. Add "lesson" to make a precedent. On a correction, "satisfied" or "dissatisfied" records the owner's reaction; a one-edit typo of those two words is normalized. | |
| text | Yes | The entry body. Required string. Blank or whitespace-only text is rejected. Stored as one line, capped at 500 characters. | |
| type | Yes | Journal type. Required string: decision, correction, risk, or note. Any other value returns an error line and writes nothing. | |
| check | No | Correction only, optional. One-line shell command that proves the correction still holds; the brief runs it at session start and reports HONORED / VIOLATED / TIMEOUT. Rejected on any type other than correction. Capped at 200 characters. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |