feat(FN-4432): complete Step 2 — emit post-merge audit failure events
Fusion-Task-Id: FN-4432 Fusion-Task-Lineage: ac5d5aa4-1c6e-4cd1-a779-c58f62ee0357
This commit is contained in:
@@ -6957,6 +6957,26 @@ export async function aiMergeTask(
|
||||
verificationPassed,
|
||||
});
|
||||
|
||||
try {
|
||||
await audit.git({
|
||||
type: "merge:audit-failure",
|
||||
target: auditSha,
|
||||
metadata: {
|
||||
mode: postMergeAuditMode,
|
||||
strategy: selectedPostMergeAuditStrategy,
|
||||
action: decision.action,
|
||||
reason: decision.reason,
|
||||
issueCount: auditFindings.issueCount,
|
||||
duplicateSubjectCount: auditFindings.duplicateSubjects.length,
|
||||
touchedFileOverlapCount: auditFindings.touchedFileOverlaps.length,
|
||||
verificationPassed,
|
||||
auditTargetLabel: auditFindings.auditTargetLabel,
|
||||
},
|
||||
});
|
||||
} catch (err) {
|
||||
mergerLog.warn(`${taskId}: failed to record merge:audit-failure run_audit event: ${String(err)}`);
|
||||
}
|
||||
|
||||
if (decision.action === "block") {
|
||||
const auditError = new SquashAuditError(taskId, auditSha, auditFindings);
|
||||
await store.appendAgentLog(
|
||||
|
||||
Reference in New Issue
Block a user