Repository navigation
Expire ordinary agentic workflow issues within two days - #79499
Conversation
Co-authored-by: Copilot App <[email protected]>
There was a problem hiding this comment.
🟡 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" |
There was a problem hiding this comment.
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 }); |
There was a problem hiding this comment.
Expiration deadlines now use elapsed milliseconds, with 30-minute helper and custom-issue API regression tests. Fixed in commit 9f0323e.
|
🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:
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"
}
|
…e-expiry Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Merged latest |
Co-authored-by: copilot-swe-agent[bot] <[email protected]>


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
expires: 2dfor affected built-in issue outputs and the RAI review's pull-request fallback path.createIssueAPI.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
make recompile: 369 workflows compiled successfully.make agent-report-progress: passed, including lint and workflow-lock freshness.