{
  "artifact": "D11-008 isolated finalists spike",
  "generated_at_utc": "2026-09-08T12:55:14Z",
  "environment": {
    "python": "3.11",
    "venv": ".tmp-d11-008-venv",
    "packages": {
      "scrapy": "2.18.0",
      "trafilatura": "2.2.0",
      "playwright": "1.62.0"
    },
    "browser": "Chromium headless installed in isolated Playwright environment"
  },
  "fixtures": [
    {
      "id": "static",
      "url": "https://example.com/"
    },
    {
      "id": "js_article",
      "url": "https://makezine.com/article/maker-news/maker-faire/from-copper-foil-to-custom-pcb-building-a-diy-touch-piano-with-sridhar-rajagopal/"
    },
    {
      "id": "old_article",
      "url": "https://hackaday.com/2026/05/30/keychain-gamecube-controller-made-functional/"
    }
  ],
  "auth_fixture": {
    "status": "NOT_TESTED_NO_LOCAL_AUTH_FIXTURE",
    "credentials_used": false,
    "challenge_bypass": false
  },
  "results": {
    "trafilatura": [
      {
        "fixture": "static",
        "url": "https://example.com/",
        "fetch_status": 200,
        "fetch_bytes": 559,
        "fetch_ms": 193,
        "output_chars": 167,
        "output_sha256": "5945db6fd8137aa377638814ca9bb1ac0a663fd90a97f11f86c3f5c09cfb40e3",
        "image_markdown_count": 0,
        "link_markdown_count": 1,
        "peak_python_bytes": 29801433,
        "elapsed_ms": 989,
        "error": null
      },
      {
        "fixture": "static",
        "url": "https://example.com/",
        "fetch_status": 200,
        "fetch_bytes": 559,
        "fetch_ms": 119,
        "output_chars": 167,
        "output_sha256": "5945db6fd8137aa377638814ca9bb1ac0a663fd90a97f11f86c3f5c09cfb40e3",
        "image_markdown_count": 0,
        "link_markdown_count": 1,
        "peak_python_bytes": 507928,
        "elapsed_ms": 125,
        "error": null
      },
      {
        "fixture": "js_article",
        "url": "https://makezine.com/article/maker-news/maker-faire/from-copper-foil-to-custom-pcb-building-a-diy-touch-piano-with-sridhar-rajagopal/",
        "fetch_status": 200,
        "fetch_bytes": 193592,
        "fetch_ms": 350,
        "output_chars": 1869,
        "output_sha256": "f64c88256bc8008bf74bd16edb6391051b5e5c72e7a19ca76509db1d12a909b2",
        "image_markdown_count": 1,
        "link_markdown_count": 6,
        "peak_python_bytes": 1611229,
        "elapsed_ms": 376,
        "error": null
      },
      {
        "fixture": "js_article",
        "url": "https://makezine.com/article/maker-news/maker-faire/from-copper-foil-to-custom-pcb-building-a-diy-touch-piano-with-sridhar-rajagopal/",
        "fetch_status": 200,
        "fetch_bytes": 193592,
        "fetch_ms": 240,
        "output_chars": 1869,
        "output_sha256": "f64c88256bc8008bf74bd16edb6391051b5e5c72e7a19ca76509db1d12a909b2",
        "image_markdown_count": 1,
        "link_markdown_count": 6,
        "peak_python_bytes": 1610407,
        "elapsed_ms": 268,
        "error": null
      },
      {
        "fixture": "old_article",
        "url": "https://hackaday.com/2026/05/30/keychain-gamecube-controller-made-functional/",
        "fetch_status": 200,
        "fetch_bytes": 91538,
        "fetch_ms": 677,
        "output_chars": 1640,
        "output_sha256": "adf43ea50325171d50ddca395774ae9a1640b9cd2613517d8164f6655aea9b80",
        "image_markdown_count": 0,
        "link_markdown_count": 0,
        "peak_python_bytes": 804771,
        "elapsed_ms": 702,
        "error": null
      },
      {
        "fixture": "old_article",
        "url": "https://hackaday.com/2026/05/30/keychain-gamecube-controller-made-functional/",
        "fetch_status": 200,
        "fetch_bytes": 91538,
        "fetch_ms": 577,
        "output_chars": 1640,
        "output_sha256": "adf43ea50325171d50ddca395774ae9a1640b9cd2613517d8164f6655aea9b80",
        "image_markdown_count": 0,
        "link_markdown_count": 0,
        "peak_python_bytes": 804462,
        "elapsed_ms": 593,
        "error": null
      }
    ],
    "scrapy": [
      {
        "fixture": "static",
        "url": "https://example.com/",
        "fetch_status": 200,
        "fetch_bytes": 559,
        "fetch_ms": 98,
        "selector_title": "Example Domain",
        "paragraph_count": 2,
        "internal_link_count": 0,
        "elapsed_ms": 98,
        "error": null
      },
      {
        "fixture": "js_article",
        "url": "https://makezine.com/article/maker-news/maker-faire/from-copper-foil-to-custom-pcb-building-a-diy-touch-piano-with-sridhar-rajagopal/",
        "fetch_status": 200,
        "fetch_bytes": 193592,
        "fetch_ms": 136,
        "selector_title": "From Copper Foil to Custom PCB: Building a DIY Touch Piano with Sridhar Rajagopal - Make:",
        "paragraph_count": 33,
        "internal_link_count": 37,
        "elapsed_ms": 143,
        "error": null
      },
      {
        "fixture": "old_article",
        "url": "https://hackaday.com/2026/05/30/keychain-gamecube-controller-made-functional/",
        "fetch_status": 200,
        "fetch_bytes": 120810,
        "fetch_ms": 977,
        "selector_title": "Keychain GameCube Controller Made Functional | Hackaday",
        "paragraph_count": 9,
        "internal_link_count": 59,
        "elapsed_ms": 982,
        "error": null
      }
    ],
    "playwright": [
      {
        "fixture": "static",
        "url": "https://example.com/",
        "status": 200,
        "rendered_bytes": 559,
        "rendered_sha256": "7b6cd9a1d881c4a69bf70b9babb5a4a90e38aa6f9933785508a38f665d4d4aab",
        "title": "Example Domain",
        "body_text_chars": 129,
        "images": 0,
        "links": 1,
        "iframes": 0,
        "elapsed_ms": 2077,
        "error": null
      },
      {
        "fixture": "static",
        "url": "https://example.com/",
        "status": 200,
        "rendered_bytes": 559,
        "rendered_sha256": "7b6cd9a1d881c4a69bf70b9babb5a4a90e38aa6f9933785508a38f665d4d4aab",
        "title": "Example Domain",
        "body_text_chars": 129,
        "images": 0,
        "links": 1,
        "iframes": 0,
        "elapsed_ms": 1383,
        "error": null
      },
      {
        "fixture": "js_article",
        "url": "https://makezine.com/article/maker-news/maker-faire/from-copper-foil-to-custom-pcb-building-a-diy-touch-piano-with-sridhar-rajagopal/",
        "status": 200,
        "rendered_bytes": 195202,
        "rendered_sha256": "7b6bbaa980d44f4d13025bb53849e7eca928c500975e137c2ac4a0b48702698f",
        "title": "From Copper Foil to Custom PCB: Building a DIY Touch Piano with Sridhar Rajagopal - Make:",
        "body_text_chars": 3595,
        "images": 23,
        "links": 119,
        "iframes": 1,
        "elapsed_ms": 1983,
        "error": null
      },
      {
        "fixture": "js_article",
        "url": "https://makezine.com/article/maker-news/maker-faire/from-copper-foil-to-custom-pcb-building-a-diy-touch-piano-with-sridhar-rajagopal/",
        "status": 200,
        "rendered_bytes": 195202,
        "rendered_sha256": "41780ce585ff1143361328a1b5e66bfe36e95a6d8ec9dcaf581f0478c8319e76",
        "title": "From Copper Foil to Custom PCB: Building a DIY Touch Piano with Sridhar Rajagopal - Make:",
        "body_text_chars": 3595,
        "images": 23,
        "links": 119,
        "iframes": 1,
        "elapsed_ms": 1851,
        "error": null
      },
      {
        "fixture": "old_article",
        "url": "https://hackaday.com/2026/05/30/keychain-gamecube-controller-made-functional/",
        "status": 200,
        "rendered_bytes": 110562,
        "rendered_sha256": "1dc52aeeeec247475a0e09d6d9946c2d16720727184932b79666aa3a8b42a228",
        "title": "Keychain GameCube Controller Made Functional | Hackaday",
        "body_text_chars": 5959,
        "images": 42,
        "links": 146,
        "iframes": 3,
        "elapsed_ms": 2596,
        "error": null
      },
      {
        "fixture": "old_article",
        "url": "https://hackaday.com/2026/05/30/keychain-gamecube-controller-made-functional/",
        "status": 200,
        "rendered_bytes": 111745,
        "rendered_sha256": "347ab3478cf504fa4f6470581444ca18ec029eb2f024da6b2ce002dfb3d2c5e0",
        "title": "Keychain GameCube Controller Made Functional | Hackaday",
        "body_text_chars": 5959,
        "images": 42,
        "links": 148,
        "iframes": 3,
        "elapsed_ms": 2896,
        "error": null
      }
    ]
  },
  "measurement_policy": {
    "same_urls": true,
    "repeated_runs": "Trafilatura and Playwright twice per fixture; Scrapy parser once per fixture.",
    "full_text_saved": false,
    "raw_binary_saved": false,
    "process_cpu_ram": "NOT_MEASURED",
    "python_peak_tracemalloc": "recorded for Trafilatura only",
    "restart": "fresh extraction/browser per repeated run; no persistent job restart implemented"
  },
  "limitations": [
    "Scrapy result uses deterministic TextResponse/Selector/LinkExtractor parsing in this bounded spike; full scheduler/depth crawl is deferred.",
    "Auth/session fixture was unavailable and was not simulated.",
    "No production dependency was changed; venv and browser cache are temporary."
  ],
  "field_mapping": {
    "common": {
      "url": "fixture.url",
      "status": "HTTP response status",
      "bytes": "response/rendered byte length",
      "sha256": "content hash",
      "elapsed_ms": "wall-clock duration"
    },
    "trafilatura": {
      "main_text": "Markdown output string",
      "links": "Markdown links when include_links=True",
      "images": "Markdown image links when include_images=True",
      "metadata": "not separately extracted in this bounded call; adapter must request metadata"
    },
    "scrapy": {
      "title": "CSS title::text",
      "paragraphs": "CSS p nodes",
      "internal_links": "LinkExtractor allow_domains result",
      "crawl_queue": "not benchmarked in this parser-only spike"
    },
    "playwright": {
      "rendered_dom": "page.content()",
      "visible_text": "body.inner_text()",
      "images": "DOM img count",
      "iframes": "DOM iframe count",
      "links": "DOM anchor count"
    }
  },
  "decision_evidence": {
    "trafilatura": "Primary article extractor candidate; stable output on static, JS-delivered HTML received after direct GET, and old article.",
    "scrapy": "Primary crawl/scheduling candidate; parser primitives work, but scheduler/depth/retry require a separate bounded job test.",
    "playwright": "Fallback for JS-rendered pages and permitted sessions; slower than direct extraction in this sample and auth/challenge remains untested.",
    "crawl4ai": "Not included in this spike because D11-006 marked it SPIKE_ONLY pending security review; do not install before G2."
  },
  "cleanup": {
    "isolated_venv_removed_after_run": false,
    "reason": "Kept until final local acceptance; safe rollback is deleting .tmp-d11-008-venv. No production environment changed."
  }
}
