Skip to content

feat(roadmap): the Service continues a Job that has no result #3721

Closed

Description

@dan-petty

Problem or Motivation

A Job of the implement job can end with no result: an eviction, an out-of-memory kill or a restart. Then the item goes to Blocked with implement.stopped=job. Only a person's implement: retry or a new image digest clears that stop (stop_clear.py). So one lost Job stops the item until a person looks at it.

This is the continuation part of #3062. Two other parts of #3062 already exist: the liveness signal (#3063, implement_deadline.py) and the checkpoint of each task (#3054, wip: pushes). The checkpoint of each group conflicts with recorded requirements (#2910, #3043, the false-premise return) and needs an owner decision. It stays in #3062.

Proposed Solution & Architectural Design

The Service starts a new Job when a Job ended with no result:

  • A new rule continue in stop_clear.py. It applies to implement.stopped=job with a failure class whose action is retry. It runs before the rule digest and spends no digest clear.
  • A new setting roadmap.implement.continuations_per_item. The default is 2, and 0 turns it off.
  • A new record key implement.continuations. The record holds a count only, so it holds no secret.
  • The comment says "continuation n of N", and "No continuation is left" at the limit. Then the item stays Blocked as before.
  • Work that is on origin through wip: pushes (a group with many tasks) continues. A group with one task restarts, until the checkpoint of each group exists.

A local draft exists. 131 tests of test_roadmap_stop_clear.py pass, and the settings tests pass. The 13 tests of test_roadmap_implement_submit.py and test_roadmap_implement_deadline.py that assume a failed Job stays Blocked need continuations_per_item=0, and the rounds need new tests. The docs need an update: k8s/README.md step 16, docs/ROADMAP_WORKFLOW.md, docs/roadmap/implement.md, and the generated CONFIGURATION and ENV_VARS.

Target Subsystem

SDLC, Git & PR Governance.

Existing Tool Considered

Evidence of the premise check is in the evidence comment on #3062, which returned that item to New.

Activity

  1. added
    source/agent
    type/feature
    scope/roadmap
    status/new
    value/medium
    effort/medium
    on Nov 6, 2026
  2. dan-petty commented on Nov 6, 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: P2-Medium. It reduces human intervention for transient Job failures but is one part of a larger umbrella and has no security or data-loss impact.
    • Value: Medium. It removes a manual step when a Job is evicted or OOM-killed, saving operator time.
    • Effort: Medium. A local draft exists with 131 passing tests, but test updates and four doc files remain.
    • Related: feat(roadmap): durable runs: a step survives an eviction, an OOM or a restart #3062, which asks for a different change. Both address a Job ending with no result, but #3062 is the umbrella covering checkpoints, heartbeats, and continuation, while the candidate delivers only the continuation rule and setting.
  3. added
    priority/p2-medium
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 6, 2026
  4. removed
    status/in-review
    on Nov 6, 2026
  5. devops-cli-service commented on Nov 6, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-06 05:30 UTC

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/mediumpriority/p2-mediumscope/roadmapsource/agenttype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions