Commit 82dd4c4
committed
keyviz adapter: clamp rows to design cap + writes default + doc divergence
Round-3 review polish for PR #646 (Claude bot):
- Default series swapped from Reads to Writes for KEYVIZ_SERIES_UNSPECIFIED
to match design doc §4.1, which spec's writes as the default. The
read-sampling path is intentionally Phase 2 (no reads will land in
the matrix until then) so defaulting to a permanently-zero series
was actively misleading.
- Add keyVizRowBudgetCap = 1024 + clampRowBudget. Design §4.1 caps
rows at 1024 to bound server work; pathological clients asking for
more get the cap, not an error. Regression test
TestGetKeyVizMatrixClampsRowsBudgetToCap stages 1029 rows and
verifies the response carries 1024.
- Document the design §5.5 divergence on applyKeyVizRowBudget:
truncation is a Phase-1 simplification of the spec'd
"lexicographic walk + greedy merge" so future contributors don't
treat the truncation behavior as the contract.
- Update TestGetKeyVizMatrixSeriesSelection's UNSPECIFIED case to
expect Writes instead of Reads.1 parent e4b11af commit 82dd4c4
2 files changed
Lines changed: 65 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
535 | 535 | | |
536 | 536 | | |
537 | 537 | | |
538 | | - | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
539 | 556 | | |
540 | 557 | | |
541 | 558 | | |
| |||
549 | 566 | | |
550 | 567 | | |
551 | 568 | | |
552 | | - | |
553 | | - | |
554 | | - | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
555 | 573 | | |
556 | 574 | | |
557 | | - | |
558 | | - | |
| 575 | + | |
| 576 | + | |
559 | 577 | | |
560 | 578 | | |
561 | 579 | | |
562 | 580 | | |
563 | | - | |
564 | | - | |
| 581 | + | |
| 582 | + | |
565 | 583 | | |
566 | | - | |
| 584 | + | |
567 | 585 | | |
568 | 586 | | |
569 | 587 | | |
| |||
608 | 626 | | |
609 | 627 | | |
610 | 628 | | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
611 | 637 | | |
612 | 638 | | |
613 | 639 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
217 | 246 | | |
218 | 247 | | |
219 | 248 | | |
| |||
0 commit comments