Skip to content

test(roadmap): prove the split thresholds from the live job history #5817

Not planned

Description

@devops-cli-service

Split from #4817.

Problem: the owner decision of 2026-11-13 asks for a live proof of the split thresholds. After the merge and the release of #4817, each threshold must come from the job history of the cluster. A comment must give each threshold, its job and the attempt count that it came from. This part is deferred from #4817, because it waits on the merge of #4817, its release, and at least 30 attempts on each side of each cut in the cluster. No offline test can show it, so the rest of #4817 can reach Ready. Acceptance criteria: - After the release of #4817, devops roadmap split calibrate runs on the cluster. Each signal with 30 or more attempts on each side gives source fitted. - A comment gives each threshold, its job and the attempt count that it came from. - A signal with fewer than 30 attempts on one side gives source default, and the comment says so.

Dependencies

Proposed design

Problem statement

The owner decision of 2026-11-13 asks for a live proof of the split thresholds. After #4817 merges and releases, each split threshold must come from the job history of the cluster, with at least 30 attempts on each side of the cut. A comment must give each threshold, its job and the attempt count that it came from. No offline test can show it, so the proof is a run of devops roadmap split calibrate on the cluster and its record. The item waits on #6521.

Acceptance criteria

Requirement: Pending a person after the merge

After the release of #4817, a person SHALL run devops roadmap split calibrate on the cluster and record its result in a comment on this issue.

Scenario: The post-release live proof

Requirement: Fitted source from the live history

After the release of #4817, devops roadmap split calibrate SHALL report source fitted for each split signal with 30 or more attempts on each side of its cut.

Scenario: Live calibration on the cluster

Requirement: Default source below the attempt floor

A split signal with fewer than 30 attempts on one side of its cut SHALL keep source default.

Scenario: A signal below the floor

  • WHEN devops roadmap split calibrate runs on the cluster, and a signal has fewer than 30 attempts on one side of its cut
  • THEN the command reports source default for that signal, and the comment names the signal and its attempt count

Existing Tool Considered

No alternatives check has run on this issue. The open, maintained library is statsmodels 0.15.0, a locked dependency (pyproject.toml:73) that ADR 0021:161 names for the fit of the split thresholds. It gives the regression and interval primitives, but no split signal, no 30-sample-per-side floor, no fitted/default source, no Valkey cache and no comment. The split row and its calibrate step, which #4817 delivers, hold the project's own fit code. This issue builds no code: it runs devops roadmap split calibrate on the cluster and records the result in a comment, so it adds no written cost of its own.

Key questions

  • Where do the attempt counts of each split signal come from?: From the job records and the OpenSpec change folders that ADR 0021 names. The job grade also reads the result line of each attempt in Loki, and a job under 30 attempts gets the grade too few. [sources: docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:161, docs/roadmap/job-success.md:60, CONTEXT.md:142]
  • Which command fits the split thresholds from the job history?: devops roadmap split calibrate, the calibrate step of the split row that feat(roadmap): split thresholds come from measured job history #4817 delivers. It fits the thresholds from the job records and the OpenSpec change folders with statsmodels. The fit in src/devops_cli/roadmap/decision_fit.py is not this fit; it fits the cuts of a Jev decision point under ADR 0019. (best practice) [sources: docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:161, src/devops_cli/roadmap/decision_fit.py:1]
  • What does a split signal with fewer than 30 attempts on one side give?: Its threshold keeps the default, and the result says so; the comment names the signal and its attempt count. ADR 0021 uses the 30-sample floor for the split calibrate, and the project uses 30 attempts as the floor of the job grade too few. (best practice) [sources: docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:161, CONTEXT.md:142]
    • Chosen: Keep the default threshold and report it. ADR 0021 says a side with fewer than 30 samples uses the default and the result says so, and the issue asks for 30 attempts on each side.
    • Rejected: Fit the threshold from the attempts that exist. A fit from fewer than 30 attempts on one side is a guess, and ADR 0021 refuses it.
    • Rejected: Lower the floor to the attempts that exist. It changes the owner decision's floor of 30 attempts on each side and the project's 30-attempt floor for too few.

Fit

Fits in one pull request.

Suspected block

the release of #4817 and at least 30 attempts on each side of each split cut in the cluster job history

Dependencies

#6521, #4817

Activity

  1. added
    source/agent
    type/test
    scope/roadmap
    status/new
    value/medium
    effort/low
    on Nov 15, 2026
  2. devops-cli-service commented on Nov 15, 2026

    @devops-cli-service
    ContributorAuthor
  3. devops-cli-service commented on Nov 18, 2026

    @devops-cli-service
    ContributorAuthor

    Refine cannot set this item to Ready at 86358b6 while the items below stay open. The next refine round looks at the item again when they close, or when a person replies in a comment or edits the body.

  4. dan-petty commented on Nov 20, 2026

    @dan-petty
    Owner

    Frozen on 2026-11-20. The stage, implement and fix-checks jobs grade under 60%, so the owner rule asks for a re-architecture before more fixes inside the current design (tracker #6519). This item is incremental work on those jobs, so its Dependencies section now names #6521 first. Stage and implement leave this item while #6521 is open. When the experiments of #6519 decide, a person closes #6521 (this item can then continue) or closes this item as not planned.

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

    @devops-cli-service
    ContributorAuthor

    Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies in the section Proposed design of the body.

  6. dan-petty commented on Nov 30, 2026

    @dan-petty
    Owner

    Premise check after the release of the hold #6521 (2026-11-30): its parent #4817 is closed as not planned, and devops roadmap split calibrate does not exist. Closed as not planned (AGENTS.md rule 2); a person may reopen it, or file a new item from fresh evidence.

  7. removed
    status/new
    on Nov 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/lowpriority/p2-mediumscope/roadmapsource/agenttype/testvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions