(err)
| 2705 | const state = await statusReader.getStateByKey(aggregateKey); |
| 2706 | return asKnownState(state) ?? null; |
| 2707 | } catch (err) { |
| 2708 | logger.warn("fleet.control-plane.prior-state-lookup-failed", { |
| 2709 | aggregateKey, |
| 2710 | err: err instanceof Error ? err.message : String(err), |
| 2711 | }); |
| 2712 | // CVDIAG: the prior-colour lookup threw → the comm-error overlay falls |
| 2713 | // back to no-data instead of preserving a previously-RED service. Surface |
| 2714 | // the swallowed read so a stomped colour is diagnosable. |
| 2715 | console.log( |
| 2716 | formatCvdiag({ |
| 2717 | component: "harness-orchestrator:prior-state-lookup-failed", |
| 2718 | boundary: "inbound", |
| 2719 | status: "error", |
| 2720 | error: `key=${aggregateKey} ${err instanceof Error ? err.message : String(err)}`, |
| 2721 | }), |
| 2722 | ); |
| 2723 | return null; |
| 2724 | } |
| 2725 | }; |
| 2726 | const aggregator = createResultAggregator({ |
| 2727 | statusWriter, |
no test coverage detected
searching dependent graphs…