Skip to content

feat(roadmap): the implement job keeps, classifies and continues a partial implementation #3098

Closed as not planned

Description

@dan-petty

What happened

When a step stops, the job discards the work of that step ("The job discarded this work"), sets the item status/blocked, and waits for a person or a new image. That wastes finished work and hides how far the run got:

The job has no notion of a partial implementation. A run either ends in a ready pull request or in a blocked item, and nothing in between is kept, classified or continued.

What should happen

  • Keep. After each green sub-step (a group, or a verified part of a group) the job commits and pushes the work to the item branch (a wip commit; the squash merge removes the history). A stop never discards pushed work. A draft pull request exists as soon as there is something pushed, and it says in one line that it is partial.
  • Identify. At a stop, and in each round for an item with a branch or a draft, the job classifies the state from facts it can read: no_progress, groups_partial (groups 1..k done, group k+1 failed), checks_failing (all groups done, a check is red), review_findings (a review comment, such as an advisory finding or a failed required check, names defects), conflict (the branch does not merge), plan_defect, premise_false. The class is written to the job record (implement.partial: class, groups done, the failing command and a digest of its output, the attempts so far, the next action) and shown by devops roadmap explain and inbox.
  • Continue. The next round resumes from the branch: it checks out the pushed work, builds the step message from the plan, the ticked tasks, the diff so far, the failing output and the notes of the earlier attempts, and runs a repair step for the class (fix the lint, restore the removed test, resolve the conflict, move the test file, finish the next group). Attempt 2 uses the next model tier (feat(roadmap): a model ladder for retries, with the tier chosen per attempt #3060). Attempt 3 splits the remaining group. These bounds are settings.
  • Block last. status/blocked is set only when the attempts are used up, the class needs a person (premise_false, a decision of the owner), or the item fails on the same class on the same image twice. The comment then says what is kept, where, what was tried and what a person can do. A person's implement: retry continues from the kept work and does not start again.
  • Never ready by itself. A partial draft is marked ready only when every group is done, every check is green and the diff review (feat(roadmap): Run devops review on the diff before marking PR ready #3049) has no open high finding. Until then it stays a draft with the partial line.

Acceptance criteria

Related: #3027 (tracker), #3053 (repair rounds), #3054 (keep work and resume), #3065 (failure classes), #3060 (model ladder), #3049 (diff review), #3043 (scoped CI), #3032 (run trace).

Proposed design

Problem statement

placeholder2

Acceptance criteria

Existing Tool Considered

placeholder2

Key questions

None.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    source/agent
    type/feature
    scope/roadmap
    status/new
    value/high
    effort/high
    on Nov 1, 2026
  2. dan-petty commented on Nov 1, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/feature. The feat prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P1-High. Multiple cited incidents show repeated waste of 2.8 million input tokens and full reruns; the fix stops that recurring loss.
    • Value: High. It saves model tokens and developer time on every stopped step by preserving and resuming partial work.
    • Effort: High. It requires classification logic, repair step orchestration, model tier escalation, draft PR management, and integration with explain and inbox commands.
    • Related: feat(roadmap): a stopped step keeps its work and the next attempt resumes from it #3054, which asks for a different change. Both keep work from a stopped step and resume it, but the candidate adds seven-class state classification, bounded repair rounds, model tier escalation, and a never-ready-by-itself gate.
  3. added
    priority/p1-high
    on Nov 1, 2026
  4. devops-cli-service commented on Nov 1, 2026

    @devops-cli-service
    Contributor

    The proposal at aad0115 needs splitting into 6 items. A person splits the item into the items below, or replies in a comment or edits the body to keep one item, and the next refine round looks at the item again.

    1. Keep work: commit and push after each green sub-step, create and update the draft pull request (feat(roadmap): a stopped step keeps its work and the next attempt resumes from it #3054)
    2. Classify state: the seven classes, write to the job record, show in explain and inbox (feat(roadmap): a failure taxonomy, and one action for each class #3065)
    3. Continue and resume: repair steps, model tier escalation, group splitting (feat(roadmap): every step repairs before it gives up, in bounded rounds #3053)
    4. Block last and never ready: blocking logic, readiness gating, Service never merges
    5. CLI: devops roadmap explain and inbox show class, attempts, and next action
    6. Metrics: count partials by class and by outcome
  5. dan-petty commented on Nov 4, 2026

    @dan-petty
    OwnerAuthor

    This item cannot be built as written. It needs two open items first, and it is too large for one pull request.

    Evidence (checked on origin/main at 4485be2):

    Next step: do #3054 and #3053, then split what remains (the implement.partial record, the block rule, the readiness gate, explain and inbox, the metric) into items of one pull request each.

  6. devops-cli-service commented on Nov 5, 2026

    @devops-cli-service
    Contributor

    Refine cannot set this item to Ready at c9a6182 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.

    • The proposal has no problem statement, no acceptance criterion with its requirement, scenario, WHEN and THEN, or no answer to the existing-tool question. State the problem, the requirements with their scenarios, and the open tool that covers the need or the cost of building it.
  7. devops-cli-service commented on Nov 5, 2026

    @devops-cli-service
    Contributor

    Refine cannot set this item to Ready at 502219a until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.

    • The proposal has no problem statement, no acceptance criterion with its requirement, scenario, WHEN and THEN, or no answer to the existing-tool question. State the problem, the requirements with their scenarios, and the open tool that covers the need or the cost of building it.
  8. dan-petty commented on Nov 5, 2026

    @dan-petty
    OwnerAuthor

    Answer from project standards, under the owner's instruction of 2026-11-05.

    Question. The refine comments of 2026-11-05 ask a person for a problem statement, requirements and an existing-tool answer. Must a person answer them before this item can go on?

    Answer. No. The refine block of this item holds placeholder2 from a model, so the comments report a validator failure and not a real question. This item closes as not planned, because merged code and smaller issues now hold each criterion. AGENTS.md rule 2 says to close an item that newer issues or code changes supersede. The comment of 2026-11-04 gives the same path: it says to do #3054 and #3053, then split what remains into items of one pull request each.

    Map of the acceptance criteria, checked on origin/main at cfcbd3d:

    # Criterion Merged Open
    1 #2175 replay: work kept, next round finishes, ready pull request #3560 (#3054), #3606 (#3488). Tests: test_a_second_job_does_only_the_remaining_tasks_and_folds_the_kept_work, test_a_failed_static_check_after_the_last_tick_keeps_the_ticked_work, test_a_stray_file_stays_out_of_the_wip_commit #3645, for a stop in the scoped checks
    2 Removed pinned test: restore and edit it in a repair step None. A lost test gets no repair turn #3577 (criterion moved in a comment), #3490 for a removal that the plan records
    3 #3020 and #3078: classified, repaired in bounded rounds, or stopped with the state recorded #3195 (#3065) for the class, #3112 (#3043) for the fix rounds, #3513 (#3476) for the check and its log in the record #3645 (the stop discards the work), #3053 and its parts for stronger rounds, #3075 for fault cases
    4 Rebase conflict: resolve it, or record conflict with the files Class conflict (#3195). The stop does not name the files #3646
    5 Exhausted budget: work on the branch, item blocked, comment with kept work and next action #3580 (#3568) for limit_reached and action raise_limit, #3560 for the kept note #3645, for a budget stop in a fix step of the scoped checks
    6 explain and inbox show class, attempts, next action Only explain --trace shows attempts (#3580) #3648
    7 A metric counts partials by class and outcome devops_cli_service_implement_failures_total counts stops by class (#3195) #3650, related to #3069
    8 The Service never merges and never marks a partial draft ready draft_readiness (#3337, #2916) refuses an unticked group. A search of src/devops_cli finds no call that merges a pull request #3049 for the review gate

    Limits of this map.

    Other parts of the body.

  9. removed
    status/new
    on Nov 5, 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

    effort/highpriority/p1-highscope/roadmapsource/agenttype/featurevalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions