Skip to content

Move remaining headless engine branches into the engine registry #183

Closed as not planned

Description

@lanyue-llk

Follow-up of #180. The provider and engine registries now own providers/base.py and providers/headless.py. These engine-name branches remain because they were out of scope or bound to a hash.

Remaining

  • src/harness/web_fetch/providers/headless_worker.py still branches on moli, lightpanda, obscura and kitesurf (route selection, envelope fields, CA environment, attachment handling).
  • src/harness/web_fetch/task_outputs.py:183-286 repeats the engine set and has per-engine evidence checks.
  • src/harness/web_fetch/network_preflight.py:78 tests engine != "kitesurf"; it can read ENGINES[...].hosted.

Why the worker was left alone

headless_worker.py is hash-bound. Its SHA-256 is recorded as worker_sha256 and execution_sha256 on every call and as adapter_input_sha256 in the cohort comparison, and ContainerResourceRunner.validate rejects a resource image whose worker bytes differ from the host. Any edit therefore requires rebuilding every declared resource image, so it should ship with the next planned image rebuild, not as a standalone refactor.

Done when

  • The worker reads engine behaviour from ENGINES, and tests/golden/headless-engine-routes.jsonl stays unchanged.
  • Resource images are rebuilt in the same change, and their worker hash check passes.

Part of #97

Activity

  1. lanyue-llk commented on Nov 4, 2026

    @lanyue-llk
    ContributorAuthor

    Closing: remaining browser-name branches are not bugs, and editing headless_worker.py changes worker_sha256, forcing every resource image to be rebuilt. Tidy them when the worker next changes for a real reason.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions