fix: Two parallel dust-bundling codepaths need consolidation (#368)

Remove the orphaned post-session dust accumulator from gardener-agent.sh
(no longer reached after #367 moved gardener-poll.sh to action issues).
Add a dedicated dust-bundling formula step to run-gardener.toml that
handles the full lifecycle: dedup, timestamps, 30-day TTL expiry, and
bundling groups with 3+ items into backlog issues.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
openhands 2026-03-21 10:41:31 +00:00
parent cbd52972f3
commit 4c7baff05d
4 changed files with 73 additions and 145 deletions

View file

@ -77,7 +77,7 @@ PROMOTE (substantial work — multi-file, behavioral, architectural, security):
DUST (trivial single-line edit, rename, comment, style, whitespace):
Write: echo 'DUST: {"issue": NNN, "group": "<file-or-subsystem>", "title": "...", "reason": "..."}' >> "$RESULT_FILE"
Group by file or subsystem: e.g. "gardener", "lib/env.sh", "dev-poll"
Do NOT close the issue the script auto-bundles groups of 3+ into a backlog issue.
Do NOT close dust issues the dust-bundling formula step auto-bundles groups of 3+ into a backlog issue.
DUPLICATE (>80% overlap after reading both bodies confirm before closing):
Post comment: curl -X POST ... /issues/NNN/comments -d '{"body":"Duplicate of #OLDER"}'
@ -111,7 +111,8 @@ For tier-2 items (trivial, cosmetic, score < 1.0):
- Close duplicates with cross-reference comment
These do not need promotion just classification so they leave the tech-debt queue.
The script handles the bundling; emit correct DUST lines for each item.
The dust-bundling formula step handles accumulation, dedup, TTL, and bundling;
emit correct DUST lines for each item.
"""
needs = ["process-scored"]