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:
Meta Vens 2026-12-02 22:41:28 +01:00
commit 66cc6509ea

View file

@ -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)
}