MATH.16:5.2 - Process both results or either result
One calculation returns a count and another a text label. A product of the field types lets the report store both and lets a reader retrieve either. Which combinations can a source actually produce? Suppose the label is “release” for a zero count of unresolved items and “hold” for a positive count. A report with a positive count and “release” fits the field types but violates the reporting rule. Under this rule the count alone determines both fields. If the second field records a supervisor’s separate decision, recover the decisions available to that supervisor before deciding which pairs are possible.
A different interface accepts either an integer count or a text label. It must display a count numerically and leave a text label as supplied. A tagged union, the coproduct of these sets, allows both handlers to determine one display function. An input tagged as a count follows the numeric handler; a text-tagged input follows the text handler.
The operations on the report select the construction. Project the two fields for retrieval, use their joint source to decide attainability, or dispatch on the tag to process either kind of input. For an execution claim, identify the evidence sufficient for the question. A receipt tied to the run can establish which fields it returned. To verify that a particular input produced that report, establish the connection to the input as well. If the calculations share state, their order can change what they return.