oficina / equipo Public

Equipo merges a task once it has earned Ready to merge

Paul, 2026-11-07, overruling "Equipo never merges". A task whose checks
passed and whose review approved, both on the branch's head, is merged
by the person's runner through forge and the hub's merge API (a merge
commit, branch deleted): stage merging, then done with the commit. The
merge is record-then-reconcile: the remote is read first (a judged SHA
already on the default branch is done; a moved branch is never merged),
the lease is confirmed right before the request, and a lost answer or a
crash is settled from the default branch. A conflict sends Engineering
one rebase round (the change merged onto the new tip, conflicts marked),
judged afresh. Checks that could not run get one merge card for the
creator (Merge, Wait for checks). record_task returns similar open tasks
instead of a duplicate, and add_report attaches the new report. The
coordinator says "Merged [title](link) into <project>." "Open on Amadan
to merge" is gone.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 09f2f9ca39c03a501757549067c4f0ea548d1c2a parent a0d418f
58 files changed, +3,073 −156
  • .rastrillo/budgets.txt +2 −2
  • docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md +22 −1
  • docs/superpowers/plans/SLICE4C-PROGRESS.md +43 −0
  • internal/equipo/chat/merge.go +390 −0
  • internal/equipo/chat/projects.go +6 −1
  • internal/equipo/chat/review.go +29 −8
  • internal/equipo/chat/store.go +4 −0
  • internal/equipo/chat/tasks.go +110 −20
  • internal/equipo/chat/tools.go +1 −1
  • internal/equipo/chat_page.go +26 −5
  • internal/equipo/chat_wiring.go +1 −0
  • internal/equipo/copy.go +21 −1
  • internal/equipo/migrations/0046_thin_merge.sql +13 −0
  • internal/equipo/migrations/schema.sql +2 −2
  • internal/equipo/templates/chat.html +4 −2
  • internal/equipo/templates/task_card.html +1 −1
  • internal/equipo/templates/work_task.html +2 −2
  • internal/equipo/work_pages.go +29 −8
  • internal/fakeclaude/fake.go +46 −6
  • internal/headless/merge_test.go +297 −0
  • internal/headless/projects_test.go +11 −0
  • internal/headless/review_test.go +23 −48
  • internal/headless/scenarios_test.go +4 −0
  • internal/runner/forge/forgetest/merge.go +75 −0
  • internal/runner/forge/merge.go +379 −0
  • internal/runner/forge/merge_test.go +254 −0
  • internal/runner/provider/actions.go +1 −1
  • internal/runner/provider/claude/converse_policy_test.go +27 −0
  • internal/runner/provider/claude/launcher.go +1 −1
  • internal/runner/thin/claude.go +3 −2
  • internal/runner/thin/create_test.go +4 −0
  • internal/runner/thin/engineer.go +38 −1
  • internal/runner/thin/forge.go +16 −0
  • internal/runner/thin/mcp.go +2 −1
  • internal/runner/thin/merge.go +10 −2
  • internal/runner/thin/mergestep.go +180 −0
  • internal/runner/thin/mergestep_test.go +227 −0
  • internal/runner/thin/run.go +1 −1
  • internal/runner/thin/step.go +6 −1
  • internal/runner/thin/voice_test.go +32 −1
  • internal/runner/workspace/task.go +50 −0
  • internal/runner/workspace/task_test.go +68 −0
  • internal/thintest/merge_contract_test.go +439 −0
  • internal/thintest/pages_test.go +24 −9
  • internal/thintest/questions_contract_test.go +5 −2
  • internal/thintest/review_contract_test.go +38 −14
  • internal/wire/frames.go +1 −1
  • internal/wire/tasks.go +92 −3
  • internal/wire/wiretest/fixtures.go +2 −2
  • internal/wire/wiretest/testdata/api/card-merge.json +1 −0
  • internal/wire/wiretest/testdata/api/needs-you.json +1 −1
  • internal/wire/wiretest/testdata/api/task-merged.json +1 −0
  • internal/wire/wiretest/testdata/api/task-ready.json +1 −1
  • internal/wire/wiretest/testdata/api/task.json +1 −1
  • internal/wire/wiretest/testdata/api/tasks.json +1 −1
  • internal/wire/wiretest/testdata/frames/dispatch.json +1 −1
  • internal/wire/wiretest/testdata/frames/step.json +1 −1
  • scripts/staging-thin.py +3 −0
.rastrillo/budgets.txt

Loading diff…

docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md

Loading diff…

docs/superpowers/plans/SLICE4C-PROGRESS.md

Loading diff…

internal/equipo/chat/merge.go

Loading diff…

internal/equipo/chat/projects.go

Loading diff…

internal/equipo/chat/review.go

Loading diff…

internal/equipo/chat/store.go

Loading diff…

internal/equipo/chat/tasks.go

Loading diff…

internal/equipo/chat/tools.go

Loading diff…

internal/equipo/chat_page.go

Loading diff…

internal/equipo/chat_wiring.go

Loading diff…

internal/equipo/copy.go

Loading diff…

internal/equipo/migrations/0046_thin_merge.sql

Loading diff…

internal/equipo/migrations/schema.sql

Loading diff…

internal/equipo/templates/chat.html

Loading diff…

internal/equipo/templates/task_card.html

Loading diff…

internal/equipo/templates/work_task.html

Loading diff…

internal/equipo/work_pages.go

Loading diff…

internal/fakeclaude/fake.go

Loading diff…

internal/headless/merge_test.go

Loading diff…

internal/headless/projects_test.go

Loading diff…

internal/headless/review_test.go

Loading diff…

internal/headless/scenarios_test.go

Loading diff…

internal/runner/forge/forgetest/merge.go

Loading diff…

internal/runner/forge/merge.go

Loading diff…

internal/runner/forge/merge_test.go

Loading diff…

internal/runner/provider/actions.go

Loading diff…

internal/runner/provider/claude/converse_policy_test.go

Loading diff…

internal/runner/provider/claude/launcher.go

Loading diff…

internal/runner/thin/claude.go

Loading diff…

internal/runner/thin/create_test.go

Loading diff…

internal/runner/thin/engineer.go

Loading diff…

internal/runner/thin/forge.go

Loading diff…

internal/runner/thin/mcp.go

Loading diff…

internal/runner/thin/merge.go

Loading diff…

internal/runner/thin/mergestep.go

Loading diff…

internal/runner/thin/mergestep_test.go

Loading diff…

internal/runner/thin/run.go

Loading diff…

internal/runner/thin/step.go

Loading diff…

internal/runner/thin/voice_test.go

Loading diff…

internal/runner/workspace/task.go

Loading diff…

internal/runner/workspace/task_test.go

Loading diff…

internal/thintest/merge_contract_test.go

Loading diff…

internal/thintest/pages_test.go

Loading diff…

internal/thintest/questions_contract_test.go

Loading diff…

internal/thintest/review_contract_test.go

Loading diff…

internal/wire/frames.go

Loading diff…

internal/wire/tasks.go

Loading diff…

internal/wire/wiretest/fixtures.go

Loading diff…

internal/wire/wiretest/testdata/api/card-merge.json

Loading diff…

internal/wire/wiretest/testdata/api/needs-you.json

Loading diff…

internal/wire/wiretest/testdata/api/task-merged.json

Loading diff…

internal/wire/wiretest/testdata/api/task-ready.json

Loading diff…

internal/wire/wiretest/testdata/api/task.json

Loading diff…

internal/wire/wiretest/testdata/api/tasks.json

Loading diff…

internal/wire/wiretest/testdata/frames/dispatch.json

Loading diff…

internal/wire/wiretest/testdata/frames/step.json

Loading diff…

scripts/staging-thin.py

Loading diff…