Attach Commit to Recent Decisions
cph_decision_attach_commitAttaches commit hash and diff stat to recent decisions recorded within 30 minutes that lack a commit link, ensuring each decision is tied to its corresponding commit.
Instructions
Internal: Called by the post-commit git hook to link recent decisions to a commit.
Do NOT call this manually. The hook calls it automatically after every commit.
Attaches commit_hash and diff_stat to decisions recorded in the last 30 minutes that don't already have a commit attached.
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": {
"workflow_id": "<workflow_id>",
"commit_hash": "<commit_hash>"
},
"name": "cph_decision_attach_commit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflow_id | Yes | ||
| commit_hash | Yes | ||
| diff_stat | No | Structural summary only: '3 files changed, 45 insertions' |