Hunters (#5846)

bun scripts/hunt.ts <origin> [--lane <name>]… runs the detector sets in src/hunt/ against one app and prints findings as JSON (exit 1 when there are any). It is GET-only by construction (probe.ts has no other method), same-origin only, and ends after one pass. --lane speed (repeatable) runs only the named lanes.

LaneModuleDetectors
Front doordoor.tspersonal pages send anonymous visitors to sign-in with next=; public pages answer 200; unknown path is 404
UI (links)links.tsevery link on the top pages: no 404/5xx, and a link landing on / must be labelled Home (#5844)
Contractcontract.tsno OpenAPI GET route answers 5xx; the status is documented or a refusal
Speedspeed.tseach page in src/perf/page_budgets/ with no :owner/:name is asked 5 times; the median of the server's own server-timing: app;dur= past the page's medianMs is a finding speed:<path> (#15258). Wall time is never judged (network time is not server time), an answer that is not 200 or carries no app;dur leaves the page unjudged, and the evidence is the numbers only

A finding's key is stable (detector:subject): one issue per key, a comment only when the evidence changes.

Not built yet: headless-browser lane (buttons, console errors, fold, overflow), flows, speed for repository pages (/:owner/:name…, the hunter has no repository to name), the schedule (post-release and 08:00Z), the KPI card on home, and the weekly retro.

Filing (#15259): bun scripts/hunt.ts <origin> --file (FORGE_URL, FORGE_TOKEN, optionally FORGE_REPO) files the findings through the forge's API (src/hunt/file.ts). The issue body carries <!-- hunt-key: … --> and <!-- hunt-evidence: … -->; a rerun with the same key comments only when the evidence fingerprint (repro, URL, status; never time, bytes or ms) differs. A key whose issue is closed is not reopened: a new issue names the closed one. At most 5 writes a run; the rest are held back, counted on stderr, and filed on a later run.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs