{
  "title": "Controlled local experiment: moving a guide from JavaScript into the initial HTML",
  "experimentDateUTC": "2026-11-18",
  "testURL": "http://127.0.0.1:53325/guides/read-your-first-audit",
  "scope": "One local fixture. Both captures requested the same URL. The loopback server was available only during the experiment.",
  "parser": "src/server/features/geo/geoSiteCheck.ts: pageFacts and evaluateSiteCheck",
  "ssrMinimumTextChars": 200,
  "beforeFetchedAtUTC": "2026-11-18T11:53:38.435Z",
  "beforeStatus": 200,
  "beforeContentType": "text/html; charset=utf-8",
  "beforeResponseBody": "<!doctype html><html lang=\"en\"><head><meta charset=\"utf-8\"><title>Read your first audit</title></head><body><main id=\"guide\"></main><script>document.getElementById(\"guide\").innerHTML=\"<article><h1>How do I read my first audit?</h1><p>Start with the page a visitor should find. Download the HTML for that URL and look for the heading and the paragraph that answers the visitor’s question. Open the page in a browser, then compare the two versions. If the answer appears only after a script runs, return that same answer in the initial HTML and repeat the check.</p></article>\"</script></body></html>",
  "beforeResponseSHA256": "794085b4daa176ed4259037de5f64d9451a740cfe87d3c7bf5a2e4533f9d5e11",
  "beforeTextChars": 0,
  "beforeH1Count": 0,
  "beforeSsrStatus": "fail",
  "beforeH1Status": "warn",
  "beforeRenderedMainText": "How do I read my first audit?Start with the page a visitor should find. Download the HTML for that URL and look for the heading and the paragraph that answers the visitor’s question. Open the page in a browser, then compare the two versions. If the answer appears only after a script runs, return that same answer in the initial HTML and repeat the check.",
  "afterFetchedAtUTC": "2026-11-18T11:53:38.499Z",
  "afterStatus": 200,
  "afterContentType": "text/html; charset=utf-8",
  "afterResponseBody": "<!doctype html><html lang=\"en\"><head><meta charset=\"utf-8\"><title>Read your first audit</title></head><body><main id=\"guide\"><article><h1>How do I read my first audit?</h1><p>Start with the page a visitor should find. Download the HTML for that URL and look for the heading and the paragraph that answers the visitor’s question. Open the page in a browser, then compare the two versions. If the answer appears only after a script runs, return that same answer in the initial HTML and repeat the check.</p></article></main></body></html>",
  "afterResponseSHA256": "b2efd717b23021c8be48b2f4b0ebeb2d4579b448b1830ac99120fe99d82927c2",
  "afterTextChars": 355,
  "afterH1Count": 1,
  "afterSsrStatus": "pass",
  "afterH1Status": "pass",
  "afterRenderedMainText": "How do I read my first audit?Start with the page a visitor should find. Download the HTML for that URL and look for the heading and the paragraph that answers the visitor’s question. Open the page in a browser, then compare the two versions. If the answer appears only after a script runs, return that same answer in the initial HTML and repeat the check.",
  "interpretation": "The audit counts initial body text. Its ssr check flags fewer than 200 characters; its h1 check expects a single H1. Running the fixture script in JSDOM produced the same guide text as the server-rendered version.",
  "limitations": "One constructed page, one fetch per version. The experiment isolates two parser checks. It does not measure a customer site, a full public audit score, real bot access, indexing, recommendations, or citations. The public audit endpoint was not invoked.",
  "replay": "From the repository root with dependencies installed, run replayCommand to parse the saved HTTP bodies and verify their hashes offline. To recapture over HTTP, return beforeResponseBody at the recorded pathname on a local HTTP server, GET it once, replace the body with afterResponseBody, then GET the same URL. The local port and timestamps may differ.",
  "replayCommand": "node --import tsx -e 'const e=require(\"./web/public/research/js-rendering-audit-fixture-2026-11-18.json\"),{pageFacts,evaluateSiteCheck}=require(\"./src/server/features/geo/geoSiteCheck.ts\"),{createHash}=require(\"node:crypto\");for(const k of [\"before\",\"after\"]){const h={url:e.testURL,finalUrl:e.testURL,status:e[k+\"Status\"],error:null,html:e[k+\"ResponseBody\"],xRobotsTag:null};if(createHash(\"sha256\").update(h.html).digest(\"hex\")!==e[k+\"ResponseSHA256\"])throw Error(\"Hash mismatch\");const f=pageFacts(h,true),r=evaluateSiteCheck((h=>({origin:new URL(h.url).origin,home:h,pages:[],httpRedirectsToHttps:null,robotsText:null,sitemapUrls:[],sitemapCapped:false,llmsTxtFound:false,botProbes:[]}))(h));console.log(k,f.textChars,f.h1Count,r.items.filter(i=>[\"ssr\",\"h1\"].includes(i.id)).map(i=>i.id+\"=\"+i.status).join(\" \"));}'"
}
