@@ -8642,6 +8642,7 @@ h2::before { content: ""; flex: 0 0 auto; width: 14px; height: 2px; border-radiu
86428642.exact-handoff-title { display: grid; gap: 3px; }
86438643.exact-handoff-title strong { font-size: 13px; font-weight: 650; }
86448644.exact-handoff-title span { color: var(--muted); font-size: 12px; }
8645+ .exact-handoff-badges { display: flex; flex-wrap: wrap; gap: 6px; }
86458646.health-badge {
86468647 flex: 0 0 auto;
86478648 padding: 3px 8px;
@@ -8654,8 +8655,10 @@ h2::before { content: ""; flex: 0 0 auto; width: 14px; height: 2px; border-radiu
86548655}
86558656.health-badge.healthy,
86568657.health-badge.idle { color: var(--green); border-color: color-mix(in srgb, var(--green) 40%, transparent); }
8657- .health-badge.degraded { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 45%, transparent); }
8658- .health-badge.stalled { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, transparent); }
8658+ .health-badge.degraded,
8659+ .health-badge.congested { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 45%, transparent); }
8660+ .health-badge.stalled,
8661+ .health-badge.saturated { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, transparent); }
86598662.handoff-phases {
86608663 display: grid;
86618664 grid-template-columns: repeat(3, minmax(0, 1fr));
@@ -9467,6 +9470,8 @@ function renderExactReviewHandoff(queue) {
94679470 return;
94689471 }
94699472 const status = ["idle", "healthy", "degraded", "stalled"].includes(health.status) ? health.status : "unknown";
9473+ const pressure = queue?.pressure;
9474+ const pressureStatus = ["idle", "congested", "saturated", "unknown"].includes(pressure?.status) ? pressure.status : "unknown";
94709475 const labels = {
94719476 pending: ["Pending", "waiting for admission"],
94729477 dispatching: ["Dispatching", "waiting for run claim"],
@@ -9480,8 +9485,9 @@ function renderExactReviewHandoff(queue) {
94809485 return '<div class="handoff-phase"><span>' + esc(labels[phase][0]) + '</span><strong>' + fmt.format(summary.count || 0) + '</strong><small>' + esc(labels[phase][1] + " · " + age) + '</small></div>';
94819486 }).join("");
94829487 const slots = fmt.format(health.available_slots || 0) + " of " + fmt.format(health.capacity || 0) + " exact-review slots open";
9488+ const backlog = fmt.format(queue?.pending || 0) + " total · " + fmt.format(queue?.ready_pending || 0) + " ready · " + fmt.format(queue?.admissible_pending || 0) + " admissible";
94839489 const threshold = "stalled after " + elapsed((health.stalled_after_seconds || 0) * 1000);
9484- target.innerHTML = '<div class="exact-handoff"><div class="exact-handoff-head"><div class="exact-handoff-title"><strong>Exact-review handoff</strong><span>' + esc(health.message || "Queue phase telemetry") + '</span></div><span class="health-badge ' + esc(status) + '">' + esc(status) + '</span></ div><div class="handoff-phases">' + phases + '</div><div class="handoff-foot"><span>' + esc(slots) + '</span><span>' + esc(threshold) + '</span></div></div>';
9490+ target.innerHTML = '<div class="exact-handoff"><div class="exact-handoff-head"><div class="exact-handoff-title"><strong>Exact-review handoff</strong><span>' + esc(health.message || "Queue phase telemetry") + '</span></div><div class="exact-handoff-badges">< span class="health-badge ' + esc(status) + '">' + esc(status) + '</span><span class="health-badge ' + esc(pressureStatus) + '">pressure ' + esc(pressureStatus) + '</span></ div></ div><div class="handoff-phases">' + phases + '</div><div class="handoff-foot"><span>' + esc(slots) + '</span><span>' + esc(backlog ) + '</span><span>' + esc(threshold) + '</span></div></div>';
94859491}
94869492function renderWorkers(rows) {
94879493 workerIndex = new Map(rows.map(worker => [String(worker.id), worker]));
0 commit comments