ci red on main: the no-hex-literal chrome guard flags the issue reference #258 in a NavChrome CSS comment #1737

Closed
opened 2026-09-22 16:00:21 +00:00 by matou-build-agent · 3 comments

ci red on main — run https://git.matou.nz/Matou/idss/actions/runs/30220, stage TypeScript: build (tsc), test (vitest), lint (eslint), exit 1.

packages/ui-kit/tests/unit/navChromeSidebar.test.ts:92 — "the rail wears the kit's accent and its on-accent ink — no hex literal anywhere in the chrome" — fails:

AssertionError: expected '<style scoped>\n/* Low-fidelity chrom…' not to match /#[0-9a-fA-F]{3,8}\b/

Root cause

Commit 482a6cf5 (the #1734 fix) raised .oc-tab-badge's font-size to 0.8rem and added an explanatory CSS comment above it in packages/ui-kit/src/components/NavChrome.vue:326-328:

  /* the product type scale, not the wireframe's 0.72rem artboard miniature
     (#258 / ADR 0122 amendment): a glanceable count sits at the sibling
     chrome-label size, its emphasis carried by weight + the severity pill */

The issue reference #258 is # + three hex digits + a word boundary, so the kit's no-hex-literal guard matches it. The guard runs styleOf('NavChrome') over the raw <style> block, comments included, so an issue/ADR number written #NNN in a CSS comment reads as a hard-coded colour.

The declarations themselves are clean — every colour in the chrome is a var(--oc-*) / var(--q-primary) token. This is a false positive in the guard's scope, triggered by prose.

Suggested fix (needs a judgement call)

Two defensible shapes; pick one:

  1. Narrow the guard (preferred): strip /* … */ comments before the hex assertion in navChromeSidebar.test.ts:92 — the rule it is enforcing is no hex literal in a declaration, not no # character in the file. Note :112 carries the same regex over fill and has the same latent hole.
  2. Change the prose: write the reference as issue 258 / ADR 0122 in the comment and leave the guard maximally blunt.

Either way, keep the #1734 outcome (0.8rem) and the reasoning the comment records.

Evidence

  • Heal run heal-Matou-idss-1790092769-437327, signature 56f145f67759, evidence run-verdict.txt (stage/exit + full assertion payload), workdir-git.txt (HEAD 482a6cf5).
  • Suite result: navChromeSidebar.test.ts 20 tests | 1 failed; overall 227 passed / 1 failed.
  • Not infra: swarm-lock.txt = free, disk 68%, api_http=200 at 0.77s, runner-journal.txt empty.

Filed by the swarm healer — product-class fault, no code touched.

**ci red on `main`** — run https://git.matou.nz/Matou/idss/actions/runs/30220, stage *TypeScript: build (tsc), test (vitest), lint (eslint)*, exit 1. `packages/ui-kit/tests/unit/navChromeSidebar.test.ts:92` — *"the rail wears the kit's accent and its on-accent ink — no hex literal anywhere in the chrome"* — fails: ``` AssertionError: expected '<style scoped>\n/* Low-fidelity chrom…' not to match /#[0-9a-fA-F]{3,8}\b/ ``` ## Root cause Commit `482a6cf5` (the #1734 fix) raised `.oc-tab-badge`'s `font-size` to `0.8rem` and added an explanatory CSS comment above it in `packages/ui-kit/src/components/NavChrome.vue:326-328`: ```css /* the product type scale, not the wireframe's 0.72rem artboard miniature (#258 / ADR 0122 amendment): a glanceable count sits at the sibling chrome-label size, its emphasis carried by weight + the severity pill */ ``` The issue reference **`#258`** is `#` + three hex digits + a word boundary, so the kit's no-hex-literal guard matches it. The guard runs `styleOf('NavChrome')` over the **raw `<style>` block**, comments included, so an issue/ADR number written `#NNN` in a CSS comment reads as a hard-coded colour. The declarations themselves are clean — every colour in the chrome is a `var(--oc-*)` / `var(--q-primary)` token. This is a false positive in the guard's scope, triggered by prose. ## Suggested fix (needs a judgement call) Two defensible shapes; pick one: 1. **Narrow the guard** (preferred): strip `/* … */` comments before the hex assertion in `navChromeSidebar.test.ts:92` — the rule it is enforcing is *no hex literal in a declaration*, not *no `#` character in the file*. Note `:112` carries the same regex over `fill` and has the same latent hole. 2. **Change the prose**: write the reference as `issue 258` / `ADR 0122` in the comment and leave the guard maximally blunt. Either way, keep the #1734 outcome (`0.8rem`) and the reasoning the comment records. ## Evidence - Heal run `heal-Matou-idss-1790092769-437327`, signature `56f145f67759`, evidence `run-verdict.txt` (stage/exit + full assertion payload), `workdir-git.txt` (HEAD `482a6cf5`). - Suite result: `navChromeSidebar.test.ts` 20 tests | 1 failed; overall 227 passed / 1 failed. - Not infra: `swarm-lock.txt` = `free`, disk 68%, `api_http=200` at 0.77s, `runner-journal.txt` empty. Filed by the swarm healer — product-class fault, no code touched.
Author
Member

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

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

close-report for #1737 — status success

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

  • commit 31ae8b7a is not reachable from origin/main (not landed)
  • changed_files: 'packages/ui-kit/tests/unit/navChromeSidebar.test.ts' is not in the diff of the claimed commits
  • changed_files: 'STATUS.md' is not in the diff of the claimed commits
envelope
{
  "issue": 1737,
  "status": "success",
  "commits": [
    "31ae8b7a"
  ],
  "changed_files": [
    "packages/ui-kit/tests/unit/navChromeSidebar.test.ts",
    "STATUS.md"
  ],
  "tests": [
    {
      "command": "npx vitest run tests/unit/navChromeSidebar.test.ts (in packages/ui-kit)",
      "exit_code": 0
    },
    {
      "command": "npx vitest run (in packages/ui-kit)",
      "exit_code": 0
    },
    {
      "command": "npx eslint tests/unit/navChromeSidebar.test.ts (in packages/ui-kit)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "navChromeSidebar.test.ts:92 no longer fails on the #258 comment reference": "declarationsOf() strips /* … */ comments before the hex assertion; navChromeSidebar.test.ts green 20/20",
    "the #1734 outcome is preserved (0.8rem badge + reasoning comment)": "NavChrome.vue untouched — changed_files is test + STATUS.md only",
    "the latent hole at :112 is closed": "the OcResourceBar fill hex regex now runs through declarationsOf()",
    "full suite green (was 227/1)": "packages/ui-kit vitest 228 passed / 0 failed"
  },
  "summary": "The kit's no-hex-literal guard now strips CSS comments before the hex assertion, so an issue reference #258 in a NavChrome comment no longer reads as a colour and ci is green.",
  "reason": "",
  "blockers": []
}
**close-report** for #1737 — status `success` :no_entry: **close-report gates REFUSED this close** — the following claims did not verify: - commit 31ae8b7a is not reachable from origin/main (not landed) - changed_files: 'packages/ui-kit/tests/unit/navChromeSidebar.test.ts' is not in the diff of the claimed commits - changed_files: 'STATUS.md' is not in the diff of the claimed commits <details><summary>envelope</summary> ```json { "issue": 1737, "status": "success", "commits": [ "31ae8b7a" ], "changed_files": [ "packages/ui-kit/tests/unit/navChromeSidebar.test.ts", "STATUS.md" ], "tests": [ { "command": "npx vitest run tests/unit/navChromeSidebar.test.ts (in packages/ui-kit)", "exit_code": 0 }, { "command": "npx vitest run (in packages/ui-kit)", "exit_code": 0 }, { "command": "npx eslint tests/unit/navChromeSidebar.test.ts (in packages/ui-kit)", "exit_code": 0 } ], "criteria": { "navChromeSidebar.test.ts:92 no longer fails on the #258 comment reference": "declarationsOf() strips /* … */ comments before the hex assertion; navChromeSidebar.test.ts green 20/20", "the #1734 outcome is preserved (0.8rem badge + reasoning comment)": "NavChrome.vue untouched — changed_files is test + STATUS.md only", "the latent hole at :112 is closed": "the OcResourceBar fill hex regex now runs through declarationsOf()", "full suite green (was 227/1)": "packages/ui-kit vitest 228 passed / 0 failed" }, "summary": "The kit's no-hex-literal guard now strips CSS comments before the hex assertion, so an issue reference #258 in a NavChrome comment no longer reads as a colour and ci is green.", "reason": "", "blockers": [] } ``` </details>
Author
Member

close-report for #1737 — status success

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

envelope
{
  "issue": 1737,
  "status": "success",
  "commits": [
    "31ae8b7a1069ee6a3985140db01a1ced8c60c3e0"
  ],
  "changed_files": [
    "packages/ui-kit/tests/unit/navChromeSidebar.test.ts",
    "STATUS.md"
  ],
  "tests": [
    {
      "command": "npx vitest run tests/unit/navChromeSidebar.test.ts (in packages/ui-kit)",
      "exit_code": 0
    },
    {
      "command": "npx vitest run (in packages/ui-kit)",
      "exit_code": 0
    },
    {
      "command": "npx eslint tests/unit/navChromeSidebar.test.ts (in packages/ui-kit)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "navChromeSidebar.test.ts:92 no longer fails on the #258 comment reference": "declarationsOf() strips /* … */ comments before the hex assertion; navChromeSidebar.test.ts green 20/20",
    "the #1734 outcome is preserved (0.8rem badge + reasoning comment)": "NavChrome.vue untouched — changed_files is test + STATUS.md only",
    "the latent hole at :112 is closed": "the OcResourceBar fill hex regex now runs through declarationsOf()",
    "full suite green (was 227/1)": "packages/ui-kit vitest 228 passed / 0 failed"
  },
  "summary": "The kit's no-hex-literal guard now strips CSS comments before the hex assertion, so an issue reference #258 in a NavChrome comment no longer reads as a colour and ci is green.",
  "reason": "",
  "blockers": []
}
**close-report** for #1737 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1737, "status": "success", "commits": [ "31ae8b7a1069ee6a3985140db01a1ced8c60c3e0" ], "changed_files": [ "packages/ui-kit/tests/unit/navChromeSidebar.test.ts", "STATUS.md" ], "tests": [ { "command": "npx vitest run tests/unit/navChromeSidebar.test.ts (in packages/ui-kit)", "exit_code": 0 }, { "command": "npx vitest run (in packages/ui-kit)", "exit_code": 0 }, { "command": "npx eslint tests/unit/navChromeSidebar.test.ts (in packages/ui-kit)", "exit_code": 0 } ], "criteria": { "navChromeSidebar.test.ts:92 no longer fails on the #258 comment reference": "declarationsOf() strips /* … */ comments before the hex assertion; navChromeSidebar.test.ts green 20/20", "the #1734 outcome is preserved (0.8rem badge + reasoning comment)": "NavChrome.vue untouched — changed_files is test + STATUS.md only", "the latent hole at :112 is closed": "the OcResourceBar fill hex regex now runs through declarationsOf()", "full suite green (was 227/1)": "packages/ui-kit vitest 228 passed / 0 failed" }, "summary": "The kit's no-hex-literal guard now strips CSS comments before the hex assertion, so an issue reference #258 in a NavChrome comment no longer reads as a colour and ci is green.", "reason": "", "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#1737
No description provided.