mirror of
https://github.com/rennf93/roboco.git
synced 2026-08-03 07:23:24 +02:00
1.5 KiB
1.5 KiB
Git Commit Format
Commits use conventional format with traceability:
[{root-id:8}:{task-id:8}] {type}({scope}): {description}
{body}
---
Task: {task-id}
Root: {root-task-id}
Agent: {agent-slug}
Session: {session-id}
Links:
- Task: {api}/tasks/{task-id}
- Root: {api}/tasks/{root-task-id}
- Journal: {api}/journals/{agent-slug}
Required: the conventional type (feat, fix, chore, docs, refactor,
test, style, perf, ci, build) at the start of the subject. The
commit_validator rejects messages that don't start with one of these
followed by (scope)?:.
Optional: scope (api, auth, db, ui), body, the files argument
to scope the commit.
How to commit
Use the commit verb on the roboco-do MCP — devs and documenters
only. There is no roboco_git_commit tool.
commit(
message="feat(api): add Redis rate limiter",
files=["roboco/api/routes/rate.py", "tests/integration/test_rate.py"],
# files is optional; defaults to all staged + modified tracked files
)
The choreographer:
- Strips any leading
[task-id]you might have included - Runs
commit_validatoron the subject - Re-prefixes with the canonical
[task-id-first-8] - Stages the listed files (or everything tracked + modified)
- Commits in the agent's workspace
- Pushes to the agent's branch on origin
- Records the commit on the task (
commits[]field onTaskTable)
You don't need a separate push step. There is no roboco_git_push
tool.