From c3f24460a79ce662561c5c89e134ca4b53e58880 Mon Sep 17 00:00:00 2001 From: openhands Date: Sat, 14 Mar 2026 08:40:19 +0000 Subject: [PATCH] fix: gardener must ACTION or ESCALATE every tech-debt issue, never skip Claude was silently skipping ambiguous issues instead of escalating. Made output format mandatory and explicit: every issue in the list must result in ACTION (promoted) or ESCALATE (needs decision). --- gardener/gardener-poll.sh | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/gardener/gardener-poll.sh b/gardener/gardener-poll.sh index f15369c..9bb7586 100755 --- a/gardener/gardener-poll.sh +++ b/gardener/gardener-poll.sh @@ -200,10 +200,17 @@ ESCALATE 2. #NNN \"title\" — reason (a) option1 (b) option2 \`\`\` -## Output -- For each action taken, print: ACTION: -- For escalations, use the ESCALATE block above -- If nothing to do after analysis, print: CLEAN" +## Output format (MANDATORY — the script parses these exact prefixes) +- After EVERY action you take, print exactly: ACTION: +- For issues needing human decision, output EXACTLY: +ESCALATE +1. #NNN \"title\" — reason (a) option1 (b) option2 +- If truly nothing to do, print: CLEAN + +## Important +- You MUST process the tech_debt_promotion items listed above. Read each issue, add acceptance criteria + affected files, then relabel to backlog. +- If an issue is ambiguous or needs a design decision, ESCALATE it — don't skip it silently. +- Every tech-debt issue in the list above should result in either an ACTION (promoted) or an ESCALATE (needs decision). Never skip silently." CLAUDE_OUTPUT=$(cd /home/debian/harb && CODEBERG_TOKEN="$CODEBERG_TOKEN" timeout "$CLAUDE_TIMEOUT" \ claude -p "$PROMPT" \