fix: detect workbench recovery authority fanout

This commit is contained in:
Codex
2026-07-08 19:32:56 +02:00
parent bd4722c9a8
commit 2b0778f21f
9 changed files with 509 additions and 13 deletions
@@ -701,7 +701,7 @@ function extractWebPerformanceRuntimeDiagnostics(network, promptTimes) {
for (const event of events) {
if (!event || typeof event !== "object") continue;
const diagnosticCode = limitText(event.diagnosticCode || event.code || "", 120);
const reason = limitText(event.reason || "", 120);
const reason = limitText(event.rootCause || event.reason || "", 120);
const eventType = limitText(event.eventType || event.type || event.kind || "", 120);
if (!diagnosticCode && !reason && !eventType) continue;
rows.push({
@@ -721,6 +721,17 @@ function extractWebPerformanceRuntimeDiagnostics(network, promptTimes) {
diagnosticCode,
reason,
module: limitText(event.module || "", 120),
recoveryAction: limitText(event.recoveryAction || "", 160),
contractVersion: limitText(event.contractVersion || "", 80),
realtimeAuthority: limitText(event.realtimeAuthority || "", 120),
sinceOutboxSeq: numberOrNull(event.sinceOutboxSeq),
syncCursorOutboxSeq: numberOrNull(event.syncCursorOutboxSeq),
entityFamilyCount: numberOrNull(event.entityFamilyCount),
entityFamilies: limitText(event.entityFamilies || "", 160),
maxEntityVersion: numberOrNull(event.maxEntityVersion),
projectionRevision: limitText(event.projectionRevision || "", 120),
terminalSeal: typeof event.terminalSeal === "boolean" ? event.terminalSeal : null,
detailProjection: typeof event.detailProjection === "boolean" ? event.detailProjection : null,
traceId: event.traceId ?? null,
sessionIdHash: event.sessionIdHash ?? null,
eventIdHash: event.eventIdHash ?? null,
@@ -823,6 +834,17 @@ function groupWebPerformanceRuntimeDiagnostics(events) {
ts: item.ts || null,
traceId: item.traceId || null,
eventCount: item.eventCount ?? null,
recoveryAction: item.recoveryAction ?? null,
sinceOutboxSeq: item.sinceOutboxSeq ?? null,
syncCursorOutboxSeq: item.syncCursorOutboxSeq ?? null,
contractVersion: item.contractVersion ?? null,
realtimeAuthority: item.realtimeAuthority ?? null,
entityFamilyCount: item.entityFamilyCount ?? null,
entityFamilies: item.entityFamilies ?? null,
maxEntityVersion: item.maxEntityVersion ?? null,
projectionRevision: item.projectionRevision ?? null,
terminalSeal: item.terminalSeal ?? null,
detailProjection: item.detailProjection ?? null,
deliveredCount: item.deliveredCount ?? null,
chunkCount: item.chunkCount ?? null,
flushDurationMs: item.flushDurationMs ?? null,