Skip to content

DIFC: issue_read filters github-actions[bot] issue bodies despite approved trust policy #15291

Done

Description

@lpcox

Observed behavior

As reported in github/gh-aw#70242, an agent cannot read an issue authored by github-actions[bot] through MCP issue_read when the workflow uses min-integrity: approved, even when trusted-users explicitly contains the bot login. The returned content is reported as DIFC_FILTERED with integrity none:public.

The reported consumer is elastic/oblt-aw: an audit workflow creates an issue as github-actions[bot], and a subsequent create-PR workflow attempts to read and implement that issue. The agent job can succeed without seeing the issue body, so no fix PR is opened. The consumer reports using min-integrity: none as a temporary workaround, which broadens read trust beyond the target issue.

This issue records the upstream-reported behavior; it has not been independently reproduced against a pinned mcpg version in this investigation.

Reported configuration and reproduction scenario

tools:
  github:
    min-integrity: approved
    trusted-users: "github-actions[bot]"
  1. Create an issue in a public repository using a workflow's GITHUB_TOKEN, so its author is github-actions[bot].
  2. Run an agent workflow in the same repository with the configuration above, including when inherited from shared defaults.
  3. Ask the agent to retrieve the open issue through MCP issue_read.
  4. Reported result: the bot-authored body is filtered as below-threshold / none:public rather than returned to the agent.

Consumer discussion: elastic/oblt-aw#2408

Expected behavior

The bot-authored issue title/body should be readable at min-integrity: approved under the configured trust policy, absent an explicit blocking or demotion rule. Trust in the issue author must not elevate comments written by other, untrusted authors. No workflow-wide reduction to min-integrity: none or issue-body injection through additional-instructions should be necessary.

Relevant implementation and ownership

github/gh-aw#70343 adds compile-time regression coverage for scalar, array, and imported trusted-users configuration while retaining the approved floor. It changes no runtime implementation and explicitly leaves runtime filtering unresolved. Its string assertions do not establish end-to-end gateway behavior.

At mcpg revision e5890a8afc87943842e7425d99df3e74c3f6dee2:

These observations make the gateway's runtime response-labeling/filtering path the likely investigation point, not evidence that a bot allowlist entry is missing. The root cause is not yet established. Confirm the affected run's actual mcpg/guard version and effective policy before ruling out a version or configuration-handoff issue.

Requested investigation and regression coverage

  • Capture a sanitized fixture matching the affected issue_read response and reproduce its labeling/filtering with the effective approved policy.
  • Trace author extraction, response-item/path labeling, policy context, and final filtering to determine why the reported item receives none:public despite bot trust.
  • Add a regression through the actual response-labeling/filtering boundary, asserting that the trusted bot's issue body survives at approved; compilation assertions alone are insufficient.
  • Preserve blocked-user/demotion precedence and per-author isolation for comments.

Related

Activity

  1. added a commit that references this issue on Oct 21, 2026
    1918cf7
  2. pelikhan commented on Oct 22, 2026

    @pelikhan
    Collaborator

    @lpcox can we integrate a release with this fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions