Files
roboco/docs/rag/troubleshooting/blocked-tools.md
T

60 lines
3.1 KiB
Markdown
Raw Normal View History

2026-01-06 00:59:09 +01:00
# Blocked Tools
## Native Git Commands Blocked
**Symptom:** `Bash(git commit)`, `Bash(git push)`, `Bash(git checkout)`, etc. denied by the bash-guard hook.
2026-01-06 00:59:09 +01:00
**Cause:** Shell git for network / auth / branch-mutating ops bypasses the PAT injection done by the MCP layer; raw `git fetch` etc. would fail with `could not read Username for 'https://github.com'` anyway.
2026-01-06 00:59:09 +01:00
**Solution:** Use the role-scoped MCP verb that matches what you're trying to do. There is **no** `roboco_git_commit / _push / _create_pr / _merge_pr / _checkout` MCP tool — the surface is smaller than that:
2026-05-09 03:15:09 +02:00
| Blocked shell command | Use instead |
|-----------------------|-------------|
| `git status` / `git diff` / `git log` / `git branch` | `roboco_git_status` / `roboco_git_diff` / `roboco_git_log` / `roboco_git_branch_list` (roboco-git-readonly) |
| `git commit` + `git push` (devs / docs) | `commit(message, files)` (roboco-do) — auto-prefixes [task-id], pushes |
| `git checkout` of a task branch | None — branch is auto-checked-out by `i_will_work_on(task_id)` (devs) or `i_will_plan(task_id, plan)` (PMs) |
| Open a PR | None — PR is opened by the choreographer when the dev calls `open_pr(task_id)` |
| Merge a PR | `complete(task_id, notes)` (PMs only) — Cell PM merges leaf PR; Main PM merges parent and escalates to CEO |
2026-06-29 05:38:21 +02:00
| `git fetch` / `git pull` / `git rebase` | Devs have `sync_branch(task_id)` — the gate-level rebase (fetch + rebase + force-with-lease push). If your branch is **behind its base**, call `sync_branch(task_id)`; do NOT improvise shell git. PMs have no rebase verb — for a cell/root integration branch behind its base, `escalate_up(...)`. Use `unclaim` + re-`claim` only to rebuild a branch fresh from the current base, and only on instruction |
2026-01-06 00:59:09 +01:00
## Write/Edit Outside Workspace
**Symptom:** `Write()` or `Edit()` denied for a file path
**Cause:** Write operations restricted to your workspace
**Solution:**
2026-05-09 03:15:09 +02:00
2026-01-06 00:59:09 +01:00
- Developers: Only write in `/data/workspaces/{project}/{team}/{agent-id}/`
- Documenters: Only write in `/app/docs/`
- QA: No write access (review only)
## QA Cannot Commit
2026-05-09 03:15:09 +02:00
**Symptom:** `commit()` returns `not_authorized` for a QA agent
2026-01-06 00:59:09 +01:00
2026-05-09 03:15:09 +02:00
**Cause:** QA role is read-only — cannot modify code or open PRs.
2026-01-06 00:59:09 +01:00
**Solution:** QA `pass(task_id, notes)` or `fail(task_id, issues)` only. Developers fix issues and re-submit.
2026-01-06 00:59:09 +01:00
2026-05-09 03:15:09 +02:00
## NO_PLAN Error on Start
2026-01-06 00:59:09 +01:00
2026-05-09 03:15:09 +02:00
**Symptom:** Lifecycle transition rejected with NO_PLAN
2026-01-06 00:59:09 +01:00
2026-05-09 03:15:09 +02:00
**Cause:** Parent tasks require a plan before they can leave `pending`.
2026-01-06 00:59:09 +01:00
**Solution:** PMs call `i_will_plan(task_id, plan)`; the verb both records the plan and transitions the task into `in_progress`.
2026-01-06 00:59:09 +01:00
## Parent Branch Required
2026-01-06 00:59:09 +01:00
**Symptom:** Can't claim subtask, error "Parent task must be claimed first"
2026-01-06 00:59:09 +01:00
**Cause:** Parent task hasn't been claimed/started yet, so it has no branch for the subtask's branch to fork from.
2026-01-06 00:59:09 +01:00
**Solution:**
1. Parent task must transition to `in_progress` first (PMs: `i_will_plan(parent_id, plan)`; devs: `i_will_work_on(parent_id)`).
2026-05-09 03:15:09 +02:00
2. Then the subtask's branch will auto-fork from the parent's on claim.
Branches are auto-created hierarchically. No manual creation needed.