Section 18.2.6

Figure 6a: categorical verdict timeline

Definition

A categorical verdict timeline is a figure that marks, in the order they happened, the updates applied to a policy and the verdicts observed afterwards, with each verdict drawn as one of a few named categories, such as allow, deny or error. Categorical means that the values are names: their vertical positions are places for labels, not amounts. The horizontal axis is usually ordinal, meaning that it gives each event’s position in the sequence, first, second, third, so equal spacing does not mean equal elapsed time.

Where it fits

Main entry: Event epoch and sequence identity (§15.36).

The entry on event epoch and sequence identity explains how a record names one event: by its producer, by an epoch that names one run of the producer’s counter, such as a count of boots, and by a sequence number within that run. A sequence number alone repeats after a restart. Attributing a verdict to an update means claiming that the verdict was computed with the policy version that the update installed. Closeness on the timeline does not establish that claim. Matching identities and a known order do.

In an invented log, every record of an activation and every record of a verdict carries a policy version, a boot count, and a sequence number that starts again at 1 in each boot. In boot 4, version 9 is activated at sequence number 120, and the device restarts before any request arrives. In boot 5, version 9 is sent again and activated at sequence number 6, and a deny verdict is recorded at sequence number 7. A join is the analysis step that pairs each verdict with an update record. A join that matches on version 9 alone can pair the deny with the activation in boot 4, and so credit that activation with a verdict it never produced. A join on boot count and version pairs the deny with the activation at boot 5, sequence number 6: same boot, earlier sequence number, and no other activation in between.

All data in this entry’s examples are invented.

Limits and common mistakes

Category codes are names, not amounts. If allow, deny and error are stored as 0, 1 and 2, error is not twice deny, and an average of codes means nothing. Lines drawn between points in different categories show no growth or trend; they only connect events in order.

A verdict that matches the expected category is evidence about the policy only if the expected category was decided independently of the observed response, for example from the policy text and the request before the run. Otherwise the figure checks the device’s answer against itself. The test oracle §10.5 entry treats this requirement.

Missing, duplicated and reordered records need explicit handling. Within one epoch, a gap in the sequence numbers shows a lost record, a repeated number shows a duplicate, and sorting by sequence number restores the order in which the device produced the records.

A verdict timestamp close to an activation does not show which policy version the evaluation read. Only a record of the version that the evaluation actually used shows that.

Questions answered

What makes the next verdict attributable to the preceding update?

A verdict is attributable to the preceding update when the records show that the verdict was computed with the policy version that this update activated; nearness on the timeline does not show it. Three conditions together establish attribution.

  1. Identity join. The verdict record and the update record carry the same identity of the active version, made unique across restarts, for example a boot count together with the version number. A version number alone repeats when the same update is applied again after a restart, and a sequence number alone repeats after every restart. The strongest evidence is a verdict record that names the activation its evaluation actually read.

  2. Order. Within the same boot, the verdict was produced after the activation took effect, meaning after the running code switched to the new version, not merely after the update arrived or was stored.

  3. No intervening change. No other activation, restart or fallback to an older version happened between the activation and the verdict.

Attribution says which version produced the verdict, not that the verdict is right. Judging whether it is right needs an expected verdict derived from the policy and the request independently of the observed response.

Related entries: Test oracle (§10.5), Data lineage (§13.18), Staging versus commit versus activation (§8.22).