Skip to content

feat(roadmap): a result line names the configuration of its attempt #5479

Not planned

Description

@dan-petty

Problem or Motivation

The owner asked on 2026-11-13 to double each limit of a roadmap job under 80 % success, and then to try one configuration value at a time until a configuration works. A trial changes the live ConfigMap, and not the release. The result line names only version= (docs/roadmap/job-success.md). So devops roadmap eval grades cannot separate two configurations of one release, and a trial cannot show its own n, p and interval.

Proposed Solution & Architectural Design

  • Each result line adds config=<id>. The id is the first 8 hex characters of the SHA-256 of the settings that limit an attempt of that job (the limits, the model tier, the toolset and the effort), in a fixed order. A value is a number or a fixed name, so the line keeps its form.
  • devops roadmap eval grades gives the grade for each config with 10 attempts or more, as it does for each version.
  • devops roadmap explain or a new option prints the settings of one id, so a person can read a trial.
  • Test first: the id changes when one limit changes, and does not change for a setting that does not limit the job.

Target Subsystem

src/devops_cli/roadmap/job_result.py, src/devops_cli/commands/roadmap_eval_grades.py, docs/roadmap/job-success.md.

Existing Tool Considered

hashlib of the standard library for the id. No new dependency. #5175 compares releases, and this item adds the configuration inside one release.

Found while writing the agentic workflow spec (#5443, gap G12).

Source: #5443

Dependencies

Alternatives check of 2026-11-26: in-use.
The repository already uses this tool.
Tool: hashlib (https://pypi.org/project/hashlib), Python Software Foundation License, last activity 2009-07-03, not maintained.
Reason: Searches found experiment trackers (Aim, MLflow) that group runs by parameters, but none writes a config id into the project's result line; hashlib, already named by the issue, supplies only the digest and hex truncation.

Covers:

  • SHA-256 digest of a canonical settings text
  • First 8 hex characters of the digest
  • Stable id when one input value changes

Lacks:

  • Per-job table of the settings that limit an attempt
  • Config id and settings fields on the result line
  • Grade rows grouped by config, with a config filter
  • Docs update for the job success page

Proposed design

Problem statement

Hold this item until #6521 closes. The result line names only version=, so devops roadmap eval grades cannot separate two configurations of one release. This change adds config=<id> and the settings to each result line and groups grades by config.

Acceptance criteria

Requirement: Configuration id

The configuration id SHALL be the first 8 hexadecimal characters of the SHA-256 of the settings written as sorted key=value pairs joined by &.

Scenario: One limit changes the id

  • WHEN A test calls config_id for one job with two settings mappings that differ in one limit.
  • THEN config_id returns two different ids, and each id equals the first 8 hexadecimal characters of hashlib.sha256(text.encode()).hexdigest(), where text sorts the keys and joins key=value with &.

Requirement: Settings that limit the attempt

attempt_settings MUST return only the keys that JOB_SETTINGS[job] lists for the attempt of that job.

Scenario: An unrelated setting does not change the id

  • WHEN A test calls attempt_settings for stage with a mapping that holds service.lanes beside max_tokens and model_tier.
  • THEN service.lanes is absent from the result, max_tokens and model_tier are present, and the id equals the id of the mapping without service.lanes.

Requirement: Settings table covers each job

JOB_SETTINGS MUST hold a non-empty entry for each member of RoadmapJob.

Scenario: Each job has settings

  • WHEN A test iterates over each member of RoadmapJob.
  • THEN JOB_SETTINGS[job] is a non-empty mapping for each member.

Requirement: Config on the result line

log_job_result MUST write config=<id> after first_pass= and each setting of the attempt in sorted key order before version=.

Scenario: A stage attempt names its config

  • WHEN A test logs a stage result with the settings {"effort": "high", "max_tokens": 200000, "model_tier": "standard"}.
  • THEN The line holds config= with 8 hexadecimal characters after first_pass=, holds effort=high max_tokens=200000 model_tier=standard in that order before version=, config equals the id of those settings, and the last field starts with version=.

Requirement: Grade for each config

devops roadmap eval grades SHALL give a row for each config with 10 attempts or more in the window, with its attempts, its p, its interval, its grade and its settings.

Scenario: Two configs of one version

  • WHEN A test gives the report builder the result lines of two configs with 10 attempts or more each.
  • THEN The report holds one row for each config, and each row gives its attempts, its p, its interval, its grade and its settings.

Requirement: Settings of one config

devops roadmap eval grades --config <id> SHALL print only the row of that config.

Scenario: One config

  • WHEN A test calls the report builder with the result lines of two configs and config=<id> as the filter.
  • THEN The report holds one row, and it gives each setting of that config.

Requirement: Job success page

docs/roadmap/job-success.md SHALL document config=<id> and the settings that make it.

Scenario: Docs check

  • WHEN The change updates docs/roadmap/job-success.md.
  • THEN uv run devops ci --check --only docs passes.

Existing Tool Considered

The alternatives check in the issue body records in-use for hashlib (https://pypi.org/project/hashlib); the block lists what it covers and lacks. The proposal adds the per-job settings table, the config fields, the grade grouping and the docs in project code. The cost is about 40k output tokens to write, about 15k to keep and fix, over about 4 hours.

Key questions

  • Which settings make the id of an attempt, and in what order?: JOB_SETTINGS[job] lists the settings that limit the attempt. config_id takes only those keys, sorts them and writes key=value joined by &. The id is the first 8 hexadecimal characters of the SHA-256 of that text. The table lives in src/devops_cli/roadmap/job_result.py. (best practice) [sources: src/devops_cli/roadmap/job_result.py, docs/roadmap/job-success.md]
    • Chosen: Per-job key table, sorted text. A new limit changes one table entry and no order, and an unrelated setting never changes the id.
    • Rejected: Hand-kept list in a declared order. Each new limit needs a place in the list, and a missed place changes every id.
    • Rejected: Hash of the whole roadmap settings. A setting that limits no attempt, such as service.lanes, would change the id.
  • How does log_job_result get the settings of the attempt?: log_job_result takes a settings keyword argument. It passes the mapping through attempt_settings and writes the id and the settings. Each caller passes the settings of its attempt. (best practice) [sources: src/devops_cli/roadmap/job_result.py]
    • Chosen: Explicit settings keyword argument. The function already takes counts and names, so one more mapping keeps the writer single and testable.
    • Rejected: Read global config inside the writer. The writer would depend on runtime config and a test could not isolate one job's attempt.
    • Rejected: Set a context variable around each attempt. The context is hidden and a missing set writes no config; an explicit argument fails at the call site.
  • Where do the settings of an id live, and how does a person read them?: The result line names config=<id> and each setting. devops roadmap eval grades --config <id> prints the row and settings of one id. The report builder in src/devops_cli/roadmap/job_grade_report.py groups the lines. (best practice) [sources: docs/roadmap/job-success.md, src/devops_cli/commands/roadmap_eval_grades.py, src/devops_cli/roadmap/job_grade_report.py]
    • Chosen: Settings on the result line, with a --config option on the report. The Service and each Job pod write the same line, so no store is lost with a pod, and a test checks the id against the line.
    • Rejected: A store under the data dir keyed by the id. The data dir of a Job pod goes with the pod, and the Service would hold a second copy of a fact.
    • Rejected: A new devops roadmap explain command. It adds a command for a read that the grade report gives.
  • Which jobs write config?: Every member of RoadmapJob. JOB_SETTINGS has a non-empty entry for each member, and one writer holds the rule. (best practice) [sources: src/devops_cli/roadmap/job_result.py, docs/roadmap/job-success.md]
    • Chosen: Every job. A query groups any job by its config, and one writer holds the rule.
    • Rejected: Only stage and implement. A trial of refine or of the alternatives check would show no config, and its result line could not name it.
  • Does the grade report use the 10-attempt rule of a version for a config?: Yes. The report gives a row for each config with 10 attempts or more in the window, as it does for each version, with p, its interval, its grade and its settings. (best practice) [sources: docs/roadmap/job-success.md, src/devops_cli/roadmap/job_grade_report.py]
    • Chosen: The same 10-attempt rule as a version. One rule for a small sample keeps the report readable and matches the version rows.
    • Rejected: No minimum. A config with one attempt shows a wide interval and no grade, and it buries the configs with enough attempts.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

#6521

Activity

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

    @dan-petty
    OwnerAuthor
  4. added
    priority/p2-medium
    on Nov 13, 2026
  5. devops-cli-service commented on Nov 18, 2026

    @devops-cli-service
    Contributor

    Waiting for the alternatives check to run. The next refine round looks at the item again after the check records a verdict.

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

    @devops-cli-service
    Contributor

    The result in the alternatives block of the issue body changed. Before this check: no check. A person decides what the new result means for the item.

    Searches (8)

    Tools considered:

    Searches run:

    • python short stable id from hash of configuration settings sha256, results: 5
    • open source tool group experiment results by configuration variant with confidence interval, results: 5
    • hashlib sha256 hexdigest documentation python standard library, results: 5
    • python library deterministic fingerprint of dict of settings sorted keys, results: 5
    • hashids python package short hash ids, results: 5
    • docs.python.org hashlib module, results: 5
    • "hashlib" python sha256 hexdigest canonical string of settings, results: 5
    • sha256 fingerprint configuration file python tool command line, results: 5

    Sources:

  7. added
    status/ready
    and removed
    status/new
    on Nov 20, 2026
  8. devops-cli-service commented on Nov 20, 2026

    @devops-cli-service
    Contributor

    Next step: the stage job writes the plan of the item. See the section Proposed design of the body.

  9. dan-petty commented on Nov 20, 2026

    @dan-petty
    OwnerAuthor

    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.

  10. added
    status/new
    and removed
    status/ready
    on Nov 27, 2026
  11. devops-cli-service commented on Nov 27, 2026

    @devops-cli-service
    Contributor

    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.

  12. dan-petty commented on Nov 30, 2026

    @dan-petty
    OwnerAuthor

    Triage under #6519 (owner instruction of 2026-11-30), before the hold #6521 closes. This item adds or extends a gate, refusal, screen, cap, limit, retry, result line, shell allowlist, tool catalog or plan-shape rule of the stage, implement or fix-checks job. #6519 found that 263 of about 900 issues in four weeks added such rules and none replaced the engine. Stage now runs on stock Coder (grade 60 on 30 graded attempts), where the agent reads the repository, runs the checks in its loop and has a real shell; implement follows (#6527). The code paths that this item names have also moved. If the failure class still shows in graded attempts, file a new item from that evidence. Closed as not planned; a person may reopen it.

  13. 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/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