fix: expose branch follower timing attribution gap

This commit is contained in:
Codex
2026-07-04 15:29:19 +00:00
parent 5c57dd2af2
commit 303d75c6ff
2 changed files with 123 additions and 1 deletions
+16
View File
@@ -271,6 +271,7 @@ function timingContextRowsForFollower(item: Record<string, unknown>): unknown[][
const stored = asOptionalRecord(context.storedTiming);
const liveRefresh = asOptionalRecord(context.liveRefresh);
const nativeGate = asOptionalRecord(context.nativeGateTiming);
const attribution = asOptionalRecord(context.timingAttribution);
const rows: unknown[][] = [];
if (stored !== null) {
rows.push([
@@ -309,6 +310,21 @@ function timingContextRowsForFollower(item: Record<string, unknown>): unknown[][
nativeGate.argoIncludedInStoredTotal === true ? "argo" : "no",
]);
}
if (attribution !== null) {
const detail = [
`known=${formatSeconds(numberOrNull(attribution.knownIntervalCoverageSeconds))}`,
`unknown=${formatSeconds(numberOrNull(attribution.unknownWallClockSeconds))}`,
].join(" ");
rows.push([
item.id,
"attribution",
stringOrNull(attribution.source) ?? "-",
detail,
stringOrNull(attribution.totalStartedAt) ?? "-",
stringOrNull(attribution.totalFinishedAt) ?? "-",
stringOrNull(attribution.status) ?? "-",
]);
}
return rows;
}