Concrete
Rulescontract

concrete/contract/produces-known-slot

Every fill decision produces only slots the section declares.

Every fill decision produces only slots the section declares.

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

Every decision in a published fill spec names the slots it writes. A decision naming a slot the schema does not declare has nowhere to put its answer: the fill runs, the model is paid, and the value is discarded. This rule is also what lets the rest of the contract venue stay quiet about unknown slots — contract/cap, contract/count-bounds and their siblings skip a slot they cannot resolve, because reporting it once here beats the same fix arriving as six messages.

Neither type-caught nor reachable from an authored section. A section declares each decision on the slot itself, and the build mints the decision's id and its produced slot from that slot's key — there is no second place to write a slot name, so the two cannot disagree. The rule earns its place on the other side of publishing, where the contract venue re-runs over a built artifact whose fill spec was assembled elsewhere.

Fix

Declare the slot, or move the decision onto the slot it is really about. In a workspace that means writing source: fill.write(…) on the slot itself — see fill.

Before and after

Both halves are the published section, not source: this disagreement cannot be authored.

{
  "slots": { "headline": { "type": "text", "size": "medium", "cap": 60 } },
  "decisions": [
    {
      "id": "subhead",
      "kind": "text",
      "produces": ["subhead"],
      "fills": [{ "kind": "fill", "verb": "write", "brief": "One plain sentence on the property." }]
    }
  ]
}
{
  "slots": { "headline": { "type": "text", "size": "medium", "cap": 60 } },
  "decisions": [
    {
      "id": "headline",
      "kind": "text",
      "produces": ["headline"],
      "fills": [{ "kind": "fill", "verb": "write", "brief": "One plain sentence on the property." }]
    }
  ]
}

On this page