Skip to content

A direct Run on an issue never labelled ready-for-agent warns that its label actor isn't a Trusted account #961

Closed

Description

@JacobStephens2

This was generated by AI during triage.

What happens

A Run started on an Issue URL checks its issue against the Trusted account rule, prints a warning if the check fails, and carries on. If the issue has never been labelled ready-for-agent, the check gives the same result as an untrusted labeller. That happens, for example, with thirdshift no-merge <Issue URL> on an Unready issue. The Run then prints:

warning: #<n> most recent ready-for-agent label actor is not a Trusted account

There is no such label actor, because the issue was never labelled. This was found by reading the code while triaging #423; it hasn't been run.

Evidence

trust::issue_trust returns UntrustedIssue::ReadyLabel in two cases: when an untrusted account made the latest ready-for-agent labelling, and when there is no labelling at all (the else branch after ready_labellings(…).pop()). The direct-Run path prints that value's text as the warning.

Wanted

An accurate line for an issue with no ready-for-agent labelling, such as warning: #<n> has never been labelled ready-for-agent. The Day shift might instead prefer no warning at all for a direct Run. Either way, Pickup's Ready check, which uses the same rule, must keep passing such an issue over.

Activity

  1. added
    bug
    needs-triage
    on Oct 21, 2026
  2. JacobStephens2 commented on Oct 25, 2026

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    Agent Brief

    Category: bug
    Summary: A direct Run on an issue that was never labelled ready-for-agent says so, instead of blaming the label actor

    Current behavior:
    When no ready-for-agent labelling event exists, the trust check returns the same UntrustedIssue::ReadyLabel variant as when an untrusted account applied the label. A direct Run then prints "most recent ready-for-agent label actor is not a Trusted account", which is misleading.

    Desired behavior:
    The never-labelled case gets its own variant (for example UntrustedIssue::NeverReady), displayed as "has never been labelled ready-for-agent". Both variants stay untrusted, so Pickup still passes such an issue over, and the direct Run's behavior is otherwise unchanged.

    Key interfaces:

    • UntrustedIssue and its Display text
    • The trust check that inspects ready-for-agent labelling events

    Acceptance criteria:

    • A unit test covers the never-labelled case and asserts the new message
    • Existing ReadyLabel tests still pass
    • Pickup still passes over a never-labelled issue (skip reason text may change)
    • Docs and README that quote the old message are updated (rg the old text)

    Out of scope:

  3. added
    ready-for-agent
    in-progress
    and removed
    needs-triage
    ready-for-agent
    on Oct 25, 2026
  4. removed
    in-progress
    on Oct 25, 2026
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions