Skip to content

fix(service): the implement row waits behind refine on the model lane though it calls no model #2757

Description

@dan-petty

Problem or Motivation

The implement row waits behind the model-bound rows of its repository, though it makes no model call in the Service pod. On 2026-10-30 an implement: retry comment on #2656 produced no Job for more than 90 minutes, with the budget raised to 2000 requests an hour.

Evidence from the Service on 2026-10-30:

  • devops_cli_service_job_start_timestamp_seconds{lane="model",repo="dan-petty/devops-cli"} was 03:17:08, the start of the pod. At 03:48 the round had not finished: devops_cli_service_jobs_total{lane="model",repo="dan-petty/devops-cli"} had no success series, while each of the six other repositories had 7. queue_depth for the lane was 1, a trigger waiting behind the running round.
  • For dan-petty/devops-cli, the only model-lane row that sent GitHub requests in the last 35 minutes was refine (73 requests). The model (devops-background, one request at a time) answered about 3 requests in that time.
  • The model lane runs its rows in order: intake, refine, stage, implement, alternatives. A round that is still in refine never reaches implement.

The implement row finds a Staged or Planned item, makes a record, and creates a Job through the Kubernetes API (roadmap/implement_submit.py). The model runs in the runner Job, not in the Service. CONTEXT.md puts rows that call the model on the model lane and the rest on the other lane ("the other lane runs the metrics").

Proposed Solution & Architectural Design

  • Move the implement row from MODEL_LANE_ROWS to STATUS_LANE_ROWS in roadmap/run.py. It runs on the status lane's clone, and a long refine round no longer delays it.
  • Check that the two lanes do not write the record block of one issue at the same time. Refine and stage write refine.* and stage.* keys of an item, and implement writes implement.* keys, each by read-modify-write of the issue body. The store must re-read the body before it writes, or the item must carry one writer at a time. A test with two writers on one issue covers it.
  • Update CONTEXT.md ("Lane"), k8s/README.md and the docstrings that say which row runs on which lane. The cross-job predicate of a row (cross_job_predicate) works between rows of one lane; check that implement has none.
  • The metric labels lane="status" for the implement row.

Target Subsystem

src/devops_cli/roadmap/run.py, src/devops_cli/roadmap/store.py, src/devops_cli/server/service.py, CONTEXT.md, k8s/README.md.

Existing Tool Considered

The two-lane design of #1532. Nothing new is built.

Acceptance criteria

  • With a model-lane round that is still running, a trigger for the same repository runs the implement row on the status lane within one poll.
  • A test with two writers on one issue shows no lost key in the record block.
  • CONTEXT.md and k8s/README.md name the lane of each row, and uv run devops ci passes with the docs regenerated.

Activity

  1. added
    source/agent
    type/bug
    scope/service
    status/new
    value/medium
    effort/medium
    on Oct 30, 2026
  2. dan-petty commented on Oct 30, 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/bug. The fix prefix of the title gives the type.
    • Scope: scope/service. The (service) scope of the title gives the scope.
    • Priority: P2-Medium. A 90-minute delay on an implement trigger is a real operational defect but the system still completes the work.
    • Value: Medium. It removes a multi-minute to multi-hour delay for implement triggers on every repository.
    • Effort: Medium. The core change is a list move, but it also needs a concurrency test, doc updates, and a metric label change across several files.
    • Related: fix(service): the model lanes of all repositories call the one-slot background tier at the same time, and a call that waits behind them more than 1,100 s fails #2564, which asks for a different change. Both address model-lane scheduling, but #2564 fixes cross-repo contention on the model tier while the candidate removes a non-model row from the model lane.
  3. added
    priority/p2-medium
    status/in-review
    and removed
    status/new
    on Oct 30, 2026
  4. removed
    status/in-review
    on Oct 30, 2026
  5. added a commit that references this issue on Oct 30, 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/mediumpriority/p2-mediumscope/servicesource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions