pub enum ReviewEvent {
Show 30 variants
PhaseStarted,
PassStarted {
pass: u32,
},
ContextPrepared {
pass: u32,
},
PromptPrepared {
pass: u32,
},
AgentInvoked {
pass: u32,
},
IssuesXmlExtracted {
pass: u32,
},
IssuesXmlMissing {
pass: u32,
attempt: u32,
error_detail: Option<String>,
},
IssuesXmlValidated {
pass: u32,
issues_found: bool,
clean_no_issues: bool,
issues: Vec<String>,
no_issues_found: Option<String>,
},
IssuesMarkdownWritten {
pass: u32,
},
IssueSnippetsExtracted {
pass: u32,
},
IssuesXmlArchived {
pass: u32,
},
IssuesXmlCleaned {
pass: u32,
},
FixPromptPrepared {
pass: u32,
},
FixAgentInvoked {
pass: u32,
},
FixResultXmlExtracted {
pass: u32,
},
FixResultXmlMissing {
pass: u32,
attempt: u32,
error_detail: Option<String>,
},
FixResultXmlValidated {
pass: u32,
status: FixStatus,
summary: Option<String>,
},
FixResultXmlCleaned {
pass: u32,
},
FixOutcomeApplied {
pass: u32,
},
FixResultXmlArchived {
pass: u32,
},
Completed {
pass: u32,
issues_found: bool,
},
FixAttemptStarted {
pass: u32,
},
FixAttemptCompleted {
pass: u32,
changes_made: bool,
},
PhaseCompleted {
early_exit: bool,
},
PassCompletedClean {
pass: u32,
},
OutputValidationFailed {
pass: u32,
attempt: u32,
error_detail: Option<String>,
},
FixContinuationTriggered {
pass: u32,
status: FixStatus,
summary: Option<String>,
},
FixContinuationSucceeded {
pass: u32,
total_attempts: u32,
},
FixContinuationBudgetExhausted {
pass: u32,
total_attempts: u32,
last_status: FixStatus,
},
FixOutputValidationFailed {
pass: u32,
attempt: u32,
error_detail: Option<String>,
},
}Expand description
Review phase events.
Events related to code review passes and fix attempts. The review phase runs reviewer agents to identify issues and (by default) the same reviewer agent chain to apply any required fixes.
§State Transitions
PhaseStarted: Sets phase to Review, resets pass counterPassStarted: Resets agent chain for the passCompleted(issues_found=false): Advances to next pass or CommitMessageCompleted(issues_found=true): Triggers fix attemptFixAttemptCompleted: Transitions to CommitMessagePhaseCompleted: Transitions to CommitMessage
Variants§
PhaseStarted
Review phase has started.
PassStarted
A review pass has started.
ContextPrepared
Review context prepared for a pass.
Emitted after Effect::PrepareReviewContext completes.
PromptPrepared
Review prompt prepared for a pass.
Emitted after Effect::PrepareReviewPrompt completes.
AgentInvoked
Reviewer agent was invoked for a pass.
Emitted after Effect::InvokeReviewAgent completes.
IssuesXmlExtracted
Review issues XML exists and was read successfully for the pass.
Emitted after Effect::ExtractReviewIssuesXml completes.
IssuesXmlMissing
Review issues XML missing for the pass.
Emitted after Effect::ExtractReviewIssuesXml when the XML was absent.
Fields
IssuesXmlValidated
Review issues XML validated for a pass.
This event is an observation: the XML was valid and the handler determined whether issues were found and whether this was an explicit clean-no-issues output.
Fields
IssuesMarkdownWritten
ISSUES.md was written for a pass.
IssueSnippetsExtracted
Review issue snippets were extracted for a pass.
IssuesXmlArchived
Review issues XML archived for a pass.
IssuesXmlCleaned
Review issues XML cleaned before invoking the reviewer agent.
FixPromptPrepared
Fix prompt prepared for a review pass.
FixAgentInvoked
Fix agent was invoked for a review pass.
FixResultXmlExtracted
Fix result XML exists and was read successfully for the pass.
FixResultXmlMissing
Fix result XML missing for the pass.
Fields
FixResultXmlValidated
Fix result XML validated for a pass.
FixResultXmlCleaned
Fix result XML cleaned before invoking the fix agent.
FixOutcomeApplied
Fix outcome applied for a pass.
FixResultXmlArchived
Completed
A review pass completed with results.
Fields
FixAttemptStarted
A fix attempt for issues has started.
FixAttemptCompleted
A fix attempt completed.
PhaseCompleted
Review phase completed, all passes done.
PassCompletedClean
Review pass found no issues - clean exit.
Emitted when a review pass completes with no issues found.
This is distinct from Completed { issues_found: false } in that
it explicitly signals a clean pass for UI/logging purposes.
OutputValidationFailed
Review output validation failed (XSD/XML parsing error).
Emitted when review output cannot be parsed. Reducer decides whether to retry or switch agents.
The error_detail field contains the formatted validation error that will
be shown to the agent in the XSD retry prompt. This error should be
actionable and guide the agent toward producing valid XML.
Fields
FixContinuationTriggered
Fix attempt completed with incomplete status, needs continuation.
Emitted when fix output is valid XML but indicates work is not complete (status is “issues_remain”). Triggers a continuation with new session.
Fields
FixContinuationSucceeded
Fix continuation succeeded after multiple attempts.
Emitted when a fix continuation finally reaches a complete state (all_issues_addressed or no_issues_found).
Fields
FixContinuationBudgetExhausted
Fix continuation budget exhausted.
Emitted when fix continuations have been exhausted without reaching a complete state. Policy decides whether to proceed to commit or abort.
Fields
FixOutputValidationFailed
Fix output validation failed (XSD/XML parsing error).
Emitted when fix output cannot be parsed. Reducer decides whether to retry or switch agents.
Fields
Trait Implementations§
Source§impl Clone for ReviewEvent
impl Clone for ReviewEvent
Source§fn clone(&self) -> ReviewEvent
fn clone(&self) -> ReviewEvent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ReviewEvent
impl Debug for ReviewEvent
Source§impl<'de> Deserialize<'de> for ReviewEvent
impl<'de> Deserialize<'de> for ReviewEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for ReviewEvent
impl RefUnwindSafe for ReviewEvent
impl Send for ReviewEvent
impl Sync for ReviewEvent
impl Unpin for ReviewEvent
impl UnwindSafe for ReviewEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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