Concrete
GuidesOrganize and ship

Read a failing check

The check came back red and you want to know which line to open first.

Goal

Read a red report, find the one thing each finding is asking for, and get back to green.

Prerequisites

A workspace that runs, and a red report — the one below is a real run over the starter workspace with two ordinary mistakes in it.

Steps

1. Run it and read the shape

Terminal
concrete check
concrete check
✓ workspace
✓ typecheck
✗ lint (1 violation)
    sections/hero/section.tsx:58  concrete/server/no-inline-style
      The inline `style=` prop is banned in server-rendered JSX: it bypasses the cascade and Tailwind's responsive prefixes. Fix: use Tailwind utility classes, or a rule in a stylesheet the module imports; for a value that only exists at runtime, move the markup into a `"use client"` island, where `style` is allowed.
✓ composition
✓ relations
✓ stylesheet
✓ logic
✓ fixtures
✓ sections
✓ contracts
✗ render (1 violation)
    sections/hero/section.tsx  concrete/render/missing-slot-marker
      Slot "tagline" is editable but never renders as data-slot-id in any fixture, so the editor cannot select it. Render it through its own Slot primitive, which owns the marker.
✓ bundles
    hero  renderer 7.9 KB gzip
✓ dependencies

concrete check failed: 2 violations in 2 stages.

One line per stage, in the order they run. A red stage does not stop the next one, which is why two findings in two different stages come back from a single run. Each finding is three parts: where, the rule id, and what the rule wants.

Work top down anyway. The early stages are the ones later stages are measured through — a workspace that will not load, or a module that will not parse (lint/parse-error), makes half the report meaningless.

2. Take the finding literally

The message is the fix. The first one names a file and a line, and asks for one edit:

sections/hero/section.tsx
-        <p className="mt-4 text-lg" style={{ color: "#525252" }}>
+        <p className="mt-4 text-lg text-neutral-600">

3. For a finding with no line, look at the schema and the markup together

render/missing-slot-marker names the section rather than a line, because the mistake is a disagreement between two places: a slot is declared and nothing renders it. The stage renders every fixture and looks for each editable slot's marker in the output, so "never renders in any fixture" is a measurement, not a guess.

The fix is to render the slot through its own primitive, which is what owns the marker:

sections/hero/section.tsx
         <Slot.Text slot={slot.headline} as="h1" className="mt-10 text-4xl" />
+        <Slot.Text slot={slot.tagline} as="p" className="mt-3 text-xl text-neutral-500" />

If the slot was a mistake, delete the declaration instead. Both are fixes; what is not a fix is a hand-written data-slot-* attribute, which is refused on sight.

4. Resolve anything the message did not settle

Every id resolves at /rules/<id> — the message's concrete/server/no-inline-style is /rules/server/no-inline-style — where the rule carries its reason, its fix and a before-and-after. Reach for that when you disagree with a rule, because the answer to "why can I not do this" is there and is not a preference: every threshold in this report is a platform acceptance criterion, and no flag or config file raises one.

5. Re-run

concrete check
✓ workspace
✓ typecheck
✓ lint
✓ composition
✓ relations
✓ stylesheet
✓ logic
✓ fixtures
✓ sections
✓ contracts
✓ render
✓ bundles
    hero  renderer 7.9 KB gzip
✓ dependencies

concrete check passed: 13 stages.

6. Give an agent or a CI job the machine-readable one

Terminal
concrete check --json

The report is then the only thing on stdout — every notice goes to stderr — and each violation carries its rule id, the file, an optional line and the message, beside the per-section bundle weights. Exit code 1 means at least one finding; 0 means every rule that could be measured passed.

Verify

Green, and the same green twice: a report that alternates is usually a renderer reading a clock or a random source rather than a flaky gate. concrete publish runs this same check on every publish and refuses on red, so an artifact exists only because the report was green.

On this page