Commit 969265c
authored
fix(showcase): harden dashboard chip semantics + browser-pool capacity logging (CopilotKit#5118)
## Summary
Follow-up hardening for the showcase Coverage dashboard and harness
browser-pool (deferred items from CopilotKit#5112):
- **Gate the green chip on a contiguous depth ladder.** A green
`d6:<slug>` aggregate over a red/absent/no-data D5 no longer renders
green; a never-run D5 reads gray (pending) instead of red. Decision
table over `(d1d4Gate, d5.exists, d5.status, d6.exists, d6.status)`
preserves all prior intended outcomes.
- **Staleness-gate D1/D2/D4 with per-driver windows.** D4
(`chat`/`tools`, 15-min cadence) uses a 1h window; D1/D2
(`health`/`agent`, 5-min cadence) use 45m — applied in both `resolveD4`
and the deprecated `deriveDepth`, so a frozen-green liveness/round-trip
row no longer credits depth (mirrors the D3/D5/D6 staleness already
shipped).
- **`resolveD5` strict on missing mapped sub-rows.** A missing pill in a
multi-key family (e.g. `beautiful-chat`) is unverified, not passing →
returns `status: null` (caps depth, reads gray), matching `isD5Green`.
- **Compute `CellModel.isRegression`** (`ceilingDepth > 0 &&
achievedDepth < ceilingDepth`) and drive the Coverage regressions filter
from the model field.
- **Harness:** widen `PoolLogger` to `warn`/`error` and route
capacity-loss events (exhausted relaunch, recovery failure, empty-pool
reinit) to the proper severity so they reach the warn/error pipeline;
add a `reinit()` concurrent-entry guard.
## Test plan
- [ ] `showcase/shell-dashboard`: `npm test` (661 pass) incl. new
chip-contiguity, per-driver-staleness, strict-D5, and isRegression cases
(red-green).
- [ ] `showcase/harness`: `npx nx test showcase-harness` (1657 pass)
incl. logger-severity-routing and reinit-guard tests.
- [ ] Both packages: typecheck + build green.9 files changed
Lines changed: 790 additions & 101 deletions
File tree
- showcase
- harness/src/probes/helpers
- shell-dashboard/src
- components
- __tests__
- lib
- __tests__
Lines changed: 164 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
131 | 166 | | |
132 | 167 | | |
133 | 168 | | |
| |||
700 | 735 | | |
701 | 736 | | |
702 | 737 | | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
703 | 867 | | |
704 | 868 | | |
705 | 869 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
| 54 | + | |
| 55 | + | |
50 | 56 | | |
51 | 57 | | |
52 | 58 | | |
| |||
73 | 79 | | |
74 | 80 | | |
75 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
76 | 91 | | |
77 | 92 | | |
78 | 93 | | |
| |||
156 | 171 | | |
157 | 172 | | |
158 | 173 | | |
159 | | - | |
| 174 | + | |
160 | 175 | | |
161 | 176 | | |
162 | 177 | | |
| |||
178 | 193 | | |
179 | 194 | | |
180 | 195 | | |
181 | | - | |
| 196 | + | |
182 | 197 | | |
183 | 198 | | |
184 | 199 | | |
| |||
200 | 215 | | |
201 | 216 | | |
202 | 217 | | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
207 | 232 | | |
208 | 233 | | |
209 | 234 | | |
| |||
229 | 254 | | |
230 | 255 | | |
231 | 256 | | |
232 | | - | |
233 | | - | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
234 | 261 | | |
235 | 262 | | |
236 | 263 | | |
237 | 264 | | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
238 | 276 | | |
239 | 277 | | |
240 | 278 | | |
| |||
309 | 347 | | |
310 | 348 | | |
311 | 349 | | |
312 | | - | |
313 | | - | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
314 | 354 | | |
315 | 355 | | |
316 | 356 | | |
| |||
333 | 373 | | |
334 | 374 | | |
335 | 375 | | |
336 | | - | |
| 376 | + | |
337 | 377 | | |
338 | | - | |
| 378 | + | |
339 | 379 | | |
340 | 380 | | |
341 | 381 | | |
342 | 382 | | |
343 | 383 | | |
344 | 384 | | |
345 | 385 | | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
346 | 391 | | |
347 | 392 | | |
348 | 393 | | |
| |||
601 | 646 | | |
602 | 647 | | |
603 | 648 | | |
604 | | - | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
605 | 653 | | |
606 | 654 | | |
607 | 655 | | |
| |||
623 | 671 | | |
624 | 672 | | |
625 | 673 | | |
626 | | - | |
| 674 | + | |
627 | 675 | | |
628 | 676 | | |
629 | 677 | | |
| |||
0 commit comments