Skip to content

Let Unattended Handoff Work Unblocked Attended Lanes and Name Why It Skips #3375

Closed

Description

@ptr727

Filed at the maintainer's request, from an attended session in ptr727/ESPHome-NonRoot.

What happened

An unattended-handoff run in ptr727/ESPHome-NonRoot reported nothing to do because everything needed a maintainer decision. The next attended "resume the handoff" session worked the same backlog to a mergeable promotion without asking the maintainer anything.

When the run started, the repository held two open issues and no decision issue:

The picker excluded both, each under a rule in unattended-handoff:

  • "The Picker" step 2: a handoff on any track other than auto-* belongs to an attended lane and is never picked.
  • "Auto-Resolvable", "Nothing has worked it or is working it": an issue that any open handoff names in its next steps is excluded.
  • "Auto-Resolvable", "The right outcome is determined": Registry: ESPHome-Config operational rollout + Dependabot ecosystem resolved #348's body said one finding "may need a hub-side tier decision", which reads as unclear, so the whole issue fails.

The only reply the picker has for that state is NONE, which "The Loop" table defines as "nothing left that needs no decision". So "owned by an attended lane" reached the maintainer as "needs your decision".

Expected behavior, as the maintainer states it

An unattended run works anything that is not blocked waiting on the maintainer or on another blocker. A handoff with no blocked label and no open decision issue, on any track, is work the run can take. A backlog issue that only partly needs a decision is worked for the part that does not, and the undecided part is split off or parked, rather than the whole issue being skipped.

What to change

  1. Messaging. When the picker returns NONE, it names each candidate it read and the rule that excluded it, for example #351 attended track, #348 named by #351, or #348 outcome not determined. "Nothing to do because of a decision" is reported only where a decision or blocked item is in fact the cause.
  2. Behavior. Revisit the exclusions above against the expected behavior:
    • The attended-track exclusion in picker step 2. The current rule guards against working a lane an attended session holds right now. A live attended session could instead be signalled explicitly, for example by a label or a claim comment, rather than inferred from the track name.
    • The "named in an open handoff's next steps" exclusion, for the same reason.
    • The all-or-nothing reading of "outcome determined" for an issue where only one item is open to a decision.

Done means a run started on a repository in the state above either works #348 or reports, per candidate, a reason that matches the cause.

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

    enhancementskills

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions