pub enum Error {
Show 15 variants
Substrate(String),
CalUnsupported(String),
InvalidTargetRef(String),
InvalidProposal(String),
InvalidRecommendation(String),
LifecycleViolation(String),
SelfApproval(String),
ScopeDenied(String),
DestructiveGated(String),
AnalyzerFailed {
id: String,
message: String,
},
ParamInvalid(String),
CapabilityMissing(String),
LlmBackend(String),
NotFound(String),
Internal(String),
}Expand description
All errors produced by the Areev Loop engine.
Variants§
Substrate(String)
A substrate call (grain read/write, CAL execution) failed.
CalUnsupported(String)
The substrate cannot execute the given CAL (e.g. the reference substrate’s minimal subset). Distinct from a substrate fault.
InvalidTargetRef(String)
A target_ref did not parse to a known scheme.
InvalidProposal(String)
A proposal payload failed structural validation.
InvalidRecommendation(String)
A recommendation draft is missing a MUST field or is malformed.
LifecycleViolation(String)
An attempted lifecycle transition is not allowed from the current state.
SelfApproval(String)
Self-approval blocked: the approving actor authored the recommendation.
ScopeDenied(String)
The caller lacks a scope required for the operation.
DestructiveGated(String)
A destructive apply was attempted without the required gates.
AnalyzerFailed
One analyzer’s run failed; its findings are dropped, the run continues.
ParamInvalid(String)
An analyzer parameter is outside its declared ParamSpec.
CapabilityMissing(String)
A required substrate capability (forks, telemetry, embeddings) is absent.
LlmBackend(String)
The optional LLM enrichment backend (--llm-cmd) is misconfigured or
failed. Never fatal to a run — the LLM contribution is dropped.
NotFound(String)
No recommendation exists at the given hash.
Internal(String)
An unexpected internal fault (should not happen — file a bug).
Implementations§
Trait Implementations§
impl Eq for Error
Source§impl Error for Error
impl Error for Error
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()