constrain
Record a constraint the work must respect, scoped to a single thread or the whole repository, and supersede it later when the rule changes. Captures the statement, reason, and source prompts.
Instructions
Record a constraint the work must respect (e.g. 'existing API contract must not break'). authority='user' or 'agent'. scope='thread' (default) or 'repo' (holds for every thread of this repository). Change later with supersedes=. source_refs = the prompt id(s) it comes from (the id from the prompt's "casebook source_ref: " line, or on a chat client the id add_utterance returns. Required with authority='user'.) FIRST LINE = TITLE: at most 120 columns (CJK counts as 2), no ' — ' joiner, and no record numbers (#517, D15635, 확장 122호, turn 80, commit hashes) — a person reads that line on the screen; put the rest after a blank line as the body. The paragraph right under the title is read on the screen too, so no record numbers there either; they go in a later paragraph or evidence_ids (the server refuses otherwise). reason follows the same first-line rule.
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": {
"case_id": "<case_id>",
"statement": "<statement>"
},
"name": "constrain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | thread | |
| reason | No | ||
| capture | No | ||
| case_id | Yes | ||
| authority | No | agent | |
| statement | Yes | ||
| supersedes | No | ||
| source_refs | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |