Commit a121a7f
docs-review: prefer English documentation sources in the verifier (#20894)
Claims-reverify run #36's one contradicted verdict cited the Traditional
Chinese localization of the AWS docs (docs.aws.amazon.com/zh_tw/...) and
quoted its evidence in Chinese inside an otherwise-English report. The
pass3 verify lane does no client-side fetching — it uses Anthropic's
server-side web_search tool — so the search engine's locale choice
propagated straight into the evidence.
Three layers of fix:
* WEB_SEARCH_TOOL now sets user_location {approximate, US}, biasing the
server-side search away from localized doc variants.
* The pass3 source-order prompt and route header instruct the verifier
to treat English doc pages as canonical: strip locale segments
(/zh_tw/ dropped, /ja-jp/ -> /en-us/, ?hl= dropped) from cited URLs
and quote evidence in English.
* The pass2 lane's real fetch layer (extract-urls-and-fetch.py) now
normalizes known-localized URLs on docs.aws.amazon.com,
learn.microsoft.com, and cloud.google.com to their English canonical
form before fetching, and sends Accept-Language: en-US on every fetch
for hosts that content-negotiate.
make test-review-pipeline passes.
Claude-Session: https://claude.ai/code/session_01Hp4LqiP4u81uT48MS8Hea4
Co-authored-by: Claude <noreply@anthropic.com>1 parent 7a68542 commit a121a7f
2 files changed
Lines changed: 65 additions & 6 deletions
Lines changed: 49 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
60 | 71 | | |
61 | 72 | | |
62 | 73 | | |
| |||
72 | 83 | | |
73 | 84 | | |
74 | 85 | | |
| 86 | + | |
75 | 87 | | |
76 | 88 | | |
77 | 89 | | |
| |||
102 | 114 | | |
103 | 115 | | |
104 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
105 | 138 | | |
106 | 139 | | |
107 | | - | |
| 140 | + | |
108 | 141 | | |
109 | 142 | | |
110 | 143 | | |
| |||
121 | 154 | | |
122 | 155 | | |
123 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
124 | 165 | | |
125 | 166 | | |
126 | 167 | | |
| |||
218 | 259 | | |
219 | 260 | | |
220 | 261 | | |
221 | | - | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
222 | 269 | | |
223 | 270 | | |
224 | 271 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | | - | |
262 | | - | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
263 | 273 | | |
264 | 274 | | |
265 | 275 | | |
| |||
299 | 309 | | |
300 | 310 | | |
301 | 311 | | |
302 | | - | |
| 312 | + | |
303 | 313 | | |
304 | 314 | | |
305 | 315 | | |
| |||
336 | 346 | | |
337 | 347 | | |
338 | 348 | | |
339 | | - | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
340 | 352 | | |
341 | 353 | | |
342 | 354 | | |
| |||
0 commit comments