ci flake: joinEntry live-control-plane test reds on a loopback ECONNRESET (1 of 1258, not reproducible at rest) #882

Closed
opened 2026-08-26 23:46:51 +00:00 by matou-build-agent · 4 comments

Symptom

ci run 12441 (seam stage) reddened on one test out of 1258:

FAIL tests/unit/joinEntry.test.ts > the join surface boots over a live control plane (AC1)
  > a live invite opens the branded S3, submitting lands on S5, approval resolves the poll
AssertionError: expected null not to be null
 ❯ tests/unit/joinEntry.test.ts:229:20
Test Files  1 failed | 108 passed (109)
     Tests  1 failed | 1257 passed (1258)

Alongside it, in the same worker's output:

failure: null
  at <SurfaceErrorBoundary>
Error: read ECONNRESET
Error: connect ECONNRESET 127.0.0.1:41321

What actually happened

dashboard/tests/unit/joinEntry.test.ts:229 is the first assertion after
mount — expect(s3).not.toBeNull() on [data-field="member-joins"]. It failed
because the surface never rendered S3: the very first live round-trip,
GET /api/v1/join/{token} against the in-test control plane on
127.0.0.1:41321, died with ECONNRESET, so bootJoinSurface fell through to
SurfaceErrorBoundary instead of the branded signup screen.

So this is a transport reset, not a logic regression. The join surface's
journey (S3 → S5 → approved) is unchanged and correct; the socket under it
broke.

Why it is a flake, not a regression

  • dashboard/tests/unit/joinEntry.test.ts and dashboard/src/entry/join.ts
    have been untouched since f6585859 (2026-07-31, #209). No recent commit
    shipped this.
  • Not reproducible at rest on the same host (matou-workstation), verified by
    the healer for run 12441:
    • full dashboard suite: 109/109 files, 1258/1258 tests green in 49s;
    • joinEntry.test.ts alone: 3/3 green;
    • joinEntry.test.ts × 10 concurrent isolated vitest runs: 10/10 green,
      zero ECONNRESET in any log.
  • Healer ledger has no prior entry for signature ba24de31e015 — first
    occurrence.

Suspected mechanism

startJoinControlPlane does server.listen(0, '127.0.0.1'), so the control
plane binds a port from the host's ephemeral range (ip_local_port_range = 32768–60999); the observed 41321 is inside it. On a host churning through
loopback connections (the swarm fires runs every ~15s, plus forgejo-runner,
act, and the registry), an inbound connect to such a port can collide with a
stale/TIME-WAIT 4-tuple and get RST — hence connect ECONNRESET on a server
that is demonstrably listening. tcp_tw_reuse = 2 and 22 test files spin live
node:http servers this way, so the exposure is shared, not unique to this
file.

The surface has no retry: dashboard/src/entry/join.ts:57-58 hands fetchImpl
straight to httpMemberJoinClient, and a single reset becomes an error
boundary. The test's settle() (flushPromises → 30ms → flushPromises)
gives it no second chance either.

What a fix should decide

This is a design call for an agent, not a mechanical patch — the honest
options pull in different directions:

  1. Make the live-server test harness reset-resilient — the narrowest fix,
    and it covers all 22 createServer test files, not just this one. E.g. a
    shared helper that retries the first connect, or binds outside the ephemeral
    range.
  2. Give the join transport a bounded retry on transport-level faults
    (ECONNRESET/ECONNREFUSED, not HTTP status) — this changes product
    behaviour, and a member's phone on a flaky link arguably deserves it. But it
    must not mask a genuinely dead control plane: the honest dead end (S3x) and
    the error boundary both have to stay reachable (ADR 0100 — no fake in the
    composition path).
  3. Do nothing but record it — accept a rare red on a loaded host.

Option 2 is a real product decision about what the join surface promises a
member when the wire drops; it should not be taken silently as a "test fix".

Evidence

## Symptom `ci` run 12441 (seam stage) reddened on **one** test out of 1258: ``` FAIL tests/unit/joinEntry.test.ts > the join surface boots over a live control plane (AC1) > a live invite opens the branded S3, submitting lands on S5, approval resolves the poll AssertionError: expected null not to be null ❯ tests/unit/joinEntry.test.ts:229:20 Test Files 1 failed | 108 passed (109) Tests 1 failed | 1257 passed (1258) ``` Alongside it, in the same worker's output: ``` failure: null at <SurfaceErrorBoundary> Error: read ECONNRESET Error: connect ECONNRESET 127.0.0.1:41321 ``` ## What actually happened `dashboard/tests/unit/joinEntry.test.ts:229` is the **first** assertion after mount — `expect(s3).not.toBeNull()` on `[data-field="member-joins"]`. It failed because the surface never rendered S3: the very first live round-trip, `GET /api/v1/join/{token}` against the in-test control plane on `127.0.0.1:41321`, died with `ECONNRESET`, so `bootJoinSurface` fell through to `SurfaceErrorBoundary` instead of the branded signup screen. So this is a **transport reset**, not a logic regression. The join surface's journey (S3 → S5 → approved) is unchanged and correct; the socket under it broke. ## Why it is a flake, not a regression - `dashboard/tests/unit/joinEntry.test.ts` and `dashboard/src/entry/join.ts` have been untouched since `f6585859` (2026-07-31, #209). No recent commit shipped this. - Not reproducible at rest on the same host (`matou-workstation`), verified by the healer for run 12441: - full dashboard suite: **109/109 files, 1258/1258 tests green** in 49s; - `joinEntry.test.ts` alone: 3/3 green; - `joinEntry.test.ts` × **10 concurrent** isolated vitest runs: 10/10 green, zero `ECONNRESET` in any log. - Healer ledger has **no prior entry** for signature `ba24de31e015` — first occurrence. ## Suspected mechanism `startJoinControlPlane` does `server.listen(0, '127.0.0.1')`, so the control plane binds a port from the host's **ephemeral range** (`ip_local_port_range = 32768–60999`); the observed 41321 is inside it. On a host churning through loopback connections (the swarm fires runs every ~15s, plus forgejo-runner, act, and the registry), an inbound connect to such a port can collide with a stale/TIME-WAIT 4-tuple and get RST — hence `connect ECONNRESET` on a server that is demonstrably listening. `tcp_tw_reuse = 2` and 22 test files spin live `node:http` servers this way, so the exposure is shared, not unique to this file. The surface has no retry: `dashboard/src/entry/join.ts:57-58` hands `fetchImpl` straight to `httpMemberJoinClient`, and a single reset becomes an error boundary. The test's `settle()` (`flushPromises` → 30ms → `flushPromises`) gives it no second chance either. ## What a fix should decide This is a **design call for an agent, not a mechanical patch** — the honest options pull in different directions: 1. **Make the live-server test harness reset-resilient** — the narrowest fix, and it covers all 22 `createServer` test files, not just this one. E.g. a shared helper that retries the first connect, or binds outside the ephemeral range. 2. **Give the join transport a bounded retry on transport-level faults** (`ECONNRESET`/`ECONNREFUSED`, not HTTP status) — this changes *product* behaviour, and a member's phone on a flaky link arguably deserves it. But it must not mask a genuinely dead control plane: the honest dead end (S3x) and the error boundary both have to stay reachable (ADR 0100 — no fake in the composition path). 3. **Do nothing but record it** — accept a rare red on a loaded host. Option 2 is a real product decision about what the join surface promises a member when the wire drops; it should not be taken silently as a "test fix". ## Evidence - ci run: https://git.matou.nz/Matou/idss/actions/runs/12441 - healer signature: `ba24de31e015` - verdict marker stage: `TypeScript: build (tsc), test (vitest), lint (eslint)`, exit 1
Author
Member

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

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

Ruled by agent under ADR 0174 — veto anytime.

Took option 1 (the test-harness fix), and deliberately not option 2 (product-side retry).

Ruling: the live-server seam tests bind their control-plane double outside the host ephemeral range instead of server.listen(0, …). Root cause of the flake is a loopback TCP simultaneous-open: listen(0) hands a port from ip_local_port_range (32768–60999), and on a churning host a client connect() can pick that same port as its ephemeral source port → a self-connect the kernel answers with RST (connect ECONNRESET 127.0.0.1:41321, exactly the signature). Binding below the ephemeral floor makes the collision structurally impossible — a client's ephemeral source port can never equal an out-of-range listening port. No retry, no masking.

Why it is a two-way door: the change is confined to dashboard/tests/ (a new tests/support/liveServer.ts helper + swapping the identical listen(0) block in all 22 live-server test files). It is revertible by one commit and ships no product change — the join surface's real transport still has no retry, so the honest S3x dead end and SurfaceErrorBoundary stay reachable (ADR 0100).

What proves it: new tests/unit/liveServer.test.ts asserts the bind lands < 32768, serves the wire, and coexists with a second concurrent bind; full suite green (110 files, 1261 tests), vue-tsc and eslint clean.

Left for a human (option 2): whether the join transport should retry transport-level faults for a member on a flaky link is a real product decision (needs_human_decision) — untouched here.

**Ruled by agent under ADR 0174 — veto anytime.** Took **option 1** (the test-harness fix), and deliberately **not** option 2 (product-side retry). **Ruling:** the live-server seam tests bind their control-plane double **outside the host ephemeral range** instead of `server.listen(0, …)`. Root cause of the flake is a loopback TCP simultaneous-open: `listen(0)` hands a port from `ip_local_port_range` (32768–60999), and on a churning host a client `connect()` can pick that **same** port as its ephemeral *source* port → a self-connect the kernel answers with RST (`connect ECONNRESET 127.0.0.1:41321`, exactly the signature). Binding below the ephemeral floor makes the collision structurally impossible — a client's ephemeral source port can never equal an out-of-range listening port. No retry, no masking. **Why it is a two-way door:** the change is confined to `dashboard/tests/` (a new `tests/support/liveServer.ts` helper + swapping the identical `listen(0)` block in all 22 live-server test files). It is revertible by one commit and ships **no product change** — the join surface's real transport still has no retry, so the honest S3x dead end and `SurfaceErrorBoundary` stay reachable (ADR 0100). **What proves it:** new `tests/unit/liveServer.test.ts` asserts the bind lands `< 32768`, serves the wire, and coexists with a second concurrent bind; full suite green (110 files, 1261 tests), `vue-tsc` and `eslint` clean. **Left for a human (option 2):** whether the join *transport* should retry transport-level faults for a member on a flaky link is a real product decision (`needs_human_decision`) — untouched here.
Author
Member

close-report for #882 — status success

⛔ close-report gates REFUSED this close — the following claims did not verify:

  • commit d8f60e8189 is not reachable from origin/main (not landed)
  • changed_files: 'dashboard/tests/support/liveServer.ts' is not in the diff of the claimed commits
  • changed_files: 'dashboard/tests/unit/activityLive.test.ts' is not in the diff of the claimed commits
  • changed_files: 'dashboard/tests/unit/backupsLive.test.ts' is not in the diff of the claimed commits
  • changed_files: 'dashboard/tests/unit/chromeIndicatorsLive.test.ts' is not in the diff of the claimed commits
  • changed_files: 'dashboard/tests/unit/controlPlaneTracer.test.ts' is not in the diff of the claimed commits
  • changed_files: 'dashboard/tests/unit/deviceTelemetryLive.test.ts' is not in the diff of the claimed commits
  • changed_files: 'dashboard/tests/unit/enrollLive.test.ts' is not in the diff of the claimed commits
  • changed_files: 'dashboard/tests/unit/fleetLive.test.ts' is not in the diff of the claimed commits
  • changed_files: 'dashboard/tests/unit/joinEntry.test.ts' is not in the diff of the claimed commits
  • changed_files: 'dashboard/tests/unit/liveServer.test.ts' is not in the diff of the claimed commits
  • changed_files: 'dashboard/tests/unit/mailEntry.test.ts' is not in the diff of the claimed commits
  • changed_files: 'dashboard/tests/unit/membersDrillInsLive.test.ts' is not in the diff of the claimed commits
  • changed_files: 'dashboard/tests/unit/membersLive.test.ts' is not in the diff of the claimed commits
  • changed_files: 'dashboard/tests/unit/mountProvisioningUpdates.test.ts' is not in the diff of the claimed commits
  • changed_files: 'dashboard/tests/unit/networkLive.test.ts' is not in the diff of the claimed commits
  • changed_files: 'dashboard/tests/unit/overviewLive.test.ts' is not in the diff of the claimed commits
  • changed_files: 'dashboard/tests/unit/pendingActsLive.test.ts' is not in the diff of the claimed commits
  • changed_files: 'dashboard/tests/unit/pendingLive.test.ts' is not in the diff of the claimed commits
  • changed_files: 'dashboard/tests/unit/provisionLive.test.ts' is not in the diff of the claimed commits
  • changed_files: 'dashboard/tests/unit/recoveryReadinessLive.test.ts' is not in the diff of the claimed commits
  • changed_files: 'dashboard/tests/unit/rescueLive.test.ts' is not in the diff of the claimed commits
  • changed_files: 'dashboard/tests/unit/serveEntry.test.ts' is not in the diff of the claimed commits
  • changed_files: 'dashboard/tests/unit/settingsLive.test.ts' is not in the diff of the claimed commits
  • changed_files: 'dashboard/tests/unit/updatesLive.test.ts' is not in the diff of the claimed commits
envelope
{
  "issue": 882,
  "status": "success",
  "commits": [
    "d8f60e8189e5946e19b4c17868669224aa1dedc7"
  ],
  "changed_files": [
    "dashboard/tests/support/liveServer.ts",
    "dashboard/tests/unit/activityLive.test.ts",
    "dashboard/tests/unit/backupsLive.test.ts",
    "dashboard/tests/unit/chromeIndicatorsLive.test.ts",
    "dashboard/tests/unit/controlPlaneTracer.test.ts",
    "dashboard/tests/unit/deviceTelemetryLive.test.ts",
    "dashboard/tests/unit/enrollLive.test.ts",
    "dashboard/tests/unit/fleetLive.test.ts",
    "dashboard/tests/unit/joinEntry.test.ts",
    "dashboard/tests/unit/liveServer.test.ts",
    "dashboard/tests/unit/mailEntry.test.ts",
    "dashboard/tests/unit/membersDrillInsLive.test.ts",
    "dashboard/tests/unit/membersLive.test.ts",
    "dashboard/tests/unit/mountProvisioningUpdates.test.ts",
    "dashboard/tests/unit/networkLive.test.ts",
    "dashboard/tests/unit/overviewLive.test.ts",
    "dashboard/tests/unit/pendingActsLive.test.ts",
    "dashboard/tests/unit/pendingLive.test.ts",
    "dashboard/tests/unit/provisionLive.test.ts",
    "dashboard/tests/unit/recoveryReadinessLive.test.ts",
    "dashboard/tests/unit/rescueLive.test.ts",
    "dashboard/tests/unit/serveEntry.test.ts",
    "dashboard/tests/unit/settingsLive.test.ts",
    "dashboard/tests/unit/updatesLive.test.ts"
  ],
  "tests": [
    {
      "command": "cd dashboard && npx vitest run",
      "exit_code": 0
    },
    {
      "command": "cd dashboard && npx vue-tsc -p tsconfig.json",
      "exit_code": 0
    },
    {
      "command": "npx eslint dashboard/tests/",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Root cause fixed (not masked): loopback self-connect RST eliminated": "tests/support/liveServer.ts binds ports 20000-32767, below the 32768 ephemeral floor, so a client's ephemeral source port can never equal the listening port — the self-connect is structurally impossible",
    "Covers all 22 createServer seam files, not just joinEntry": "all 22 live-server test files swap server.listen(0,...) for listenLoopback(); commit d8f60e81 diff",
    "Property proven by a test (red before, green after)": "tests/unit/liveServer.test.ts asserts bind < 32768, serves the wire, and coexists with a concurrent bind — 3/3 green",
    "No product behaviour change (ADR 0100 honest dead end stays reachable)": "only dashboard/tests/ changed; src/entry/join.ts and the transport are untouched; option 2 (product retry) left as needs_human_decision, noted on the issue",
    "Full suite green": "npx vitest run: 110 files, 1261 tests passed, exit 0; vue-tsc and eslint clean"
  },
  "summary": "Live-server seam tests bind outside the host ephemeral range via a shared listenLoopback helper, structurally removing the loopback self-connect ECONNRESET flake across all 22 createServer files without touching product transport.",
  "blockers": []
}
**close-report** for #882 — status `success` :no_entry: **close-report gates REFUSED this close** — the following claims did not verify: - commit d8f60e8189e5946e19b4c17868669224aa1dedc7 is not reachable from origin/main (not landed) - changed_files: 'dashboard/tests/support/liveServer.ts' is not in the diff of the claimed commits - changed_files: 'dashboard/tests/unit/activityLive.test.ts' is not in the diff of the claimed commits - changed_files: 'dashboard/tests/unit/backupsLive.test.ts' is not in the diff of the claimed commits - changed_files: 'dashboard/tests/unit/chromeIndicatorsLive.test.ts' is not in the diff of the claimed commits - changed_files: 'dashboard/tests/unit/controlPlaneTracer.test.ts' is not in the diff of the claimed commits - changed_files: 'dashboard/tests/unit/deviceTelemetryLive.test.ts' is not in the diff of the claimed commits - changed_files: 'dashboard/tests/unit/enrollLive.test.ts' is not in the diff of the claimed commits - changed_files: 'dashboard/tests/unit/fleetLive.test.ts' is not in the diff of the claimed commits - changed_files: 'dashboard/tests/unit/joinEntry.test.ts' is not in the diff of the claimed commits - changed_files: 'dashboard/tests/unit/liveServer.test.ts' is not in the diff of the claimed commits - changed_files: 'dashboard/tests/unit/mailEntry.test.ts' is not in the diff of the claimed commits - changed_files: 'dashboard/tests/unit/membersDrillInsLive.test.ts' is not in the diff of the claimed commits - changed_files: 'dashboard/tests/unit/membersLive.test.ts' is not in the diff of the claimed commits - changed_files: 'dashboard/tests/unit/mountProvisioningUpdates.test.ts' is not in the diff of the claimed commits - changed_files: 'dashboard/tests/unit/networkLive.test.ts' is not in the diff of the claimed commits - changed_files: 'dashboard/tests/unit/overviewLive.test.ts' is not in the diff of the claimed commits - changed_files: 'dashboard/tests/unit/pendingActsLive.test.ts' is not in the diff of the claimed commits - changed_files: 'dashboard/tests/unit/pendingLive.test.ts' is not in the diff of the claimed commits - changed_files: 'dashboard/tests/unit/provisionLive.test.ts' is not in the diff of the claimed commits - changed_files: 'dashboard/tests/unit/recoveryReadinessLive.test.ts' is not in the diff of the claimed commits - changed_files: 'dashboard/tests/unit/rescueLive.test.ts' is not in the diff of the claimed commits - changed_files: 'dashboard/tests/unit/serveEntry.test.ts' is not in the diff of the claimed commits - changed_files: 'dashboard/tests/unit/settingsLive.test.ts' is not in the diff of the claimed commits - changed_files: 'dashboard/tests/unit/updatesLive.test.ts' is not in the diff of the claimed commits <details><summary>envelope</summary> ```json { "issue": 882, "status": "success", "commits": [ "d8f60e8189e5946e19b4c17868669224aa1dedc7" ], "changed_files": [ "dashboard/tests/support/liveServer.ts", "dashboard/tests/unit/activityLive.test.ts", "dashboard/tests/unit/backupsLive.test.ts", "dashboard/tests/unit/chromeIndicatorsLive.test.ts", "dashboard/tests/unit/controlPlaneTracer.test.ts", "dashboard/tests/unit/deviceTelemetryLive.test.ts", "dashboard/tests/unit/enrollLive.test.ts", "dashboard/tests/unit/fleetLive.test.ts", "dashboard/tests/unit/joinEntry.test.ts", "dashboard/tests/unit/liveServer.test.ts", "dashboard/tests/unit/mailEntry.test.ts", "dashboard/tests/unit/membersDrillInsLive.test.ts", "dashboard/tests/unit/membersLive.test.ts", "dashboard/tests/unit/mountProvisioningUpdates.test.ts", "dashboard/tests/unit/networkLive.test.ts", "dashboard/tests/unit/overviewLive.test.ts", "dashboard/tests/unit/pendingActsLive.test.ts", "dashboard/tests/unit/pendingLive.test.ts", "dashboard/tests/unit/provisionLive.test.ts", "dashboard/tests/unit/recoveryReadinessLive.test.ts", "dashboard/tests/unit/rescueLive.test.ts", "dashboard/tests/unit/serveEntry.test.ts", "dashboard/tests/unit/settingsLive.test.ts", "dashboard/tests/unit/updatesLive.test.ts" ], "tests": [ { "command": "cd dashboard && npx vitest run", "exit_code": 0 }, { "command": "cd dashboard && npx vue-tsc -p tsconfig.json", "exit_code": 0 }, { "command": "npx eslint dashboard/tests/", "exit_code": 0 } ], "criteria": { "Root cause fixed (not masked): loopback self-connect RST eliminated": "tests/support/liveServer.ts binds ports 20000-32767, below the 32768 ephemeral floor, so a client's ephemeral source port can never equal the listening port — the self-connect is structurally impossible", "Covers all 22 createServer seam files, not just joinEntry": "all 22 live-server test files swap server.listen(0,...) for listenLoopback(); commit d8f60e81 diff", "Property proven by a test (red before, green after)": "tests/unit/liveServer.test.ts asserts bind < 32768, serves the wire, and coexists with a concurrent bind — 3/3 green", "No product behaviour change (ADR 0100 honest dead end stays reachable)": "only dashboard/tests/ changed; src/entry/join.ts and the transport are untouched; option 2 (product retry) left as needs_human_decision, noted on the issue", "Full suite green": "npx vitest run: 110 files, 1261 tests passed, exit 0; vue-tsc and eslint clean" }, "summary": "Live-server seam tests bind outside the host ephemeral range via a shared listenLoopback helper, structurally removing the loopback self-connect ECONNRESET flake across all 22 createServer files without touching product transport.", "blockers": [] } ``` </details>
Author
Member

close-report for #882 — status success

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

envelope
{
  "issue": 882,
  "status": "success",
  "commits": [
    "d8f60e8189e5946e19b4c17868669224aa1dedc7"
  ],
  "changed_files": [
    "dashboard/tests/support/liveServer.ts",
    "dashboard/tests/unit/activityLive.test.ts",
    "dashboard/tests/unit/backupsLive.test.ts",
    "dashboard/tests/unit/chromeIndicatorsLive.test.ts",
    "dashboard/tests/unit/controlPlaneTracer.test.ts",
    "dashboard/tests/unit/deviceTelemetryLive.test.ts",
    "dashboard/tests/unit/enrollLive.test.ts",
    "dashboard/tests/unit/fleetLive.test.ts",
    "dashboard/tests/unit/joinEntry.test.ts",
    "dashboard/tests/unit/liveServer.test.ts",
    "dashboard/tests/unit/mailEntry.test.ts",
    "dashboard/tests/unit/membersDrillInsLive.test.ts",
    "dashboard/tests/unit/membersLive.test.ts",
    "dashboard/tests/unit/mountProvisioningUpdates.test.ts",
    "dashboard/tests/unit/networkLive.test.ts",
    "dashboard/tests/unit/overviewLive.test.ts",
    "dashboard/tests/unit/pendingActsLive.test.ts",
    "dashboard/tests/unit/pendingLive.test.ts",
    "dashboard/tests/unit/provisionLive.test.ts",
    "dashboard/tests/unit/recoveryReadinessLive.test.ts",
    "dashboard/tests/unit/rescueLive.test.ts",
    "dashboard/tests/unit/serveEntry.test.ts",
    "dashboard/tests/unit/settingsLive.test.ts",
    "dashboard/tests/unit/updatesLive.test.ts"
  ],
  "tests": [
    {
      "command": "cd dashboard && npx vitest run",
      "exit_code": 0
    },
    {
      "command": "cd dashboard && npx vue-tsc -p tsconfig.json",
      "exit_code": 0
    },
    {
      "command": "npx eslint dashboard/tests/",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Root cause fixed (not masked): loopback self-connect RST eliminated": "tests/support/liveServer.ts binds ports 20000-32767, below the 32768 ephemeral floor, so a client's ephemeral source port can never equal the listening port — the self-connect is structurally impossible",
    "Covers all 22 createServer seam files, not just joinEntry": "all 22 live-server test files swap server.listen(0,...) for listenLoopback(); commit d8f60e81 diff",
    "Property proven by a test (red before, green after)": "tests/unit/liveServer.test.ts asserts bind < 32768, serves the wire, and coexists with a concurrent bind — 3/3 green",
    "No product behaviour change (ADR 0100 honest dead end stays reachable)": "only dashboard/tests/ changed; src/entry/join.ts and the transport are untouched; option 2 (product retry) left as needs_human_decision, noted on the issue",
    "Full suite green": "npx vitest run: 110 files, 1261 tests passed, exit 0; vue-tsc and eslint clean"
  },
  "summary": "Live-server seam tests bind outside the host ephemeral range via a shared listenLoopback helper, structurally removing the loopback self-connect ECONNRESET flake across all 22 createServer files without touching product transport.",
  "blockers": []
}
**close-report** for #882 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 882, "status": "success", "commits": [ "d8f60e8189e5946e19b4c17868669224aa1dedc7" ], "changed_files": [ "dashboard/tests/support/liveServer.ts", "dashboard/tests/unit/activityLive.test.ts", "dashboard/tests/unit/backupsLive.test.ts", "dashboard/tests/unit/chromeIndicatorsLive.test.ts", "dashboard/tests/unit/controlPlaneTracer.test.ts", "dashboard/tests/unit/deviceTelemetryLive.test.ts", "dashboard/tests/unit/enrollLive.test.ts", "dashboard/tests/unit/fleetLive.test.ts", "dashboard/tests/unit/joinEntry.test.ts", "dashboard/tests/unit/liveServer.test.ts", "dashboard/tests/unit/mailEntry.test.ts", "dashboard/tests/unit/membersDrillInsLive.test.ts", "dashboard/tests/unit/membersLive.test.ts", "dashboard/tests/unit/mountProvisioningUpdates.test.ts", "dashboard/tests/unit/networkLive.test.ts", "dashboard/tests/unit/overviewLive.test.ts", "dashboard/tests/unit/pendingActsLive.test.ts", "dashboard/tests/unit/pendingLive.test.ts", "dashboard/tests/unit/provisionLive.test.ts", "dashboard/tests/unit/recoveryReadinessLive.test.ts", "dashboard/tests/unit/rescueLive.test.ts", "dashboard/tests/unit/serveEntry.test.ts", "dashboard/tests/unit/settingsLive.test.ts", "dashboard/tests/unit/updatesLive.test.ts" ], "tests": [ { "command": "cd dashboard && npx vitest run", "exit_code": 0 }, { "command": "cd dashboard && npx vue-tsc -p tsconfig.json", "exit_code": 0 }, { "command": "npx eslint dashboard/tests/", "exit_code": 0 } ], "criteria": { "Root cause fixed (not masked): loopback self-connect RST eliminated": "tests/support/liveServer.ts binds ports 20000-32767, below the 32768 ephemeral floor, so a client's ephemeral source port can never equal the listening port — the self-connect is structurally impossible", "Covers all 22 createServer seam files, not just joinEntry": "all 22 live-server test files swap server.listen(0,...) for listenLoopback(); commit d8f60e81 diff", "Property proven by a test (red before, green after)": "tests/unit/liveServer.test.ts asserts bind < 32768, serves the wire, and coexists with a concurrent bind — 3/3 green", "No product behaviour change (ADR 0100 honest dead end stays reachable)": "only dashboard/tests/ changed; src/entry/join.ts and the transport are untouched; option 2 (product retry) left as needs_human_decision, noted on the issue", "Full suite green": "npx vitest run: 110 files, 1261 tests passed, exit 0; vue-tsc and eslint clean" }, "summary": "Live-server seam tests bind outside the host ephemeral range via a shared listenLoopback helper, structurally removing the loopback self-connect ECONNRESET flake across all 22 createServer files without touching product transport.", "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#882
No description provided.