Skip to content

Expire ordinary agentic workflow issues within two days - #79499

Merged
pelikhan merged 4 commits into
mainfrom
pelikhan/agentic-issue-expiry
Nov 20, 2026
Merged

pelikhan merged 4 commits into
mainfrom
pelikhan/agentic-issue-expiry

Conversation

@pelikhan

Copy link
Copy Markdown
Collaborator

Ordinary workflow-generated issues were accumulating without expiry dates. This change configures a two-day lifecycle for the editable workflows responsible for those issues.

Changes

  • Set expires: 2d for affected built-in issue outputs and the RAI review's pull-request fallback path.
  • Configure the custom clustering publisher's expiry in workflow YAML, validate that it is at most 48 hours, and pass it through the attributed createIssue API.
  • Regenerate workflow locks and document the custom issue expiry option.

Scope and rollout

44 existing ordinary issues without expiry dates were backfilled separately through GitHub. Existing expiry dates, WIP trackers, and work-queue mirrors were preserved. Future workflow changes take effect after merge.

The upstream-managed team-status workflow was already current and remains unchanged; its future expiry policy requires an upstream change. System maintenance and upgrade issues are not covered by these workflow edits.

Validation

  • Clustering collector/publisher tests: 50 passed.
  • Custom issue API tests: 30 passed; JavaScript typecheck passed.
  • make recompile: 369 workflows compiled successfully.
  • make agent-report-progress: passed, including lint and workflow-lock freshness.
  • Live issue rescan found no ordinary generated open issues without an expiry date.

@pelikhan
pelikhan marked this pull request as ready for review November 20, 2026 10:32
Copilot AI adaptive review requested due to automatic review settings November 20, 2026 10:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Publication is blocked by a missing expiration setting in the publisher job, while fractional-hour truncation can make newly created issues immediately eligible for cleanup.

2 open issues
What changed in this PR

This PR adds two-day expiry settings to ordinary issues generated by selected gh-aw workflows and extends the custom issue API to support expiration markers.

Changes:

  • Configure two-day expiry for selected issue outputs and the RAI review’s pull-request fallback path.
  • Add configurable clustering-summary expiry, publisher validation, and custom API tests.
  • Regenerate workflow locks and document expiry behavior and maintenance requirements.
File Description
docs/​src/​content/​docs/​reference/​custom-safe-outputs.md Documents expiresHours and cleanup requirements.
actions/​setup/​js/​index.test.cjs Tests expiry markers and invalid inputs.
actions/​setup/​js/​create_issue.cjs Validates and forwards custom expiry values.
.github/​workflows/​weekly-network-domains-audit.md Sets issue expiry to two days.
.github/​workflows/​weekly-network-domains-audit.lock.yml Regenerates expiry configuration and hashes.
.github/​workflows/​uk-ai-operational-resilience.md Sets issue expiry to two days.
.github/​workflows/​uk-ai-operational-resilience.lock.yml Regenerates expiry configuration and hashes.
.github/​workflows/​sighthound-security-scan.md Sets issue expiry to two days.
.github/​workflows/​sighthound-security-scan.lock.yml Regenerates expiry configuration and hashes.
.github/​workflows/​enterprise-docs-audit.md Replaces disabled expiry with two days.
.github/​workflows/​enterprise-docs-audit.lock.yml Regenerates expiry configuration and hashes.
.github/​workflows/​daily-squid-image-scan.md Sets issue expiry to two days.
.github/​workflows/​daily-squid-image-scan.lock.yml Regenerates expiry configuration and hashes.
.github/​workflows/​daily-safeoutputs-git-simulator.md Sets issue expiry to two days.
.github/​workflows/​daily-safeoutputs-git-simulator.lock.yml Regenerates expiry configuration and hashes.
.github/​workflows/​daily-rai-spec-review.md Sets pull-request output expiry to two days.
.github/​workflows/​daily-rai-spec-review.lock.yml Regenerates expiry configuration and hashes.
.github/​workflows/​bot-detection.md Sets issue expiry to two days.
.github/​workflows/​bot-detection.lock.yml Regenerates expiry configuration and hashes.
.github/​workflows/​aw-issue-clustering.md Adds a 48-hour expiry environment setting.
.github/​workflows/​aw-issue-clustering.lock.yml Regenerates the environment setting and hashes.
.github/​workflows/​agent-persona-explorer.md Replaces disabled expiry with two days.
.github/​workflows/​agent-persona-explorer.lock.yml Regenerates expiry configuration and hashes.
.github/​scripts/​test_aw_issue_clustering_publish.cjs Tests summary expiry and configuration validation.
.github/​scripts/​aw_issue_clustering.README.md Explains summary expiry and refresh behavior.
.github/​scripts/​aw_issue_clustering_publish.cjs Validates configured expiry and passes it to issue creation.

Review effort: Balanced (adaptive)

actions: read
env:
GH_AW_SAFE_OUTPUTS_STAGED: ${{ github.event_name == 'workflow_dispatch' && inputs.staged }}
GH_AW_ISSUE_EXPIRES_HOURS: "48"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved GH_AW_ISSUE_EXPIRES_HOURS into the publisher job and regenerated the workflow lock. Fixed in commit 9f0323e.

}
const artifacts = normalizeIssueArtifacts(artifactInput);
const report = buildIssueBodyReport(parameters.title, parameters.body, { repo: { owner, repo } });
const report = buildIssueBodyReport(parameters.title, parameters.body, { repo: { owner, repo }, expiresHours });

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expiration deadlines now use elapsed milliseconds, with 30-minute helper and custom-issue API regression tests. Fixed in commit 9f0323e.

@gh-aw-bot

Copy link
Copy Markdown
Collaborator

@copilot

🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:

  1. Update this branch with the latest main using make merge-main, resolving any conflicts and preserving the intended changes.
  2. Review (.github/workflows/aw-issue-clustering.md:48): address unresolved feedback - Review comment
  3. Review (actions/setup/js/create_issue.cjs:105): address unresolved feedback - Review comment
  4. Fix failing check Analyze (python) (FAILURE): Check run.
  5. Fix failing check prefetch (FAILURE): Check run.

Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering.

Structured data
{
  "completed_task": 0,
  "head": "5d1452f4a4d2590857009ffb084853c8004c174c",
  "kind": "requested",
  "schema_version": "1",
  "state": "3ee65e5bca10b0ddae78d75e231592c63c2bd899ce85539f6520d160aba4062a",
  "work": [
    "23027a7a3ebe972cffc3eabad4a22e44dac70312f0e8b312d61f867187f7f01d",
    "43282e7f5b3023b8c8cf9099eab79e7b99f650965f08b47d3df33cde5589879d",
    "790ed5e0e3af711d604283b0a2ec52d22a1c042abdae309e4afcae123275a0d4",
    "e2cc311bebf7be92d295166f3527f876c86637a89f4bba84dfa6d8eecb6e5588"
  ],
  "workflow": "pr-sous-chef"
}

Generated by 👨🍳 PR Sous Chef · pi · routed: haiku55 xhigh · ~3 AIC · ⌖ ~2 AIC · ⊞ 7K · ◷
Comment /souschef to run again

gh-aw-bot and others added 2 commits November 20, 2026 11:23

Copilot AI commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

@copilot

🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:...

Merged latest main and addressed both review threads in 9f0323e. Focused JavaScript and publisher tests pass and all 369 workflows compile. The Analyze (python) and prefetch failures are GitHub API installation-rate-limit 403s in CodeQL reporting and the PR files endpoint, respectively; no repository code change can resolve those external failures, and I did not trigger CI.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Copilot AI requested a review from gh-aw-bot November 20, 2026 12:04
@pelikhan
pelikhan merged commit 3bd0262 into main Nov 20, 2026
34 checks passed
@pelikhan
pelikhan deleted the pelikhan/agentic-issue-expiry branch November 20, 2026 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants