feat(check): who-holds and host-shape, wired and honest about what they cannot see

Two new checks: the registry/mail/hosting card, and whether the address works with and
without www. Wiring forced three corrections that are the point of this commit:

- who-holds emitted a numeric checkedAt while the envelope contract is an ISO string;
  a second shape in the same results array breaks any staleness comparison.
- Linode's pattern matched 'akamai', so maybank2u.com.my - a bank behind Akamai's edge -
  was reported as sitting on Linode. Two brands, one owner, different platforms.
- A refused DNS query was printed as 'this domain does not resolve', which is a claim
  about the customer's domain rather than about our resolver. Transient codes now get
  one retry, and only NXDOMAIN is allowed to say a name does not exist.

about page now lists the real request budget (page + five HEAD hops + image + three
www-form requests + two registry), and the hub says five checks instead of three.
This commit is contained in:
hoelee committed 2026-11-10 18:45:36 +08:00
1 parent d323e52a37
commit e407c0daba
8 files changed
+2469 -22

No files matched your search

+2 -2
View File
@@ -30,7 +30,7 @@ import `node:http`/`node:https` directly, must not use the global `fetch`, and m
them is a finding against the visitor's site. Render it neutral (slate, no red, no "!"), and count
it separately in the summary ("2 verified, 1 skipped by firewall").
5. **Never claim what the data cannot support.** The exact wording rules are in `SPEC.md` §5; the
three that get broken most often:
five that get broken most often:
- DKIM: "No key found among the 13 common selectors; a custom selector cannot be found from DNS alone."
Never "DKIM is not configured".
- TLS: judge signature algorithms on the **leaf and intermediates only** — RFC 5280 exempts a
@@ -54,7 +54,7 @@ import `node:http`/`node:https` directly, must not use the global `fetch`, and m
```js
// every check module exports exactly this
export async function check(input, { lookup, now = Date.now(), cache } = {}) -> {
id: 'mail-auth' | 'tls' | 'http',
id: 'who-holds' | 'mail-auth' | 'tls' | 'http' | 'host-shape',
state: 'ok' | 'warn' | 'fail' | 'not-evaluated',
summary: string, // one plain-English line for a non-technical owner
evidence: Array<{label, value, note?}>,