Skip to content

A Custom process that ends before Delivery with work on origin keeps in-progress after it exits #1945

Open

Description

@JacobStephens2

Finding

A Custom process that ends successfully before Delivery keeps in-progress on its issue after the Command exits, when its work is on origin. The usual case is a land-tickets Process that lands every Ticket and leaves a draft Spec PR. ADR 0029 says in-progress marks only a live Run: it "goes on when a Run starts and comes off when it ends". So this ending conflicts with the ADR.

Evidence

  • src/claim.rs, Claimed::end: Ending::BeforeDelivery only releases the Claim when nothing is on origin (release_if_nothing_on_origin). With work on origin, in-progress stays. A Security fix keeps it in every case (Ending::BeforeDelivery if self.security_fix => {}).
  • tests/process/land_tickets.rs, a_spec_branch_lands_dependent_tickets_and_leaves_the_spec_pr_draft: the test asserts that in-progress remains after a successful run (exit 0).
  • The docs describe this on purpose:
    • docs/guide.md (land-tickets): "It leaves the Claim while the Spec waits for completion."
    • site/index.html: "The draft Spec PR keeps its Claim while it waits".
    • site/how-it-works/index.html: "a draft Spec PR keeps its Claim".
  • Spec Spec: in-progress marks only a live Run #1901 lists the endings that stay unchanged as "Release, Stop, not-reproduced and merged-and-closed". It doesn't mention this one, and story 1 asks for in-progress "only while a Run is live".

Raised by

The Standards review (S2) and the Spec review (P4) of the Spec PR for #1901, #1935.

Why this is not the Spec PR's call

The behaviour predates #1901, and the user manual and the hand-written pages document it on purpose. The Claim may be how a later Process run on the same Spec finds that the draft Spec PR is still owed review and Delivery. The other options are:

  • remove in-progress and put nothing back (the Spec PR stands for the work);
  • hand the Spec back with ready-for-agent;
  • amend ADR 0029 to allow this ending.

Each changes how Pickup and the Day shift treat a half-delivered Spec, so the Day shift or a Spec has to choose.

Activity

  1. added
    needs-triage
    in-progress
    and removed
    needs-triage
    on Nov 10, 2026
  2. JacobStephens2 commented on Nov 11, 2026

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    Investigation summary

    Confirmed on selected Base main at 74b072d. The existing integration test tests/process/land_tickets.rs:16 passes while asserting exit 0, an open draft Spec PR, completed Tickets, cleaned-up worktrees and retained in-progress. All 14 land_tickets integration tests passed.

    src/processes/source.rs:988-991 routes successful Spec-branch Processes without Delivery to Ending::BeforeDelivery. src/claim.rs:434-436 retains the Claim whenever origin contains work; its Security-fix branch unconditionally retains it. The Security-fix observation is confirmed by source inspection, without a dedicated runtime reproduction. This conflicts with ADR 0029 and the glossary definition that a Claim lasts only while a Run is live. docs/guide.md:2076, site/index.html:134 and site/how-it-works/index.html:262 explicitly document the older behavior.

    Two findings narrow the decision. First, Continuation does not require a retained Claim: src/branch.rs:152-193 selects existing branches and PRs, and src/processes/source.rs:834-852 uses that selection before making the Claim. Second, ready-for-agent alone would not enable automatic completion: src/ready.rs:541-564 skips Specs whose Tickets are all closed or which have no Startable Ticket.

    Recommendation and next steps

    Prefer removing in-progress without adding a replacement label after successful completion before Delivery, preserving the draft Spec PR and leaving completion to an explicit Continuation. Do not classify this success as agent-failed. The Day shift must choose the handoff policy and Security-fix behavior before implementation.

    Propose a focused Ticket for the chosen Claim ending, regression coverage and documentation updates. Keep automatic Pickup completion as separate work, coordinated with #312. Preserve existing failure, Stop, unpublished-work release and waiting-Spec behavior. Update the manual source and regenerate its site page, plus the hand-written site pages.

    No duplicate was found. #710 concerns killed Runs, #1905 concerns migration of old review labels, and #585 concerns unfinished Tickets and waiting outcomes.

    Questionnaire

    For the Day shift deciding #1945:

    A successful Custom process can finish landing every Ticket, leave a draft Spec PR, and retain in-progress after exiting. This is deliberate existing behavior but conflicts with ADR 0029. Continuation can find the work without the Claim; Pickup currently skips Specs whose Tickets are all closed.

    1. Which handoff should successful completion before Delivery use: remove in-progress with no replacement and require explicit Continuation (recommended), arrange automatic completion through a changed Pickup policy, or retain the Claim and amend ADR 0029? This determines the completion contract.
    2. Should a successful Security fix ending before Delivery also lose its Claim? If it needs a separate handoff marker, specify that marker and the private-advisory action, without automatic requeue or public vulnerability details. This resolves the unconditional Security-fix exception.
    3. Approve this split: a focused Ticket for Claim ending, regression coverage and documentation; automatic completion, if desired, shaped separately and coordinated with thinking about pr 307, consider letting pickups check if ready-for-agent spec issues are complete and then close them #312. If automatic completion is required immediately, should the work instead become a Spec with separate Tickets for Claim ending and Pickup eligibility/continuation?
  3. added
    bug
    ready-for-human
    and removed
    in-progress
    on Nov 11, 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

    bugready-for-human

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions