Set lifecycle frontmatter
set_frontmatterUpdate an existing memory note's frontmatter to track verification, confidence, invalidation, supersession, rejected options, and archiving without changing the Markdown body.
Instructions
Use this when a fact's lifecycle changes: verified today, superseded by a newer note, or confidence raised or lowered. Prefer invalidating an outdated fact (invalid_at + invalidated_by) over deleting or rewriting it: history stays queryable. Use rejected entries in 'option -- reason' format to record discarded options so a future agent does not propose them again. Update frontmatter fields on an existing memory note. This write operation only changes origin, confidence, last_verified, supersedes, rejected, valid_from, invalid_at, invalidated_by, last_id, archived, and the automatic updated timestamp. last_id requires expected_hash, accepts BL- plus at least four ASCII digits, and cannot decrease an existing valid counter. The Markdown body is preserved.
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": {
"rel_path": "<rel_path>"
},
"name": "set_frontmatter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| origin | No | ||
| last_id | No | ||
| archived | No | ||
| rejected | No | ||
| rel_path | Yes | ||
| confidence | No | ||
| invalid_at | No | ||
| request_id | No | ||
| supersedes | No | ||
| valid_from | No | ||
| expected_hash | No | ||
| last_verified | No | ||
| invalidated_by | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| indexed | Yes | ||
| updated | No | ||
| rel_path | No | ||
| replayed | No | ||
| committed | No | ||
| content_hash | Yes | ||
| operation_id | No |