Skip to content

The design language that makes your AI harness better at design.

JavaScript

Record the own-box JSON golden after main's near-black floor

Paul Bakause86550e1d911
diff --git a/tests/oracle/DELTAS.md b/tests/oracle/DELTAS.md
index 2e0ed4b48..b903047c2 100644
--- a/tests/oracle/DELTAS.md
+++ b/tests/oracle/DELTAS.md
@@ -6722,3 +6722,9 @@ A Gemini run wrote decision comp prompts that inventoried every region and never
New case, recorded from the binary and reviewed by hand:
- `question-wait-render-check-once`: `k1.render-check` already holds the hand's id `h1`, so a poll with a landed, sidecar-carrying decision comp prints only the WAITING line and leaves the marker as it was.
+
+## Recorded 2026-10-05: main's near-black floor reaches the own-box fixture
+
+Merging main brought #935's `GRAY_INK_MIN_LIGHTNESS` = 0.3 floor (see "near-black ink is not gray" above). On this branch it also clears one static finding main has no fixture for:
+
+- `detect-fixture-json-own-box-surface-and-ink-contrast-html`, `detect-fixture-text-own-box-surface-and-ink-contrast-html`: `gray-on-color` on `#363637` (lightness 0.21) on `#066bed`, the `pass-label-repainted-by-filter` row, is gone; the `low-contrast` 2.5:1 finding on the same pair stays. The directory sweeps lose the same finding.
diff --git a/tests/oracle/golden/detect-fixture-json-own-box-surface-and-ink-contrast-html.json b/tests/oracle/golden/detect-fixture-json-own-box-surface-and-ink-contrast-html.json
index d76c49449..7b273100b 100644
--- a/tests/oracle/golden/detect-fixture-json-own-box-surface-and-ink-contrast-html.json
+++ b/tests/oracle/golden/detect-fixture-json-own-box-surface-and-ink-contrast-html.json
@@ -1,5 +1,5 @@
{
- "stdout": "[\n {\n \"antipattern\": \"low-contrast\",\n \"name\": \"Low contrast text\",\n \"description\": \"Text does not meet WCAG AA contrast requirements (4.5:1 for body, 3:1 for large text). Increase the contrast between text and background.\",\n \"severity\": \"advisory\",\n \"category\": \"quality\",\n \"file\": \"<REPO>/tests/fixtures/antipatterns/own-box-surface-and-ink-contrast.html\",\n \"line\": 0,\n \"snippet\": \"1.3:1 (need 3:1) — text #f3e8ff on #a3e635 (gradient on span.avatar)\",\n \"advisory\": true\n },\n {\n \"antipattern\": \"low-contrast\",\n \"name\": \"Low contrast text\",\n \"description\": \"Text does not meet WCAG AA contrast requirements (4.5:1 for body, 3:1 for large text). Increase the contrast between text and background.\",\n \"severity\": \"warning\",\n \"category\": \"quality\",\n \"file\": \"<REPO>/tests/fixtures/antipatterns/own-box-surface-and-ink-contrast.html\",\n \"line\": 0,\n \"snippet\": \"2.0:1 (need 4.5:1) — text #b8b8b9 on #ffffff\"\n },\n {\n \"antipattern\": \"low-contrast\",\n \"name\": \"Low contrast text\",\n \"description\": \"Text does not meet WCAG AA contrast requirements (4.5:1 for body, 3:1 for large text). Increase the contrast between text and background.\",\n \"severity\": \"warning\",\n \"category\": \"quality\",\n \"file\": \"<REPO>/tests/fixtures/antipatterns/own-box-surface-and-ink-contrast.html\",\n \"line\": 0,\n \"snippet\": \"1.4:1 (need 3:1) — text #c7c9d9 on #eaeaea\"\n },\n {\n \"antipattern\": \"low-contrast\",\n \"name\": \"Low contrast text\",\n \"description\": \"Text does not meet WCAG AA contrast requirements (4.5:1 for body, 3:1 for large text). Increase the contrast between text and background.\",\n \"severity\": \"warning\",\n \"category\": \"quality\",\n \"file\": \"<REPO>/tests/fixtures/antipatterns/own-box-surface-and-ink-contrast.html\",\n \"line\": 0,\n \"snippet\": \"1.1:1 (need 4.5:1) — text #f2f4ee on #f3e9d7\"\n },\n {\n \"antipattern\": \"low-contrast\",\n \"name\": \"Low contrast text\",\n \"description\": \"Text does not meet WCAG AA contrast requirements (4.5:1 for body, 3:1 for large text). Increase the contrast between text and background.\",\n \"severity\": \"warning\",\n \"category\": \"quality\",\n \"file\": \"<REPO>/tests/fixtures/antipatterns/own-box-surface-and-ink-contrast.html\",\n \"line\": 0,\n \"snippet\": \"1.2:1 (need 4.5:1) — text #fefefe on #ededed\"\n },\n {\n \"antipattern\": \"low-contrast\",\n \"name\": \"Low contrast text\",\n \"description\": \"Text does not meet WCAG AA contrast requirements (4.5:1 for body, 3:1 for large text). Increase the contrast between text and background.\",\n \"severity\": \"warning\",\n \"category\": \"quality\",\n \"file\": \"<REPO>/tests/fixtures/antipatterns/own-box-surface-and-ink-contrast.html\",\n \"line\": 0,\n \"snippet\": \"1.8:1 (need 4.5:1) — text #fffffe on #c4b5fd\"\n },\n {\n \"antipattern\": \"low-contrast\",\n \"name\": \"Low contrast text\",\n \"description\": \"Text does not meet WCAG AA contrast requirements (4.5:1 for body, 3:1 for large text). Increase the contrast between text and background.\",\n \"severity\": \"advisory\",\n \"category\": \"quality\",\n \"file\": \"<REPO>/tests/fixtures/antipatterns/own-box-surface-and-ink-contrast.html\",\n \"line\": 0,\n \"snippet\": \"1.1:1 (need 3:1) — text #0b1020 on #13162a (gradient on span.avatar)\",\n \"advisory\": true\n },\n {\n \"antipattern\": \"gray-on-color\",\n \"name\": \"Gray text on colored background\",\n \"description\": \"Gray text looks washed out on colored backgrounds. Use a darker shade of the background color instead, or white/near-white for contrast.\",\n \"severity\": \"warning\",\n \"category\": \"quality\",\n \"file\": \"<REPO>/tests/fixtures/antipatterns/own-box-surface-and-ink-contrast.html\",\n \"line\": 0,\n \"snippet\": \"text #363637 on bg #066bed\"\n },\n {\n \"antipattern\": \"low-contrast\",\n \"name\": \"Low contrast text\",\n \"description\": \"Text does not meet WCAG AA contrast requirements (4.5:1 for body, 3:1 for large text). Increase the contrast between text and background.\",\n \"severity\": \"warning\",\n \"category\": \"quality\",\n \"file\": \"<REPO>/tests/fixtures/antipatterns/own-box-surface-and-ink-contrast.html\",\n \"line\": 0,\n \"snippet\": \"2.5:1 (need 4.5:1) — text #363637 on #066bed\"\n },\n {\n \"antipattern\": \"low-contrast\",\n \"name\": \"Low contrast text\",\n \"description\": \"Text does not meet WCAG AA contrast requirements (4.5:1 for body, 3:1 for large text). Increase the contrast between text and background.\",\n \"severity\": \"warning\",\n \"category\": \"quality\",\n \"file\": \"<REPO>/tests/fixtures/antipatterns/own-box-surface-and-ink-contrast.html\",\n \"line\": 0,\n \"snippet\": \"1.8:1 (need 3:1) — text #acb0cf on #eaeaea\"\n },\n {\n \"antipattern\": \"low-contrast\",\n \"name\": \"Low contrast text\",\n \"description\": \"Text does not meet WCAG AA contrast requirements (4.5:1 for body, 3:1 for large text). Increase the contrast between text and background.\",\n \"severity\": \"warning\",\n \"category\": \"quality\",\n \"file\": \"<REPO>/tests/fixtures/antipatterns/own-box-surface-and-ink-contrast.html\",\n \"line\": 0,\n \"snippet\": \"1.1:1 (need 4.5:1) — text #f2f4ef on #f3e9d7\"\n },\n {\n \"antipattern\": \"low-contrast\",\n \"name\": \"Low contrast text\",\n \"description\": \"Text does not meet WCAG AA contrast requirements (4.5:1 for body, 3:1 for large text). Increase the contrast between text and background.\",\n \"severity\": \"warning\",\n \"category\": \"quality\",\n \"file\": \"<REPO>/tests/fixtures/antipatterns/own-box-surface-and-ink-contrast.html\",\n \"line\": 0,\n \"snippet\": \"1.2:1 (need 4.5:1) — text #fdfdfd on #ededed\"\n }\n]\n",
+ "stdout": "[\n {\n \"antipattern\": \"low-contrast\",\n \"name\": \"Low contrast text\",\n \"description\": \"Text does not meet WCAG AA contrast requirements (4.5:1 for body, 3:1 for large text). Increase the contrast between text and background.\",\n \"severity\": \"advisory\",\n \"category\": \"quality\",\n \"file\": \"<REPO>/tests/fixtures/antipatterns/own-box-surface-and-ink-contrast.html\",\n \"line\": 0,\n \"snippet\": \"1.3:1 (need 3:1) — text #f3e8ff on #a3e635 (gradient on span.avatar)\",\n \"advisory\": true\n },\n {\n \"antipattern\": \"low-contrast\",\n \"name\": \"Low contrast text\",\n \"description\": \"Text does not meet WCAG AA contrast requirements (4.5:1 for body, 3:1 for large text). Increase the contrast between text and background.\",\n \"severity\": \"warning\",\n \"category\": \"quality\",\n \"file\": \"<REPO>/tests/fixtures/antipatterns/own-box-surface-and-ink-contrast.html\",\n \"line\": 0,\n \"snippet\": \"2.0:1 (need 4.5:1) — text #b8b8b9 on #ffffff\"\n },\n {\n \"antipattern\": \"low-contrast\",\n \"name\": \"Low contrast text\",\n \"description\": \"Text does not meet WCAG AA contrast requirements (4.5:1 for body, 3:1 for large text). Increase the contrast between text and background.\",\n \"severity\": \"warning\",\n \"category\": \"quality\",\n \"file\": \"<REPO>/tests/fixtures/antipatterns/own-box-surface-and-ink-contrast.html\",\n \"line\": 0,\n \"snippet\": \"1.4:1 (need 3:1) — text #c7c9d9 on #eaeaea\"\n },\n {\n \"antipattern\": \"low-contrast\",\n \"name\": \"Low contrast text\",\n \"description\": \"Text does not meet WCAG AA contrast requirements (4.5:1 for body, 3:1 for large text). Increase the contrast between text and background.\",\n \"severity\": \"warning\",\n \"category\": \"quality\",\n \"file\": \"<REPO>/tests/fixtures/antipatterns/own-box-surface-and-ink-contrast.html\",\n \"line\": 0,\n \"snippet\": \"1.1:1 (need 4.5:1) — text #f2f4ee on #f3e9d7\"\n },\n {\n \"antipattern\": \"low-contrast\",\n \"name\": \"Low contrast text\",\n \"description\": \"Text does not meet WCAG AA contrast requirements (4.5:1 for body, 3:1 for large text). Increase the contrast between text and background.\",\n \"severity\": \"warning\",\n \"category\": \"quality\",\n \"file\": \"<REPO>/tests/fixtures/antipatterns/own-box-surface-and-ink-contrast.html\",\n \"line\": 0,\n \"snippet\": \"1.2:1 (need 4.5:1) — text #fefefe on #ededed\"\n },\n {\n \"antipattern\": \"low-contrast\",\n \"name\": \"Low contrast text\",\n \"description\": \"Text does not meet WCAG AA contrast requirements (4.5:1 for body, 3:1 for large text). Increase the contrast between text and background.\",\n \"severity\": \"warning\",\n \"category\": \"quality\",\n \"file\": \"<REPO>/tests/fixtures/antipatterns/own-box-surface-and-ink-contrast.html\",\n \"line\": 0,\n \"snippet\": \"1.8:1 (need 4.5:1) — text #fffffe on #c4b5fd\"\n },\n {\n \"antipattern\": \"low-contrast\",\n \"name\": \"Low contrast text\",\n \"description\": \"Text does not meet WCAG AA contrast requirements (4.5:1 for body, 3:1 for large text). Increase the contrast between text and background.\",\n \"severity\": \"advisory\",\n \"category\": \"quality\",\n \"file\": \"<REPO>/tests/fixtures/antipatterns/own-box-surface-and-ink-contrast.html\",\n \"line\": 0,\n \"snippet\": \"1.1:1 (need 3:1) — text #0b1020 on #13162a (gradient on span.avatar)\",\n \"advisory\": true\n },\n {\n \"antipattern\": \"low-contrast\",\n \"name\": \"Low contrast text\",\n \"description\": \"Text does not meet WCAG AA contrast requirements (4.5:1 for body, 3:1 for large text). Increase the contrast between text and background.\",\n \"severity\": \"warning\",\n \"category\": \"quality\",\n \"file\": \"<REPO>/tests/fixtures/antipatterns/own-box-surface-and-ink-contrast.html\",\n \"line\": 0,\n \"snippet\": \"2.5:1 (need 4.5:1) — text #363637 on #066bed\"\n },\n {\n \"antipattern\": \"low-contrast\",\n \"name\": \"Low contrast text\",\n \"description\": \"Text does not meet WCAG AA contrast requirements (4.5:1 for body, 3:1 for large text). Increase the contrast between text and background.\",\n \"severity\": \"warning\",\n \"category\": \"quality\",\n \"file\": \"<REPO>/tests/fixtures/antipatterns/own-box-surface-and-ink-contrast.html\",\n \"line\": 0,\n \"snippet\": \"1.8:1 (need 3:1) — text #acb0cf on #eaeaea\"\n },\n {\n \"antipattern\": \"low-contrast\",\n \"name\": \"Low contrast text\",\n \"description\": \"Text does not meet WCAG AA contrast requirements (4.5:1 for body, 3:1 for large text). Increase the contrast between text and background.\",\n \"severity\": \"warning\",\n \"category\": \"quality\",\n \"file\": \"<REPO>/tests/fixtures/antipatterns/own-box-surface-and-ink-contrast.html\",\n \"line\": 0,\n \"snippet\": \"1.1:1 (need 4.5:1) — text #f2f4ef on #f3e9d7\"\n },\n {\n \"antipattern\": \"low-contrast\",\n \"name\": \"Low contrast text\",\n \"description\": \"Text does not meet WCAG AA contrast requirements (4.5:1 for body, 3:1 for large text). Increase the contrast between text and background.\",\n \"severity\": \"warning\",\n \"category\": \"quality\",\n \"file\": \"<REPO>/tests/fixtures/antipatterns/own-box-surface-and-ink-contrast.html\",\n \"line\": 0,\n \"snippet\": \"1.2:1 (need 4.5:1) — text #fdfdfd on #ededed\"\n }\n]\n",
"stderr": "",
"exit": 2,
"signal": null,