app build (vue-tsc) is RED on main — foundingRentedToolchainGate.test.ts omits the required AddressChoice.summary (TS2741) #1698

Closed
opened 2026-09-21 18:32:46 +00:00 by matou-build-agent · 2 comments

main is RED. Every ci.yml run since 368260e0 fails at the seam's pnpm -r run build stage, so no push to main is gated any more until this is fixed.

The fault

Run https://git.matou.nz/Matou/idss/actions/runs/29427 (run 29427, ci.yml, head 368260e0), stage TypeScript: build (tsc), test (vitest), lint (eslint), exit 2:

app build: Failed
app build: tests/unit/foundingRentedToolchainGate.test.ts(30,5): error TS2741: Property 'summary' is missing in type '{ kind: "subdomain"; host: string; }' but required in type 'AddressChoice'.
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  @idss/app@0.1.0 build: `vue-tsc -p tsconfig.json`

Root cause

app/src/lib/founding.ts:201 declares summary: string as a required member of AddressChoice. The test helper added by 368260e0 (#1696) builds a Draft whose address literal omits it:

// app/tests/unit/foundingRentedToolchainGate.test.ts:30
address: { kind: 'subdomain', host: 'whakatohea-demo.idss.nz' },

Every sibling test writes the field — e.g. app/tests/unit/foundingPage.test.ts:46, foundingBuildFleet.test.ts:39, foundingAccessI18n.test.ts:135 all use { kind: 'subdomain', host: 'example.idss.nz', summary: 'example.idss.nz' }. This one file is the outlier.

vitest does not type-check, so the new test passes at runtime; only vue-tsc (the app build script) sees it. 368260e0's commit message asserts "vue-tsc clean" — that was not the case for the committed tree.

Fix

Add the missing summary to the address literal in reviewDraft(), matching the sibling tests:

address: { kind: 'subdomain', host: 'whakatohea-demo.idss.nz', summary: 'whakatohea-demo.idss.nz' },

Then confirm with pnpm --filter @idss/app run build (vue-tsc) before pushing — not just pnpm test.

Scope

Product code only (app/tests/). Do not loosen AddressChoice.summary to optional to make the error go away — the field is required by design across the Address step; fix the test.

The host pre-push Gate 2 (.sandcastle/git-hooks/pre-push, #1252) runs eslint on TypeScript pushes but no type-check, so a vue-tsc break reaches main through the reconcile push exactly as it did here. Whether to add a type-check sub-gate (and pay vue-tsc on every TS push) is a human call — raised in the heal report, not decided here.


Filed by the swarm healer. Incident signature 57fe069c9b26, heal run heal-Matou-idss-1790015247-2548126.

`main` is RED. Every `ci.yml` run since 368260e0 fails at the seam's `pnpm -r run build` stage, so no push to main is gated any more until this is fixed. ## The fault Run https://git.matou.nz/Matou/idss/actions/runs/29427 (run 29427, `ci.yml`, head 368260e0), stage `TypeScript: build (tsc), test (vitest), lint (eslint)`, exit 2: ``` app build: Failed app build: tests/unit/foundingRentedToolchainGate.test.ts(30,5): error TS2741: Property 'summary' is missing in type '{ kind: "subdomain"; host: string; }' but required in type 'AddressChoice'. ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL @idss/app@0.1.0 build: `vue-tsc -p tsconfig.json` ``` ## Root cause `app/src/lib/founding.ts:201` declares `summary: string` as a **required** member of `AddressChoice`. The test helper added by 368260e0 (#1696) builds a `Draft` whose `address` literal omits it: ```ts // app/tests/unit/foundingRentedToolchainGate.test.ts:30 address: { kind: 'subdomain', host: 'whakatohea-demo.idss.nz' }, ``` Every sibling test writes the field — e.g. `app/tests/unit/foundingPage.test.ts:46`, `foundingBuildFleet.test.ts:39`, `foundingAccessI18n.test.ts:135` all use `{ kind: 'subdomain', host: 'example.idss.nz', summary: 'example.idss.nz' }`. This one file is the outlier. `vitest` does not type-check, so the new test passes at runtime; only `vue-tsc` (the app `build` script) sees it. 368260e0's commit message asserts "vue-tsc clean" — that was not the case for the committed tree. ## Fix Add the missing `summary` to the `address` literal in `reviewDraft()`, matching the sibling tests: ```ts address: { kind: 'subdomain', host: 'whakatohea-demo.idss.nz', summary: 'whakatohea-demo.idss.nz' }, ``` Then confirm with `pnpm --filter @idss/app run build` (vue-tsc) before pushing — not just `pnpm test`. ## Scope Product code only (`app/tests/`). Do **not** loosen `AddressChoice.summary` to optional to make the error go away — the field is required by design across the Address step; fix the test. ## Related harness note (not part of this ticket) The host pre-push Gate 2 (`.sandcastle/git-hooks/pre-push`, #1252) runs **eslint** on TypeScript pushes but no type-check, so a `vue-tsc` break reaches main through the reconcile push exactly as it did here. Whether to add a type-check sub-gate (and pay vue-tsc on every TS push) is a human call — raised in the heal report, not decided here. --- Filed by the swarm healer. Incident signature `57fe069c9b26`, heal run `heal-Matou-idss-1790015247-2548126`.
Author
Member

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

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

close-report for #1698 — status success

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

envelope
{
  "issue": 1698,
  "status": "success",
  "commits": [
    "548f206f"
  ],
  "changed_files": [
    "app/tests/unit/foundingRentedToolchainGate.test.ts"
  ],
  "tests": [
    {
      "command": "CI=true pnpm --filter @idss/app run build",
      "exit_code": 0
    },
    {
      "command": "CI=true pnpm --filter @idss/app exec vitest run tests/unit/foundingRentedToolchainGate.test.ts",
      "exit_code": 0
    }
  ],
  "criteria": {
    "app vue-tsc build passes (TS2741 gone)": "CI=true pnpm --filter @idss/app run build exits 0; commit 548f206f adds summary to the address literal at foundingRentedToolchainGate.test.ts:30",
    "test still passes at runtime, field not loosened to optional": "vitest run of the file: 3 passed; AddressChoice.summary in app/src/lib/founding.ts unchanged (still required)"
  },
  "summary": "Added the required AddressChoice.summary to the reviewDraft() address literal, restoring the RED app vue-tsc build on main.",
  "blockers": []
}
**close-report** for #1698 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1698, "status": "success", "commits": [ "548f206f" ], "changed_files": [ "app/tests/unit/foundingRentedToolchainGate.test.ts" ], "tests": [ { "command": "CI=true pnpm --filter @idss/app run build", "exit_code": 0 }, { "command": "CI=true pnpm --filter @idss/app exec vitest run tests/unit/foundingRentedToolchainGate.test.ts", "exit_code": 0 } ], "criteria": { "app vue-tsc build passes (TS2741 gone)": "CI=true pnpm --filter @idss/app run build exits 0; commit 548f206f adds summary to the address literal at foundingRentedToolchainGate.test.ts:30", "test still passes at runtime, field not loosened to optional": "vitest run of the file: 3 passed; AddressChoice.summary in app/src/lib/founding.ts unchanged (still required)" }, "summary": "Added the required AddressChoice.summary to the reviewDraft() address literal, restoring the RED app vue-tsc build on main.", "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#1698
No description provided.