You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Found by driving an eight-system estate — 3,624 findings over 73 pages — which
is the first time anything here has run against more than one SID.
The top-risks page rendered `{instances} systems`, and `instances` counts
FINDINGS. Two ways those diverge, and only one is exotic:
* one system with several clients: a check firing in 100 and 200 is two
findings on one SID, and that is the ordinary case
* two systems sharing a SID across landscapes, which is what this estate has
So the row read "9 instances across 8 systems" and the screen said "9 systems"
above a list of eight names, with a "+5" that made 3 + 5 = 8 sit beside a stated
9. Every number was right about something and none was right about systems.
THE COUNT DID NOT EXIST TO BE DISPLAYED, which is why this took three changes
rather than a relabel. `findings_for_domains` did not select `f.system_id`, so
`_distinct_risks` had only the SID string to group on — a display label, not an
identity. It now counts systems on the system, keeps `systems` as the list of
names a reader recognises, and the page shows that count with the finding count
beside it only when the two differ. The unnamed remainder counts off the
authoritative total too, so the arithmetic reconciles.
THE EXISTING TEST ASSERTED THE BUG. Its fixture was `instances: 6` with four
SIDs, expecting "6 systems" — so this was not merely untested, it was pinned in
place, and any correct implementation would have failed the suite. Replaced, and
three cases added including the two-clients-one-system one. A green suite says a
test agrees with the code, not that either is right.
WHAT THE SAME DRIVE FOUND NOTHING WRONG WITH, worth recording because it is the
first evidence at this scale: paging serves every one of 3,624 findings exactly
once across 73 pages, with no duplicates — the paging fix was made at 8 pages
and had never been seen an order of magnitude up. Dashboard, domains and
findings totals all reconcile. The "one problem on many systems is one risk"
grouping, which the whole page rests on, ran on real data for the first time and
collapsed 50 risks correctly.
A COVERAGE GAIN FALLS OUT OF IT. Suite skips drop from 3 to 1: the scope test
that has been reporting "only one system in this database" now runs, as does the
cross-system finding-detail check. They were never broken, only unreachable.
AND ONE PRODUCT CHARACTERISTIC WORTH KNOWING, measured on the way: scaling the
row counts of an estate 20x left the finding count identical at 405 and grew the
member lists instead. Findings are driven by distinct PROBLEMS, not by estate
size — 297 of 405 are aggregates. The route to a large finding count is more
systems, not bigger files, which is why this estate is eight systems rather than
one enormous one.
5,512 pass with a database; 157 frontend tests.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
0 commit comments