pub enum QuarantineReason {
MalformedManifest(String),
UnsupportedRecordVersion {
found: u64,
max_known: u16,
},
UnknownAlbum(Uuid),
Rejected(RejectReason),
LegacyInheritedDevice {
named_device: Uuid,
signing_device: Uuid,
record_hash: Hash32,
},
Binding(BindingReject),
MalformedSidecar(String),
SidecarSignature,
Purged(Uuid),
}Expand description
Why an entry was quarantined: surfaced to the user, never silently dropped.
Each variant names the check that refused it, so a client’s quarantine surface can say what happened rather than “sync failed”.
Variants§
MalformedManifest(String)
The manifest bytes are not a decodable AssetManifest.
UnsupportedRecordVersion
The provenance record declares a version newer than this build reads. Nothing about it was checked or applied; the caller keeps the entry verbatim and retries it once the user updates (versioning invariants 3 and 5).
Fields
UnknownAlbum(Uuid)
This workspace holds no key material or authority for the album the entry names, so there is nothing to verify it against. Not a rejection of the entry — a statement that this device cannot adjudicate it.
Rejected(RejectReason)
verify_asset terminally rejected the
manifest.
LegacyInheritedDevice
verify_asset rejected the manifest as
[RejectReason::BadDeviceSig], and the
rejection is the legacy inherited-device defect (issue #475), not a forgery: an older
client’s continuation names named_device (inherited from the chain head) but was signed
by signing_device, another device of the same account, and every other step of the
chokepoint holds (see [diagnose_misattributed_signer]).
Still a quarantine: the record is never accepted, the caller’s chain head does not
advance, and every later record of this asset’s chain is refused as
[RejectReason::ForgedChain] behind it. record_hash is this record’s hash — the value
the next record’s prior_provenance_hash carries — so a client can attribute that tail
to this stall rather than to an attack. SSoT: provenance.md § Legacy Inherited-Device
Records.
Fields
named_device: UuidThe device the record claims as its author (the chain head’s, inherited).
signing_device: UuidThe device of the same account whose DSK actually signed the record.
record_hash: Hash32The refused record’s hash, where the asset’s chain stalls.
Binding(BindingReject)
The manifest verified, but its metadata blob does not bind to it.
MalformedSidecar(String)
The metadata blob opened, but its plaintext is not a decodable SidecarV1.
SidecarSignature
The sidecar decoded, but its hybrid signature does not verify under the account’s user identity key — the metadata was authored by something that does not hold this account’s IK.
Purged(Uuid)
This workspace purged the asset: its tombstone (Workspace::tombstones) refuses every
later entry for it, whatever the entry says, so a feed cannot revive a purged asset. Not a
verdict on the entry’s authenticity — nothing past the record’s decode was checked. The
purge’s own delete (Workspace::purge_record) is unaffected and can still be sent.
Trait Implementations§
Source§impl Clone for QuarantineReason
impl Clone for QuarantineReason
Source§fn clone(&self) -> QuarantineReason
fn clone(&self) -> QuarantineReason
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for QuarantineReason
impl Debug for QuarantineReason
impl Eq for QuarantineReason
Source§impl PartialEq for QuarantineReason
impl PartialEq for QuarantineReason
Source§fn eq(&self, other: &QuarantineReason) -> bool
fn eq(&self, other: &QuarantineReason) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for QuarantineReason
Auto Trait Implementations§
impl Freeze for QuarantineReason
impl RefUnwindSafe for QuarantineReason
impl Send for QuarantineReason
impl Sync for QuarantineReason
impl Unpin for QuarantineReason
impl UnsafeUnpin for QuarantineReason
impl UnwindSafe for QuarantineReason
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more