Problem
When skip-roles causes the AI Moderator to skip (all jobs CANCELLED), the conclusion job still executes and fails — because it expects artifacts from an agent run that never happened.
Symptom: Every PR opened by a repo admin (owner) shows conclusion: FAILURE in CI, making mergeStateStatus: UNSTABLE.
Why it happens:
skip-roles: [admin, maintainer, write, triage] in the moderator config
- Repo owner PRs trigger the skip path:
pre_activation → CANCELLED, activation → CANCELLED, agent → CANCELLED, detection → CANCELLED, safe_outputs → CANCELLED
conclusion job has no guard for this case — it fails when expected artifacts are absent
Current impact: Non-blocking (conclusion is not a required check), but every Phase 4 canonical-app-credentials PR shows UNSTABLE CI, which is noisy and confusing.
Fix options
- Guard
conclusion on agent actually running — check if agent job was skipped/cancelled and exit 0 in that case
gh aw upgrade — newer gh-aw versions may already handle this
- Make skip produce a clean
conclusion result — conclusion should report "skipped" not "failure" when the agent was intentionally bypassed
Reproduction
Any PR opened by an account with admin/maintainer/write/triage role on the repo.
Related
- Phase 4 PRs affected: ai-workflows#202, ansible-proxmox#167, ansible-proxmox-apps#231, nix-darwin#1065, nix-home#215, orbstack-kubernetes#210, python-template#42, tf-splunk-aws#157
- AI Moderator skip config:
skip-roles: [admin, maintainer, write, triage]
Problem
When
skip-rolescauses the AI Moderator to skip (all jobs CANCELLED), theconclusionjob still executes and fails — because it expects artifacts from an agent run that never happened.Symptom: Every PR opened by a repo admin (owner) shows
conclusion: FAILUREin CI, makingmergeStateStatus: UNSTABLE.Why it happens:
skip-roles: [admin, maintainer, write, triage]in the moderator configpre_activation → CANCELLED, activation → CANCELLED, agent → CANCELLED, detection → CANCELLED, safe_outputs → CANCELLEDconclusionjob has no guard for this case — it fails when expected artifacts are absentCurrent impact: Non-blocking (conclusion is not a required check), but every Phase 4 canonical-app-credentials PR shows UNSTABLE CI, which is noisy and confusing.
Fix options
conclusionon agent actually running — check ifagentjob was skipped/cancelled and exit 0 in that casegh aw upgrade— newer gh-aw versions may already handle thisconclusionresult — conclusion should report "skipped" not "failure" when the agent was intentionally bypassedReproduction
Any PR opened by an account with
admin/maintainer/write/triagerole on the repo.Related
skip-roles: [admin, maintainer, write, triage]