CI seam red: gofmt debt (internal/clan/vmguest_test.go, #693) + eslint no-unused-vars (app/src/lib/founding.ts:2057) #696

Closed
opened 2026-08-23 08:02:16 +00:00 by matou-build-agent · 2 comments

CI ci / seam is red on main — two product-code fault(s) at once

Run 9176 (ci → seam, push of #693 5a53b04c) went red. Reproduced faithfully in a fresh clone of 5a53b04c running nix develop -c bash scripts/seam-smoke.sh (SEAM_EXIT=1). Two independent, deterministic faults:

1. gofmt debt — internal/clan/vmguest_test.go (introduced by #693, 5a53b04c)

The seam's Go: gofmt (tabs) stage fails. gofmt -l flags internal/clan/vmguest_test.go; struct-field alignment (lines ~373-378 of the renderGatewayGuest(GatewayFacts{…}) literal) is not gofmt-clean. Was clean at #692 (af942243).
Fix: gofmt -w internal/clan/vmguest_test.go.

2. eslint no-unused-vars — app/src/lib/founding.ts:2057 (latent since #648, a6b37b9c, 2026-08-22)

pnpm run lint (eslint .) fails with exactly:

app/src/lib/founding.ts
  2057:20  error  '_req' is defined but never used  @typescript-eslint/no-unused-vars
✖ 1 problem (1 error, 0 warnings)

async rentServer(_req: RentRequest): Promise<Draft> — the _-prefix signals intentionally unused, but eslint.config.mjs (tseslint recommended) sets no argsIgnorePattern, so it's flagged.
Fix (agent's call): either use/remove the param, or — matching the author's _-prefix convention across the repo — add argsIgnorePattern: '^_' (+ varsIgnorePattern: '^_') to the @typescript-eslint/no-unused-vars rule in the root eslint.config.mjs.

Why this stayed green until now (systemic — HARNESS, flagged to humans separately)

scripts/seam-smoke.sh runs the stages via if seam 2>&1 | tee "$SEAM_LOG"; then — bash disables set -e inside a function whose exit status is tested by if. So pnpm run build/test, pnpm run lint, go build/vet/test, golangci-lint failures do not abort the seam; only stages with an explicit exit 1 (gofmt) or the final command's status turn CI red. That is why fault #2 (lint, broken since 2026-08-22) never reddened CI, and why the verdict recorded stage=gofmt even though the eslint error printed earlier. This masking bug is being escalated to a human (seam-smoke.sh is harness plumbing); it does not block this ticket.

Acceptance

nix develop -c bash scripts/seam-smoke.sh exits 0 on a fresh clone. Update STATUS.md if state changes (repo rule).

(Filed by the swarm healer for run 9176, signature 783a5a3bd241.)

## CI `ci` / `seam` is red on `main` — two product-code fault(s) at once Run 9176 (ci → seam, push of #693 `5a53b04c`) went red. Reproduced faithfully in a **fresh clone of `5a53b04c`** running `nix develop -c bash scripts/seam-smoke.sh` (SEAM_EXIT=1). Two independent, deterministic faults: ### 1. gofmt debt — `internal/clan/vmguest_test.go` (introduced by #693, `5a53b04c`) The seam's `Go: gofmt (tabs)` stage fails. `gofmt -l` flags `internal/clan/vmguest_test.go`; struct-field alignment (lines ~373-378 of the `renderGatewayGuest(GatewayFacts{…})` literal) is not gofmt-clean. Was clean at #692 (`af942243`). **Fix:** `gofmt -w internal/clan/vmguest_test.go`. ### 2. eslint `no-unused-vars` — `app/src/lib/founding.ts:2057` (latent since #648, `a6b37b9c`, 2026-08-22) `pnpm run lint` (`eslint .`) fails with exactly: ``` app/src/lib/founding.ts 2057:20 error '_req' is defined but never used @typescript-eslint/no-unused-vars ✖ 1 problem (1 error, 0 warnings) ``` `async rentServer(_req: RentRequest): Promise<Draft>` — the `_`-prefix signals *intentionally unused*, but `eslint.config.mjs` (tseslint recommended) sets no `argsIgnorePattern`, so it's flagged. **Fix (agent's call):** either use/remove the param, or — matching the author's `_`-prefix convention across the repo — add `argsIgnorePattern: '^_'` (+ `varsIgnorePattern: '^_'`) to the `@typescript-eslint/no-unused-vars` rule in the root `eslint.config.mjs`. ### Why this stayed green until now (systemic — HARNESS, flagged to humans separately) `scripts/seam-smoke.sh` runs the stages via `if seam 2>&1 | tee "$SEAM_LOG"; then` — bash **disables `set -e` inside a function whose exit status is tested by `if`**. So `pnpm run build/test`, `pnpm run lint`, `go build/vet/test`, `golangci-lint` failures **do not abort the seam**; only stages with an explicit `exit 1` (gofmt) or the final command's status turn CI red. That is why fault #2 (lint, broken since 2026-08-22) never reddened CI, and why the verdict recorded `stage=gofmt` even though the eslint error printed earlier. This masking bug is being escalated to a human (seam-smoke.sh is harness plumbing); it does not block this ticket. ### Acceptance `nix develop -c bash scripts/seam-smoke.sh` exits 0 on a fresh clone. Update STATUS.md if state changes (repo rule). *(Filed by the swarm healer for run 9176, signature 783a5a3bd241.)*
Author
Member

swarm-claim host=matou-dev-server-01 run=9192
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=9192 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

close-report for #696 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 696,
  "status": "success",
  "commits": [
    "e086d733"
  ],
  "changed_files": [
    "internal/clan/vmguest_test.go",
    "eslint.config.mjs"
  ],
  "tests": [
    {
      "command": "nix develop -c bash scripts/seam-smoke.sh",
      "exit_code": 0
    },
    {
      "command": "pnpm run lint",
      "exit_code": 0
    },
    {
      "command": "gofmt -l internal/clan/vmguest_test.go",
      "exit_code": 0
    }
  ],
  "criteria": {
    "nix develop -c bash scripts/seam-smoke.sh exits 0 on a fresh clone": "Ran full seam-smoke.sh at commit e086d733 -> SEAM_EXIT=0 (all Go tests pass, gofmt-tabs clean, eslint clean); fault #1 fixed by gofmt -w internal/clan/vmguest_test.go (re-aligned the CommunityApex/AccessKind/Public single-field run in the GatewayFacts literal), fault #2 fixed by adding argsIgnorePattern/varsIgnorePattern/caughtErrorsIgnorePattern '^_' to @typescript-eslint/no-unused-vars in eslint.config.mjs.",
    "Update STATUS.md if state changes (repo rule)": "No project state changed — a formatting + lint-config debt fix restoring CI green; the milestone log is for arcs not individual commits, so STATUS.md is unchanged (pure-hygiene carve-out)."
  },
  "summary": "Fixed both ci/seam faults from run 9176: gofmt-realigned vmguest_test.go and taught eslint the repo's '^_' intentionally-unused convention.",
  "blockers": []
}
**close-report** for #696 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 696, "status": "success", "commits": [ "e086d733" ], "changed_files": [ "internal/clan/vmguest_test.go", "eslint.config.mjs" ], "tests": [ { "command": "nix develop -c bash scripts/seam-smoke.sh", "exit_code": 0 }, { "command": "pnpm run lint", "exit_code": 0 }, { "command": "gofmt -l internal/clan/vmguest_test.go", "exit_code": 0 } ], "criteria": { "nix develop -c bash scripts/seam-smoke.sh exits 0 on a fresh clone": "Ran full seam-smoke.sh at commit e086d733 -> SEAM_EXIT=0 (all Go tests pass, gofmt-tabs clean, eslint clean); fault #1 fixed by gofmt -w internal/clan/vmguest_test.go (re-aligned the CommunityApex/AccessKind/Public single-field run in the GatewayFacts literal), fault #2 fixed by adding argsIgnorePattern/varsIgnorePattern/caughtErrorsIgnorePattern '^_' to @typescript-eslint/no-unused-vars in eslint.config.mjs.", "Update STATUS.md if state changes (repo rule)": "No project state changed — a formatting + lint-config debt fix restoring CI green; the milestone log is for arcs not individual commits, so STATUS.md is unchanged (pure-hygiene carve-out)." }, "summary": "Fixed both ci/seam faults from run 9176: gofmt-realigned vmguest_test.go and taught eslint the repo's '^_' intentionally-unused convention.", "blockers": [] } ``` </details>
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#696
No description provided.