wizard-rent: S4a terms regex /free while alpha/i never matches broker's real copy #675

Closed
opened 2026-08-22 18:07:26 +00:00 by matou-build-agent · 2 comments

Failure

The wizard-rent leg went RED at S4a (renting the broker gateway), before any droplet was even created — this is a pure client-side/copy assertion failure, not an infra fault.

artifacts/legs.json:

Locator: locator('[data-field="terms"]')
Expected pattern: /free while alpha/i
Received string:  "TERMSFree while IDSS is in alpha. Your gateway runs for 24h0m0s at a time and its heartbeat keeps it renewed; stop renewing and the broker releases it — you owe nothing and can leave any time (ADR 0189)."

artifacts/journey.rented-rented-gate-014d4--on-a-broker-rented-droplet/error-context.md pins it to the fixture:

> 166 |     await expect(live.page.locator('[data-field="terms"]')).toContainText(/free while alpha/i);
      |                                                             ^ Error: expect(locator).toContainText(expected) failed

The rendered copy says "Free while IDSS is in alpha", not the literal substring "free while alpha" the regex demands — so the assertion can never pass against real product copy, not just this run's copy.

logs/guest-failed-units.log confirms no infra was touched: "no SSH hostfwd in .../idss-guest.service — the guest was never created, so there is nothing to ask." This is not the known own-VPS pairing frontier — that skip reason doesn't appear anywhere in legs.json here (only 2 legs ran: rent-fails-clean green, wizard-rent red; no skips).

Suspected layer: harness (test fixture), not product. The rehearsal's own auto-healer already reached this conclusion and validated a fix — logs/healer-claude.out:

{"action":"healed","commit":"e920f9e7fd91ccc5cc8fb614f04e45a61505ca1c","summary":"e2e fixture wizard.ts:166 asserted /free while alpha/i on the S4a terms field, but the real broker (broker/internal/broker/rentals.go:153) has always rendered \"Free while IDSS is in alpha...\" — the regex never matched production copy; widened it to /free while idss is in alpha/i.","checks":"node -e regex-match sanity check against the exact received string (pass); pnpm exec tsc --noEmit -p tsconfig.json (no new errors — two pre-existing, unrelated AppUpdateSurface errors confirmed present before this change via git stash); pnpm exec eslint tests/e2e/fixtures/wizard.ts (clean)"}

But the fix never landed — the same log shows the push step failing:

fatal: could not read Username for 'https://git.matou.nz': No such device or address

So commit e920f9e7fd91ccc5cc8fb614f04e45a61505ca1c (widening tests/e2e/fixtures/wizard.ts:166's regex to /free while idss is in alpha/i) exists validated in the healer's own checkout (cwd=/home/swarm/rehearsal-heal/idss, per logs/claude-env.txt) but was never pushed to Matou/idss, so the drive keeps re-failing on the same stale assertion run after run.

What plugging it needs

  1. Land the already-computed fix: widen tests/e2e/fixtures/wizard.ts:166 from /free while alpha/i to /free while idss is in alpha/i (or a still-looser pattern tolerant of future copy tweaks), by cherry-picking or re-deriving commit e920f9e7fd91ccc5cc8fb614f04e45a61505ca1c.
  2. Separately, fix the healer's push path — no Username for https://git.matou.nz means the auto-heal loop is silently producing correct fixes that never reach the repo, so every future rehearsal keeps re-diagnosing an already-solved defect until the healer's git credentials/remote are corrected.

No live droplet section was supplied for this run, and none was needed: the guest was never created (see guest-failed-units.log above), so there is nothing a live SSH session could add.

drive 20260822T175941Z red at wizard-rent: expect(locator).toContainText(expected) failed Locator: locator('[data-field="terms"]') Expected pattern: /free while alpha/i Received string: "TERMSFree while IDSS is in alpha. Your gateway runs for
evidence: test-results/…/20260822T175941Z/ on matou-workstation (legs.json, droplet-journal.txt, trace) — a representative screenshot is attached here if one was captured (#596)

**Failure** The `wizard-rent` leg went RED at S4a (renting the broker gateway), before any droplet was even created — this is a pure client-side/copy assertion failure, not an infra fault. `artifacts/legs.json`: ``` Locator: locator('[data-field="terms"]') Expected pattern: /free while alpha/i Received string: "TERMSFree while IDSS is in alpha. Your gateway runs for 24h0m0s at a time and its heartbeat keeps it renewed; stop renewing and the broker releases it — you owe nothing and can leave any time (ADR 0189)." ``` `artifacts/journey.rented-rented-gate-014d4--on-a-broker-rented-droplet/error-context.md` pins it to the fixture: ``` > 166 | await expect(live.page.locator('[data-field="terms"]')).toContainText(/free while alpha/i); | ^ Error: expect(locator).toContainText(expected) failed ``` The rendered copy says "Free while IDSS is in alpha", not the literal substring "free while alpha" the regex demands — so the assertion can never pass against real product copy, not just this run's copy. `logs/guest-failed-units.log` confirms no infra was touched: "no SSH hostfwd in .../idss-guest.service — the guest was never created, so there is nothing to ask." This is not the known own-VPS pairing frontier — that skip reason doesn't appear anywhere in `legs.json` here (only 2 legs ran: `rent-fails-clean` green, `wizard-rent` red; no skips). **Suspected layer: harness** (test fixture), not product. The rehearsal's own auto-healer already reached this conclusion and validated a fix — `logs/healer-claude.out`: ``` {"action":"healed","commit":"e920f9e7fd91ccc5cc8fb614f04e45a61505ca1c","summary":"e2e fixture wizard.ts:166 asserted /free while alpha/i on the S4a terms field, but the real broker (broker/internal/broker/rentals.go:153) has always rendered \"Free while IDSS is in alpha...\" — the regex never matched production copy; widened it to /free while idss is in alpha/i.","checks":"node -e regex-match sanity check against the exact received string (pass); pnpm exec tsc --noEmit -p tsconfig.json (no new errors — two pre-existing, unrelated AppUpdateSurface errors confirmed present before this change via git stash); pnpm exec eslint tests/e2e/fixtures/wizard.ts (clean)"} ``` But the fix never landed — the same log shows the push step failing: ``` fatal: could not read Username for 'https://git.matou.nz': No such device or address ``` So commit `e920f9e7fd91ccc5cc8fb614f04e45a61505ca1c` (widening `tests/e2e/fixtures/wizard.ts:166`'s regex to `/free while idss is in alpha/i`) exists validated in the healer's own checkout (`cwd=/home/swarm/rehearsal-heal/idss`, per `logs/claude-env.txt`) but was never pushed to `Matou/idss`, so the drive keeps re-failing on the same stale assertion run after run. **What plugging it needs** 1. Land the already-computed fix: widen `tests/e2e/fixtures/wizard.ts:166` from `/free while alpha/i` to `/free while idss is in alpha/i` (or a still-looser pattern tolerant of future copy tweaks), by cherry-picking or re-deriving commit `e920f9e7fd91ccc5cc8fb614f04e45a61505ca1c`. 2. Separately, fix the healer's push path — `no Username for https://git.matou.nz` means the auto-heal loop is silently producing correct fixes that never reach the repo, so every future rehearsal keeps re-diagnosing an already-solved defect until the healer's git credentials/remote are corrected. No live droplet section was supplied for this run, and none was needed: the guest was never created (see `guest-failed-units.log` above), so there is nothing a live SSH session could add. drive `20260822T175941Z` red at `wizard-rent`: `expect(locator).toContainText(expected) failed Locator: locator('[data-field="terms"]') Expected pattern: /free while alpha/i Received string: "TERMSFree while IDSS is in alpha. Your gateway runs for ` evidence: `test-results/…/20260822T175941Z/` on matou-workstation (legs.json, droplet-journal.txt, trace) — a representative screenshot is attached here if one was captured (#596) <!-- rehearsal-sig: 3b0b824f61b8 -->
Author
Member

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

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

close-report for #675 — status success

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

envelope
{
  "issue": 675,
  "status": "success",
  "commits": [
    "d607c8f5"
  ],
  "changed_files": [
    "app/tests/e2e/fixtures/wizard.ts",
    "STATUS.md"
  ],
  "tests": [
    {
      "command": "node -e regex-match sanity: /free while.*alpha/i against exact received broker string (true) and stub copy (true); old literal /free while alpha/i against real copy (false)",
      "exit_code": 0
    },
    {
      "command": "eslint app/tests/e2e/fixtures/wizard.ts",
      "exit_code": 0
    },
    {
      "command": "tsc --noEmit -p app/tsconfig.json (2 pre-existing unrelated AppUpdateSurface errors, confirmed present via git stash; none in wizard.ts)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Widen wizard.ts:166 from /free while alpha/i to a pattern that matches the real broker copy": "commit d607c8f5 — app/tests/e2e/fixtures/wizard.ts:166 now /free while.*alpha/i, matches 'Free while IDSS is in alpha…' (rentals.go:153) and the stub 'Free while alpha'",
    "Fix the healer push-path so validated fixes reach the repo": "out of scope (protected .sandcastle/ machinery, #445); filed as #676 ready-for-session per CLAUDE.md rule 9"
  },
  "summary": "Widened the wizard-rent S4a terms assertion to /free while.*alpha/i so it matches the broker's real 'Free while IDSS is in alpha' copy, landing the healer's unpushed fix.",
  "blockers": []
}
**close-report** for #675 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 675, "status": "success", "commits": [ "d607c8f5" ], "changed_files": [ "app/tests/e2e/fixtures/wizard.ts", "STATUS.md" ], "tests": [ { "command": "node -e regex-match sanity: /free while.*alpha/i against exact received broker string (true) and stub copy (true); old literal /free while alpha/i against real copy (false)", "exit_code": 0 }, { "command": "eslint app/tests/e2e/fixtures/wizard.ts", "exit_code": 0 }, { "command": "tsc --noEmit -p app/tsconfig.json (2 pre-existing unrelated AppUpdateSurface errors, confirmed present via git stash; none in wizard.ts)", "exit_code": 0 } ], "criteria": { "Widen wizard.ts:166 from /free while alpha/i to a pattern that matches the real broker copy": "commit d607c8f5 — app/tests/e2e/fixtures/wizard.ts:166 now /free while.*alpha/i, matches 'Free while IDSS is in alpha…' (rentals.go:153) and the stub 'Free while alpha'", "Fix the healer push-path so validated fixes reach the repo": "out of scope (protected .sandcastle/ machinery, #445); filed as #676 ready-for-session per CLAUDE.md rule 9" }, "summary": "Widened the wizard-rent S4a terms assertion to /free while.*alpha/i so it matches the broker's real 'Free while IDSS is in alpha' copy, landing the healer's unpushed fix.", "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.

Reference
Matou/idss#675
No description provided.