Merge authority: hosted CI fixes (labels, rigs, TestMain, unused)
Activity lines for hold_merge and set_merge_policy (two strings for copy review), the ask-implementer and offline-ask contracts on a protocol 3 runner (they ask after Equipo's merge), the gate package's budget TestMain, and an unused test helper removed for staticcheck.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
7 files changed,
+12
−17
docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md+2 −0docs/superpowers/plans/MERGEAUTH-PROGRESS.md+1 −1internal/equipo/copy.go+2 −0internal/equipo/mergegate/gate_test.go+4 −0internal/thintest/mergeauth_contract_test.go+0 −13internal/thintest/questions_contract_test.go+2 −2internal/thintest/review1_contract_test.go+1 −1
CI failed — run details
diff --git a/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md b/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md| index 32afbf27..b1ddff75 100644 |
| --- a/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md |
| +++ b/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md |
| @@ -5963,6 +5963,8 @@ records remain unchanged. |
| | `work.merge_policy.edit` | Change | Merge authority thin v1 (2026-11-11) | Runtime; COPY REVIEW REQUIRED | |
| | `chat.merge.why.small_one` | a small change, %d lines in one file | Merge authority thin v1 (2026-11-11) | Runtime; COPY REVIEW REQUIRED | |
| | `chat.merge.not.small_one` | it's bigger than I merge on my own (%d lines in one file) | Merge authority thin v1 (2026-11-11) | Runtime; COPY REVIEW REQUIRED | |
| +| `chat.activity.hold_merge` | Holding the merge… | Merge authority thin v1 (2026-11-11) | Runtime; COPY REVIEW REQUIRED | |
| +| `chat.activity.set_merge_policy` | Noting how this project merges… | Merge authority thin v1 (2026-11-11) | Runtime; COPY REVIEW REQUIRED | |
| ## Task 21 |
diff --git a/docs/superpowers/plans/MERGEAUTH-PROGRESS.md b/docs/superpowers/plans/MERGEAUTH-PROGRESS.md| index a5b4e0d6..4ada3844 100644 |
| --- a/docs/superpowers/plans/MERGEAUTH-PROGRESS.md |
| +++ b/docs/superpowers/plans/MERGEAUTH-PROGRESS.md |
| @@ -123,7 +123,7 @@ a build failure were redone as valid mutations. |
| ## Copy for review |
| -82 strings in `internal/equipo/copy.go`, each `COPY REVIEW REQUIRED`, each |
| +84 strings in `internal/equipo/copy.go`, each `COPY REVIEW REQUIRED`, each |
| in the Plan 3 copy inventory (`CONTROLLER-REPORT-plan-3.md`): the card's |
| stances and phrases (`chat.merge.*`), Wait for a Mac, the ships question |
| and its answers, the policy confirm card, the receipt, the revert title, |
diff --git a/internal/equipo/copy.go b/internal/equipo/copy.go| index 2ee6a9d9..7da11ede 100644 |
| --- a/internal/equipo/copy.go |
| +++ b/internal/equipo/copy.go |
| @@ -833,6 +833,8 @@ var pageCopy = map[string]string{ |
| "chat.merged": "Merged [%s](%s) into %s.", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context) |
| "chat.merged_without_checks": "Merged [%s](%s) into %s without checks.", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context) |
| "chat.activity.add_report": "Adding to the task…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context) |
| + "chat.activity.hold_merge": "Holding the merge…", // COPY REVIEW REQUIRED |
| + "chat.activity.set_merge_policy": "Noting how this project merges…", // COPY REVIEW REQUIRED |
| // Thinking words: the sets a person picks for the thinking line |
| // (Settings, Thinking words). One line per set and situation, phrases |
| // separated by " | ". Edit them here; ids and situations are in |
diff --git a/internal/equipo/mergegate/gate_test.go b/internal/equipo/mergegate/gate_test.go| index a02af122..38b44ae9 100644 |
| --- a/internal/equipo/mergegate/gate_test.go |
| +++ b/internal/equipo/mergegate/gate_test.go |
| @@ -2,13 +2,17 @@ package mergegate |
| import ( |
| "math/rand/v2" |
| + "os" |
| "slices" |
| "strings" |
| "testing" |
| "amadan.net/oficina/equipo/internal/wire" |
| + "amadan.net/rastrillo/rastrillo/budget" |
| ) |
| +func TestMain(m *testing.M) { os.Exit(budget.Main(m)) } |
| + |
| var ( |
| cand = strings.Repeat("2", 40) |
| base = strings.Repeat("1", 40) |
diff --git a/internal/thintest/mergeauth_contract_test.go b/internal/thintest/mergeauth_contract_test.go| index b806ba7f..16c50f4f 100644 |
| --- a/internal/thintest/mergeauth_contract_test.go |
| +++ b/internal/thintest/mergeauth_contract_test.go |
| @@ -134,19 +134,6 @@ func (r *toolRig) mergeCards(id string) []wire.Card { |
| return out |
| } |
| -func (r *toolRig) cardKind(kind string) (wire.Card, bool) { |
| - var out wire.Card |
| - found := false |
| - r.conv.Locked(func(c *Conversation) { |
| - for _, k := range c.Cards { |
| - if k.Kind == kind { |
| - out, found = k, true |
| - } |
| - } |
| - }) |
| - return out, found |
| -} |
| - |
| // TestContractMergeAuthorityAct: a Woodstar-shaped change whose checks |
| // need a Mac, small, ordinary, approved, on a project whose main is not a |
| // release, merges on its own: the merge step is Equipo's, its request is |
diff --git a/internal/thintest/questions_contract_test.go b/internal/thintest/questions_contract_test.go| index 02fc4f6b..dcd62caa 100644 |
| --- a/internal/thintest/questions_contract_test.go |
| +++ b/internal/thintest/questions_contract_test.go |
| @@ -82,7 +82,7 @@ func (r *toolRig) askableTask(key, base, cand string) (id string, eng, rev *wire |
| // that no longer holds an acked question fails it; the task's end stops |
| // questions and lets the runner forget its sessions. |
| func TestContractAskImplementer(t *testing.T) { |
| - r := newToolRig(t) |
| + r := newToolRigAt(t, wire.ProtocolMergeFacts) |
| ctx := r.ctx |
| base, cand := strings.Repeat("1", 40), strings.Repeat("2", 40) |
| // The teammate is an owner with a runner of their own: still not |
| @@ -288,7 +288,7 @@ func TestContractAskImplementer(t *testing.T) { |
| // line; an ended one says why. A teammate reads the thread, and their |
| // composer adds a note; asking from the page is the creator's alone. |
| func TestPagesTaskThread(t *testing.T) { |
| - r := newToolRig(t) |
| + r := newToolRigAt(t, wire.ProtocolMergeFacts) |
| owner := r.inst.Cookie() |
| base, cand := strings.Repeat("1", 40), strings.Repeat("2", 40) |
| id, _, _ := r.askableTask("a", base, cand) |
diff --git a/internal/thintest/review1_contract_test.go b/internal/thintest/review1_contract_test.go| index a91fd0cc..05b811e3 100644 |
| --- a/internal/thintest/review1_contract_test.go |
| +++ b/internal/thintest/review1_contract_test.go |
| @@ -247,7 +247,7 @@ func TestContractTransferDeclaredTooLarge(t *testing.T) { |
| // Asking a specialist whose runner is offline is answered at once: the |
| // runner is offline (runner_offline), nothing queues. |
| func TestContractAskOfflineRunner(t *testing.T) { |
| - r := newToolRig(t) |
| + r := newToolRigAt(t, wire.ProtocolMergeFacts) |
| id, _, _ := r.askableTask("o", strings.Repeat("1", 40), strings.Repeat("2", 40)) |
| r.runner.Close() |
| deadline := time.Now().Add(5 * time.Second) |