Repository navigation
Releases
v4.5.1 - What the isolated world could not see
Fixed
-
AWS WAF detection loses the
gokuPropstriple under Camoufox beta.29+.
This answers the open question from 3.0.0 and 4.5.0. It is a real
detection regression, not aset_contenttiming artefact, and it hit
production images too. From beta.29, Camoufox runspage.evaluatein an
isolated JS world: the DOM is shared, but globals the page defines are
not. Sowindow.gokuPropsreadundefinedeven after the inline script
had run. Measured directly: the same script's DOM write was visible, and
its global was not. The detector now also parses the triple out of the
inline<script>source, which is part of the DOM and visible from any
world. The_KNOWN_BROKENtolerance from 4.5.0 is gone, and a new case
covers the shape live AWS WAF pages serve, with JSON-quoted keys and no
awswaf<script src>.Not taken: launching with
main_world_eval=True. That makes our own
evaluation visible to the page, which a stealth browser cannot afford. -
The same isolated world broke two more things. I audited every script
passed toevaluatefor page-global reads, and found two:- GeeTest went undetected on pages where the only sign was the
initGeetest*globals, and its key and nonce fallbacks (__geetest_config,
gtConfig) were always empty. The loader's<script src>and the inline
init call now count as the same signal the global gave. The config is
parsed from inline source through the same helper asgokuProps. - Image captchas never got their image.
_IMAGE_B64_JSwalked a
Uint8Array, and Firefox forbids reading TypedArray data across the
isolated-world boundary. Every call threw,_fetch_image_b64logged a
warning and returned"", and the image tier could not run. It now uses
FileReader.readAsDataURL, which hands back a plain string. I checked
that the page's cookies are still sent.
Injection, token readback, the slider canvas grab and scrolling are only
DOM reads and writes, and are unaffected. Each fix has a real-browser case
that fails against the 4.5.0 code. - GeeTest went undetected on pages where the only sign was the
Changed
- Lock refreshed against releases since 4.5.0: selectolax 0.4.13 -> 1.0.0,
mcp 2.2.0 -> 2.3.0, plus markupsafe, trimesh and ast-serialize patches. CI's
astral-sh/setup-uvaction is bumped 10.0.1 -> 10.2.0. selectolax 1.0 is a
new major version, but the Lexbor API we use is unchanged and the full suite
passes on it. Its stubs now typecss_firstas returningNoneon a miss, so
threetype: ignore[unreachable]comments in Pattern C and a cast in the CSS
extractor were removed rather than left as suppressions that suppress
nothing.
v4.5.0 - The browser stack, unblocked
Changed
-
Browser stack brought current: scrapling 0.3.11 -> 0.4.15, playwright
1.58 -> 1.62, patchright 1.62.3 -> 1.63.0, camoufox 0.5.5 -> 0.5.6, crawl4ai
0.9.3 -> 0.9.4. The holdback was browser-use 0.13's exact
anyio==4.12.1pin against scrapling 0.4.15'sanyio>=4.14. A plain
uv lock --upgradewas worse than nothing: it moved patchright backwards
to 1.58.2. Lifted with ananyio>=4.14override, the same treatment as
browser-use's other exact pins, and[hostile]now floors scrapling at
0.4.15 so a re-lock cannot slide back onto the 0.3 line. Routine patch and
minor bumps across the rest of the lock come along with it. -
CI's Camoufox browser pin moved from
152.0.4-beta.28tobeta.31.
Forced, not chosen: Playwright 1.61+ changed the viewport protocol, and
camoufox 0.5.6 will not launch a build older thanbeta.30under it. That
rules out the last build where the aws-wafgokuPropstriple was detected
(see the 3.0.0 notes).test_detection_js_against_real_markupnow tolerates
exactly those three mismatches through_KNOWN_BROKEN. Any other mismatch
still fails, and so does the triple coming back. The open question from
before still stands: is this aset_contenttiming artefact or a real
detection regression? CI now runs the same build production does.
v4.4.0 - A run its own judge failed is not a win
4.3.1 stopped the render tier handing back a bot wall as a win. This is the same shape one tier up, plus the two reads that let it stay invisible for four months.
The bug
E2 decided blocked from step errors alone. A Cloudflare Turnstile wall produces none: it serves HTTP 200, the agent navigates cleanly, looks at ten screenshots of a "Verify you are human" page, and finishes by declaring failure. errors() is empty, so:
pattern_used = e2
blocked = False <- says "not blocked"
challenge_detected = cloudflare <- says "cloudflare blocked us"
28,937 bytes, <title>Just a moment...</title>, 0 rows
while the sidecar's own log for that step read:
[Agent] Agent was blocked by a captcha.
[Agent] Judge Verdict: FAIL
...every one of the 10 screenshots shows only the Cloudflare page
[scrapper_tool.recipe.policy] policy.recorded best_tier='e2' e2_wins=1
The agent said it failed, the judge said FAIL, and the step was recorded as a win.
The damage is in that last line. _record_policy gates on blocked, so it learned best_tier=e2 — and every later request to the domain was pre-routed to a nine-minute tier that returns the wall, skipping the sub-second tiers that would have said "blocked" immediately. One false win poisons the routing permanently. Measured on amayama.com: 533.6s.
browser-use has exposed judgement(), is_validated() and is_successful() the whole time. None were read.
The fix, and the line it holds
A judge FAIL that names a wall is blocked — 422, chargeable to the vendor. A judge FAIL that names none is a no_signal failure — ours, not theirs. That distinction is the whole taxonomy and it would have been easy to lose here.
Reading a run's own words for evidence is confined to runs that have already declared themselves failed. On a successful extraction the same scan condemns any page carrying an ordinary reCAPTCHA footer — the regression that once cost a downstream integration two days — so the guard is structural, and it is now pinned from both sides.
Two reads that kept it invisible
_final_url named attributes that do not exist. It read .url / .final_url on the history item; browser-use keeps the location on .state.url and AgentHistory has never had either. So it returned None on every run and the caller fell back to the requested URL — meaning a caller checking requested_url != url to spot a redirect onto a challenge page could never see one. The read was correct when written against browser-use 0.5.9; the 0.13 port rewrote 70 lines of this file and 155 lines of its tests without touching it.
The E2 escalation-log row was hardcoded won / ok on every non-raising return, so it could contradict the policy write three lines above it, and did.
Why the suite stayed green through all of it
Every E2 test fabricates browser_use as a types.ModuleType, so the fake is the specification — and it supplied whatever the code asked for. It had already carried total_input_tokens, an attribute browser-use never had, which is how every E2 run reported 0 tokens. It carried a top-level url for the same reason.
There was a test asserting against the installed library, and its docstring says it is "the only test here that would have caught the 0.5 -> 0.13 break". But it pins the call surface — the kwargs passed to Agent — and nothing pinned the return surface, which is where all three of these bugs live. 4.4.0 adds that test. It earned its place immediately: the first version of it asserted hasattr(AgentHistoryList, "usage") and failed, because usage is a Pydantic field rather than a method.
Also in this release
- A tier that returned no content can no longer be learned as the best route.
_record_policygated onblockedalone; it now also declines an unstructured payload, as its own docstring ("remember which tier reached content") already implied. A/B/C and D are unaffected — they return only after their classifier has accepted the page. block_evidencenames the vendor when a message names it. The signature table is built for scanning documents, where a bare "cloudflare" is footer furniture rather than evidence; in prose it is the most useful word in the sentence, and the answer was degrading to the generic"challenge". Messages only — document scanning is unchanged and pinned against leakage.AgentResult.succeeded(bool | None): did the run accomplish its task, as distinct from whether the vendor stopped us.Nonemeans nothing reported either way. Schema-valid JSON from a run withsucceeded=Falsenow reportsis_structured=false— it is a well-formed guess, not a payload.- The
blocked/challenge_detectedcontract is documented in both directions.blocked=truestill guarantees a non-nullchallenge_detected. The reverse does not hold and is not a contradiction: a cheap tier walled and a later tier clearing it is a successful escalation. Key onblockedfor "did I get the page", onchallenge_detectedfor "who guards this domain".
Housekeeping
pip-audit in CI now also installs the [http] extra. full is hostile + llm-agent + turnstile-solver and does not include it, so FastAPI, uvicorn, PyYAML and prometheus-client — the packages that ship in this image and the only ones that bind a port — had never been audited.
+14 tests, each proven red against the pre-fix code. Full suite: 1,694 passing, 87.7% coverage, on Python 3.12 / 3.13 / 3.14.
v4.3.1 - The last engine's wall is still a wall
A patch for one defect and the three symptoms that followed from it. Closes #32.
The bug
The render tier tries a second browser engine when the first hits a bot wall. It classified every attempt -- and then discarded the answer whenever there was nothing left to try:
if vendor is None or is_last:
breakis_last was meant to end the search. It also ended the verdict. So whichever engine went second won by going second, and with a single candidate -- what an explicit browser= or a cap of 1 produces -- the wall check never ran at all.
Reported on amayama.com: Camoufox correctly identified the Cloudflare wall, Patchright returned the same wall, and that was handed back as a success with blocked=False and challenge_detected=None, both hard-coded on the accept path.
The three symptoms that came with it
Each keys off the payload that path emitted, so all three resolve at the gate:
_record_policygates onblocked, so it learnedbest_tier=renderfrom an interstitial. Three observations later every request on the domain was pre-routed to the tier that returns walls,challenge_vendorstayed null, and E2 was never attempted.- The per-domain clearance profile that had landed on the wall had its TTL renewed.
- The cascade stopped climbing, because as far as it knew it had already won.
Why the suite missed it
There was already a test asserting that a fully-walled render returns nothing, and it passed -- for the wrong reason. Its fixture carries nothing extractable, so no_signal rejected the page a few lines later and did the wall's job by accident. Any caller whose accept rule a wall satisfies walked straight through, and mode="fetch" accepts every page by definition. The new fixtures defeat that accident from both sides: a fetch caller, and a wall that also carries JSON-LD.
Wall evidence is now graded
The raw verdict could not be the gate, which the store.mopar.com regression showed immediately. classify_wall returns unknown for any block status on a small body, and mopar serves a genuine rendered DOM under HTTP 403 -- the exact case the render tier exists for.
- An identified vendor, a redirect onto a challenge, or a host-titled wall is an affirmative identification: it rejects whatever else the body holds.
unknownis an argument from absence, and defers to the page when the page turns out to have content.
Upgrading
No API change. One behaviour change worth knowing: a caller who was receiving interstitials marked blocked=False will now see the cascade escalate past render instead, and challenge_detected will name the vendor. That is the bug being fixed, but it moves which tier answers on a walled domain.
Full changelog: v4.3.0...v4.3.1
v4.3.0 - Two reports that were confidently wrong
4.2.0 fixed detectors that missed a wall. This fixes the layer above them stating a conclusion it had not earned.
Fixed
The live canary called a third-party outage a fingerprinting event. It failed five times in twelve weekly runs, and every one of those filed an issue advising that an impersonation profile had probably been burned. None had been: httpbin.org was overloaded, the profiles timed out or got 503s, and nothing ever looked at us to judge us. _ROTATE_STATUS_CODES treats 503 like 403, which is correct inside the ladder -- Cloudflare serves challenges that way and rotating costs one request -- and wrong in a canary, whose whole job is to answer why. Closes #16.
A truncated model reply was read as a verdict. wall_vision._parse substring-scanned whatever came back, and when a reasoning model runs out of budget _extract_message_text surfaces its partial thinking -- which restates the task, and so contains the very words the parser looks for. Measured against the local 27B on a page it calls WALL at full budget:
budget 2000 -> "WALL" correct
budget 60 -> reasoning -> WALL right by accident
budget 30 -> reasoning -> PAGE WRONG, and confident
budget 16 -> reasoning -> None
A wall read as content is precisely the failure this detector exists to prevent. A reply now counts only if it is a verdict -- at most 40 characters, naming exactly one of the three -- and anything else is no opinion, which costs a markup-only verdict and nothing more.
Found by reading affiliate-service#32, which hit the same class of bug from the other end: a token ceiling truncated every grounded response and the parser mined the wreckage instead of rejecting it.
Added
A verdict on the canary report, carrying the distinction the exit code could not: ok, degraded, blocked, unreachable. It is in the JSON, the text output and the auto-filed issue, which now leads with what the failure is not.
Changed
The ladder canary targets example.org. A verdict alone does not close #16 -- an overloaded origin returning 503 is answering, and from a body that never arrived no logic can tell that from a challenge. Only a target that does not 503 under load can. Deliberately not example.com, which the smoke job uses as its control; pointing both at one host would collapse the control into the experiment.
unreachable and degraded exit 0. A third-party outage is not our alarm, and neither is one profile being refused while another still wins -- that is the ladder working as designed, and the early warning this tool was written to give. Only blocked fails the build.
Upgrading
Additive. If you consume the canary's JSON, two things moved: there are new verdict and detail fields, and the exit code no longer fails on an unreachable target or a partial refusal.
Full changelog: v4.2.0...v4.3.0
v4.2.0 - Detect, then clear
Detection and clearing, rebuilt after research rather than patched again. Three
times a new kind of wall had been met with a new hand-written detector, and twice
that detector was then forgotten somewhere it mattered.
Fixed
- Three of seven gates were two detectors behind, and had been since 4.1.0
shipped. Proxy health was marking a burned IP healthy after walking into a wall
(so it stayed in rotation to burn the next request), the MCP surface was blind
to both walls found that month, and the captcha DOM probe could not see the
wall it exists to clear.classify_wallis now the only verdict, and a guard
test fails if any module outside_challengereaches around it. - The Turnstile capability probe named a module that does not exist. It
looked fortheyka, the upstream project's name; the distribution is
turnstile-solverand it shipsturnstile_solver, pulled in by[full]and
present all along. The matrix reported Cloudflare's captcha as settle-only on
installs that had the solver -- a report that under-claims sends an operator
shopping for a key they do not need. - A solve was believed rather than verified. The in-page recheck asks a DOM
widget probe, which cannot see any of the walls that motivated this work. A
solve now has to survive re-reading the document through the full verdict, a
check that the page changed at all, and -- where a model exists -- looking at
it. A false clear stops the cascade escalating and hands back an interstitial.
Added
-
Vision as a second opinion on rendered pages. Measured before being
trusted: markup scores 6/6 on the labelled corpus and the model scores 2
correct, 3 abstentions and 1 miss, so the model is NOT the primary detector and
never overrides markup. It is asked only where markup found no signature --
precisely where a signature must fail -- and the argument for it is
generalisation, not accuracy: it identified the reported host-titled
interstitial cold, from a prompt naming no vendor, class or phrase.BLANKis a first-class verdict. Three of six fixtures painted nothing at all,
because a JS-driven wall and an unhydrated app shell are the same blank frame;
a binary prompt was confidently wrong on all three. The render tier is now a
loop that waits for paint and asks again. -
Per-domain clearance profiles. Clearing a wall is the most expensive thing
this tool does (~70 s for a local vision solve) and the cookie it bought was
discarded when the browser closed. Kept for ~30 minutes per domain,0700
under the user's cache, deleted when stale. Identity is the gate: never reused
for a request carrying caller cookies, because that request is acting as
somebody and the worst case of a successful read is impersonating them. -
A captcha capability matrix in
/capabilitiesanddoctor, computed from
the installed cascade.recaptcha-v3is reported unsolvable rather than as a
gap -- invisible and score-based, so no key helps and listing it as a gap would
imply one would. -
A labelled detection corpus, scored every run. Precision and recall over
every fixture, with the unhydrated shell pinned as a hard negative. Three
detectors had been merged on a green suite that could not go red, because
nothing asked what a new rule did to the older pages.
Changed
SCRAPPER_TOOL_VISION_WALL_DETECT,SCRAPPER_TOOL_CLEARANCE_REUSE,
SCRAPPER_TOOL_CLEARANCE_TTL_SandSCRAPPER_TOOL_CLEARANCE_DIRare new. Every
one defaults to the accurate behaviour and can be switched off; with no model
at all, markup still scores 6/6 and nothing breaks.
v4.1.0 - Three field-reported bugs and a contract fix
Three issues filed from one 2.1.0/3.0.0 -> 4.0.0 upgrade, plus a contract bug of
our own that the same reporter caught. All four are fixes; the bump is a minor
rather than a patch because the curl-cffi floor moves and AgentResult gains a
public field.
Fixed
-
The ladder ended the walk on a profile this runtime cannot execute (#31).
IMPERSONATE_LADDERleads withchrome150, the pin wascurl-cffi>=0.7, and
chrome150 only exists from 0.16.x -- so an ordinary install could satisfy the
pin and fail on rung one. curl_cffi reports an unknown profile as a transport
error, indistinguishable at the type level from a refused connection, so the
ladder retried the identical impossible call three times and gave up without
ever trying chrome146. The visible outcome was "all profiles failed", i.e. a
vendor blocking every request from this host.Unsupported rungs are now skipped before any request is issued, and the probe
fails open: if curl_cffi ever stops exposing its profile list, every profile
is treated as supported, because refusing what we cannot verify would turn an
introspection change into a total outage. When every rung is unsupported the
result is now aConfigurationErrorsaying no request was issued and this is
not a block -- previously it claimed "All N ladder profiles returned 403/503",
naming a status nothing had returned. -
E1 reported
blocked=Trueon pages it had successfully extracted (#30).
Crawl4AI returnssuccess=Falsefor a document the anti-bot 403'd and
JavaScript then rendered, and its message names the vendor; E1 judged on that
message. Same shape as the E2 bug fixed in 3.2.0, reached by a different route.
Only a run that produced no extracted data can now be blocked -- data, not
body, because a challenge page has a body too and treating any non-empty one as
success would let a wall through as content. -
blocked=Truecould name no evidence, contradicting what/capabilities
promises about it.block_evidencenow returns what indicates a block rather
than merely whether one does,looks_like_block_messageis reimplemented on top
of it so the two cannot drift, and both E tiers carry the evidence out. At the
single payload exit a block with no named cause is recovered from the error text
or, failing that, withdrawn and logged -- safe in that direction only
because the tiers now judge on outcome rather than prose. -
A Cloudflare interstitial no detector could see (#29), returned as a clean
success -- so a consumer recorded "walked it, found nothing" for a page it never
saw, which in a catalog is indistinguishable from an empty category. It beat
both heuristics in opposite directions: no challenge vocabulary at all, and at
~29 KB far too large for every small-body gate.looks_like_host_titled_wall
catches a document whose only heading is its own hostname and which says nothing
else, measured on visible text rather than bytes so padding with inline
script cannot hide it. Structured data vetoes it outright. -
/capabilitiesdescribedsolve_cloudflareas a plain boolean defaulting
tofalse, while the field isbool | Literal["auto"]defaulting to"auto"--
wrong in both halves, in the endpoint whose purpose is to state the contract.
Three tests now check that block against the model rather than against a second
hand-written list.
Added
AgentResult.challenge_vendor-- what made a tier sayblocked, so the
claim is checkable rather than merely asserted.challenge_detected: "host_titled_wall", the new evidence value.
Changed
curl-cffifloor raised to>=0.16.2, set by the ladder rather than by the
API surface we call. A test asserts every shipped rung is executable by the
installed curl_cffi, so promoting a newer profile without moving the floor fails
in CI rather than in a consumer's logs.
v4.0.0 - Evidence before verdict
A second field report, from the same harvest. Its headline is the exact inverse
of the last one: 3.2.0 fixed blocked=True on pages full of data, and this fixes
blocked=False on a captcha. They are one defect seen from opposite sides -- a
verdict asserted without evidence, in a field that conflates "the vendor refused
us" with "we did not manage it".
Added
scrapper-tool diagnose <url>. Fetches one page with every impersonation
profile and a couple of URL variants, then prints a verdict:wrong_url,
reachable,challengedorunreachable. Built because two of the five
reported symptoms were wrong paths read as vendor hostility, and a 404 and a
wall are indistinguishable once you have decided a vendor is hostile. Obeys
the URL guard; exit 0 when reachable, 1 otherwise.requested_urlandegresson every result. A vendor served the host
74 KB of clean HTML and handed the container a captcha, in the same minute from
the same machine; nothing in the result named the difference, so one symptom
read first as "the vendor is hostile" and then as "the sidecar is broken".
Proxy credentials are redacted.PatternFailed(HTTP 502) in the error taxonomy, carryingpattern,
reasonandvendor_hostile./capabilitiesnow publishes the error contract and the result fields, so
a client can learn the 422/502 split without reading prose.
Fixed
-
A captcha could be returned as a successful fetch.
mode="fetch"followed
a redirect onto/captcha.html, returned 4,419 bytes of challenge, and
reportedblocked=Falsewithchallenge_detected=None. The classifier only
recognises a wall by vendor signature or by a titleless script-only shell, and
an ordinary-looking captcha page is neither -- verified: a 4,223-byte page with
a title and visible text returnsis_interstitial -> Noneand
has_real_content -> True.The evidence it missed was in the URL.
landed_on_challengecompares the
requested path against the final one, and is deliberately narrow: a differing
URL is never on its own enough, because scheme upgrades, trailing slashes,
canonical hosts and locale prefixes are all ordinary. It fires on a named
challenge path, or on a changed path with a small body that asks in words for
a human.This also silently disabled 3.2.0's captcha solver, which is gated on
is_interstitial(...) is not None-- a wall the classifier could not see never
reached the solver that could have cleared it. Both now work. -
Our failures no longer speak the vendor's language. A Pattern D browser
timeout, a missing extra and a classifier rejection were all raised as
AgentBlockedErrorand arrived as422 blocked, which says the vendor beat
us. They now raisePatternFailed->502, andblockedis reserved for
evidence. Only one of those two belongs in a per-vendor failure budget. -
A/B/C's bytes are no longer thrown away. A 200 that carried no extractable
shape is a parse outcome, not a fetch failure -- a catalog index legitimately
has no product offer in it. The body was already captured for the recipe
learner;intermediate_raw_textsimply never fell back to it, so the caller
was told nothing about a page we were holding. -
A test that passed or failed on machine uptime. The vision-TTL test from
3.2.0 patchedtime.monotonicto a fixed10_000.0; real monotonic is uptime,
so once the host had been up longer than that the elapsed delta went negative
and the cache never expired. It now drives the clock instead of sampling it.
Changed
blockedis evidence-only, and that is consumer-visible. A caller keying
on422to mean "give up on this vendor" will now see502for failures that
were always ours. That is the point of the change, and it is the reason this
is a major bump rather than a minor one.
v3.2.0 - Automatic escalation
Driven by a heavy consumer's field report after a ~180k-row harvest across five
vendors. The theme of that report was that the ladder already knows more than
the caller does, and should act on it instead of asking — a caller who has to
know what E2 is, or that Camoufox is Firefox, is a caller doing the tool's job.
Added
- Backend capabilities, and a second escalation axis. Backends now declare
engineandcdp, and the render tier retries a walled page on a different
engine before the cascade pays for an LLM tier. Ordering is complementarity,
not strength: measured on one target Camoufox got a clean HTTP 200 where
Patchright earned a hard WAF block, and on another the reverse held. Capped by
SCRAPPER_TOOL_RENDER_MAX_BACKENDS(default 2), and the winning backend is
remembered per domain. - The captcha stack now reaches the render tier. Settle, checkbox, slider,
local vision and paid-token solving already existed but were reachable only
from E1 and E2 — the two priciest tiers — despite the render tier holding the
live Playwright page the solvers need. Gated on an already-detected challenge,
so a page with no wall on it pays nothing. GET /skilland theskill://scrapper-toolMCP resource. The tool's own
operating manual is now served over the wire. It previously reached only
agents with the repository checked out, which is why one integration
reverse-engineered the request flags from/openapi.jsonby hand and learned
the valid browser backends from the text of an error message.DomainPolicy.best_backend,e2_attemptsande2_wins, so E2's cost is
decided by what actually happened on a domain rather than by the caller.GET /capabilities. The valid browser backend names with their engine and
CDP support, which cascade tiers are usable in this configuration, and the
request flags that gate them. A client can now warn at startup that a tier is
unreachable, rather than discovering it on the first hostile page. Those
backend names appeared in no documentation: they were previously discoverable
only from an enum embedded in an error message.
Changed
interactiveis tri-state and defaults to auto. E2 now runs once the
cheaper tiers are exhausted, unless the domain has failed it twice without ever
winning.trueforces it;falseis the old default and still opts out. The
old default made the caller classify the page, and because a gated E2 logged as
an ordinaryskippedstep, a client that never forwarded the flag looked
exactly like one whose pages did not need E2.- A declined tier logs
reason: "not_permitted", distinct from the failure
reasons. "We declined to run this" and "the vendor beat us" were previously
indistinguishable in the escalation log, and only one is actionable. - E2 selects a CDP-capable backend instead of refusing.
interactiveplus
SCRAPPER_TOOL_AGENT_BROWSER=camoufox— two individually correct settings —
used to be a hard 503, because browser-use attaches over CDP and Firefox
dropped CDP. E2 now filters backends by capability, so the impossible
combination cannot be constructed. D and E1 keep Camoufox, which is where its
measured bypass advantage applies, and the substitution is reported in the
escalation log. An explicit per-requestbrowserstill wins.
Fixed
-
E2 reported
blocked=Trueon pages that contained the data.blocked
substring-scannedextracted_contentandresult_text— the text the
agent had just successfully extracted — for "blocked" / "captcha" /
"cloudflare" / "access denied". A standard reCAPTCHA footer notice matches on
captcha(it is a substring of "reCAPTCHA"), and a "Performance & security
by Cloudflare" footer matches oncloudflare; both are ordinary furniture on
perfectly good pages. So a successful extraction carrying correct data came
back flagged as blocked — a consumer honouring the flag threw good data away.
It is now judged onAgentHistoryList.errors(), via the same
looks_like_block_messagedetector E1 already used.Compounding it, the other half of the old expression,
getattr(history, "blocked", False), read an attribute browser-use has never
had. It was permanentlyFalse, so the content scan was the only signal,
whileerrors()sat unused the whole time. -
tokens_usedwas always 0 for E2. It read
getattr(history, "total_input_tokens", 0), naming an attribute that does
not exist on browser-use 0.13'sAgentHistoryList, so the default fired on
every run regardless of model. That was read downstream as evidence that local
inference is unmetered. Now read fromhistory.usage.total_tokens. The test
fixture carried the same phantom field, which is how this stayed green. -
The captcha vision tier could be silently off.
get_vision_backend
trusted the model server's catalogue, and LM Studio advertises models it
cannot load: verified live, two of three catalogued VLMs returned HTTP 400
Failed to load modelon every request. The resolver now reads each model's
state, prefers loaded ones, and verifies with a real image probe before
returning a backend, falling back to the next candidate and logging the
substitution. ANone— meaning no model could see — is now logged loudly
rather than silently skipping the tier. -
record_e2_attemptnever records a losing tier as the best one. Otherwise
a single failed E2 would have made the next request on that domain skip every
cheaper tier on the strength of a tier that failed. -
skills/is now copied into the Docker image. It was in the sdist but not
the image, so every containerised deployment served a sidecar that could not
explain itself.
v3.1.1 - CI and docs follow-up
CI and documentation only. No functional source change: diffing src/,
pyproject.toml and uv.lock against the v3.1.0 tag yields exactly three
lines, all of them the version string itself. No dependency moved and no
behaviour changed, so the installed package is equivalent to 3.1.0.
Cut as a patch release rather than by moving the v3.1.0 tag. That tag is
published; moving it would also have re-fired the release workflows, and PyPI
refuses a duplicate version, so the run would have failed for nothing.
Removed
- The dead Codecov upload. 3.1.0 reported it as fixed; the first CI run
after that release disproved it. See the 3.1.0 entry below for the full
history — three faults stacked, the last visible only in CI. Nothing in the
repo consumed it (no badge, nocodecov.yml), so it was removed rather than
repaired.--cov-fail-under=85is and always was the actual gate, unchanged
and still enforced in CI.
Fixed
docs/PROGRESS.mdstill described 3.1 as "landed onmainand unreleased".- The 3.1.0 CHANGELOG entry claimed coverage was uploading again. Corrected in
place below rather than silently dropped, since that text shipped to PyPI.
Full changelog: CHANGELOG.md
Install: uv pip install "scrapper-tool[full,agent]==3.1.1"
Image: ghcr.io/valerok/scrapper-tool:3.1.1