main is red: internal/rescue test double recordingConfig missing clan.Config.WriteCommunityLanguage (regression of #2122) — go vet fails, ci blocked #2141

Closed
opened 2026-11-04 00:23:15 +00:00 by matou-build-agent · 1 comment

main is red: go vet ./... fails to compile the internal/rescue test package, so the ci workflow's "Go: go.work resolves both modules; build, vet, test, lint each" stage exits 1 on every push. Found by the self-healing swarm healer on run 59214 (head a71cee68); classified product-class, so the healer filed this rather than touching internal/.

The fault

vet: internal/rescue/deviceladder_test.go:58:55: cannot use &recordingConfig{...} (value of type *recordingConfig)
  as clan.Config value in return statement: *recordingConfig does not implement clan.Config
  (missing method WriteCommunityLanguage)

Reproduced at a71cee68 in a fresh clone (go vet ./..., go1.26.7). The broker module vets clean; internal/rescue_test is the only failing package.

Root cause

a8987221 (#2122, "the community's primary language sets each service's default language") added WriteCommunityLanguage(ctx, code string) (Commit, error) to the clan.Config interface (internal/clan/clan.go:1031) and updated three implementors:

  • internal/clan/config.go:294 — the real configFace
  • internal/clan/testing/fake.go:1460 — the shared fakeConfig
  • control-plane/cmd/control-plane/resting_composition.go:221 — the resting stub

It missed a fourth: recordingConfig in internal/rescue/deviceladder_test.go:60. That double is a hand-rolled forwarder — it embeds nothing and declares all 20 clan.Config methods explicitly (so it can note() each config edit and prove the remove rung issues no clan op of its own), which means every new interface method has to be added to it by hand. The commit's own test run (go test clan/founding/) did not cover internal/rescue, so it landed green locally and red in CI.

The fix

Add the missing forwarder next to its siblings, matching the surrounding style (WriteCommunityApex / WriteCommunitySize at lines 127-135):

func (c *recordingConfig) WriteCommunityLanguage(ctx context.Context, code string) (clan.Commit, error) {
	c.note("write-community-language " + code)
	return c.r.Fake.Config().WriteCommunityLanguage(ctx, code)
}

Delegating to c.r.Fake.Config() keeps the fake's real semantics (empty/en is a no-op recorded by absence, an unsupported code is refused per ADR 0100) and keeps the edit visible in recordingClan.edits, which is what the ladder's "no clan op leaves rescue" assertion reads.

Acceptance criteria

  • go vet ./... exits 0 at the repo root (both go.work modules).
  • go test ./internal/rescue/... passes, including the two load-bearing ladder assertions (removal routes to provisioning's LOSES confirm; gateway degradation summons break-glass).
  • The ci workflow's Go stage goes green on main.
  • No change to the clan.Config interface or to any non-test source — this is a test-double gap only.

Worth considering (not required to close)

recordingConfig will break this way again on the next clan.Config method. Embedding the fake's config and overriding only the methods the test asserts on would make it forward-compatible. If that is a bigger change than this fix warrants, leave it and raise it separately — do not let it block going green.

Evidence

  • Failing run: https://git.matou.nz/Matou/idss/actions/runs/59214 (workflow ci, signature 372652b2f4ef)
  • Healer evidence bundle: /tmp/matou-heal-Matou-idss.ckkmTc on matou-workstation (run-verdict.txt carries the stage/exit/error marker)
  • Introducing commit: a8987221c47179ff72f4d01835e7450f20513d4b
main is red: `go vet ./...` fails to compile the `internal/rescue` test package, so the `ci` workflow's "Go: go.work resolves both modules; build, vet, test, lint each" stage exits 1 on every push. Found by the self-healing swarm healer on run 59214 (head `a71cee68`); classified product-class, so the healer filed this rather than touching `internal/`. ## The fault ``` vet: internal/rescue/deviceladder_test.go:58:55: cannot use &recordingConfig{...} (value of type *recordingConfig) as clan.Config value in return statement: *recordingConfig does not implement clan.Config (missing method WriteCommunityLanguage) ``` Reproduced at `a71cee68` in a fresh clone (`go vet ./...`, go1.26.7). The `broker` module vets clean; `internal/rescue_test` is the only failing package. ## Root cause `a8987221` (#2122, "the community's primary language sets each service's default language") added `WriteCommunityLanguage(ctx, code string) (Commit, error)` to the `clan.Config` interface (`internal/clan/clan.go:1031`) and updated three implementors: - `internal/clan/config.go:294` — the real `configFace` - `internal/clan/testing/fake.go:1460` — the shared `fakeConfig` - `control-plane/cmd/control-plane/resting_composition.go:221` — the resting stub It missed a fourth: `recordingConfig` in `internal/rescue/deviceladder_test.go:60`. That double is a **hand-rolled forwarder** — it embeds nothing and declares all 20 `clan.Config` methods explicitly (so it can `note()` each config edit and prove the remove rung issues no clan op of its own), which means every new interface method has to be added to it by hand. The commit's own test run (`go test clan/founding/`) did not cover `internal/rescue`, so it landed green locally and red in CI. ## The fix Add the missing forwarder next to its siblings, matching the surrounding style (`WriteCommunityApex` / `WriteCommunitySize` at lines 127-135): ```go func (c *recordingConfig) WriteCommunityLanguage(ctx context.Context, code string) (clan.Commit, error) { c.note("write-community-language " + code) return c.r.Fake.Config().WriteCommunityLanguage(ctx, code) } ``` Delegating to `c.r.Fake.Config()` keeps the fake's real semantics (empty/`en` is a no-op recorded by absence, an unsupported code is refused per ADR 0100) and keeps the edit visible in `recordingClan.edits`, which is what the ladder's "no clan op leaves rescue" assertion reads. ## Acceptance criteria - [ ] `go vet ./...` exits 0 at the repo root (both `go.work` modules). - [ ] `go test ./internal/rescue/...` passes, including the two load-bearing ladder assertions (removal routes to provisioning's LOSES confirm; gateway degradation summons break-glass). - [ ] The `ci` workflow's Go stage goes green on `main`. - [ ] No change to the `clan.Config` interface or to any non-test source — this is a test-double gap only. ## Worth considering (not required to close) `recordingConfig` will break this way again on the next `clan.Config` method. Embedding the fake's config and overriding only the methods the test asserts on would make it forward-compatible. If that is a bigger change than this fix warrants, leave it and raise it separately — do not let it block going green. ## Evidence - Failing run: https://git.matou.nz/Matou/idss/actions/runs/59214 (workflow `ci`, signature `372652b2f4ef`) - Healer evidence bundle: `/tmp/matou-heal-Matou-idss.ckkmTc` on `matou-workstation` (`run-verdict.txt` carries the stage/exit/error marker) - Introducing commit: `a8987221c47179ff72f4d01835e7450f20513d4b`
ben closed this issue 2026-11-04 02:44:25 +00:00
Author
Member

Still red, still unclaimed — healer recurrence on ci run 59281 (head fed0aa92), signature 372652b2f4ef, heal run heal-Matou-idss-1793759807-2474692. Same fault as filed, re-confirmed at fed0aa92; no new diagnosis, and no code touched (product-class).

Re-verified at fed0aa92 in the throwaway clone: recordingConfig (internal/rescue/deviceladder_test.go:60) is still the only one of the four clan.Config implementors missing WriteCommunityLanguage. The other three are present — internal/clan/config.go:294, internal/clan/testing/fake.go:1460, control-plane/cmd/control-plane/resting_composition.go:221. go vet reports exactly one error; the fix in the body above is still the whole fix.

Why this ticket has not moved. It is not triage and not priority — the swarm physically cannot claim it. claim-next-task.sh has been emitting [] on every tick because its 12s CLAIM_LISTER_MAX_TIME bound now kills list-ready-tasks.sh (measured 11.45s / 22.15s / 27.88s / 18.01s over four consecutive runs — this forge answers issues?state=open&limit=50 in 8–22s). The timeout arm takes the graceful [], which renders as an empty ready-tasks queue, so four consecutive workers opened their iteration with nothing claimed and ended without work — while re-running the lister by hand showed this ticket at the head of the queue. Filed as #2145 (ready-for-session; both scripts are factory-vendored, so the fix lands in Matou/dev-factory).

So: this ticket stays ready-for-agent and correct as written — it just needs either #2145 fixed first, or a hand to land the four-line forwarder. No dependency edge added deliberately: a blocked by edge would drop this ticket out of the lister's unblocked set and make it less claimable the moment the claim path recovers.

**Still red, still unclaimed** — healer recurrence on `ci` run 59281 (head `fed0aa92`), signature `372652b2f4ef`, heal run `heal-Matou-idss-1793759807-2474692`. Same fault as filed, re-confirmed at `fed0aa92`; no new diagnosis, and no code touched (product-class). Re-verified at `fed0aa92` in the throwaway clone: `recordingConfig` (`internal/rescue/deviceladder_test.go:60`) is still the **only** one of the four `clan.Config` implementors missing `WriteCommunityLanguage`. The other three are present — `internal/clan/config.go:294`, `internal/clan/testing/fake.go:1460`, `control-plane/cmd/control-plane/resting_composition.go:221`. `go vet` reports exactly one error; the fix in the body above is still the whole fix. **Why this ticket has not moved.** It is not triage and not priority — the swarm physically cannot claim it. `claim-next-task.sh` has been emitting `[]` on every tick because its 12s `CLAIM_LISTER_MAX_TIME` bound now kills `list-ready-tasks.sh` (measured 11.45s / 22.15s / 27.88s / 18.01s over four consecutive runs — this forge answers `issues?state=open&limit=50` in 8–22s). The timeout arm takes the graceful `[]`, which renders as an **empty ready-tasks queue**, so four consecutive workers opened their iteration with nothing claimed and ended without work — while re-running the lister by hand showed this ticket at the head of the queue. Filed as **#2145** (`ready-for-session`; both scripts are factory-vendored, so the fix lands in `Matou/dev-factory`). So: this ticket stays `ready-for-agent` and correct as written — it just needs either #2145 fixed first, or a hand to land the four-line forwarder. No dependency edge added deliberately: a `blocked by` edge would drop this ticket out of the lister's unblocked set and make it *less* claimable the moment the claim path recovers.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#2141
No description provided.