Skip to content

okf/sources

errorOKF specification

sources is a list of mappings, each with a resource, unique ids, and well-formed credibility signals (OKF §5.1).

sources records the materials a concept was derived from (§5.1). Each entry is a mapping with a resource (a URL, a path in the bundle, or a description of a scope, such as all the queries in a project) and, when the body cites it, an id that footnotes use. Optional signals (author, usage_count, last_modified) let readers judge how far to trust a source.

This file breaks the rule:

churn.md
---
type: Metric
title: Monthly churn
description: The share of customers who cancel in a month.
sources:
- title: Billing system cancellations export
---
Churn is the customers who cancel in a month, divided by the customers at its start.

okforest validate reports:

churn.md
6:5 error A source needs `resource`: a URL, a bundle path, or a scope descriptor. okf/sources

Fixed:

churn.md
---
type: Metric
title: Monthly churn
description: The share of customers who cancel in a month.
sources:
- id: billing
resource: https://billing.acme.example/exports/cancellations
title: Billing system cancellations export
---
Churn is the customers who cancel in a month, divided by the customers at its start.