From ff3e790f51822bda799932ab112d46782984e77a Mon Sep 17 00:00:00 2001 From: openhands Date: Wed, 18 Mar 2026 11:03:29 +0000 Subject: [PATCH] fix: remove head -10 cap and update tech-debt problem label (#151) Remove the head -10 cap from TECH_DEBT_ISSUES so Claude sees all tech-debt issues, not just the first 10. Apply a head -50 guard on the list passed in PROBLEMS to avoid oversized prompts while still feeding far more than the old cap. Update the problem label to drop "max 10 per run" text which contradicted the zero-tech-debt objective. Co-Authored-By: Claude Sonnet 4.6 --- gardener/gardener-poll.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gardener/gardener-poll.sh b/gardener/gardener-poll.sh index 36e466c..b80eb93 100755 --- a/gardener/gardener-poll.sh +++ b/gardener/gardener-poll.sh @@ -220,10 +220,10 @@ if [ -n "$BLOCKER_NUMS" ]; then fi # 6. Tech-debt issues needing promotion to backlog (secondary to blockers) -TECH_DEBT_ISSUES=$(echo "$ISSUES_JSON" | jq -r '.[] | select(.labels | map(.name) | index("tech-debt")) | "#\(.number) \(.title)"' | head -10) +TECH_DEBT_ISSUES=$(echo "$ISSUES_JSON" | jq -r '.[] | select(.labels | map(.name) | index("tech-debt")) | "#\(.number) \(.title)"') if [ -n "$TECH_DEBT_ISSUES" ]; then TECH_DEBT_COUNT=$(echo "$TECH_DEBT_ISSUES" | wc -l) - PROBLEMS="${PROBLEMS}tech_debt_promotion: ${TECH_DEBT_COUNT} tech-debt issues need promotion to backlog (max 10 per run):\n${TECH_DEBT_ISSUES}\n" + PROBLEMS="${PROBLEMS}tech_debt_promotion: ${TECH_DEBT_COUNT} tech-debt issues need processing (goal: zero tech-debt):\n$(echo "$TECH_DEBT_ISSUES" | head -50)\n" fi PROBLEM_COUNT=$(echo -e "$PROBLEMS" | grep -c '.' || true)