Skip to content

Frozen-input runs: pass the declared case count and keep full origin identity #359

Done

Description

@lanyue-llk

Part of #336 (follow-up to #351). Size: S. All three fail closed: the run stops before any measured call, so no evidence is affected, and no pinned corpus triggers them today.

  1. Declared case count is not passed to the run. src/harness/web_fetch/benchmarks.py:183 calls load_source with its default expected_count (545). The certifier validates profile["case_count"] in preflight, so a hash-bound corpus with another count passes preflight and then fails in the run subprocess. Pass the profile's count to the adapter; keep 545 only as the unprofiled default.
  2. Origin probe drops the URL query. src/harness/web_fetch/frozen_inputs.py:259 probes origin.path without origin.query. With query-distinguished records (/search?q=first, /search?q=second) the fixture disables the path fallback, the probe gets 404 and the run aborts. Include the query and cover it with the existing query-distinguished fixture.
  3. Fixture keys drop scheme and port. frozen_inputs.py:133 keys original-origin fixtures without scheme and port, so https://example.test/page and https://example.test:8443/page collide. Keep the full origin identity in registration and in HTTP/CONNECT routing.

Code for 2 and 3 moved unchanged from webmainbench_runner.py; the OCR review on #351 raised all three.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    refactor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions