Repository navigation
refactor: one track registry, generic stage make targets, instance hooks and Yours docs - #368
Merged
Merged
Conversation
…generic make stage targets
…provider capabilities and hooks
…ojection controls instead of naming instances
…mand in its guide
This was referenced Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Finish the cleanup leftovers of the refactor toward
docs/spec.md: one track registry, generic Make stage targets, instance names out of shared Web Fetch / dataset-publication / Web Extract code, and documentation for the current command surface and moved owners. The hosting service is called Yours in reader-facing text.flowchart LR subgraph Root["harness/cli.py"] T["TRACKS registry<br/>command, name, guide, extra, status"] end T --> D["webstone <track> <stage>"] T --> W["webstone tracks (agent_workflows)"] M["make <stage> TRACK=..."] --> D subgraph Adapters["Declared by adapters / data"] P["Web Fetch provider capability flags<br/>local_network, fixed_native_build_comparison,<br/>http_402_is_account_capacity, ignores_minimum_text_fragments"] H["Provider hooks<br/>normalize_native_http_body, launches_local_browser"] R["providers/native_task_routes.py<br/>engine route contracts"] C["Card metadata upstream_source<br/>benchmarks/headless_source.py"] E["ExtractMethod.projection_controls"] end S["Shared modules<br/>network_preflight, assembly, refresh_assembly,<br/>comparison_audit, native_routes, task_outputs,<br/>benchmarks/publication, web_extract scoring"] -- read flags and hooks --> AdaptersWhat moved or was removed
harness/agent_workflows.pyno longer keeps its ownTRACKS;webstone tracksreadsharness.cli.TRACKS(which gainedname,guide,extra,experimental). New genericmake run|score|check|package|publish|export TRACK=<track> ARGS="..."; the wrappers that only called one stage verb are removed and the release-check targets call the stages directly.task_outputs.require_native_task_routes(per-engine route/extractor contracts) moved to the adapter package asproviders/native_task_routes.py;task_outputskeeps only the shared projections.network_preflight/local_execution_contract: the guarded type set becomes thelocal_networkcapability (Moli, CowAgent),Provider.launches_local_browser(config)(headless engines that are not hosted) andRETIRED_LOCAL_NETWORK_TYPESin the provider registry for historical evidence.comparison_audit:fixed_native_build_comparisonflag instead ofmoli_webfetch.assembly/refresh_assembly:ignores_minimum_text_fragmentsandhttp_402_is_account_capacityflags read from the record'sprovider_typeinstead of matching the configured namefirecrawl.native_routes.normalized_http_parameters(provider, case, arguments): vendor request shapes (Claudemessages, Lexmountextract, Browser Use session token) arenormalize_native_http_bodyoverrides on their adapters.failure_diagnosis.pyis left as is: its vendor strings classify observed error text for any method, and the file is part of the offline-rescore source hash.benchmarks/publication.pyhas noheadless-browserbranch. Card metadata declares"upstream_source": "harness.benchmarks.headless_source:definitions", the same pattern asdefinitions_check; the loader moved tobenchmarks/headless_source.py. The card header keys are unchanged.web_extract/pipeline.pyprojection controls are declared per method (ExtractMethod.projection_controls, kindsproduct/record) andcheck_projection_controls(kind)runs them;check_record_projection_controlsis removed.harness.reporting.visual -> chromiumstays:reporting/visual.pyis hashed intochecker_sources, and visual receipts are verified against the current source, so editing it would invalidate existing receipts. The literal is a binary name forshutil.which, not an engine lookup.docs/README.zh-CN.mdgain a short Commands section (webstone <track> <stage>,scorereplacingrescore,webstone webfetch compose,make <stage> TRACK=) and linkdocs/spec.md;rescorereferences in docs becomescore;docs/architecture.mdandscripts/README.mdowner tables list the moved modules;docs/provider-contract.mdlists the new hooks. "Artifact Site" becomes "Yours" in docs, READMEs, skills, CLI help,.env.exampleand the Browser Use accounts page. Identifiers, env vars, config paths, URLs,research/report-changes.jsonhistory and the WCXB dataset card body are unchanged.Breaking changes
webstone tracks: the Web Fetch entry'sidis nowwebfetch(wasweb-fetch), matchingwebstone webfetchand--track webfetch.trajectory-replay-report-check,trajectory-replay-visual-check,trajectory-replay-package,trajectory-replay-publish,browser-use-visual-check. Use the newmake run|score|check|package|publish|export TRACK=<track> ARGS="..."(one target per verb), or the unchanged*-release-checktargets.normalized_http_parameterstakes the provider first;require_native_task_routesis imported fromharness.web_fetch.providers.native_task_routes;check_record_projection_controls()is replaced bycheck_projection_controls("record").Allowlists
harness.reporting.visual -> chromium, hash-bound, see above). Layering: unchanged (empty).Baselines
tests/baselines/browser-use*.json: only the accounts page changes ("Artifact Site" → "Yours").tests/fixtures/native-route-baseline.json: only the answer-selection policy digests change, because the policy source includes the edited adapter modules (same as Move Web Fetch provider projection and routing into registered adapters #349). With the policy digest masked, every route cell and normalized request parameter is identical before and after.lexbench-webfetch versionscoring-source hash unchanged (0fe89317…); no file undersrc/lexbench_webfetch/changed.Verification
uv run --frozen --all-extras python -m pytest tests -q -n 8 --dist worksteal: 22044 passed, 78 skipped, 0 failed (after rebasing on Report template contract with Web Search as the first track template #366).make lint-check: passed.make docs-check: passed.uv run --frozen python tests/architecture/scan.py: no allowlist growth;tests/test_architecture_*: passed.tests/baselines: passed after the refresh described above.uv run --frozen lexbench-webfetch version: scoring-source hash0fe8931734e1ba7282e1e9c8303eea958d20fdcee83d84e87cdc7e08cd08169e, the same as before.make -n publish TRACK=trajectory-replay ARGS="--profile p"→python -m harness.cli "trajectory-replay" publish --profile p.Closes #316
Part of #319
Part of #338
Part of #318