pub enum OwnerGate {
AbortConfigMismatch,
AbortMismatch,
Repin,
Proceed,
FirstUse,
}Expand description
The PHASE 1 identity verdict: whether an authenticated account may run
against a library, computed with no network (see owner_gate).
This is the composition that gates deletion, kept pure so the full matrix
(including the lock-in cases where a configured id or the owner pin refuses
even when --allow-account-change is set) is unit-tested here rather than
inline in the CLI.
Variants§
AbortConfigMismatch
A configured account_id differs from the authenticated id: always
refuse, regardless of --allow-account-change.
AbortMismatch
The pinned owner differs and re-pinning was not permitted: refuse.
Repin
The pinned owner differs but re-pinning was permitted: pin the new owner and run additively (no deletions this invocation).
Proceed
The authenticated account owns this library: proceed (the caller then refreshes the pinned display name).
FirstUse
The library is not pinned yet: defer to the PHASE 2 adoption decision.