Skip to content

CI check: typed missing-entry cause at the master and view seals (for upstream #101) - #12

Merged
ristik merged 2 commits into
upstream-pr/utb-v2from
fix/java101-typed-cause
Nov 11, 2026
Merged

ristik merged 2 commits into
upstream-pr/utb-v2from
fix/java101-typed-cause

Conversation

@ristik

@ristik ristik commented Nov 11, 2026

Copy link
Copy Markdown
Owner

Scratch PR to get ./gradlew build CI on the fix for MastaP's remaining item 3 on unicitynetwork#101 before it is pushed there. Not for merge; closed after the upstream branch is updated.

@ristik
ristik force-pushed the fix/java101-typed-cause branch from e384af7 to 06edf53 Compare November 11, 2026 06:49
…d missing-entry cause

A consolidation checks three seals; the evidence seal already carried the
typed NoTrustBaseEntryException as the cause. The other two now do too:

- ProofConsolidator.authenticateDirect: a direct-target master seal of an
  epoch the history does not hold fails UNAUTHENTICATED with the typed cause.
- PartitionViewAuthenticator: AUTHENTICATION with the typed cause; the
  consolidation's view path passes it on as the direct cause, as at the other
  two checks (the message is unchanged).

Final seal failures (bad quorum, wrong network) carry no typed cause.

Tests: an epoch-2 re-signed direct target (ProofConsolidator and
TokenProofClient) with an epoch-1 history, control with epoch 2 appended; an
epoch-2 partition view with an epoch-1 history, control with epoch 2
appended; below quorum and an alien key carry no typed cause.
@ristik
ristik force-pushed the fix/java101-typed-cause branch from 06edf53 to fb6fe57 Compare November 11, 2026 06:52
@ristik
ristik merged commit fb6fe57 into upstream-pr/utb-v2 Nov 11, 2026
1 check passed
@ristik
ristik deleted the fix/java101-typed-cause branch November 11, 2026 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant