Issue-agent: prevent stale issue comments from poisoning reruns #103

Closed
opened 2026-04-27 09:20:48 -07:00 by nelsong6 · 1 comment
nelsong6 commented 2026-04-27 09:20:48 -07:00 (Migrated from github.com)

Problem

Issue reruns can be contaminated by old bot comments, old run summaries, prior PR discussion, or stale issue-agent output. We already saw confusion around prior comments and had to tighten prompts to read only issue title/body.

The current guard is mostly prompt-based and therefore fragile.

Desired Outcome

Make issue title/body the explicit source of truth for LLM phases unless a phase is deliberately designed to inspect comments.

Acceptance Criteria

  • Phase prompts consistently forbid reading comments/timelines except where explicitly required.
  • Tool allow/disallow patterns reject gh issue view --comments, GitHub comments API calls, and PR discussion reads for phases that should not use them.
  • Summaries and comments generated by previous issue-agent runs are ignored by default.
  • A rerun cannot change behavior based on stale issue-agent comments unless the issue body is updated.
  • Add a test or prompt audit that catches accidental comment-reading permissions.
## Problem Issue reruns can be contaminated by old bot comments, old run summaries, prior PR discussion, or stale issue-agent output. We already saw confusion around prior comments and had to tighten prompts to read only issue title/body. The current guard is mostly prompt-based and therefore fragile. ## Desired Outcome Make issue title/body the explicit source of truth for LLM phases unless a phase is deliberately designed to inspect comments. ## Acceptance Criteria - Phase prompts consistently forbid reading comments/timelines except where explicitly required. - Tool allow/disallow patterns reject `gh issue view --comments`, GitHub comments API calls, and PR discussion reads for phases that should not use them. - Summaries and comments generated by previous issue-agent runs are ignored by default. - A rerun cannot change behavior based on stale issue-agent comments unless the issue body is updated. - Add a test or prompt audit that catches accidental comment-reading permissions.
nelsong6 commented 2026-04-27 17:47:38 -07:00 (Migrated from github.com)

Closing as deferred cleanup.

Stale comments can be handled by normal issue hygiene and focused prompt/tool constraints if it recurs. Not worth keeping as a standalone open issue right now.

Closing as deferred cleanup. Stale comments can be handled by normal issue hygiene and focused prompt/tool constraints if it recurs. Not worth keeping as a standalone open issue right now.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
romaine-life/spirelens#103
No description provided.