pub enum RegistryError {
InvalidName {
name: String,
reason: &'static str,
},
FamilyMismatch {
artifact: CandidateKind,
candidate: CandidateKind,
},
SurfaceMismatch {
artifact: SurfaceKey,
candidate: SurfaceKey,
},
DuplicateCommit {
candidate_id: CandidateId,
},
NotCommitted {
candidate_id: CandidateId,
},
DiffAcrossKinds {
from: CandidateKind,
to: CandidateKind,
},
UnresolvableKind {
kind: CandidateKind,
},
UndiffableContent(String),
}Expand description
The registry’s typed refusals. A refused declaration, commit, or diff
changes nothing — the crate::learn::LearnError discipline: refused
operations are contract outcomes surfaced to the caller, never silent
no-ops.
Variants§
InvalidName
An artifact name outside the naming rules (see
ArtifactRecord::new).
FamilyMismatch
A commit whose candidate is not the artifact’s family.
SurfaceMismatch
A commit whose candidate surfaces somewhere else.
DuplicateCommit
The candidate is already in this artifact’s history.
Fields
candidate_id: CandidateIdThe doubly committed candidate.
NotCommitted
A diff was requested against a candidate this artifact’s history does not contain.
Fields
candidate_id: CandidateIdThe candidate outside the history.
DiffAcrossKinds
A diff across kinds: two different contracts, not a view.
UnresolvableKind
An admission resolution was requested for a kind with no
content-digest slot in the run manifest (R0.11): prompts, tool
contracts, model settings, and middleware compositions (wave 4)
resolve; executor policies bind through the checkpoint header’s
policy_version, tool permissions through the capsule machinery,
and memory configuration pins in its own wave.
Fields
kind: CandidateKindThe kind refused.
UndiffableContent(String)
A candidate’s content could not be serialized for the structural
diff — unreachable for well-formed content, surfaced rather than
panicked (the UnaddressableContent precedent).
Trait Implementations§
Source§impl Clone for RegistryError
impl Clone for RegistryError
Source§impl Debug for RegistryError
impl Debug for RegistryError
Source§impl Display for RegistryError
impl Display for RegistryError
Source§impl Error for RegistryError
impl Error for RegistryError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()