Skip to content

Document task assignment, the follow-up gate and automatic PR assignment #2903

Closed

Description

@propr-dev

Context

Everything in this plan is operator-visible and two parts of it change who can do what, so none of it is finished until it is documented. Three audiences need different things:

  • An operator deciding whether to turn on the assignment gate or automatic assignment needs the semantics, the defaults and the failure modes.
  • A developer on a team needs to know how to see and change assignment, and why their comment was refused if it was.
  • A CLI or MCP user needs the flags and fields.

docs/ is a Docusaurus site with a feature-guide convention (docs/docs/features/*.md), and pr-followup.md already documents the comparable opt-in automations - auto CI follow-up, automatic merge-conflict resolution, follow-up CI cancellation - each with a configuration table, a "when it runs" section and a table of reasons it declined to act. The new features follow that structure, which is also how the existing docs make non-obvious behaviour discoverable.

Requirements

  1. Add docs/docs/features/assignment.md covering:
    • What assignment is and that GitHub is the source of truth.
    • The Tasks screen column and filter, including ?assignee= URL values.
    • Changing assignment from the task detail page, and the write-access requirement.
    • Tasks that cannot be assigned (goals, implementations with no pull request).
    • Creator attribution on goals, plans, automations and to-dos, and the rule that it is hidden when every visible item shares a creator.
    • A configuration table in the established style, covering the instance gate and the three repository options with their Web UI, CLI and MCP paths.
  2. Extend docs/docs/features/pr-followup.md with an "Automatic Pull Request Assignment" section: the configuration table, when it runs, the assignee resolution order, the review-request rules, and a reasons table for every decision not to assign.
  3. Extend the "Who Can Trigger Commands" material in docs/docs/features/pr-commands.md with the assignment gate, including that an unassigned pull request is unaffected and that ProPR's own system comments are never gated.
  4. Add the CLI surfaces to docs/docs/features/propr-cli.md: the propr repo flags, the propr setting key and the propr task list --assignee flag.
  5. Add followup_requires_assignment to the settings reference, and the three repository options wherever repository configuration is documented.
  6. Add the new MCP fields to the MCP tool documentation.
  7. Cross-link: assignment.md from docs/docs/features/overview.md and from the sidebar.
  8. State the defaults explicitly everywhere: the gate and all three repository options are off.

Implementation Specification

Files added

  • docs/docs/features/assignment.md

Files modified

  • docs/docs/features/pr-followup.md
  • docs/docs/features/pr-commands.md
  • docs/docs/features/propr-cli.md
  • docs/docs/features/overview.md
  • docs/docs/operations/configuration-reference.md or the generated settings page, as appropriate
  • docs/docs/features/mcp.md
  • docs/sidebars.ts if the sidebar is enumerated rather than auto-generated

Step-by-step

  1. Write assignment.md with front matter and a sidebar_position placing it after pr-followup.md.
  2. Add the auto-assignment section to pr-followup.md, after "Automatic Follow-Up For Failed CI", reusing that section's table style.
  3. Add the gate to pr-commands.md's trigger rules.
  4. Add the CLI and MCP surfaces.
  5. Build the docs site to confirm no broken links.

Acceptance Criteria

  • npm run --prefix docs build succeeds with no broken-link warnings.
  • assignment.md appears in the sidebar after PR Follow-up and is reachable from the features overview.
  • Every new setting and flag is documented with its default, and every default is stated as off.
  • The auto-assignment section states the assignee resolution order: repository default assignee, then the source issue author, skipping bot authors.
  • It states that manual assignees are preserved, that a review is requested at most once, that the pull request author is never asked to review their own pull request, and that resumed work triggers nothing.
  • It includes a reasons table covering disabled, already handled, no resolvable assignee and failure.
  • The assignment gate documentation states that an unassigned pull request is unaffected, that ProPR's own system comments are never gated, that it fails closed when assignment cannot be read, and that a refused author receives one explanatory comment.
  • pr-commands.md names the gate in its trigger rules and links to assignment.md.
  • The CLI page documents propr repo add|toggle --auto-assign, --auto-assign-to, --auto-assign-review, propr setting update followup_requires_assignment, and propr task list --assignee.
  • The MCP page documents the new update_execution_settings and update_repository_configuration fields.

Created by ProPR AI Planner

Activity

  1. propr-dev commented on Oct 8, 2026

    @propr-dev
    ContributorAuthor

    Suggested Implementation:

    Implementation Approach

    Two of the features in this plan change who is allowed to do something, and one of them writes to the customer's GitHub repository on its own. Those are exactly the features where undocumented behaviour turns into support load, so the docs are part of the deliverable rather than a follow-up.

    The structure is copied from pr-followup.md rather than invented, for a concrete reason: that page's existing sections for auto CI follow-up, merge-conflict resolution and follow-up CI cancellation have converged on a shape that works for opt-in automation - a configuration table naming the Web UI, CLI and MCP path for each level, a "when it runs" list, and a table of every reason the feature declined to act. The reasons table in particular is what makes "why did nothing happen?" answerable without reading logs, and both new features have exactly that question.

    Placement:

    • A new page for assignment, because it spans the Tasks screen, the task detail page, four other entities' creator attribution and an instance setting. Folding that into pr-followup.md would bury the Tasks-screen half under a pull-request page.
    • The auto-assignment section inside pr-followup.md, because it is a thing that happens at the end of implementation and follow-up, which is precisely what that page documents. A separate page would separate it from the AI-done transition it hangs off.
    • The gate in pr-commands.md, because that page already owns "Who Can Trigger Commands" and the whitelist, blacklist, bot and label rules. The gate is a fourth rule in that set, and documenting it anywhere else would leave that list wrong.

    One editorial rule throughout: state the default on every switch, and state it as off. Everything added in this plan is opt-in, and a reader skimming a table should not have to infer that.

    File: docs/docs/features/assignment.md (new file)

    Why this file: the one page a team reads to understand who owns what. It spans surfaces (Tasks list, task detail, plans, goals, automations, to-dos) that no existing page covers together, and it is the natural link target for the gate documentation in pr-commands.md.

    ---
    sidebar_position: 7
    title: Assignment
    ---
    
    # Assignment
    
    ProPR shows who owns each task, who created each plan, goal, automation and to-do, and can assign
    pull requests automatically when work finishes. In a single-developer setup none of this matters
    much; on a team it is how work stays traceable.
    
    **GitHub is the source of truth.** A task's assignment *is* the assignment of its GitHub issue or
    pull request. Assigning in ProPR assigns on GitHub, and an assignment made in the GitHub UI shows
    up in ProPR. Nothing is stored only in ProPR, so GitHub's own "Assigned to me" view stays correct.
    
    ## Seeing assignment
    
    The Tasks screen has an **Assignees** column showing each task's assignees as avatars, and a filter:
    
    | Filter | URL | Shows |
    |---|---|---|
    | All assignees | (no parameter) | Every task |
    | Assigned to me | `?assignee=me` | Tasks assigned to you |
    | Unassigned | `?assignee=unassigned` | Tasks with no assignee |
    | A specific person | `?assignee=octocat` | That person's tasks |
    | Several people | `?assignee=octocat,hubot` | The union of their tasks |
    
    The per-person options list everyone assigned on the page you are looking at. A login that is not on
    the page still works if you type it into the URL.
    
    `me` is resolved from your session, not from the URL, so the filter cannot be used to read someone
    else's queue.
    
    ## Changing assignment
    
    Open a task and use the assignment control in its header. You can assign one or several people, and
    clearing the selection unassigns the task. The picker lists only people GitHub will accept as
    assignees for that repository, because GitHub silently drops an assignee without repository access.
    
    Changing assignment needs **write access to the repository** - the same bar GitHub applies - and is
    checked against GitHub rather than against your ProPR role.
    
    Some tasks cannot be assigned and show no control: a goal (which has no issue or pull request), and
    an implementation that has not yet opened a pull request.
    
    ## Who created what
    
    Plans, goals, automations and to-dos show their creator as an avatar and login. It is hidden when
    every item you can see shares one creator, since repeating the same person on every row carries no
    information. Creator is a record of fact and is not editable.
    
    ## Restricting follow-up work to assigned users
    
    By default anyone allowed to trigger ProPR can start follow-up work on any ProPR pull request. On a
    team you may want only the people assigned to a task to be able to.
    
    | Level | Where | Values |
    |---|---|---|
    | Instance | Settings → Automation → **Only assigned users can start follow-up work**, MCP `update_execution_settings` (`followup_requires_assignment`), `propr setting update followup_requires_assignment <true\|false>` | on / off (default **off**) |
    
    With it on, a pull request comment only starts follow-up work if its author is assigned to that
    task. Specifically:
    
    - A pull request with **no assignees is unaffected** - every comment works as before. Turning the
      setting on does not stop work on unassigned tasks.
    - It applies to slash commands too, so `/fix`, `/review`, `/merge` and `/ultrafix` from an
      unassigned user are refused.
    - **ProPR's own comments are never gated.** The automatic failed-CI follow-up and the system
      `/ultrafix` comment are authenticated by a marker rather than by a person, so auto CI follow-up
      and Ultrafix continue to work.
    - A refused author gets **one explanatory comment** per pull request, so they are told why rather
      than being ignored silently.
    - If ProPR cannot read a pull request's assignees while the setting is on, the comment is **not**
      processed. The gate fails closed.
    
    The existing [trigger rules](./pr-commands.md#who-can-trigger-commands) - the user whitelist, the
    blacklist, bot filtering and processing labels - all still apply. This setting is an additional
    restriction, never a relaxation.
    
    ## Automatic pull request assignment
    
    ProPR can assign a pull request when it finishes implementing, so it lands in someone's GitHub
    "Assigned to me" view. See
    [Automatic Pull Request Assignment](./pr-followup.md#automatic-pull-request-assignment).
    
    ## CLI
    
    ```bash
    # Tasks assigned to you
    propr task list --assignee me
    
    # Tasks assigned to specific people
    propr task list --assignee octocat,hubot
    
    # Restrict follow-up work to assigned users
    propr setting update followup_requires_assignment true
    
    # Automatic assignment for a repository
    propr repo toggle owner/name --auto-assign on --auto-assign-to octocat --auto-assign-review on
    propr repo toggle owner/name --auto-assign-to none   # back to the issue author
    ```

    File: docs/docs/features/pr-followup.md

    Why this file: automatic assignment happens at the AI-done transition and again after a
    follow-up lands a commit, which is the exact lifecycle this page documents. The new section reuses
    the configuration-table and reasons-table shape the neighbouring sections already use, so an
    operator reading about auto CI follow-up finds the same structure here.

    ## Automatic Pull Request Assignment
    
    When ProPR finishes implementing an issue it can assign the pull request, so it appears in
    someone's GitHub **Assigned to me** view instead of needing to be found. It is off unless you turn
    it on.
    
    ### Where it is configured
    
    | Level | Where | Values |
    |---|---|---|
    | Repository | Repositories → repository → Automation → **Assign the pull request when ProPR finishes**, MCP `update_repository_configuration` (`autoAssignPullRequests`), `propr repo add\|toggle owner/repo --auto-assign <on\|off>` | on / off (default **off**) |
    | Repository | **Assign to** (same panel), MCP `autoAssignDefaultAssignee`, `--auto-assign-to <login\|none>` | a GitHub login, or empty for the issue author (default **empty**) |
    | Repository | **Also request a review from the assignee**, MCP `autoAssignRequestReview`, `--auto-assign-review <on\|off>` | on / off (default **off**) |
    
    All three are repository-wide: a repository monitored on several base branches shares one setting.
    
    ### When it runs
    
    - **Implementation completes.** At the moment the issue's labels move from
      `<trigger>-processing` to `<trigger>-done`.
    - **Follow-up work completes and pushes a commit.** The assignment is applied again, so a pull
      request that changed hands is reassigned.
    
    It never runs when work *starts*. Resuming work - a follow-up beginning, labels moving back to
    `<trigger>-processing` - triggers no assignment and no review request.
    
    ### Who gets assigned
    
    In order:
    
    1. The repository's **Assign to** login, if one is set.
    2. Otherwise the **author of the source issue**.
    3. A bot author (a login ending in `[bot]`) is skipped, since assigning ProPR to its own pull
       request means nothing. A configured **Assign to** login still applies.
    
    Anyone already assigned by hand **stays assigned**: ProPR adds an assignee and never removes one.
    
    ### Review requests
    
    With **Also request a review from the assignee** on, ProPR requests a review from whoever it
    assigned. A review is requested at most once: someone with a pending request is not asked again,
    and GitHub does not allow requesting a review from the pull request's own author, so that is
    skipped.
    
    ### Why a pull request was not assigned
    
    Every decision not to assign is logged at `info` with `{ repository, pullNumber, reason }`:
    
    | Reason | Meaning |
    |---|---|
    | `disabled` | The repository has not turned automatic assignment on. |
    | `already_handled` | This pull request head was already assigned; a retry does not re-notify. |
    | `no_target` | No non-bot assignee could be resolved, and no **Assign to** login is set. |
    | `failed` | GitHub refused or was unavailable. The implementation and its pull request are unaffected. |
    
    Assignment never fails an implementation: the pull request is the deliverable, and a failed
    assignment is logged and left.
    
    The task's timeline records who was assigned and why, visible on the task detail page.

    File: docs/docs/features/pr-commands.md

    Why this file: this page owns the complete list of trigger rules. Leaving the gate out would
    make that list wrong, and a reader working out why a command did nothing would check here first.

    ### Assignment
    
    When the instance setting **Only assigned users can start follow-up work**
    (`followup_requires_assignment`, off by default) is on, a comment only triggers work if its author
    is assigned to that task on GitHub. This applies to slash commands as well as to plain follow-up
    comments.
    
    A pull request with no assignees is unaffected, and ProPR's own system comments (the automatic
    failed-CI follow-up and the system `/ultrafix`) are never gated. A refused author receives one
    explanatory comment. See [Assignment](./assignment.md#restricting-follow-up-work-to-assigned-users).

    File: docs/docs/features/propr-cli.md

    Why this file: the CLI reference is the only documentation for operators who never open the Web
    UI, and the repository and settings command groups are documented exhaustively there, so an
    undocumented flag is effectively unavailable.

    `propr task list --assignee <all|me|unassigned|login[,login]>` filters by assignment. `me` resolves
    to the account the CLI is logged in as.
    
    `propr repo add|toggle` accepts the automatic assignment options:
    
    | Flag | Effect |
    |---|---|
    | `--auto-assign <on\|off>` | Assign the pull request when ProPR finishes implementation. |
    | `--auto-assign-to <login\|none>` | Assign this login instead of the issue author; `none` restores the issue author. |
    | `--auto-assign-review <on\|off>` | Also request a review from the assignee. |
    
    `propr repo list` shows the resulting state in an **Auto-assign** column.
    
    `propr setting update followup_requires_assignment <true|false>` restricts follow-up work to users
    assigned to the task.

    File: docs/docs/features/overview.md

    Why this file: the overview is the index readers start from, so a feature page that is not
    linked there is effectively only reachable by searching for it.

    - **[Assignment](./assignment.md)** - who owns each task, who created each plan, goal, automation
      and to-do, and automatic pull request assignment for teams.

    Settings and MCP references

    Why these files: the configuration reference and the MCP tool documentation are both
    exhaustive by design, so an omission there reads as "this does not exist".

    | `followup_requires_assignment` | `false` | Only process a pull request comment as follow-up work when its author is assigned to the task. Pull requests with no assignees are unaffected. |
    `update_execution_settings` additionally accepts `followup_requires_assignment` (boolean).
    
    `update_repository_configuration` additionally accepts `autoAssignPullRequests` (boolean),
    `autoAssignDefaultAssignee` (login or `null` to clear) and `autoAssignRequestReview` (boolean).
    `get_repository_configuration` returns all three.

    Verification

    # No broken links or missing sidebar entries.
    npm run --prefix docs build
  2. propr-dev commented on Oct 9, 2026

    @propr-dev
    ContributorAuthor

    🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: claude
    • Model: claude-opus-5-5
    • Branch: 2903/claude-opus-5-5-document-task-assignment--20261009-1605-68z
    • Base Branch: 2888-epic-task-assignment-1m4
    • Worktree: issue-2903-20261009-1605-claude-opus-5-5-68z

    🔍 Track Task Execution

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions