From 1a70e4c9cd897bd673e0c87fca9a6a0ba9b23c28 Mon Sep 17 00:00:00 2001 From: khashayar Date: Thu, 25 Jun 2026 22:03:15 +0200 Subject: [PATCH] devin harvest: space turns >=5s so single-turn sessions aren't dropped MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A harvested single-turn Devin session spanned only 1s (reply written 1000ms after the prompt), which the engine's harvest filter conservatively classifies as a <3s headless replay (skillopt_sleep Issue #62) and skips — so a real single-turn session mined 0 tasks. Widen the prompt->reply gap to 5s. With this, an end-to-end dry-run mines the task: "night 1: 1 sessions -> 1 tasks". Co-Authored-By: Claude Opus 4.8 --- plugins/devin/harvest_devin.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/devin/harvest_devin.py b/plugins/devin/harvest_devin.py index c7297c4..723dc69 100644 --- a/plugins/devin/harvest_devin.py +++ b/plugins/devin/harvest_devin.py @@ -184,7 +184,10 @@ def _write_session( # grouping key so the miner can collapse repeats into one recurring task user_rec["taskKey"] = task_key f.write(json.dumps(user_rec, ensure_ascii=False) + "\n") - ts += 1000 + # space the reply >=5s after the prompt so a single-turn session + # isn't misclassified as a <3s headless replay and dropped by the + # engine's harvest filter (skillopt_sleep Issue #62). + ts += 5000 f.write(json.dumps({ "type": "assistant", "message": {"role": "assistant", "content": asst_text},