Repository navigation
Auto-expire unquoted expiration markers and orphaned steering issues - #79670
Conversation
The expired-item closer required a '> ' prefix on the expiration line, but report-tree bodies render it unquoted, so ~half of expiring issues were never closed. Stale [WIP] steering issues from failed/cancelled runs are now closed as not planned. Co-authored-by: copilot-swe-agent[bot] <[email protected]>
|
✅ PR Specification Reviewer completed successfully! PR Specification ReviewerOutcome: The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅ Matt Pocock Skills ReviewerOutcome: The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Ponytail Reviewer completed successfully! Ponytail ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ PR Code Quality Reviewer completed the code quality review. Caution agentic threat detected DetailsPotential security threats were detected in the agent output. Detected threat types: prompt injection. Review the workflow run logs for details. PR Code Quality ReviewerOutcome: The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Test Quality Sentinel completed test quality analysis. Test Quality SentinelOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
Caution agentic threat detected DetailsPotential security threats were detected in the agent output. Detected threat types: prompt injection. Review the workflow run logs for details. Comment MemoryPeek at saved memory (pr-code-quality-reviewer)Note This comment is managed by comment memory.Expand the saved memory block to view or edit the persistent context for this thread.
|
There was a problem hiding this comment.
Caution
agentic threat detected
Threat detection flagged this output in warn mode. Manual review is REQUIRED before any follow-up automation.
Details
Potential security threats were detected in the agent output. Detected threat types: prompt injection.
Review the workflow run logs for details.
Found three correctness risks in the changed cleanup and expiration paths: a stale-title race can close a newly retitled failure report, all non-success conclusions are treated as safe to close, and the broadened expiration regex matches markers in fenced code. Inline comments explain the failure modes and requested fixes. This was a static review; no tests were run.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~3 AIC · ⌖ ~2 AIC · ⊞ 1.6K
Comment /review to run again
Comment MemoryPeek at saved memory (spec-review-history)History |
Comment MemoryPeek at saved memory (review-history)History |
There was a problem hiding this comment.
🟡 Changes recommended
A race condition can close a newly retitled failure report, and expiration parsing can incorrectly expire issues by treating markers inside fenced examples as active.
2 open issues
What changed in this PR
This PR expands gh-aw’s scheduled maintenance to recognize unquoted expiration markers and clean up orphaned steering issues from unsuccessful runs.
Changes:
- Accept checked expiration markers with or without a blockquote prefix.
- Close stale
[WIP]issues linked to completed unsuccessful runs asnot_planned. - Update regression tests, maintenance documentation, and patch release notes.
| File | Description |
|---|---|
docs/src/content/docs/reference/ephemerals.md |
Documents supported markers and stale steering cleanup. |
actions/setup/js/ephemerals.test.cjs |
Tests unquoted markers and unchecked-box opt-out. |
actions/setup/js/ephemerals.cjs |
Makes the blockquote prefix optional. |
actions/setup/js/cleanup_stale_steering_issues.test.cjs |
Covers cleanup after failed and cancelled runs. |
actions/setup/js/cleanup_stale_steering_issues.cjs |
Adds unsuccessful-run cleanup comments and closure reasons. |
.changeset/expire-unquoted-markers-and-orphaned-steering.md |
Records both fixes for a patch release. |
Review effort: Balanced (adaptive)
- Ignore expiration markers inside fenced code blocks in both detection and date extraction. - Only close stale steering issues for success, failure, or cancelled runs, and re-check the issue is still an open [WIP] issue before closing. Co-authored-by: copilot-swe-agent[bot] <[email protected]>
|
Re automated status and comment-memory comments (7056923686, 7056924550, 7056924553, 7056925577, 7056925814, 7056985191, 7056987251, 7056994219): no code change needed. The three findings recorded by PR Code Quality Reviewer (stale-title race, broad non-success cleanup, expiration markers in fenced code) are addressed in a6a64bd and replied to in their review threads. |
There was a problem hiding this comment.
Skills-Based Review 🧠
Applied /tdd and /diagnosing-bugs to this cleanup-and-regex change. No blocking issues found. Two follow-ups are posted inline.
📋 Key Themes & Highlights
Key Themes
- Regex widening:
EXPIRATION_PATTERNnow accepts an optional>prefix. The regex is anchored with^andm. Checked and unchecked, quoted and unquoted, and old-pattern cases all match the intent. - Retitle path verified:
handle_agent_failure.cjsreuses the steering issue and retitles it, so a[WIP]issue left on a completed unsuccessful run has no owner. Closing it is safe. - Non-success conclusions: Only
failureandcancelledare tested. See the inline comment onsucceeded. - Closure volume: The backlog grows from 123 to 264 and the loop has no per-run cap. See the inline comment on the close call.
Positive Highlights
- ✅ The
[WIP]title gate prevents closing live failure reports. - ✅ The
UNSUCCESSFUL_RUN_CLEANUP_COMMENTpath reuses the idempotency marker, so repeat runs do not duplicate comments. - ✅ The changeset and docs update match the behavior.
Not Verified
- The vitest suites (the PR body cites 919 passing) were not run.
npm ciinactions/setup/jsfails on the environment TLS proxy with a self-signed certificate. Please confirm CI is green. - The
ephemerals.cjs:56doc comment still shows only the blockquote form. This is a nit outside the diff.
@copilot please address the inline comments above.
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~10 AIC · ⌖ ~2 AIC · ⊞ 6.7K
Comment /matt to run again
Co-authored-by: copilot-swe-agent[bot] <[email protected]>


Clustering the ~500 open bot-created issues showed that about half of the issues carrying an expiration marker were never closed, and every open
[WIP]steering issue was an orphan from a failed or cancelled run.Changes
- [x] expires <!-- gh-aw-expires: ... -->without the>blockquote prefix, which is also the format documented inephemerals.md.EXPIRATION_PATTERNrequired the prefix, so these issues were skipped byclose-expired-issues. Against live data the closer now finds 264 expiring issues instead of 123 (38 were overdue, the oldest by 17 days). Unchecking the box still opts out.cleanup_stale_steering_issuesonly closed[WIP]issues whose run succeeded. Failed runs that reuse the steering issue retitle it into the failure report, so a[WIP]issue older than 24h on a completed non-success run has no remaining owner. These are now closed asnot_plannedwith a distinct comment that keeps the same idempotency marker. Active runs and malformed links are still skipped.Review notes
reference/ephemerals.md) and a patch changeset are included.Validation
vitestfor ephemerals, steering cleanup, expired-entity helpers/flows, close-expired-*, handle_agent_failure, and report_ast: 919 passed.make agent-report-progressran the impacted JS tests successfully but failed locally becausetscis not installed in this environment.