record_understanding
Records verified understanding of specified code lines in the shared ledger after a quiz, explanation, review, or pairing, with the earned score.
Instructions
Record in the shared ledger (.grokmap/ledger.jsonl) that a person showed they understand these lines.
When to use: only after the person actually answered a quiz from quiz_brief, explained the change back to you,
reviewed it, or paired on it, with the score they earned. Never record understanding because you or they wrote
the code, and never round scores up. This is the only tool that writes: it appends to the ledger and changes
nothing else. Lines edited later count as not understood again.
Returns {"recorded", "who", "score", "counts_as" (understood, or skimmed for low scores and reviews),
"files", "lines", "ledger" (its path), "reminder"}.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": {
"paths": "<paths>",
"score": "<score>"
},
"name": "record_understanding"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| who | No | Person who answered. Defaults to git user.email. Only set it when the user says who is answering. | |
| note | No | Optional short note stored with the record. | |
| repo | No | Path inside the git repository. Defaults to the server's working directory. | |
| paths | Yes | Paths exactly as quiz_brief returned them, e.g. 'src/a.py:10-40,55-60'. | |
| score | Yes | Mean of the grades, 0 to 1. | |
| method | No | quiz: answered questions. explain: explained the change back. review: only skimmed (counts as half). | quiz |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| who | Yes | ||
| files | Yes | ||
| lines | Yes | ||
| score | Yes | ||
| ledger | Yes | Ledger file that was appended to. | |
| recorded | Yes | Files recorded. | |
| reminder | Yes | ||
| counts_as | Yes | understood, or skimmed for low scores and reviews. |