Skip to content

gh pr ready uses default GITHUB_TOKEN, so ready_for_review never triggers jvm-tests.yml/ios-app-build.yml #433

Open

Description

@github-actions

What happened

PR #432 (feature/reader-settings-label) has a single commit
(d9d9ef7) that was already present when the PR was opened as a draft
at 2026-08-22T09:35:41Z. Its ready_for_review event fired at
09:41:56Z. Neither jvm-tests.yml ("Unit & Integration Tests (JVM)")
nor ios-app-build.yml ("Build & Test iOS (Simulator)") ever produced
a workflow run for that event — confirmed directly via
gh api repos/LibraVault/reader/actions/workflows/{jvm-tests,ios-app-build}.yml/runs,
which shows exactly one run of each workflow for this branch, tied
to the original opened event at 09:35:43Z (correctly skipped,
since the PR was still draft at that moment). No run at all exists for
the ready_for_review sub-event, despite both workflows explicitly
listing ready_for_review in their pull_request.types specifically
so a draft-opened PR gets one real CI run once marked ready (see #373,
which added that trigger for exactly this reason).

Net effect: for this PR, lint, the core:vault* coverage gate, the
test-plan-completeness check (all part of jvm-tests.yml), and the
iOS simulator build never actually executed via CI, even though the
PR proceeded through QA and risk-classification as if a real signal
existed. The checks merely read SKIPPED rather than surfacing as a
failure, so nothing in the pipeline flagged the gap.

Root cause

dev-agent.yml marks a PR ready with the default GITHUB_TOKEN:

gh pr ready "$PR_NUMBER"   # GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

— deliberately, per the persona prompt's own comment ("default token
is fine for this one — it's a state toggle, not creation"). But GitHub
Actions does not create new workflow runs for events produced using
the default GITHUB_TOKEN, specifically to prevent recursive
workflow-triggering chains. That restriction applies to the
ready_for_review transition just as much as it does to pushes — and
this same workflow already works around the identical restriction for
git push by using the elevated APP_GH_TOKEN instead (a fix
originally landed for issue #311). The gh pr ready call is the one
state-changing call in the persona that was never switched over, on
the (incorrect, as it turns out) assumption that a state toggle
wouldn't need the elevated token the way a push or PR-create does.

This has happened before

PR #429's second commit, ci: retrigger iOS build after ready_for_review produced no run, is an empty commit QA pushed specifically to force a
synchronize event after hitting this exact gap — its message calls it
"a known pipeline race, also observed on feature/reading-presets." That
workaround fixed CI signal for #429 specifically, but no issue tracked
the root cause, so it silently recurred on #432 with no workaround
applied at all (#432 needed zero revisions, so it never got a second
commit to accidentally paper over the gap).

The PRs most likely to be affected are, ironically, the ones that need
no revision — a single correct commit, opened as a checkpoint draft
and then marked ready with nothing left to push. Those are exactly the
PRs where the pipeline currently produces the least amount of real
verification.

Suggested direction

  • Simplest: switch the gh pr ready "$PR_NUMBER" call in
    dev-agent.yml to use APP_GH_TOKEN, matching every other
    cross-workflow-triggering call in the same file.
  • Alternative: keep the default-token gh pr ready call, but always
    follow it with a trivial commit pushed via the elevated token (the
    same shape as fix(ios): in-reader theme change now persists as the global default #429's manual workaround), to guarantee a synchronize
    event regardless of which token performed the ready-toggle.

Where

  • .github/workflows/dev-agent.yml — the gh pr ready "$PR_NUMBER"
    call (currently under the default GITHUB_TOKEN)
  • .github/workflows/jvm-tests.yml, .github/workflows/ios-app-build.yml
    — the workflows that silently never get a real ready_for_review run

Related

Found during principal review of PR #432.

Activity

  1. added
    bug
    on Aug 22, 2026
  2. added
    status:triage
    on Aug 22, 2026
  3. libravault-xyz commented on Aug 22, 2026

    @libravault-xyz
    Collaborator

    Flagging priority: 'gh pr ready never triggers required checks' means a PR can go ready-for-review and reach status:needs-review/human-merge without jvm-tests.yml/ios-app-build.yml ever having run on the ready commit — a real gap in required-check coverage, not just a workflow-hygiene nit.

  4. libravault-xyz commented on Aug 22, 2026

    @libravault-xyz
    Collaborator

    Automated pipeline health check: Same silent trust-gate skip as #388/#408/#409/#437/#441 — see #453 for the full writeup. This issue's issues:opened dev-agent run (run 32585970814) was skipped in ~1s because its author (github-actions[bot]) is associated as CONTRIBUTOR, not OWNER/MEMBER/COLLABORATOR. No comment was ever posted about it, so it's sat on status:triage untouched since 2026-08-22 ~16:51 (ironic, given this issue is itself about a different silent-pass-through gap in the pipeline's required checks).

    Not self-healing — a human should manually apply status:ready-for-dev if this is ready to scope, or address #453 first.


    Generated by Claude Code

  5. github-actions commented on Aug 24, 2026

    @github-actions
    ContributorAuthor

    Pipeline is at capacity (6/3 active runs) — skipping this run. Re-apply status:ready-for-dev once activity settles, or re-trigger manually via workflow_dispatch.

  6. added
    status:ready-for-dev
    status:in-progress
    on Aug 24, 2026
  7. github-actions commented on Aug 24, 2026

    @github-actions
    ContributorAuthor

    Opened #483 — switches the backstop step's gh pr ready call to the App token and adds a belt-and-suspenders forced synchronize commit (also under the App token) on triage-mode completion, so CI actually runs regardless of which token performs the draft->ready toggle. See the PR description for a NEEDS HUMAN DECISION note: I couldn't update .claude/agents/dev-agent.md's matching instruction myself (this run's tool permissions hard-block edits to .claude/agents/**), so the persona still tells the agent to self-ready — the fix works correctly regardless, but a human should consider that follow-up edit to remove the now-redundant race.

  8. github-actions commented on Aug 27, 2026

    @github-actions
    ContributorAuthor

    Another live occurrence: PR #684 (fix/icloud-folder-scan-blocks-main-actor) hit this exact gap. Both commits landed before ready_for_review fired (01:29:29Z), so neither actual iOS App Build & Test run (33030206589, 33030247122) had anything but skipped build jobs, and no workflow run exists at all for the ready_for_review event itself — confirmed via gh api repos/LibraVault/reader/actions/workflows/318109220/runs. Routed #684 to status:needs-human-merge for this reason (see my review there) since it never got a real Xcode build/test signal on any commit. Flagging as another data point for prioritizing this fix — this is exactly the "single correct commit stack, marked ready with nothing left to push" shape the original report already predicted would be the most common and least visible case.

  9. github-actions commented on Aug 27, 2026

    @github-actions
    ContributorAuthor

    Another live occurrence: PR #687 (feature/686-frame-rate-hint). Both commits (89106b9, fc23bcf) landed before ready_for_review fired (06:48:25Z), so the only two JVM Tests runs for the branch (33047049679, 33047170529) both have their test job skipped, and no workflow run exists at all for the ready_for_review event itself (confirmed via gh api repos/LibraVault/reader/actions/workflows/jvm-tests.yml/runs). Same gap hit ios-app-build.yml/ui-tests.yml's jobs too. Routed #687 to status:needs-human-merge for this reason (full review on the PR) despite the change itself reviewing clean and my own local ./gradlew run going green — another data point for the 'single correct commit stack, marked ready with nothing left to push' shape this issue already predicted as the most common and least visible case.

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

    bugstatus:in-progressstatus:ready-for-devstatus:triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions