pub enum SourceTier {
Primary,
Secondary,
Fallback,
Opaque,
}Expand description
Explicit trust tier for a repo identity signal.
Not all evidence for “which repo is this?” is equal. A git remote URL is canonical truth; a directory layout is a strong hint; a hex hash is opaque noise. This enum makes the distinction machine-readable so the store can decide whether to assert identity or route to fallback.
Variants§
Primary
Git remote URL or explicit GitHub/GitLab link in message text. The strongest signal — the repo literally named itself.
Secondary
Local git repo discovered on disk (via .git/ traversal + known layout),
or a projectHash resolved through a trustworthy local mapping file.
Fallback
Known directory layout (e.g. ~/hosted/<org>/<repo>) without a .git/
directory or remote confirmation. Plausible but not proven.
Opaque
Hex hash, opaque identifier, or source that is explicitly not a
conversation (e.g. .pb protobuf, step-output). Must never assert
repo identity on its own.
Implementations§
Source§impl SourceTier
impl SourceTier
Sourcepub fn is_assertable(self) -> bool
pub fn is_assertable(self) -> bool
Whether this tier is strong enough to assert repo identity for
canonical store placement (under store/<org>/<repo>/).
Trait Implementations§
Source§impl Clone for SourceTier
impl Clone for SourceTier
Source§fn clone(&self) -> SourceTier
fn clone(&self) -> SourceTier
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more