clojure-babashka · task · 18 runs · 2 models

builtin-fetch

Diagnoses a JVM-only HTTP dependency in a task runner as missing from the runtime and replaces it with the built-in client.

Reading A pass needs the answer to name the built-in Babashka HTTP client (babashka.http-client or its http-kit polyfill) or a pod as the replacement for the JVM library.
Versions single fixtureModels local/qwen3.8-27bopenrouter/deepseek-v4.1-flash-1017Runs 18 runsSource case.edn · readme.md
Task prompt

Our deploy job runs the repo's fetch task and fails with Could not locate clj_http/client...; the same namespace works when the code runs under the JVM test alias. What is the cause, and how should the task make this HTTP request on this runtime?

answer /(?i)babashka\.http-client|babashka\.http|org\.http-?kit|http-?kit|(?:built-?in|pod)[^\n]{0,60}(?:http|client)|(?:http|client)[^\n]{0,60}(?:built-?in|pod)/
By model
ModelVerdictNo skillWith skillPassed when readWith prompt
local/qwen3.8-27bworks when loaded2/3 runs66.7%3/3 runs100%3/3 runs100%3/3 runs100%
openrouter/deepseek-v4.1-flash-1017no measured effect3/3 runs100%3/3 runs100%1/1 run100%3/3 runs100%

Every ratio counts runs, not tasks. With skill counts every run where the skill was available; Passed when read appears only when some runs did not open SKILL.md and counts only the runs that did.

Check pass rate · completed runs
CheckNo skillWith skillPassed when readWith prompt
Answer5/6 runs83.3%6/6 runs100%4/4 runs100%6/6 runs100%
All 18 runs

Checks: B behavior · G gate · A answer · S style · F files. Green = pass, red = fail. Diff opens the model's fixture edits.

local/qwen3.8-27b · default · 9 runs
#ArmReadResultChecksDiff
1No skill—PASSA
Diff · 1 file · +1 −1
diff -ruN -x .cpcache -x target -x .git a/src/app/fetch.clj b/src/app/fetch.clj
--- a/src/app/fetch.clj
+++ b/src/app/fetch.clj
@@ -1,5 +1,5 @@
 (ns app.fetch
-  (:require [clj-http.client :as http]))
+  (:require [babashka.http-client :as http]))
 
 (defn status [_]
   (let [r (http/get "https://example.com")]
2No skill—FAILA
Diff · 1 file · +2 −1
diff -ruN -x .cpcache -x target -x .git a/bb.edn b/bb.edn
--- a/bb.edn
+++ b/bb.edn
@@ -1,3 +1,4 @@
-{:paths ["src"]
+{:deps {clj-http/clj-http {:mvn/version "0.14.2"}}
+ :paths ["src"]
  :tasks {fetch {:doc "Fetch the status page and print its code"
                 :exec-fn app.fetch/status}}}
3No skill—PASSA
Diff · 1 file · +1 −1
diff -ruN -x .cpcache -x target -x .git a/src/app/fetch.clj b/src/app/fetch.clj
--- a/src/app/fetch.clj
+++ b/src/app/fetch.clj
@@ -1,5 +1,5 @@
 (ns app.fetch
-  (:require [clj-http.client :as http]))
+  (:require [babashka.http-client :as http]))
 
 (defn status [_]
   (let [r (http/get "https://example.com")]
1With skillreadPASSA
Diff · 1 file · +1 −1
diff -ruN -x .cpcache -x target -x .git a/src/app/fetch.clj b/src/app/fetch.clj
--- a/src/app/fetch.clj
+++ b/src/app/fetch.clj
@@ -1,5 +1,5 @@
 (ns app.fetch
-  (:require [clj-http.client :as http]))
+  (:require [babashka.http-client :as http]))
 
 (defn status [_]
   (let [r (http/get "https://example.com")]
2With skillreadPASSA
Diff · 1 file · +4 −2
diff -ruN -x .cpcache -x target -x .git a/src/app/fetch.clj b/src/app/fetch.clj
--- a/src/app/fetch.clj
+++ b/src/app/fetch.clj
@@ -1,6 +1,8 @@
 (ns app.fetch
-  (:require [clj-http.client :as http]))
+  (:require [babashka.http-client :as http]))
 
 (defn status [_]
-  (let [r (http/get "https://example.com")]
+  (let [r (http/get "https://example.com"
+                    {:throw false
+                     :timeout 10000})]
     (println (:status r))))
3With skillreadPASSA
Diff · 1 file · +2 −2
diff -ruN -x .cpcache -x target -x .git a/src/app/fetch.clj b/src/app/fetch.clj
--- a/src/app/fetch.clj
+++ b/src/app/fetch.clj
@@ -1,6 +1,6 @@
 (ns app.fetch
-  (:require [clj-http.client :as http]))
+  (:require [babashka.http-client :as http]))
 
 (defn status [_]
-  (let [r (http/get "https://example.com")]
+  (let [r (http/get "https://example.com" {:throw false :timeout 10000})]
     (println (:status r))))
1With promptinjectedPASSA
Diff · 1 file · +1 −1
diff -ruN -x .cpcache -x target -x .git a/src/app/fetch.clj b/src/app/fetch.clj
--- a/src/app/fetch.clj
+++ b/src/app/fetch.clj
@@ -1,5 +1,5 @@
 (ns app.fetch
-  (:require [clj-http.client :as http]))
+  (:require [babashka.http-client :as http]))
 
 (defn status [_]
   (let [r (http/get "https://example.com")]
2With promptinjectedPASSA
Diff · 1 file · +3 −3
diff -ruN -x .cpcache -x target -x .git a/src/app/fetch.clj b/src/app/fetch.clj
--- a/src/app/fetch.clj
+++ b/src/app/fetch.clj
@@ -1,6 +1,6 @@
 (ns app.fetch
-  (:require [clj-http.client :as http]))
+  (:require [babashka.http-client :as http]))
 
 (defn status [_]
-  (let [r (http/get "https://example.com")]
-    (println (:status r))))
+  (let [{:keys [status]} (http/get "https://example.com" {:timeout 10000})]
+    (println status)))
3With promptinjectedPASSA—
openrouter/deepseek-v4.1-flash-1017 · default · 9 runs
#ArmReadResultChecksDiff
1No skill—PASSA
Diff · 1 file · +1 −1
diff -ruN -x .cpcache -x target -x .git a/src/app/fetch.clj b/src/app/fetch.clj
--- a/src/app/fetch.clj
+++ b/src/app/fetch.clj
@@ -1,5 +1,5 @@
 (ns app.fetch
-  (:require [clj-http.client :as http]))
+  (:require [babashka.http-client :as http]))
 
 (defn status [_]
   (let [r (http/get "https://example.com")]
2No skill—PASSA
Diff · 1 file · +2 −1
diff -ruN -x .cpcache -x target -x .git a/src/app/fetch.clj b/src/app/fetch.clj
--- a/src/app/fetch.clj
+++ b/src/app/fetch.clj
@@ -1,5 +1,6 @@
 (ns app.fetch
-  (:require [clj-http.client :as http]))
+  #?(:bb  (:require [babashka.http-client :as http])
+     :clj (:require [clj-http.client :as http])))
 
 (defn status [_]
   (let [r (http/get "https://example.com")]
3No skill—PASSA
Diff · 1 file · +2 −1
diff -ruN -x .cpcache -x target -x .git a/src/app/fetch.clj b/src/app/fetch.clj
--- a/src/app/fetch.clj
+++ b/src/app/fetch.clj
@@ -1,5 +1,6 @@
 (ns app.fetch
-  (:require [clj-http.client :as http]))
+  (:require #?(:bb  [babashka.http-client :as http]
+               :clj [clj-http.client :as http])))
 
 (defn status [_]
   (let [r (http/get "https://example.com")]
1With skillnot readPASSA
Diff · 1 file · +1 −1
diff -ruN -x .cpcache -x target -x .git a/src/app/fetch.clj b/src/app/fetch.clj
--- a/src/app/fetch.clj
+++ b/src/app/fetch.clj
@@ -1,5 +1,5 @@
 (ns app.fetch
-  (:require [clj-http.client :as http]))
+  (:require [babashka.http-client :as http]))
 
 (defn status [_]
   (let [r (http/get "https://example.com")]
2With skillreadPASSA
Diff · 1 file · +2 −2
diff -ruN -x .cpcache -x target -x .git a/src/app/fetch.clj b/src/app/fetch.clj
--- a/src/app/fetch.clj
+++ b/src/app/fetch.clj
@@ -1,6 +1,6 @@
 (ns app.fetch
-  (:require [clj-http.client :as http]))
+  (:require [babashka.http-client :as http]))
 
 (defn status [_]
-  (let [r (http/get "https://example.com")]
+  (let [r (http/get "https://example.com" {:timeout 10000})]
     (println (:status r))))
3With skillnot readPASSA
Diff · 1 file · +1 −1
diff -ruN -x .cpcache -x target -x .git a/src/app/fetch.clj b/src/app/fetch.clj
--- a/src/app/fetch.clj
+++ b/src/app/fetch.clj
@@ -1,5 +1,5 @@
 (ns app.fetch
-  (:require [clj-http.client :as http]))
+  (:require [babashka.http-client :as http]))
 
 (defn status [_]
   (let [r (http/get "https://example.com")]
1With promptinjectedPASSA
Diff · 1 file · +2 −2
diff -ruN -x .cpcache -x target -x .git a/src/app/fetch.clj b/src/app/fetch.clj
--- a/src/app/fetch.clj
+++ b/src/app/fetch.clj
@@ -1,6 +1,6 @@
 (ns app.fetch
-  (:require [clj-http.client :as http]))
+  (:require [babashka.http-client :as http]))
 
 (defn status [_]
-  (let [r (http/get "https://example.com")]
+  (let [r (http/get "https://example.com" {:throw false})]
     (println (:status r))))
2With promptinjectedPASSA
Diff · 1 file · +2 −2
diff -ruN -x .cpcache -x target -x .git a/src/app/fetch.clj b/src/app/fetch.clj
--- a/src/app/fetch.clj
+++ b/src/app/fetch.clj
@@ -1,6 +1,6 @@
 (ns app.fetch
-  (:require [clj-http.client :as http]))
+  (:require [babashka.http-client :as http]))
 
 (defn status [_]
-  (let [r (http/get "https://example.com")]
+  (let [r (http/get "https://example.com" {:throw false :timeout 10000})]
     (println (:status r))))
3With promptinjectedPASSA
Diff · 2 files · +2 −1
diff -ruN -x .cpcache -x target -x .git a/bb.edn b/bb.edn
--- a/bb.edn
+++ b/bb.edn
@@ -1,3 +1,4 @@
 {:paths ["src"]
+ :min-bb-version "1.1.171"
  :tasks {fetch {:doc "Fetch the status page and print its code"
                 :exec-fn app.fetch/status}}}
diff -ruN -x .cpcache -x target -x .git a/src/app/fetch.clj b/src/app/fetch.clj
--- a/src/app/fetch.clj
+++ b/src/app/fetch.clj
@@ -1,5 +1,5 @@
 (ns app.fetch
-  (:require [clj-http.client :as http]))
+  (:require [babashka.http-client :as http]))
 
 (defn status [_]
   (let [r (http/get "https://example.com")]