Skip to content

feat(roadmap): make the attempt limits of the failing jobs settings #5440

Description

@dan-petty

Problem or Motivation

On 2026-11-13 the owner asked to double every limit of the roadmap jobs that are below 80 % success (stage 1 of 4, implement 1 of 3 in 6 hours; fix-plan runs end in timeout), and to "traverse configuration values until we get a working configuration". The live ConfigMap now holds the doubled values of every setting of these jobs. But many limits that end an attempt are constants, so a person or the shepherd cannot change them without a release:

  • Stage: CONST_ROADMAP_STAGE_GATE_RETURNS_CEILING (3) bounds the setting roadmap.stage.gate_returns (default 3), so it cannot double. Also CONST_ROADMAP_STAGE_GATE_RETURN_EXTENSIONS (1), CONST_ROADMAP_STAGE_VERIFY_REPAIR_ROUNDS_CEILING (4), CONST_ROADMAP_STAGE_PLAN_DEFECT_LIMIT (3), CONST_ROADMAP_STAGE_MAX_REQUESTS (250), CONST_ROADMAP_STAGE_TOOL_MAX_CALLS (200), and the plan and review call advice and notice counts (30/40 and 40/60).
  • Implement: CONST_ROADMAP_IMPLEMENT_MAX_REQUESTS (500), CONST_ROADMAP_IMPLEMENT_MAX_TOOL_CALLS (1500), CONST_ROADMAP_IMPLEMENT_MAX_REFUSALS (30), CONST_ROADMAP_IMPLEMENT_MAX_CONSECUTIVE_REFUSALS (3), CONST_ROADMAP_IMPLEMENT_TOOL_RETRIES (5), CONST_ROADMAP_IMPLEMENT_MODEL_RESENDS (1), CONST_ROADMAP_IMPLEMENT_EXTENSION_CALLS (20), CONST_ROADMAP_IMPLEMENT_EXTENSION_MAX_REFUSED (3).
  • Fix-plan: CONST_ROADMAP_FIX_PLAN_HEAD_ATTEMPTS (2) and CONST_ROADMAP_FIX_PLAN_REVISIONS (3).

Proposed Solution

  • Make each limit above a setting of its job section (roadmap.stage.*, roadmap.implement.*, roadmap.fix_plan.*), with the current value as the default, read at each use (no restart), and listed in the generated configuration documents.
  • Raise each ceiling so that a setting can go to at least 4 times its default: for example gate_returns up to 12 and verify_repair_rounds up to 16. Keep a ceiling only where an outside limit exists: the Job deadline stays at most 14400 s, because the admission policy roadmap-service-jobs refuses more, and that policy does not change here.
  • Keep the nested order: a tool limit is below a step limit, and a step limit is below the Job deadline. The settings check refuses a value that breaks the order, with the name of the setting.
  • Then set the doubled values in the live ConfigMap.

Acceptance Criteria

  • A test proves that each new setting has the old constant as its default, so the behavior without configuration does not change.
  • A test proves that roadmap.stage.gate_returns: 6 and roadmap.fix_plan.head_attempts: 4 load, and that a value above the ceiling is refused with the setting name.
  • uv run devops docs check passes with the new settings in the configuration documents.
  • Live proof after release: the ConfigMap sets the doubled values, and the next stage, implement and fix-plan result lines show runs that use more than the old limits (for example gate_returns=4 or more).

Existing Tool Considered

pydantic settings (Field with ge and le) already hold the job settings, and the ConfigMap is the existing control. No new tool. Cost to build (estimate): 0.6 M tokens and 3 hours.

Related

#5413 (fix-plan attempts), #5389 (stage soft cap), #5380 (fix-plan time budget), #3727 (memory kill class), owner direction "loosen caps with progress-aware extensions" (2026-11-11).

Activity

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

    @dan-petty
    OwnerAuthor
  3. added
    priority/p2-medium
    owner/agent
    status/in-progress
    and removed
    status/new
    on Nov 13, 2026
  4. dan-petty commented on Nov 13, 2026

    @dan-petty
    OwnerAuthor

    Two live values of the doubled ConfigMap devops-cli-config (read on 2026-11-13) break a nested order that no settings check can see, because the outer limit is outside the settings:

    • roadmap.fix_plan.time_budget_seconds: 7200 is equal to the deadline of the CronJob template that devops k8s run-job uses (7200 s). A hand-made fix-plan Job can end at its deadline before the step writes its result line. The Service row fix_plan runs in the Service pod and has no Job deadline, so the row is not affected. Keep the budget below the Job deadline with a margin for one model run and the push, or give the Job a longer deadline.
    • roadmap.implement.request_timeout_seconds: 2400 is above the timeout of the LLM gateway router (1500 s). The router ends a long call first, so the stop names the router and not the setting.

    The branch of this issue keeps the existing deadline check and adds the order checks of the new count settings. It does not change these two values.

  5. added
    status/in-review
    and removed
    status/in-progress
    on Nov 13, 2026
  6. removed
    status/in-review
    owner/agent
    on Nov 13, 2026
  7. added a commit that references this issue on Nov 13, 2026
  8. devops-cli-service commented on Nov 13, 2026

    @devops-cli-service
    Contributor
  9. devops-cli-service commented on Nov 13, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-13 18:17 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/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions