cutaste-base / standard /checks.json
MoonGolden's picture
Publish base-2026Q4-preview (tasks and scoring rules)
ecf2e21 verified
Raw History Blame Contribute Delete
10.3 kB
{
"kind": "baseline-checks",
"exportVersion": "1",
"scenario": {
"id": "frontend-aesthetic",
"version": "1.0.0"
},
"contractHash": "sha256:ec7629d3c0a40e081293b5ff99c018f1ecc459a4f79206f1a223e0bdd9b0006b",
"severities": {
"fatal": "the floor fails and the page is eliminated",
"severe": "the floor fails; the failure is marked on the card",
"minor": "recorded only; never fails the floor",
"flag": "a result value, not a severity: noted for review, never counted as a failure"
},
"floorRule": "a page passes the floor when no fatal or severe check fails",
"checks": [
{
"id": "fe.no-output",
"version": "1",
"severity": "fatal",
"summary": "The agent produced no page: out/index.html is missing.",
"rule": [
"fail when out/index.html does not exist after the run"
],
"selfTest": [
{
"injector": "fi.delete-entry",
"intensity": 1,
"expect": "fail"
}
]
},
{
"id": "fe.blank-page",
"version": "1",
"severity": "fatal",
"summary": "The page renders as blank on some viewport.",
"rule": [
"fail when a viewport shows fewer than 20 characters of visible text and images/painted areas cover under 5% of the page",
"or when the first-screen and full-page screenshots are ≥ 99.8% a single background colour"
],
"selfTest": [
{
"injector": "fi.blank",
"intensity": 1,
"expect": "fail"
},
{
"injector": "fi.blank",
"intensity": 2,
"expect": "fail"
},
{
"injector": "fi.blank",
"intensity": 3,
"expect": "fail"
}
]
},
{
"id": "fe.horizontal-scroll",
"version": "1",
"severity": "severe",
"summary": "The page scrolls sideways at a contract viewport.",
"rule": [
"fail when document scrollWidth exceeds clientWidth by more than 1 px at 1440x900 or 390x844 (unless the root clips x-overflow)",
"flag only (not counted) when it happens only at the extra scan widths 320, 768, 1024 px; the first failing width is reported"
],
"selfTest": [
{
"injector": "fi.wide-element",
"intensity": 1,
"expect": "fail"
},
{
"injector": "fi.wide-element",
"intensity": 3,
"expect": "fail"
}
]
},
{
"id": "fe.text-overflow",
"version": "2",
"severity": "severe",
"summary": "Content text is cut off by its container.",
"rule": [
"fail when a text block with letters or digits (≥ 2 non-space characters) is clipped by an overflow:hidden/clip ancestor",
"ignored: aria-hidden and svg text, rotated/skewed text, collapsed <details> / content-visibility:hidden, symbol-only text, layers mirroring a scroll pane (editor gutters)",
"ellipsis truncation is a flag, not a failure"
],
"selfTest": [
{
"injector": "fi.text-clip",
"intensity": 1,
"expect": "fail"
},
{
"injector": "fi.text-clip",
"intensity": 2,
"expect": "fail"
},
{
"injector": "fi.text-clip",
"intensity": 3,
"expect": "fail"
}
]
},
{
"id": "fe.overlap",
"version": "2",
"severity": "severe",
"summary": "Readable text overlaps other text or is covered by an opaque element.",
"rule": [
"text-on-text overlap of at least 4×4 px, only the part inside its clipping containers",
"covered: at least 2 sample points of a text (1 when it has only one) are under an opaque element (image, video, iframe, form control, opaque background); svg graphics are not opaque covers",
"ignored: aria-hidden / svg text, rotated text, collapsed content, symbol-only text"
],
"selfTest": [
{
"injector": "fi.overlap",
"intensity": 1,
"expect": "fail"
},
{
"injector": "fi.overlap",
"intensity": 3,
"expect": "fail"
}
]
},
{
"id": "fe.contrast",
"version": "2",
"severity": "severe",
"summary": "Main text is unreadable against its background (not mere WCAG AA misses).",
"rule": [
"faint = below 3:1 (large text 2:1); illegible = below 2:1 (large text 1.5:1); ratios from axe-core",
"fail on a viewport when faint text is ≥ 50% of the readable characters",
"or illegible text is ≥ 10% of the readable characters or ≥ 200 characters",
"readable = visible text with letters or digits plus text shown in form fields; aria-hidden, svg, disabled controls and symbols excluded",
"flag when contrast could not be measured"
],
"selfTest": [
{
"injector": "fi.low-contrast",
"intensity": 2,
"expect": "fail"
},
{
"injector": "fi.low-contrast",
"intensity": 3,
"expect": "fail"
}
]
},
{
"id": "fe.contrast-aa",
"version": "1",
"severity": "minor",
"summary": "Some readable text is below the WCAG AA contrast ratio (recorded, never vetoes).",
"rule": [
"fail (minor) when any readable text is below 4.5:1 (large text 3:1); the detail gives the largest share and the lowest ratio"
],
"selfTest": [
{
"injector": "fi.low-contrast",
"intensity": 1,
"expect": "fail"
},
{
"injector": "fi.low-contrast",
"intensity": 3,
"expect": "fail"
}
]
},
{
"id": "fe.broken-image",
"version": "1",
"severity": "severe",
"summary": "An image on the page failed to load or has no source.",
"rule": [
"fail when a displayed <img> has an empty src, or finished loading with naturalWidth 0 (lazy images not yet loaded are skipped)"
],
"selfTest": [
{
"injector": "fi.break-image",
"intensity": 1,
"expect": "fail"
},
{
"injector": "fi.break-image",
"intensity": 3,
"expect": "fail"
}
]
},
{
"id": "fe.required-sections",
"version": "1",
"severity": "severe",
"summary": "A section the task card requires is not on the page.",
"rule": [
"fail when any of the card's requiredSections is not found on some viewport (matched by data-section, then id, then the words of the name in the attributes / text of sections, landmarks, headings, with synonyms)",
"pass when the card requires none"
],
"selfTest": [
{
"injector": "fi.remove-section",
"intensity": 1,
"expect": "fail"
},
{
"injector": "fi.remove-section",
"intensity": 3,
"expect": "fail"
}
]
},
{
"id": "fe.fabrication",
"version": "1",
"severity": "minor",
"summary": "Heuristic marker for invented content when the card supplies fixed copy.",
"rule": [
"fail (minor) when a section the card withholds appears",
"or, when the card has inline content: a quotation of 25+ characters not supported by the card text (≥ 80% of its words), or ≥ 2 numbers not in the card (years 1990–2035 and integers under 10 ignored)"
],
"selfTest": [
{
"injector": "fi.fabricate",
"intensity": 1,
"expect": "fail"
},
{
"injector": "fi.fabricate",
"intensity": 2,
"expect": "fail"
}
]
},
{
"id": "fe.console-errors",
"version": "2",
"severity": "severe",
"summary": "The page's own scripts throw or log errors.",
"rule": [
"fail on an uncaught page exception or a console.error from the page",
"not counted (browser notices, network): /Failed to load resource|net::ERR_|Blocked script execution in .* sandboxed|frame is sandboxed|^\\[Violation\\]|favicon\\.ico/i"
],
"selfTest": [
{
"injector": "fi.script-error",
"intensity": 1,
"expect": "fail"
},
{
"injector": "fi.script-error",
"intensity": 2,
"expect": "fail"
}
]
},
{
"id": "fe.external-requests",
"version": "1",
"severity": "severe",
"summary": "The page tries to reach the network (rendering is offline).",
"rule": [
"fail when any request outside the local static server was blocked, or a page file (HTML, CSS, JS) references an external URL"
],
"selfTest": [
{
"injector": "fi.external-ref",
"intensity": 1,
"expect": "fail"
},
{
"injector": "fi.external-ref",
"intensity": 3,
"expect": "fail"
}
]
},
{
"id": "fe.font-fallback",
"version": "1",
"severity": "minor",
"summary": "Text asks for a font the pinned font pack cannot provide.",
"rule": [
"fail (minor) when the first family of a font stack used by ≥ 10 characters is neither in the font pack, its alias table, a generic family, nor a loaded @font-face"
],
"selfTest": [
{
"injector": "fi.unknown-font",
"intensity": 1,
"expect": "fail"
},
{
"injector": "fi.unknown-font",
"intensity": 3,
"expect": "fail"
}
]
},
{
"id": "fe.small-text",
"version": "2",
"severity": "minor",
"summary": "Readable text set below the minimum size.",
"rule": [
"fail (minor) when a non-decorative text block of ≥ 20 characters is under 12 px"
],
"selfTest": [
{
"injector": "fi.tiny-text",
"intensity": 1,
"expect": "fail"
},
{
"injector": "fi.tiny-text",
"intensity": 3,
"expect": "fail"
}
]
}
]
}