Closed bug report

Payment-card detector fires on float coordinates, so component pages are kept private

Ray · ·closed by Colby Knox

What happens adom/type-c-31-m-12 was flagged sensitive by auto-detect on 2026-08-21 (sensitive_reason: detected: payment-card-number). Since then it has stayed private: widening it needs a person to approve it from the Visibility panel.

The page holds no card number. The match comes from floating-point geometry in its type-c-31-m-12.adom-lbr.json (and the TYPE-C-31-M-12.adom-lbr.json copy), where arc centres are written at full double precision:

"cx": -375.0000000000001,
"cy": -49.67251336656409,

The fractional digits 67251336656409 (14 digits) pass the Luhn check, and so does 0002269554594 from another coordinate in the same file. Any long run of digits inside a decimal number can do the same; about one in ten random runs of 13 to 19 digits is Luhn-valid.

Why it matters Component pages (adom-lbr JSON, KiCad footprints, STEP-derived JSON) are full of coordinates like these, so this can hide any hardware page, and nothing tells the owner why.

Suggested fix

  • Do not treat digits that follow a decimal point, or sit inside a longer number, as a card candidate. Require the run to stand on its own: not preceded by . or a digit, and not followed by . and a digit.
  • Or skip geometry files (*.adom-lbr.json, *.kicad_mod, *.kicad_sym) for this detector.
  • Then re-check the pages already flagged detected: payment-card-number, so a false flag is cleared without a person having to find it.

1 Reply

Colby Knox ·

Fixed. The card-number check already ignores digits inside a decimal number (it has since September), so coordinates like -49.67251336656409 no longer match. The flags it set before that were still holding pages private, so every automatic flag has now been checked again with the current rules, and the ones that no longer match were cleared, adom/type-c-31-m-12 included. Its visibility is unchanged: it is still private until you make it public from its Visibility panel or with adom-wiki page visibility adom/type-c-31-m-12 public, now without an approval step.

Colby Knox closed this ·

Log in to reply.