Written to: 1 requirement: 1 proved, 0 partly, 0 failing, 0 with no test recorded. 0001-kanon-checker FR-013
How one annotation of Governance ends for one instance (commons 0033-kanon FR-005, FR-022): the single reading of a model's dispositions that both the check of dropped annotations and the matrix of requirement by instance are made from, so that they cannot disagree.
Pure and total: every annotation and instance has a Cell, one case of the closed union Cell. A disposition given for an instance wins over one given for none; where neither is, or where the one found is empty (no reason) or points at no element of the model, or at an element of another instance, the cell is dropped, with the sentence that says why.
Source: commons/kanon/src/account.ts
0 of 3 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.
accountOffunctionno test imports itfunction accountOf(model: LayeredModel, el: ModelElement, annotation: string, scope: InstanceName | undefined): Cell
How the annotation of an element ends for an instance (undefined where the model has no instances): one cell.
Celltypeno test imports ittype Cell =
| { readonly outcome: "expressed"; readonly target: ElementId }
| { readonly outcome: "carried"; readonly target: ElementId }
| { readonly outcome: "unexpressed"; readonly reason: string }
| { readonly outcome: "dropped"; readonly why: string };
How an annotation ends for an instance: the three ways of 0033-kanon FR-005, and dropped where it ends in none of them (a finding).
OUTCOMESconstno test imports itconst OUTCOMES: readonly ["expressed", "carried", "unexpressed", "dropped"]
The outcomes of a cell, in one list, for a program that walks them.