Elaboration: log each refusal's sites and each sweep's report
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
2ac36ddc68
commit
66cc6509ea
1 changed files with 17 additions and 0 deletions
|
|
@ -646,6 +646,12 @@ impl ElaborationRunner {
|
|||
}
|
||||
Err(error) => return Err(snapshot_error(error)),
|
||||
};
|
||||
tracing::info!(
|
||||
command_id = ?command_id,
|
||||
refusal = refusals.len() + 1,
|
||||
sites = %render_refusal_sites(&mismatches),
|
||||
"elaboration patch refused"
|
||||
);
|
||||
// A rejected command mutates nothing, so reusing the
|
||||
// id is correct and the idempotency probe never sees
|
||||
// a conflicting commit.
|
||||
|
|
@ -830,6 +836,17 @@ impl ElaborationRunner {
|
|||
}
|
||||
}
|
||||
}
|
||||
tracing::info!(
|
||||
claimed = report.claimed,
|
||||
started = report.started,
|
||||
committed = report.committed,
|
||||
rejected = report.rejected,
|
||||
superseded = report.superseded,
|
||||
no_patch = report.no_patch,
|
||||
abandoned = report.abandoned,
|
||||
failed = report.failed.len(),
|
||||
"elaboration sweep"
|
||||
);
|
||||
quarantine.map_or(Ok(report), Err)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue