Skip to content

docs(web-fetch): describe native mode as normalizing dynamic hints - #270

Merged
lanyue-llk merged 2 commits into
mainfrom
docs/native-hint-normalization
Nov 11, 2026
Merged

lanyue-llk merged 2 commits into
mainfrom
docs/native-hint-normalization

Conversation

@lanyue-llk

@lanyue-llk lanyue-llk commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Native mode guide fix

The Web Fetch guide described --retrieval-mode native incorrectly. It said native mode "rejects existing selector-guided retrieval hints rather than dropping them" and that selecting native mode again "preserves either form unchanged".

What the code does: native_fetch_dataset (src/harness/web_fetch/retrieval_hints.py), used by certification and schema-3 assembly, does three things:

  • gives every dynamic case the marker {"version": 3, "mode": "native"};
  • replaces any per-case hints, including registered contracts;
  • rejects hints on any case that isn't dynamic.

tests/test_retrieval_hints.py::test_native_execution_normalizes_every_dynamic_case_to_one_family_marker already asserts this. The registered-contract paragraph now says that contracts apply outside this mode.

Schema-3 dataset assembly normalizes the same way. Historical schema-1/2 assembly keeps its earlier behavior: it rejects selector hints and preserves existing markers or contracts. The old sentences described that historical path, and the guide now says so explicitly.

The independent review of #269 found the mismatch. Docs only, 1 file.

--retrieval-mode native gives every dynamic case the family marker and
rejects hints elsewhere; the guide said it rejected selector hints and
preserved existing forms.

@lexmount-ocr lexmount-ocr Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Review complete · 457e3d5

No findings in this review.

@lexmount-ocr lexmount-ocr Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Re-review complete · b4ab4aa

No findings in this incremental review.

@lanyue-llk
lanyue-llk merged commit 65d6370 into main Nov 11, 2026
8 checks passed
@lanyue-llk
lanyue-llk deleted the docs/native-hint-normalization branch November 11, 2026 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant