Repository navigation
Description
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 gradesgives the grade for eachconfigwith 10 attempts or more, as it does for each version.devops roadmap explainor 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
- chore(roadmap): hold incremental stage and implement work #6521 (hold: incremental work on the stage, implement and fix-checks jobs waits for the re-architecture)
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_idfor one job with two settings mappings that differ in one limit. - THEN
config_idreturns two different ids, and each id equals the first 8 hexadecimal characters ofhashlib.sha256(text.encode()).hexdigest(), wheretextsorts the keys and joinskey=valuewith&.
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_settingsforstagewith a mapping that holdsservice.lanesbesidemax_tokensandmodel_tier. - THEN
service.lanesis absent from the result,max_tokensandmodel_tierare present, and the id equals the id of the mapping withoutservice.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
stageresult with the settings{"effort": "high", "max_tokens": 200000, "model_tier": "standard"}. - THEN The line holds
config=with 8 hexadecimal characters afterfirst_pass=, holdseffort=high max_tokens=200000 model_tier=standardin that order beforeversion=,configequals the id of those settings, and the last field starts withversion=.
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 docspasses.
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_idtakes only those keys, sorts them and writeskey=valuejoined by&. The id is the first 8 hexadecimal characters of the SHA-256 of that text. The table lives insrc/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_resultget the settings of the attempt?:log_job_resulttakes asettingskeyword argument. It passes the mapping throughattempt_settingsand 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
settingskeyword argument. The function already takescountsandnames, 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.
- Chosen: Explicit
- 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 insrc/devops_cli/roadmap/job_grade_report.pygroups 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
--configoption 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 explaincommand. It adds a command for a read that the grade report gives.
- Chosen: Settings on the result line, with a
- Which jobs write
config?: Every member ofRoadmapJob.JOB_SETTINGShas 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
stageandimplement. 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
configwith 10 attempts or more in the window, as it does for each version, withp, 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.
Activity
dan-petty commentedon Nov 13, 2026
Both add fields to the result line in job_result.py, but #5168 adds first-pass and cost fields while this adds a config identifier.devops-cli-service commentedon Nov 18, 2026
Waiting for the alternatives check to run. The next refine round looks at the item again after the check records a verdict.
devops-cli-service commentedon Nov 20, 2026
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:
Sources:
devops-cli-service commentedon Nov 20, 2026
Next step: the stage job writes the plan of the item. See the section Proposed design of the body.
dan-petty commentedon Nov 20, 2026
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.
devops-cli-service commentedon Nov 27, 2026
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.
dan-petty commentedon Nov 30, 2026
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.