concrete/contract/poi-curation
A points-of-interest curation decision produces exactly one slot, a list of points of interest.
A points-of-interest curation decision produces exactly one slot, a list of points of interest.
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 find is the origination a list of points of interest gets: the model plans one
search from the list's fill.find brief and reads, and chooses among what it
returns, and the platform's place lookup supplies each row. A list is
found exactly when its item is a poi, and a find is a per-slot origination by
construction: one lookup, one list. So a find decision producing a list of places
and another slot besides is asking which of them the lookup answers.
Neither type-caught nor reachable from an authored section. A section declares each
fill on the slot itself, and the build produces the one slot its fill.find was
declared on, so a find cannot fan out. The rule holds a published spec assembled somewhere
other than a section's declaration; publishing re-runs the contract venue over the
built artifact, and this is the rule's half of that guard.
Fix
Declare the find on the list whose item is a poi
— or on a standalone poi, which takes exactly one place — and nowhere else. One
slot, one fill, whose verb is fill.find.
Before and after
The failing half is the published section, not source: a fan-out no section can author.
{
"id": "neighbourhood",
"kind": "list",
"produces": ["neighbourhood", "transport"],
"fills": [{ "kind": "fill", "verb": "find", "brief": "Restaurants and cafes within a short walk." }]
}import { fact, fill, list, poi } from "@homepages/concrete";
list({
label: "Neighbourhood",
max: 6,
source: fill.find({
reads: [fact.property.uploads],
brief: "Restaurants and cafes within a short walk.",
}),
item: poi(),
});concrete/contract/fill-verb
A fill names its verb and brief, a pick names its candidates with of and no other verb takes one, and a filled list declares max.
concrete/contract/list-fill
A list fill declares what its source needs: a brief wherever the model yields the items, a max wherever it writes rather than picks them, and nothing of the model's on a list bound to a table.
