LogNexus Commit: Atomic commit with Git Note and review gate
lognexus_commitCreate atomic Git commits with conventional messages, authorship trailers, contract validation, optional task completion, and Git Note attachment for LogNexus branches.
Instructions
Atomically create a Git commit with conventional commit format, authorship trailers, subtask file contract validation, optional task finishing, and Git Note attachment in a single operation. Use when creating any commit on a LogNexus branch, including the atomic subtask commits that close a Tn. Not for retro-attaching a note to a commit that already exists (use lognexus_note_attach), and not for bypassing the gate: the commit engine refuses to run on a protected branch and rejects files outside the contract.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"author": "deepseek/chat (kimi-code)",
"message": "feat(#26/T3): normalize MCP tool titles and schema examples",
"finishTask": true
},
"name": "lognexus_commit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tier | No | Operational routing tier ('tier-1', 'tier-2', 'tier-3'). | |
| author | No | Author trailer identity, e.g. 'gemini/flash (antigravity)'. | |
| message | Yes | Conventional commit message, e.g. 'feat(#15/T1): add atomic commit CLI and tool'. | |
| reviewer | No | Optional reviewer trailer identity, e.g. 'gemini/pro (review-gate)'. | |
| escalated | No | If true, acknowledges a tier-1 author working on a tier-3 subtask (records 'escalated: true' in the Git Note). | |
| allowEmpty | No | If true, allows creating an empty commit. | |
| finishTask | No | If true, marks the active subtask as completed in the persistent state. |