Skip to content

Commit 8fc59c4

Browse files
committed
Clarify Ledger source profile boundary
1 parent 9d63eab commit 8fc59c4

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

policyengine_ledger/target_profiles/model.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
"""Ledger-owned target profiles and measurement contracts.
1+
"""Ledger-owned target profiles for government statistics source records.
22
33
Target profiles describe which source-backed Ledger facts a downstream build
4-
may select and how a model should measure the matching quantity.
5-
They do not contain target values. Values come from Ledger fact rows selected by
6-
the profile's selectors.
4+
may select and the semantic quantity those facts represent. They do not contain
5+
target values, runtime hooks, or solver instructions. Values come from Ledger
6+
fact rows selected by the profile's selectors.
77
"""
88

99
from __future__ import annotations
@@ -34,7 +34,7 @@
3434

3535
@dataclass(frozen=True)
3636
class TargetProfileBinding:
37-
"""Backend-specific executable binding for one measurement contract."""
37+
"""Backend-specific semantic reference for one source quantity."""
3838

3939
backend: str
4040
metric_name: str
@@ -43,7 +43,7 @@ class TargetProfileBinding:
4343

4444
@dataclass(frozen=True)
4545
class TargetProfileTarget:
46-
"""One profile target family and its model-measurement contract."""
46+
"""One profile target family and its source quantity contract."""
4747

4848
target_id: str
4949
family: str
@@ -65,7 +65,7 @@ def binding(self, backend: str) -> TargetProfileBinding:
6565

6666
@dataclass(frozen=True)
6767
class TargetProfile:
68-
"""A Ledger-owned target profile consumed by Populace or other solvers."""
68+
"""A Ledger-owned source profile referenced by downstream builders."""
6969

7070
profile_id: str
7171
country: str

policyengine_ledger/targets/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
Ledger owns source-backed facts, target-eligible source inputs, and target
44
profiles. Consumers such as Populace decide which profile rows their support
5-
universe can activate and how to execute calibration.
5+
universe can activate and how to calibrate outside Ledger.
66
"""
77

88
__all__ = [

0 commit comments

Comments
 (0)