main is red: secret is not in AddressChoice — stray test literal in foundingAccessAddress.test.ts:265 fails vue-tsc (from #1335 / fd9490d2) #1347

Closed
opened 2026-09-09 04:57:20 +00:00 by matou-build-agent · 2 comments

main is RED: pnpm -r run build (the seam's vue-tsc -p tsconfig.json) fails on
a stray property in a unit test shipped by fd9490d2 (#1335).

app build: tests/unit/foundingAccessAddress.test.ts(265,75): error TS2353:
  Object literal may only specify known properties, and 'secret' does not exist
  in type 'AddressChoice'.
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  @idss/app@0.1.0 build: `vue-tsc -p tsconfig.json`

Where: app/tests/unit/foundingAccessAddress.test.ts:265, in the
freezes the subdomain name read-only while a rental is bound (#1335) case:

address: { kind: 'subdomain', host: 'te-runanga-o-example.idss.nz', secret: 'shh' },

AddressChoice (app/src/lib/founding.ts:124) declares only
kind / summary / host / verified. secret is not a member, and
app/src/components/founding/FoundingAddress.vue never reads it — the rental
secret is broker-side, it is not part of the app's address shape. The literal is
inert test scenery that TypeScript's excess-property check refuses.

Suggested fix (agent to rule): drop secret: 'shh' from the literal. The
assertions in that case read [data-field="subdomain-slug"] and
[data-field="rental-name-locked"] only, so removing it changes no behaviour
under test. If the seam is genuinely meant to carry a rental secret to S5, that
is a separate design question — do not widen AddressChoice to make a test
literal compile.

Acceptance criteria

  • nix develop --command bash scripts/seam-smoke.sh reaches green through the
    TypeScript: build (tsc), test (vitest), lint (eslint) stage.
  • pnpm -r run build exits 0 (no TS2353).
  • The #1335 rental-name-freeze test still passes and still asserts the slug is
    readOnly with data-status="rental-name-bound" plus the release-first reason.

Why it reached main (harness note, NOT part of this ticket): the worker's
pre-push gate runs pnpm run lint (eslint) for a TS-touching slice — see
gate_ts_default_cmd in .sandcastle/gate-lib.sh:81 — but no pnpm -r run build, so it never typechecks. The Go side of the same gate does run
go build/go vet. eslint does not do type-aware excess-property checking, so
this class of break passes the gate and only turns red in CI. gate-lib.sh is
factory-vendored (listed in .sandcastle/FACTORY_MANIFEST), so the asymmetry has
to be fixed in Matou/dev-factory and re-vendored, or covered here by an
executable per-repo .sandcastle/ts-gate.sh override (which the same file
documents as the drift-safe per-repo layer). Filing separately is a human call —
adding a typecheck to the gate while main is red would wedge every worker push.


Filed by the swarm healer. Incident: ci run
https://git.matou.nz/Matou/idss/actions/runs/20437 (signature 57fe069c9b26),
head df1c0607. Evidence: run-verdict.txt in the heal evidence directory.

main is RED: `pnpm -r run build` (the seam's `vue-tsc -p tsconfig.json`) fails on a stray property in a unit test shipped by `fd9490d2` (#1335). ``` app build: tests/unit/foundingAccessAddress.test.ts(265,75): error TS2353: Object literal may only specify known properties, and 'secret' does not exist in type 'AddressChoice'. ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL @idss/app@0.1.0 build: `vue-tsc -p tsconfig.json` ``` **Where:** `app/tests/unit/foundingAccessAddress.test.ts:265`, in the `freezes the subdomain name read-only while a rental is bound (#1335)` case: ```ts address: { kind: 'subdomain', host: 'te-runanga-o-example.idss.nz', secret: 'shh' }, ``` `AddressChoice` (`app/src/lib/founding.ts:124`) declares only `kind` / `summary` / `host` / `verified`. `secret` is not a member, and `app/src/components/founding/FoundingAddress.vue` never reads it — the rental secret is broker-side, it is not part of the app's address shape. The literal is inert test scenery that TypeScript's excess-property check refuses. **Suggested fix (agent to rule):** drop `secret: 'shh'` from the literal. The assertions in that case read `[data-field="subdomain-slug"]` and `[data-field="rental-name-locked"]` only, so removing it changes no behaviour under test. If the seam is genuinely meant to carry a rental secret to S5, that is a separate design question — do not widen `AddressChoice` to make a test literal compile. **Acceptance criteria** - `nix develop --command bash scripts/seam-smoke.sh` reaches green through the `TypeScript: build (tsc), test (vitest), lint (eslint)` stage. - `pnpm -r run build` exits 0 (no TS2353). - The `#1335` rental-name-freeze test still passes and still asserts the slug is `readOnly` with `data-status="rental-name-bound"` plus the release-first reason. **Why it reached main (harness note, NOT part of this ticket):** the worker's pre-push gate runs `pnpm run lint` (eslint) for a TS-touching slice — see `gate_ts_default_cmd` in `.sandcastle/gate-lib.sh:81` — but no `pnpm -r run build`, so it never typechecks. The Go side of the same gate *does* run `go build`/`go vet`. eslint does not do type-aware excess-property checking, so this class of break passes the gate and only turns red in CI. `gate-lib.sh` is factory-vendored (listed in `.sandcastle/FACTORY_MANIFEST`), so the asymmetry has to be fixed in `Matou/dev-factory` and re-vendored, or covered here by an executable per-repo `.sandcastle/ts-gate.sh` override (which the same file documents as the drift-safe per-repo layer). Filing separately is a human call — adding a typecheck to the gate while main is red would wedge every worker push. --- Filed by the swarm healer. Incident: ci run https://git.matou.nz/Matou/idss/actions/runs/20437 (signature `57fe069c9b26`), head `df1c0607`. Evidence: `run-verdict.txt` in the heal evidence directory.
Author
Member

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

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

close-report for #1347 — status success

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

envelope
{
  "issue": 1347,
  "status": "success",
  "commits": [
    "ebf2a3c0"
  ],
  "changed_files": [
    "app/tests/unit/foundingAccessAddress.test.ts"
  ],
  "tests": [
    {
      "command": "CI=true npx vue-tsc -p tsconfig.json",
      "exit_code": 0
    },
    {
      "command": "CI=true npx vitest run tests/unit/foundingAccessAddress.test.ts",
      "exit_code": 0
    },
    {
      "command": "nix develop --command bash scripts/seam-smoke.sh",
      "exit_code": 0
    }
  ],
  "criteria": {
    "nix develop --command bash scripts/seam-smoke.sh reaches green through the TypeScript build/test/lint stage": "seam-smoke.sh exited 0 with '==> seam smoke OK'; TS stage (vue-tsc + vitest + eslint) passed",
    "pnpm -r run build exits 0 (no TS2353)": "vue-tsc -p tsconfig.json now exits 0 — the TS2353 secret error and the masked TS2741 missing-summary error are both gone (commit ebf2a3c0)",
    "The #1335 rental-name-freeze test still passes and still asserts the slug is readOnly with data-status=rental-name-bound plus the release-first reason": "vitest run of foundingAccessAddress.test.ts: 15/15 pass; the case's assertions (readOnly, data-status=rental-name-bound, 'release the server first') are unchanged in app/tests/unit/foundingAccessAddress.test.ts:255-280"
  },
  "summary": "Dropped the undeclared `secret` and added the required `summary` in the #1335 rental-name-freeze address literal, restoring green vue-tsc without changing behaviour under test.",
  "blockers": []
}
**close-report** for #1347 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1347, "status": "success", "commits": [ "ebf2a3c0" ], "changed_files": [ "app/tests/unit/foundingAccessAddress.test.ts" ], "tests": [ { "command": "CI=true npx vue-tsc -p tsconfig.json", "exit_code": 0 }, { "command": "CI=true npx vitest run tests/unit/foundingAccessAddress.test.ts", "exit_code": 0 }, { "command": "nix develop --command bash scripts/seam-smoke.sh", "exit_code": 0 } ], "criteria": { "nix develop --command bash scripts/seam-smoke.sh reaches green through the TypeScript build/test/lint stage": "seam-smoke.sh exited 0 with '==> seam smoke OK'; TS stage (vue-tsc + vitest + eslint) passed", "pnpm -r run build exits 0 (no TS2353)": "vue-tsc -p tsconfig.json now exits 0 — the TS2353 secret error and the masked TS2741 missing-summary error are both gone (commit ebf2a3c0)", "The #1335 rental-name-freeze test still passes and still asserts the slug is readOnly with data-status=rental-name-bound plus the release-first reason": "vitest run of foundingAccessAddress.test.ts: 15/15 pass; the case's assertions (readOnly, data-status=rental-name-bound, 'release the server first') are unchanged in app/tests/unit/foundingAccessAddress.test.ts:255-280" }, "summary": "Dropped the undeclared `secret` and added the required `summary` in the #1335 rental-name-freeze address literal, restoring green vue-tsc without changing behaviour under test.", "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#1347
No description provided.