Context
On 19 Nov, examples PRs on different groups conflicted on one line of the catalog spec's count table. #21492 changed the Apps row ([6, 4] → [6, 5]); #21464 had changed the Lists row ([12, 0]) and #21491 the Charts row ([5, 1]) on the same physical line. Each needed a re-merge, a fresh CI run and, because the Fleet counts only approvals on the current head, a fresh approval. #21464 had been green and approved ten minutes earlier.
#21484 made this table the one literal per group. Its first AC reads "A new covered example changes one line in the unit spec (its family's row)", but the table packs four or five rows per line, so a row's line is shared with up to four other groups.
The Problem
The examples lanes under #21140 and #21367 are per group: Lists, Charts, Forms, More components and so on. Two PRs from different lanes change different rows, which git can merge on its own unless the rows share a line or sit on adjacent lines. Measured on dev at ed4435cf68, by bumping each group's row in a throwaway commit and merging every pair: 98 of the 210 cross-group pairs conflict (46.7%). #21518 and #21519 add more catalog PRs before the 22 Nov lock.
The Architectural Reality
test/playwright/unit/apps/portal/view/examples/MainContainerController.spec.mjs, groupCounts (lines 703–709 on dev at ed4435cf68): 21 groups as [home count, count from other groups] on five lines, recordCount beside it. publishedCount, groupCount and uncoveredCount derive from them (#21486).
- Key order matters: line 229 maps
Object.values(groupCounts) onto the mobile index's counts in route order, so the table keeps definition order.
buildScripts/util/check-block-alignment.mjs (pre-commit, --fix --staged) aligns a block's colons, so the keys pad to the longest, 'multi-window' (Ada, on the fork).
- git's merge conflicts on changes to adjacent lines as well as on the same line.
- Design authority: n/a. This changes test layout and calls no product behaviour wrong.
The Fix
groupCounts lists one group per line, in definition order, keys padded to 'multi-window'. No value changes and no other line moves. The same measurement on that layout leaves 20 of 210 pairs conflicting (9.5%): exactly the 20 pairs of neighbouring groups.
Acceptance Criteria
Out of Scope
recordCount stays one literal (#21484's choice), so two PRs that both add a record still collide there.
ExamplesCatalogNL.spec.mjs, the catalog data and the Portal views.
Avoided Traps
- Same-group additions. With one row per line, two PRs that add to the same group make the identical edit, and git merges it silently to a stale value: the trap #21484 named. It already exists for
recordCount, and the catalog unit spec catches it on the merged head.
- A blank line between rows. It would clear the 20 neighbouring pairs too, at the cost of a 41-line table. Not worth it while lanes rarely own two neighbouring groups at once.
- No literals at all. #21484 kept one literal per group on purpose: it is the one place a spec says which group gained what.
Related
#21484 · #21486 · #21367 · #21464 · #21491 · #21492 · #21515 · #21518 · #21519
Merge timing: this lands after #21464 (blocked_by #21459), so #21479, #21450 and #21483 absorb it in the re-merge they need after #21464 anyway. #21515 (an outside contributor's checkout form) edits the Forms row and recordCount; the fork refuses maintainer pushes, so if it is still open when this is ready, its reviewer and I settle the order before this merges.
Live latest-open + closed sweep: latest 20 open (#21519..#21367) plus open and closed searches (groupCounts, "catalog spec", "count table", "one group per line") at 2026-11-19T21:37Z; only closed #21484 covers the table, and its Out of Scope (the catalog data and Portal views) does not exclude this. Backlog band: 66 open (red), so this files as a leaf of the owning epic #21367.
A2A claim sweep: latest 30 messages in all read-states, newest 21:35:03Z; no claim on the table. The table's author agreed to the layout and to this lane (MESSAGE:5458c3eb).
MC sweep: "catalog spec count table merge conflict…", 5 results: the 04:54Z count-spec defect-note that led to #21484, and the agreement above; no decision against one row per line.
Own-assignment sweep: 12 open, none on this file.
Structure map: N/A (an existing test file, no new files).
Ownership: self-assigned; its value depends on landing at a quiet point in my merge chain, which an outside contributor cannot time.
Origin Session ID: 4aafd3cc-5d2f-4874-9b04-6e4634ab6378
Retrieval Hint: "catalog spec groupCounts one group per line cross-group merge conflict examples PRs"
Context
On 19 Nov, examples PRs on different groups conflicted on one line of the catalog spec's count table. #21492 changed the Apps row (
[6, 4]→[6, 5]); #21464 had changed the Lists row ([12, 0]) and #21491 the Charts row ([5, 1]) on the same physical line. Each needed a re-merge, a fresh CI run and, because the Fleet counts only approvals on the current head, a fresh approval. #21464 had been green and approved ten minutes earlier.#21484 made this table the one literal per group. Its first AC reads "A new covered example changes one line in the unit spec (its family's row)", but the table packs four or five rows per line, so a row's line is shared with up to four other groups.
The Problem
The examples lanes under #21140 and #21367 are per group: Lists, Charts, Forms, More components and so on. Two PRs from different lanes change different rows, which git can merge on its own unless the rows share a line or sit on adjacent lines. Measured on
devated4435cf68, by bumping each group's row in a throwaway commit and merging every pair: 98 of the 210 cross-group pairs conflict (46.7%). #21518 and #21519 add more catalog PRs before the 22 Nov lock.The Architectural Reality
test/playwright/unit/apps/portal/view/examples/MainContainerController.spec.mjs,groupCounts(lines 703–709 ondevated4435cf68): 21 groups as[home count, count from other groups]on five lines,recordCountbeside it.publishedCount,groupCountanduncoveredCountderive from them (#21486).Object.values(groupCounts)onto the mobile index's counts in route order, so the table keeps definition order.buildScripts/util/check-block-alignment.mjs(pre-commit,--fix --staged) aligns a block's colons, so the keys pad to the longest,'multi-window'(Ada, on the fork).The Fix
groupCountslists one group per line, in definition order, keys padded to'multi-window'. No value changes and no other line moves. The same measurement on that layout leaves 20 of 210 pairs conflicting (9.5%): exactly the 20 pairs of neighbouring groups.Acceptance Criteria
groupCountsholds one group per line, in definition order, and the catalog unit spec passes with no other change.check-block-alignmentpasses on the table.Out of Scope
recordCountstays one literal (#21484's choice), so two PRs that both add a record still collide there.ExamplesCatalogNL.spec.mjs, the catalog data and the Portal views.Avoided Traps
recordCount, and the catalog unit spec catches it on the merged head.Related
#21484 · #21486 · #21367 · #21464 · #21491 · #21492 · #21515 · #21518 · #21519
Merge timing: this lands after #21464 (
blocked_by#21459), so #21479, #21450 and #21483 absorb it in the re-merge they need after #21464 anyway. #21515 (an outside contributor's checkout form) edits the Forms row andrecordCount; the fork refuses maintainer pushes, so if it is still open when this is ready, its reviewer and I settle the order before this merges.Live latest-open + closed sweep: latest 20 open (
#21519..#21367) plus open and closed searches (groupCounts, "catalog spec", "count table", "one group per line") at 2026-11-19T21:37Z; only closed #21484 covers the table, and its Out of Scope (the catalog data and Portal views) does not exclude this. Backlog band: 66 open (red), so this files as a leaf of the owning epic #21367. A2A claim sweep: latest 30 messages in all read-states, newest 21:35:03Z; no claim on the table. The table's author agreed to the layout and to this lane (MESSAGE:5458c3eb). MC sweep: "catalog spec count table merge conflict…", 5 results: the 04:54Z count-spec defect-note that led to #21484, and the agreement above; no decision against one row per line. Own-assignment sweep: 12 open, none on this file. Structure map: N/A (an existing test file, no new files).Ownership: self-assigned; its value depends on landing at a quiet point in my merge chain, which an outside contributor cannot time.
Origin Session ID: 4aafd3cc-5d2f-4874-9b04-6e4634ab6378 Retrieval Hint: "catalog spec groupCounts one group per line cross-group merge conflict examples PRs"