Repair /workspace/audit/crawler.py and produce /workspace/output/audit.json for
the three migration sites in /workspace/audit/sites.json. The local origins are
already running. This deliverable is the evidence-backed crawl inventory only; do
not generate link suggestions or an HTML presentation report.
Meet the schema and normalization contract in /workspace/audit/FORMAT.md. Discover
the inventory from each origin's valid sitemap metadata, including sitemap indexes
and robots.txt declarations. Do not treat a 200 HTML page as sitemap XML.
Probe response headers and source signals before requesting any content page, then
exercise every calibration path in the manifest before the bulk pass. Select the
fetch method per site:
Forge Notes models a Next.js App Router origin. Request content with RSC: 1 and
a nonempty Next-Router-State-Tree. A usable component response is over 10 KiB,
has a React marker near the start, and is text/x-component. Retry an invalid
component response once; if it remains invalid, record a failure, never a dead-end.
Horizon Journal serves full WordPress-style HTML. Count links only inside the
article body, not shared navigation, sidebars, or the footer.
Pulse Stories is a client-only shell. Fetch its three calibration pages to confirm
that server-rendered content is unavailable, then stop. Mark its standalone posts
unsupported without bulk-fetching or guessing their link state.
A qualifying outlink resolves to a different, non-asset HTTP(S) page on the same
configured origin or host alias. Ignore fragments, query strings, self-links,
mailto:/tel:, protocol-relative external hosts, host-substring lookalikes, and
chrome-only links. Exclude assets, archives, pagination, redirecting entries,
non-200 entries, and out-of-scope sitemap URLs from dead-end-rate calculations.
Do not alter the manifest, fixture service, or /workspace/state/requests.jsonl.
The crawler must remain generic for another manifest with different site names,
ports, paths, and planted cases. Runtime Internet access is unavailable.