A.2.3:4.1.2 - Unit-of-delivery counting
Use unitOfDelivery when a receiving use needs a quantity of accepted service. It is a specification-use episteme in the promise content. The agreement determines what a unit is, which units qualify and when the criterion applies.
An ordinary rule may say: Count one accepted delivery per appointment; rework under the same appointment does not add another unit. When replay or measurement needs a structured representation, use only the fields that rule requires:
UnitOfDeliverySpec : U.Episteme ::= {
unitDesignator: U.NameToken,
countingRule: {
selectorRef: U.EpistemeRef, // selects accepted instances of the agreed unit under the applicable criterion
quantityRuleRef: U.EpistemeRef, // maps selected facts to the count or measured quantity
aggregationRef?: U.EpistemeRef,
dedupeKeyRef?: U.EpistemeRef,
countingPolicyRef?: U.EpistemeRef,
measurementMethodRef?: U.MethodRef,
measurementMethodDescriptionRef?: U.EpistemeRef,
evidenceAdmissibilityRef?: U.EpistemeRef
}
}
For a count of performed deliveries, select Work occurrences whose delivery and acceptance predicates hold. For a count of eligible appointments, sites, recipients or intervals meeting a condition, identify those units and apply the agreement’s acceptance criterion to them. A state promised at a site can already hold when the period starts. Its acceptance requires evidence of that state at the agreed time or throughout the agreed interval. If work on a site was separately promised, establish that work too. For a cross-promise total or repeated observations of one unit, state when two records represent the same counted unit. If the agreement counts a measured quantity, apply its quantity and aggregation rules.
When the count depends on a measurement reading, identify the measurement Method and the specification values needed to interpret that reading. Cite a MethodDescription only when the calculation or interpretation uses claims in that edition. Retain the evidence-admissibility conditions, evidence epistemes and evidence-use relations required for reliance on the count.
When the agreed unit is a fulfilled delivery-work occurrence and unitOfDelivery is absent, the local default counts one per obtaining PromiseContentFulfilmentRelation. For another unit, use the agreement’s stated counting rule. A separately governed charging relation can consume the resulting quantity.