refactor(auditlog): remove dead-code ternary in CachedCallLifecycleBridge (#23 M3 final-review fix)

This commit is contained in:
Joseph Doherty
2026-05-20 15:39:10 -04:00
parent c3d4e6b1e0
commit 73a19c6f02

View File

@@ -75,16 +75,13 @@ public sealed class CachedCallLifecycleBridge : ICachedCallLifecycleObserver
private async Task EmitAttemptedAsync(CachedCallAttemptContext context, CancellationToken ct)
{
// Per-attempt row: kind discriminates channel, status carries the
// per-attempt result.
// Per-attempt row: kind discriminates channel; status is always
// Attempted regardless of outcome (success vs. failure is captured
// by the companion HttpStatus / ErrorMessage fields, NOT by flipping
// the status — CachedResolve carries the terminal Status). Per the
// M3 brief and alog.md §4.
var kind = ChannelToAttemptKind(context.Channel);
var status = context.Outcome == CachedCallAttemptOutcome.Delivered
? AuditStatus.Attempted
: AuditStatus.Attempted;
// (Note: per the M3 brief and alog.md §4 the per-attempt row always
// carries Status=Attempted; success vs. failure is captured by the
// companion HttpStatus / ErrorMessage fields, NOT by flipping the
// status. CachedResolve carries the terminal Status.)
var status = AuditStatus.Attempted;
var packet = BuildPacket(
context,