Concrete
Rulescontract

concrete/contract/writer-reads-fact

A fill that writes text, its item fields included, reads at least one fact to ground what it writes.

A fill that writes text, its item fields included, reads at least one fact to ground what it writes.

Graded by the contracts stage of concrete check, in the contract venue. A violation reports this id and the file it failed at — see every rule and concrete check.

Reason

A fill's model call is shown exactly the refs its reads names, beside its brief. A fill that WRITES and reads no fact is handed nothing to ground a claim in: it writes from the brief alone, and plausible copy about a property it never saw reads exactly like copy that was grounded. Nothing downstream can tell the two apart.

What writes is the verb, fill.write: on a text slot, on a number it estimates, on a list whose items the model writes (item: text.short({ cap })), and on a field of a list's object item. A pick is exempt, since its candidates are its evidence, and so is a display entry, which picks a case. A list's item fields are answered by the list's one call, so a fact read on any item field grounds the list; a member read through a row of a fact table — a comparable's price — is a fact too. A read of another section's slot is not: it is the model's own earlier answer, not evidence about the property.

Check-caught. reads is optional by construction, because a pick needs none.

Fix

Name the facts the fill writes from in its fill's reads, or on the item field that writes.

Before and after

import { fill, text } from "@homepages/concrete";

text.medium({
  label: "Headline",
  cap: 60,
  source: fill.write({ brief: "A marketing headline in one sentence. Confident, no exclamation marks." }),
});
import { fact, fill, text } from "@homepages/concrete";

text.medium({
  label: "Headline",
  cap: 60,
  source: fill.write({
    reads: [fact.property.address, fact.property.description],
    brief: "A marketing headline in one sentence. Confident, no exclamation marks.",
  }),
});

On this page