ofp_policies
Fetch a sector's published policy guardrails as Rego source, listing required e-ledger fields. If none are published, returns published:false with a reason — a real answer, not an error.
Instructions
Get a sector's policy guardrails as Rego source (free), with policies[].inputs listing the record types and input fields each policy reads — e-ledger fields such as co2e_kg and direction, not canonical Open Footprint field names; a payload without them is reported unevaluable by ofp_validate. When a sector has no published guardrails this returns published:false with a reason — that is a real answer, not an error. Treat it as "no rules are published", never as "there are no constraints", and do not invent guardrails to fill the gap.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Sector id, e.g. "extractives" |