CI red on main: the UI pass's .oc-system-alert type breaks the #258 product-type-scale guard (0.72em / 0.82em under ADR 0122's 0.85em floor) #1446

Closed
opened 2026-09-12 15:50:44 +00:00 by matou-build-agent · 4 comments

CI is red on main — ci / stage TypeScript: build (tsc), test (vitest), lint (eslint) exits 1 on every push until this is fixed.

The fault

app/tests/unit/productTypeScale.test.ts (the #258 source-scan guard for ADR 0122's type-scale amendment) fails on its second case, "the shared kit vocabulary renders at product scale":

AssertionError: kit vocabulary still carrying artboard-scale font-size (rem<0.75 / em<0.85):
  packages/ui-kit/src/baseLayer.css: font-size: 0.72em
  packages/ui-kit/src/baseLayer.css: font-size: 0.82em
 ❯ tests/unit/productTypeScale.test.ts:100:7
Test Files  1 failed | 122 passed (123)
      Tests  1 failed | 1572 passed (1573)

Root cause

Commit 606531a0 ("control panel: the UI pass Ben drove through the browser harness…") added the new .oc-system-alert vocabulary to packages/ui-kit/src/baseLayer.css with two em sizes below the ADR 0122 floor of 0.85em:

  • .oc-system-alert__label { font-size: 0.72em } — the tier's own word, commented "small and in the tier's ink" (Ben, 2026-09-11)
  • .oc-system-alert__action { font-size: 0.82em }

ADR 0122 (docs/adr/0122-design-operator-app-wears-the-matou-visual-language.md, lines 99–127): micro-labels never below 0.75rem; em sizes compound, so they floor at 0.85em ≈ 12px on a product-scale parent. The guard exists precisely because the #183 Phase A rehearsal found the app rendering artboard-scale (~10px) copy.

A full scan of the guard's file set at origin/main (3b7c37cf) finds exactly these two offenders — no app-screen offenders, no other kit files.

The decision this needs

Two ways out, and it is a design ruling, not a mechanical fix:

  1. Raise both to the floor — 0.72em → 0.85em and 0.82em → 0.85em (or express them in rem off the 14px root), keeping the ADR invariant intact. The alert label would read slightly larger than Ben drew it in the harness.
  2. Amend ADR 0122 if the system-alert label is a deliberate exception (a bold, coloured single word may read fine below the general floor) — then the guard needs an explicit, narrow allowance rather than a loosened global floor.

Default to (1) unless the harness pass is re-driven and Ben rules otherwise; (2) must not be done by widening MIN_EM globally — that would retire the guard.

Evidence

  • Heal signature d54ac02ef66b, heal run heal-Matou-idss-1789228118-3554471, ci run https://git.matou.nz/Matou/idss/actions/runs/22604
  • Offending commit: 606531a09ca03c5b63b50965c0bf4dd6b4fef089
  • Guard: app/tests/unit/productTypeScale.test.ts (added by 8fecef51, #258)
  • Related: #1444 (control panel code hygiene after the same UI pass)

Filed by the swarm healer — product-class fault, so no code was changed by the healer.

**CI is red on `main`** — `ci` / stage *TypeScript: build (tsc), test (vitest), lint (eslint)* exits 1 on every push until this is fixed. ## The fault `app/tests/unit/productTypeScale.test.ts` (the #258 source-scan guard for ADR 0122's type-scale amendment) fails on its second case, *"the shared kit vocabulary renders at product scale"*: ``` AssertionError: kit vocabulary still carrying artboard-scale font-size (rem<0.75 / em<0.85): packages/ui-kit/src/baseLayer.css: font-size: 0.72em packages/ui-kit/src/baseLayer.css: font-size: 0.82em ❯ tests/unit/productTypeScale.test.ts:100:7 Test Files 1 failed | 122 passed (123) Tests 1 failed | 1572 passed (1573) ``` ## Root cause Commit `606531a0` ("control panel: the UI pass Ben drove through the browser harness…") added the new `.oc-system-alert` vocabulary to `packages/ui-kit/src/baseLayer.css` with two `em` sizes **below the ADR 0122 floor of `0.85em`**: - `.oc-system-alert__label { font-size: 0.72em }` — the tier's own word, commented *"small and in the tier's ink"* (Ben, 2026-09-11) - `.oc-system-alert__action { font-size: 0.82em }` ADR 0122 (`docs/adr/0122-design-operator-app-wears-the-matou-visual-language.md`, lines 99–127): micro-labels never below `0.75rem`; `em` sizes compound, so they floor at `0.85em` ≈ 12px on a product-scale parent. The guard exists precisely because the #183 Phase A rehearsal found the app rendering artboard-scale (~10px) copy. A full scan of the guard's file set at `origin/main` (`3b7c37cf`) finds **exactly these two offenders** — no app-screen offenders, no other kit files. ## The decision this needs Two ways out, and it is a **design ruling**, not a mechanical fix: 1. **Raise both to the floor** — `0.72em → 0.85em` and `0.82em → 0.85em` (or express them in `rem` off the 14px root), keeping the ADR invariant intact. The alert label would read slightly larger than Ben drew it in the harness. 2. **Amend ADR 0122** if the system-alert label is a deliberate exception (a bold, coloured single word may read fine below the general floor) — then the guard needs an explicit, narrow allowance rather than a loosened global floor. Default to (1) unless the harness pass is re-driven and Ben rules otherwise; (2) must not be done by widening `MIN_EM` globally — that would retire the guard. ## Evidence - Heal signature `d54ac02ef66b`, heal run `heal-Matou-idss-1789228118-3554471`, ci run https://git.matou.nz/Matou/idss/actions/runs/22604 - Offending commit: `606531a09ca03c5b63b50965c0bf4dd6b4fef089` - Guard: `app/tests/unit/productTypeScale.test.ts` (added by `8fecef51`, #258) - Related: #1444 (control panel code hygiene after the same UI pass) Filed by the swarm healer — product-class fault, so no code was changed by the healer.
Author
Member

Recurrence — same fault, next push. ci run 22611 on 62e1ba47 ("sandcastle: #1437 — compose the catalogue READ on a resting gateway…") fails identically:

AssertionError: kit vocabulary still carrying artboard-scale font-size (rem<0.75 / em<0.85):
  packages/ui-kit/src/baseLayer.css: font-size: 0.72em
  packages/ui-kit/src/baseLayer.css: font-size: 0.82em
Test Files  1 failed | 122 passed (123)   Tests  1 failed | 1572 passed (1573)

Nothing has changed at origin/main: baseLayer.css:695 (.oc-system-alert__label, 0.72em) and :733 (.oc-system-alert__action, 0.82em) are still the only two offenders across the guard's file set — the app-screen case still passes.

Note for whoever picks this up: runs 22592/22595/22600/22604 were all cancelled by the next push, so 22611 is the first run since ddb97900 to actually surface it. main has been red since 606531a0 and every subsequent push inherits it — this blocks the merge gate, which is why it carries priority.

Heal signature d54ac02ef66b (2nd occurrence), heal run heal-Matou-idss-1789228653-3583740. No repair attempted: the fix is product code in packages/ui-kit/ and needs the design ruling in the body above.

**Recurrence** — same fault, next push. `ci` run [22611](https://git.matou.nz/Matou/idss/actions/runs/22611) on `62e1ba47` ("sandcastle: #1437 — compose the catalogue READ on a resting gateway…") fails identically: ``` AssertionError: kit vocabulary still carrying artboard-scale font-size (rem<0.75 / em<0.85): packages/ui-kit/src/baseLayer.css: font-size: 0.72em packages/ui-kit/src/baseLayer.css: font-size: 0.82em Test Files 1 failed | 122 passed (123) Tests 1 failed | 1572 passed (1573) ``` Nothing has changed at `origin/main`: `baseLayer.css:695` (`.oc-system-alert__label`, `0.72em`) and `:733` (`.oc-system-alert__action`, `0.82em`) are still the only two offenders across the guard's file set — the app-screen case still passes. Note for whoever picks this up: runs 22592/22595/22600/22604 were all *cancelled* by the next push, so 22611 is the first run since `ddb97900` to actually surface it. **`main` has been red since `606531a0` and every subsequent push inherits it** — this blocks the merge gate, which is why it carries `priority`. Heal signature `d54ac02ef66b` (2nd occurrence), heal run `heal-Matou-idss-1789228653-3583740`. No repair attempted: the fix is product code in `packages/ui-kit/` and needs the design ruling in the body above.
Author
Member

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

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

Ruled by agent under ADR 0174 — veto anytime.

Ruling: Took option (1) from the body — raised both em sizes in packages/ui-kit/src/baseLayer.css to the ADR 0122 floor of 0.85em:

  • .oc-system-alert__label 0.72em → 0.85em
  • .oc-system-alert__action 0.82em → 0.85em

Did NOT touch MIN_EM or amend ADR 0122.

Why this is a two-way door: it is a CSS value change, fully revertible by a later commit, and the design invariant is unchanged. ADR 0122's mapping (line 114) already places micro-labels — uppercase bold labels like __label — at exactly 0.85em, so this is the value the ADR prescribes, not a loosening. Option (2) (amending the ADR for a system-alert exception) is the one-way-ish design call and is explicitly gated behind a re-driven harness pass + Ben's ruling; I did not take it.

What proves it: app/tests/unit/productTypeScale.test.ts (the #258 guard) now passes both cases — Test Files 1 passed (1), Tests 2 passed (2). If Ben re-drives the harness and wants the label smaller, this is revertible in favour of a narrow ADR 0122 allowance.

Ruled by agent under ADR 0174 — veto anytime. **Ruling:** Took option (1) from the body — raised both `em` sizes in `packages/ui-kit/src/baseLayer.css` to the ADR 0122 floor of `0.85em`: - `.oc-system-alert__label` `0.72em → 0.85em` - `.oc-system-alert__action` `0.82em → 0.85em` Did NOT touch `MIN_EM` or amend ADR 0122. **Why this is a two-way door:** it is a CSS value change, fully revertible by a later commit, and the design invariant is unchanged. ADR 0122's mapping (line 114) already places micro-labels — uppercase bold labels like `__label` — at exactly `0.85em`, so this is the value the ADR prescribes, not a loosening. Option (2) (amending the ADR for a system-alert exception) is the one-way-ish design call and is explicitly gated behind a re-driven harness pass + Ben's ruling; I did not take it. **What proves it:** `app/tests/unit/productTypeScale.test.ts` (the #258 guard) now passes both cases — `Test Files 1 passed (1), Tests 2 passed (2)`. If Ben re-drives the harness and wants the label smaller, this is revertible in favour of a narrow ADR 0122 allowance.
Author
Member

close-report for #1446 — status success

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

envelope
{
  "issue": 1446,
  "status": "success",
  "commits": [
    "9e551291"
  ],
  "changed_files": [
    "packages/ui-kit/src/baseLayer.css"
  ],
  "tests": [
    {
      "command": "npx vitest run tests/unit/productTypeScale.test.ts",
      "exit_code": 0
    }
  ],
  "criteria": {
    "CI green: #258 product-type-scale guard kit-vocabulary case passes": "app/tests/unit/productTypeScale.test.ts now 2 passed (both cases); commit 9e551291",
    "No em font-size below ADR 0122's 0.85em floor in the kit": ".oc-system-alert__label 0.72em->0.85em and .oc-system-alert__action 0.82em->0.85em in packages/ui-kit/src/baseLayer.css",
    "MIN_EM not widened / guard not retired (option 1, not 2)": "guard file app/tests/unit/productTypeScale.test.ts unchanged; only baseLayer.css edited"
  },
  "summary": "Raised the two .oc-system-alert em sizes to ADR 0122's 0.85em floor, greening the #258 guard and CI on main.",
  "blockers": []
}
**close-report** for #1446 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1446, "status": "success", "commits": [ "9e551291" ], "changed_files": [ "packages/ui-kit/src/baseLayer.css" ], "tests": [ { "command": "npx vitest run tests/unit/productTypeScale.test.ts", "exit_code": 0 } ], "criteria": { "CI green: #258 product-type-scale guard kit-vocabulary case passes": "app/tests/unit/productTypeScale.test.ts now 2 passed (both cases); commit 9e551291", "No em font-size below ADR 0122's 0.85em floor in the kit": ".oc-system-alert__label 0.72em->0.85em and .oc-system-alert__action 0.82em->0.85em in packages/ui-kit/src/baseLayer.css", "MIN_EM not widened / guard not retired (option 1, not 2)": "guard file app/tests/unit/productTypeScale.test.ts unchanged; only baseLayer.css edited" }, "summary": "Raised the two .oc-system-alert em sizes to ADR 0122's 0.85em floor, greening the #258 guard and CI on main.", "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#1446
No description provided.