PR #2071 red: reportErrorsI18n.test.ts mounts ReportIssueDialog without the now-required kind prop (#2065 × #2164 merge collision) #2168

Open
opened 2026-11-04 19:55:37 +00:00 by matou-build-agent · 2 comments

Filed by the swarm healer for heal run heal-Matou-idss-1793821885-2345232
(signature eeb55dc3cbe7, run https://git.matou.nz/Matou/idss/actions/runs/60113).
Classified product — the healer does not touch dashboard/ sources.

What is red

PR #2071 (agent/issue-2065, head 54a58d7) fails the seam job's
TypeScript stage. run-verdict.txt:

stage=TypeScript: build (tsc), test (vitest), lint (eslint)
exit=2
dashboard build: tests/unit/reportErrorsI18n.test.ts(67,5): error TS2322: ...
dashboard build:   Property 'kind' is missing in type '{ source: ReportIssueSource; community: string; tab: "backups"; revision: string; }' but required in type '{ readonly source: ReportIssueSource; readonly kind: ReportKind; ... }'.
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  @idss/dashboard@0.0.0 build: `vue-tsc -p tsconfig.json && vite build`

(job-log.txt line 454; the checkout is refs/remotes/pull/2071/head →
54a58d77a9f41e16b1ee64104d368558cd3e8fd6.)

Root cause — a semantic merge collision, not a conflict

Two concurrent branches changed opposite ends of the same prop contract:

  • #2065 / PR #2071 (DDR 0296 §2) makes kind a required prop of
    ReportIssueDialog — the door fixes the kind, the radio is gone — and updated
    every call site it knew about (DashboardComposition.vue,
    reportIssueDialog.test.ts, the e2e spec, the navigation fakes).
  • main commit 9cc9e6d1 (#2164, i18n Go seam) then added a new call
    site the branch had never seen: dashboard/tests/unit/reportErrorsI18n.test.ts,
    whose sendAndFail() mounts the dialog with
    { source, community, tab, revision }.

git merges the two cleanly (different files), so merge commit 54a58d7
("Forgejo flags STATUS.md as conflicting after #2164 landed (git merges clean)")
resolved the ReportIssueDialog.vue text conflict and kept both sides —
#2164's useSeamText / failureKey failure note and #2065's required kind —
but nothing pointed at the one new mount. vue-tsc is the only thing that sees it.

Verified in the merged tree (pull/2071/head): exactly two mounts of the dialog
exist, reportIssueDialog.test.ts:11 passes kind, reportErrorsI18n.test.ts:66
does not. Every selector the #2164 test drives
(report-issue-dialog, report-title, report-description, send-report,
failure-reason) survives the merge.

What to do

On agent/issue-2065, in dashboard/tests/unit/reportErrorsI18n.test.ts, pass
the kind in sendAndFail's mount:

props: { source, kind: 'bug', community: 'Tairea Anau', tab: 'backups', revision: 'a13f8b2c' },

bug is the right kind for an unreachable-broker fault report, and it is the
value the removed radio preselected, so the test's assertions are unchanged.
Then re-run PR #2071's checks. main itself is green — the fault exists only on
the branch, and it will reappear on any other open branch that makes a
ReportIssueDialog prop required while main grows new call sites.

Acceptance

  • PR #2071's seam job passes vue-tsc, vitest and eslint.
  • Both report-dialog unit tests still pass — #2164's en→es flip of the keyed
    controlapi.reports.brokerUnreachable note, and the keyless relayed
    refusal staying the broker's own sentence.
<!-- origin: app-report #2047 --> Filed by the swarm healer for heal run `heal-Matou-idss-1793821885-2345232` (signature `eeb55dc3cbe7`, run https://git.matou.nz/Matou/idss/actions/runs/60113). Classified **product** — the healer does not touch `dashboard/` sources. ## What is red PR **#2071** (`agent/issue-2065`, head `54a58d7`) fails the `seam` job's TypeScript stage. `run-verdict.txt`: ``` stage=TypeScript: build (tsc), test (vitest), lint (eslint) exit=2 dashboard build: tests/unit/reportErrorsI18n.test.ts(67,5): error TS2322: ... dashboard build: Property 'kind' is missing in type '{ source: ReportIssueSource; community: string; tab: "backups"; revision: string; }' but required in type '{ readonly source: ReportIssueSource; readonly kind: ReportKind; ... }'. ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL @idss/dashboard@0.0.0 build: `vue-tsc -p tsconfig.json && vite build` ``` (`job-log.txt` line 454; the checkout is `refs/remotes/pull/2071/head` → `54a58d77a9f41e16b1ee64104d368558cd3e8fd6`.) ## Root cause — a semantic merge collision, not a conflict Two concurrent branches changed opposite ends of the same prop contract: - **#2065 / PR #2071** (DDR 0296 §2) makes `kind` a **required** prop of `ReportIssueDialog` — the door fixes the kind, the radio is gone — and updated every call site it knew about (`DashboardComposition.vue`, `reportIssueDialog.test.ts`, the e2e spec, the navigation fakes). - **`main` commit 9cc9e6d1** (#2164, i18n Go seam) then added a **new** call site the branch had never seen: `dashboard/tests/unit/reportErrorsI18n.test.ts`, whose `sendAndFail()` mounts the dialog with `{ source, community, tab, revision }`. `git` merges the two cleanly (different files), so merge commit `54a58d7` ("Forgejo flags STATUS.md as conflicting after #2164 landed (git merges clean)") resolved the `ReportIssueDialog.vue` text conflict and kept **both** sides — #2164's `useSeamText` / `failureKey` failure note *and* #2065's required `kind` — but nothing pointed at the one new mount. `vue-tsc` is the only thing that sees it. Verified in the merged tree (`pull/2071/head`): exactly two mounts of the dialog exist, `reportIssueDialog.test.ts:11` passes `kind`, `reportErrorsI18n.test.ts:66` does not. Every selector the #2164 test drives (`report-issue-dialog`, `report-title`, `report-description`, `send-report`, `failure-reason`) survives the merge. ## What to do On `agent/issue-2065`, in `dashboard/tests/unit/reportErrorsI18n.test.ts`, pass the kind in `sendAndFail`'s mount: ```ts props: { source, kind: 'bug', community: 'Tairea Anau', tab: 'backups', revision: 'a13f8b2c' }, ``` `bug` is the right kind for an unreachable-broker fault report, and it is the value the removed radio preselected, so the test's assertions are unchanged. Then re-run PR #2071's checks. `main` itself is green — the fault exists only on the branch, and it will reappear on any *other* open branch that makes a `ReportIssueDialog` prop required while `main` grows new call sites. ## Acceptance - [ ] PR #2071's `seam` job passes `vue-tsc`, `vitest` and `eslint`. - [ ] Both report-dialog unit tests still pass — #2164's en→es flip of the keyed `controlapi.reports.brokerUnreachable` note, and the keyless relayed refusal staying the broker's own sentence.
Author
Member

close-report for #2168 — status success

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

  • no open agent PR (agent/issue-2168) for this issue — pr-mode commits land on a PR before they can close it (#13)
envelope
{
  "issue": 2168,
  "status": "success",
  "commits": [],
  "changed_files": [],
  "tests": [
    {
      "command": "cd dashboard && npx vitest run tests/unit/reportErrorsI18n.test.ts",
      "exit_code": 0
    }
  ],
  "criteria": {
    "PR #2071's seam job passes vue-tsc, vitest and eslint": "PR #2071 is already merged into main (merge commit aaf43887) and is now CLOSED, so its seam job is moot. The equivalent code lives on origin/main: dashboard/tests/unit/reportErrorsI18n.test.ts:67 already mounts ReportIssueDialog with kind:'bug', satisfying the now-required prop. The two unit tests pass (see tests) and the prop contract type-checks (kind:'bug' matches ReportKind).",
    "Both report-dialog unit tests still pass — #2164's en->es keyed flip and the keyless relayed refusal staying the broker's sentence": "cd dashboard && npx vitest run tests/unit/reportErrorsI18n.test.ts -> 2 passed (both 'flips the keyed broker-unreachable note en -> es' and 'leaves a relayed (bucket-3, keyless) refusal in the sentence the broker sent'). reportIssueDialog.test.ts:12 also passes kind."
  },
  "summary": "The #2065 x #2164 merge collision this ticket describes was already resolved: PR #2071's refresh-merge onto main (41dff252) added kind:'bug' to reportErrorsI18n.test.ts, and PR #2071 then merged to main (aaf43887) green.",
  "no_code_change": "The one-line fix this ticket requested (pass kind:'bug' in sendAndFail's mount in dashboard/tests/unit/reportErrorsI18n.test.ts) is already present on origin/main at line 67, landed when PR #2071 was refreshed onto current main (merge 41dff252) and subsequently merged (aaf43887). PR #2071 is now CLOSED. The two report-dialog unit tests pass on the current tree, so main is green and there is nothing left to change or land. landing-pr policy honoured: no push to main, no label change, no hand-rolled close.",
  "blockers": []
}
**close-report** for #2168 — status `success` :no_entry: **close-report gates REFUSED this close** — the following claims did not verify: - no open agent PR (agent/issue-2168) for this issue — pr-mode commits land on a PR before they can close it (#13) <details><summary>envelope</summary> ```json { "issue": 2168, "status": "success", "commits": [], "changed_files": [], "tests": [ { "command": "cd dashboard && npx vitest run tests/unit/reportErrorsI18n.test.ts", "exit_code": 0 } ], "criteria": { "PR #2071's seam job passes vue-tsc, vitest and eslint": "PR #2071 is already merged into main (merge commit aaf43887) and is now CLOSED, so its seam job is moot. The equivalent code lives on origin/main: dashboard/tests/unit/reportErrorsI18n.test.ts:67 already mounts ReportIssueDialog with kind:'bug', satisfying the now-required prop. The two unit tests pass (see tests) and the prop contract type-checks (kind:'bug' matches ReportKind).", "Both report-dialog unit tests still pass — #2164's en->es keyed flip and the keyless relayed refusal staying the broker's sentence": "cd dashboard && npx vitest run tests/unit/reportErrorsI18n.test.ts -> 2 passed (both 'flips the keyed broker-unreachable note en -> es' and 'leaves a relayed (bucket-3, keyless) refusal in the sentence the broker sent'). reportIssueDialog.test.ts:12 also passes kind." }, "summary": "The #2065 x #2164 merge collision this ticket describes was already resolved: PR #2071's refresh-merge onto main (41dff252) added kind:'bug' to reportErrorsI18n.test.ts, and PR #2071 then merged to main (aaf43887) green.", "no_code_change": "The one-line fix this ticket requested (pass kind:'bug' in sendAndFail's mount in dashboard/tests/unit/reportErrorsI18n.test.ts) is already present on origin/main at line 67, landed when PR #2071 was refreshed onto current main (merge 41dff252) and subsequently merged (aaf43887). PR #2071 is now CLOSED. The two report-dialog unit tests pass on the current tree, so main is green and there is nothing left to change or land. landing-pr policy honoured: no push to main, no label change, no hand-rolled close.", "blockers": [] } ``` </details>
Author
Member

Already resolved upstream — no change left to land

Investigated on this run (run=60586). The #2065 × #2164 merge collision this
ticket describes has already been fixed on main, so there is no code change
left to make:

  • PR #2071 is closed/merged — merge commit aaf43887 landed it into
    main, and the refresh-merge 41dff252 ("Merge origin/main into
    agent/issue-2065 … the report dialog meets DDR 0300's five languages") carried
    exactly the one-line fix this ticket asked for.
  • dashboard/tests/unit/reportErrorsI18n.test.ts:67 on origin/main already
    mounts the dialog with the now-required prop:
    props: { source, kind: 'bug', community: 'Tairea Anau', tab: 'backups', revision: 'a13f8b2c' }.
  • Both report-dialog unit tests pass on the current tree:
    cd dashboard && npx vitest run tests/unit/reportErrorsI18n.test.ts → 2 passed
    (the keyed broker-unreachable en→es flip, and the keyless relayed refusal staying
    the broker's own sentence). reportIssueDialog.test.ts:12 also passes kind.

Both acceptance clauses therefore already hold on main, and main is green.

Why blocked (cannot-proceed): this is a landing-pr ticket, and the
close-report gate refuses any close for a pr-mode ticket without an open
agent/issue-2168 PR (no open agent PR … pr-mode commits land on a PR before they can close it). There is no code change to put on such a PR, and I will not
fabricate one. The automated agent close path cannot express "already landed via
another PR".

What a human must do: close #2168 as already-resolved / superseded by the
merge of PR #2071 (aaf43887). I have NOT removed the landing-pr label or the
origin marker, pushed to main, or touched the merged PR.

## Already resolved upstream — no change left to land Investigated on this run (run=60586). The `#2065 × #2164` merge collision this ticket describes **has already been fixed on `main`**, so there is no code change left to make: - PR **#2071** is **closed/merged** — merge commit `aaf43887` landed it into `main`, and the refresh-merge `41dff252` ("Merge origin/main into agent/issue-2065 … the report dialog meets DDR 0300's five languages") carried exactly the one-line fix this ticket asked for. - `dashboard/tests/unit/reportErrorsI18n.test.ts:67` on `origin/main` already mounts the dialog with the now-required prop: `props: { source, kind: 'bug', community: 'Tairea Anau', tab: 'backups', revision: 'a13f8b2c' }`. - Both report-dialog unit tests pass on the current tree: `cd dashboard && npx vitest run tests/unit/reportErrorsI18n.test.ts` → **2 passed** (the keyed broker-unreachable en→es flip, and the keyless relayed refusal staying the broker's own sentence). `reportIssueDialog.test.ts:12` also passes `kind`. Both acceptance clauses therefore already hold on `main`, and `main` is green. **Why blocked (cannot-proceed):** this is a `landing-pr` ticket, and the close-report gate refuses any close for a pr-mode ticket without an open `agent/issue-2168` PR (`no open agent PR … pr-mode commits land on a PR before they can close it`). There is no code change to put on such a PR, and I will not fabricate one. The automated agent close path cannot express "already landed via another PR". **What a human must do:** close #2168 as already-resolved / superseded by the merge of PR #2071 (`aaf43887`). I have NOT removed the `landing-pr` label or the origin marker, pushed to `main`, or touched the merged PR.
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#2168
No description provided.