moa_tower_merge
Merge a mission branch into the base tower branch after verifying all required gates: mission ownership, dependencies, clean reviews, scope, and CI status; reports any merge conflicts.
Instructions
Merge a mission branch into the base (tower-only). The hard gate runs in fixed order: branch belongs to a mission → dependencies merged → survey zero-diff noop → review exists → latest round fully clean (every reviewer of the highest round) → branch tip unchanged since the clean review → changed files inside the mission scope (picomatch) → CI green (only when a ci_command is configured on boot — requires a ci/ record with commit == current tip && exitCode == 0 && clean worktree; otherwise skipped) → git merge --no-ff → conflicts report. Every blocked step records a merge.blocked activity-log line.
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": {
"workspace": "<workspace>",
"caller_agent_id": "<caller_agent_id>",
"branch": "<branch>"
},
"name": "moa_tower_merge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | Yes | The mission branch to merge into the base branch (e.g. "feat/M1-x") | |
| workspace | Yes | The absolute repo root (main checkout) this tower namespace anchors to. Required on every tower tool — the server cwd is never used as a fallback. | |
| caller_agent_id | Yes | Your engine agent id. The tower tools resolve it against the boot-registered roster (the booted tower, or a spawned worker/reviewer). |