Closed
feat: add discussion-janitor to close stale AI report discussions#43377
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Closed
…sions Adds a new lightweight scheduled workflow that closes ephemeral AI-generated daily/weekly report discussions older than 14 days. - Targets categories: audits, reports, daily-news - Identifies AI-generated content via "> AI generated by" / "> Generated by" body markers - Closes up to 50 discussions per run with OUTDATED resolution - Protects durable categories (Q&A, General, Dev, Announcements, Ideas) - Runs daily via schedule; also supports workflow_dispatch Closes #43220 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
…anitor - Remove redundant OR clause in the jq select filter; require both the AI body marker AND an ephemeral category (audits/reports/daily-news) - Remove the contradictory step 4 noop instruction; step 2 already covers the empty-file case unambiguously Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add workflow to lock/archive discussions older than 14 days
feat: add discussion-janitor to close stale AI report discussions
Jul 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The discussions corpus is dominated by ephemeral daily/weekly AI-generated reports (audits, daily news, per-agent status) that accumulate indefinitely, diluting signal and increasing corpus size for downstream agents like DeepReport.
New workflow:
discussion-janitorworkflow_dispatchaudits,reports,daily-news)> AI generated by/> Generated by …actions/runs…markerclose_discussionJSONL (reason:OUTDATED) for each; callsnoopwhen corpus is already cleanclose-discussionwithtarget: "*", capped at 50 per runProtected categories (never touched): Q&A, General, Dev, Announcements, Ideas.
The jq filter requires both the AI body marker and an ephemeral category — neither alone is sufficient — preventing accidental closure of human-authored content in targeted categories.