Skip to content

dev-agent's new github-actions[bot] issue trust gate (PR #486) is only a persona-instruction convention, not a permission boundary #487

Open

Description

@github-actions

Context

PR #486 adds a carve-out to dev-agent.yml's triage-and-implement trust
gate: an issue authored by github-actions[bot] (verified via
gh api repos/LibraVault/reader/issues/437 --jq '.user.login' →
"github-actions[bot]", type: "Bot", id: 41898282 — matches the
literal string the new if: condition checks) is now trusted the same as
one filed by an OWNER/MEMBER/COLLABORATOR, so it gets handed to an
agent holding contents: write and a Bash tool.

The PR's safety argument for why this is narrow enough to be safe:

Only principal-review.yml's own gh issue create step does this...
not a proxy for arbitrary external input.

Verified true today by grep -rln "gh issue create" .github/workflows/ .claude/agents/ — only principal-review-agent.md's persona instructs
creating a new issue. But that's a fact about current persona wording,
not about what's technically possible. The real, permission-level
boundary is issues: write in a workflow's permissions: block combined
with Bash tool access (i.e., the ability to literally run gh issue create regardless of what the persona doc currently says to do). Checked
which workflows actually have both:

workflow issues: write Bash tool (per .claude/agents/*.md tools:)
dev-agent.yml yes yes
qa-agent.yml yes yes
principal-review.yml yes yes
human-merge-sweep.yml yes yes
ios-testflight.yml yes no (plain build script, no gh usage found)
circleci-dispatch.yml yes no (plain script)

So four separate LLM-agent-driven workflows — not one — currently hold
the technical capability to author an issue as github-actions[bot]
(GitHub Actions' default GITHUB_TOKEN always posts under that same
bot identity, regardless of which workflow file is running it). Only one
of the four (principal-review-agent.md) currently instructs doing so
in its persona file, but persona wording is not an access-control
boundary for an LLM agent — it's a convention that:

  • a future PR adding a legitimate gh issue create call to
    qa-agent.md or human-merge-sweep-agent.md (for a perfectly
    reasonable reason, unaware of this gate's assumption) would silently
    widen the trust gate's effective input from "principal-review's own
    documented output" to "anything any of these four agents ever
    produce," with no corresponding update needed to dev-agent.yml for
    that widening to take effect — the gate's actual behavior would
    change without the gate's own diff changing.
  • a prompt-injection payload that reaches any of dev-agent,
    qa-agent, or human-merge-sweep while they hold live Bash +
    issues: write (e.g. via adversarial content inside a
    trust-gated issue, a PR diff, or a comment one of them reads) could
    already, today, have that agent run gh issue create even though its
    persona file doesn't ask it to — nothing at the permission layer stops
    it. The resulting issue would be indistinguishable from a legitimate
    principal-review CONFIRMED-finding issue (same bot login, same
    author_association), and would now sail through
    triage-and-implement's gate straight to an agent with
    contents: write.

Why this isn't blocking PR #486 itself

dev-agent.yml is a sensitive_paths match regardless, so #486 is
already routed to status:needs-human-merge and a human reviews it
either way. The gate's logic in #486 is correct and mutually exclusive
with explain-trust-gate-skip (verified) — this issue is about the
soundness of the trust boundary the new carve-out leans on being
narrower going forward than its current single-instance snapshot, not
about a defect in #486's diff.

Suggested hardening (for a human to weigh, not prescribing scope)

Something that ties the trust check to an actual technical invariant
instead of "nobody else does this yet" — e.g. restricting issues: write
to only the one workflow that needs it, or matching on something less
forgeable-by-any-of-the-four-agents than the shared bot login (there
isn't an obviously better GitHub-provided signal from the issues event
payload alone, which may mean this needs a different mechanism entirely
rather than a tweak to the existing if: check).

Filed per .claude/agents/principal-review-agent.md's "Documenting real
findings" section, from review of #486.

Activity

  1. libravault-xyz commented on Aug 26, 2026

    @libravault-xyz
    Collaborator

    Automated pipeline health check: This issue (filed by github-actions[bot], CONTRIBUTOR association) has received zero dev-agent.yml runs and zero explanatory comment of any kind since it was filed.

    This is the same author-association trust-gate-skip signature already tracked on #469/#475/#479/#388/#408/#433/#437/#441/#544/#558/#582 — but unlike that earlier batch, this issue never even got the explain-trust-gate-skip job's own skip-reason comment, consistent with the regression already confirmed on #437/#441 (that job's gh issue comment step has no actions/checkout/--repo, so it fails before it can post: fatal: not a git repository).

    Not self-healing: there's no status label here to toggle, and .github/workflows/dev-agent.yml is a sensitive path this routine won't edit.

    This now makes at least 13 open issues sitting with zero pipeline engagement: #469, #475, #479, #487, #504, #523, #534, #556, #557, #559, #561, #581, #589, #611, #626, #639. A tracked issue for the underlying explain-trust-gate-skip checkout/--repo bug has been recommended across at least two prior automated runs (2026-08-23 on #469, 2026-08-24 on #437/#441) but doesn't appear to have been filed yet.

    Action needed: someone with write access can workflow_dispatch triage this issue manually (Actions → Dev Agent → Run workflow), and/or fix explain-trust-gate-skip's gh issue comment step (add actions/checkout or --repo ${{ github.repository }}) so future instances of this self-report instead of going silent.


    Generated by Claude Code

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

Metadata

Metadata

Assignees

No one assigned

    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