Skip to content

gh-aw AI Moderator: hide_comment 404 fails the safe_outputs job #186

@JacobPEvans

Description

@JacobPEvans

Symptom

`AI Moderator` (gh-aw agentic workflow) fails in the `safe_outputs` job across the ansible-* repos:

```text
Failed to hide comment: Could not resolve to a node with the global id of 'IC_kwDON5ER6c6Gbxe2'
```

Failure counts (last 100 runs): ansible-proxmox 14x, ansible-splunk 13x, ansible-proxmox-apps 16x.

Root cause

The AI agent classifies an issue/PR comment as spam and emits a `hide_comment` safe-output. By the time the post-job `safe_outputs` step runs, the comment has already been deleted (Renovate force-push, the bot itself cleaning up, or human deletion). GitHub returns 404 GraphQL "node not found".

The current config `retry-exempt-status-codes: 400,401,403,404,422` means 404 does NOT retry — the job just fails. `hide_comment` on an already-gone comment should be a no-op success, not a fatal error.

Fix options

  1. Upstream: file issue at `githubnext/agentics` requesting that `hide_comment` treat 404 / `NOT_FOUND` GraphQL errors as success.
  2. Workaround in this repo's gh-aw `.md` source: disable `hide_comment` in `safe-outputs` frontmatter until upstream lands a fix. Keep `add_comment` and other safe-outputs working.
  3. Per-repo override: if the affected repos' workflows pull from this repo, fix once here.

Affected repos

`ansible-proxmox`, `ansible-splunk`, `ansible-proxmox-apps` — likely others using the same AI Moderator workflow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugBug - Something isn't working (semver: PATCH)

    Projects

    Status

    In progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions